|
37 | 37 | import com.arangodb.entity.EntityFactory;
|
38 | 38 | import com.arangodb.entity.FilterCondition;
|
39 | 39 | import com.arangodb.entity.GraphEntity;
|
| 40 | +import com.arangodb.entity.GraphGetCollectionsResultEntity; |
40 | 41 | import com.arangodb.entity.GraphsEntity;
|
41 |
| -import com.arangodb.entity.StringsResultEntity; |
42 | 42 | import com.arangodb.entity.marker.VertexEntity;
|
43 | 43 | import com.arangodb.http.HttpManager;
|
44 | 44 | import com.arangodb.http.HttpResponseEntity;
|
@@ -157,9 +157,9 @@ public List<String> getVertexCollections(String databaseName, String graphName)
|
157 | 157 | throw new ArangoException("unknown error");
|
158 | 158 | }
|
159 | 159 |
|
160 |
| - StringsResultEntity result = createEntity(res, StringsResultEntity.class, null, true); |
| 160 | + GraphGetCollectionsResultEntity result = createEntity(res, GraphGetCollectionsResultEntity.class, null, true); |
161 | 161 |
|
162 |
| - return result.getResult(); |
| 162 | + return result.getCollections(); |
163 | 163 | }
|
164 | 164 |
|
165 | 165 | /**
|
@@ -233,9 +233,8 @@ public List<String> getEdgeCollections(String databaseName, String graphName) th
|
233 | 233 | throw new ArangoException("unknown error");
|
234 | 234 | }
|
235 | 235 |
|
236 |
| - StringsResultEntity result = createEntity(res, StringsResultEntity.class, null, true); |
237 |
| - |
238 |
| - return result.getResult(); |
| 236 | + GraphGetCollectionsResultEntity result = createEntity(res, GraphGetCollectionsResultEntity.class, null, true); |
| 237 | + return result.getCollections(); |
239 | 238 | }
|
240 | 239 |
|
241 | 240 | @Override
|
|
0 commit comments