Fix ArangoDB
This commit is contained in:
parent
27501b82e1
commit
2ed088e415
1 changed files with 56 additions and 53 deletions
|
|
@ -338,14 +338,17 @@ private Map<String, Object> buildSqlQuery(SqlRequest request, List<String> ids)
|
||||||
|
|
||||||
Map<String, Object> bindVars = new HashMap<>();
|
Map<String, Object> bindVars = new HashMap<>();
|
||||||
// TODO: verify correctness of received entities and compare keys
|
// TODO: verify correctness of received entities and compare keys
|
||||||
Object writeEntity = entities.get(aqlCollectionWrite);
|
Object ids = entities.get(aqlCollectionWrite);
|
||||||
bindVars.put("ids", entities);
|
bindVars.put("ids", ids);
|
||||||
|
|
||||||
AqlQueryOptions aqlQueryOptions = new AqlQueryOptions().streamTransactionId(transactionId);
|
AqlQueryOptions aqlQueryOptions = new AqlQueryOptions().streamTransactionId(transactionId);
|
||||||
|
|
||||||
|
try {
|
||||||
arangoDb.query(requestURL, null, bindVars, aqlQueryOptions);
|
arangoDb.query(requestURL, null, bindVars, aqlQueryOptions);
|
||||||
|
logger.info("Successfully removed {} for ids: {}", aqlCollectionWrite, ids);
|
||||||
logger.info("Successfully removed {}: {}", aqlCollectionWrite, writeEntity);
|
} catch (Exception e) {
|
||||||
|
logger.error("Failed to execute AQL request: {}", e.getMessage(), e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue