Closed MurkyTheMurloc closed 1 year ago
aql
itself doesn't execute a query, it only creates a query object you can then pass to db.query
to execute, which will return a promise for an ArrayCursor
containing the result data.
If you think there's a different problem, please feel free to reopen this issue.
I guys I have a problem with this specifig aql query
for example following query gets executed without any problem: const query = aql
FOR doc IN year2023 FILTER doc._key == ${month} REPLACE doc WITH MERGE(doc,{openOrders: UNSET(doc.openOrders, ${name})}) IN year2023
;But this example doesn't get executed but also doesn't throw any error also using binding didn't change something: const year ="year2023"; const query = aql
FOR doc IN ${year} FILTER doc._key == ${month} REPLACE doc WITH MERGE(doc,{openOrders: UNSET(doc.openOrders, ${name})}) IN ${year}
;