Skip to content

Commit 90d6f10

Browse files
committed
chore: update the verify collection on arangodb
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent bd58381 commit 90d6f10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jnosql-arangodb/src/main/java/org/eclipse/jnosql/databases/arangodb/communication/DefaultArangoDBDocumentManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public Iterable<CommunicationEntity> update(Iterable<CommunicationEntity> entiti
9999
public void delete(DeleteQuery query) {
100100
requireNonNull(query, "query is required");
101101
try {
102-
102+
checkCollection(query.name());
103103
if (query.condition().isEmpty()) {
104104
AQLQueryResult delete = QueryAQLConverter.delete(query);
105105
arangoDB.db(database).query(delete.query(), BaseDocument.class);
@@ -122,6 +122,7 @@ public void delete(DeleteQuery query) {
122122
@Override
123123
public Stream<CommunicationEntity> select(SelectQuery query) throws NullPointerException {
124124
requireNonNull(query, "query is required");
125+
checkCollection(query.name());
125126
AQLQueryResult result = QueryAQLConverter.select(query);
126127
LOGGER.finest("Executing AQL: " + result.query());
127128
ArangoCursor<JsonObject> documents = arangoDB.db(database).query(result.query(),

0 commit comments

Comments
 (0)