node.js – How to Require WITH statements with arangojs

I have set up an arango cluster deployment recently. when I connected with DB from my Nodejs code, it threw an error ‘use WITH vertexName in the first line of your query’.

So, I tried adding it to the existing graph traversal queries after checking this:

Now, the issue is, that my development DB has a single server instance so it’s not throwing that error. I found that I can specifically add an option --query.require-with value
to DB (arango-cli) like this:

How can I enable that with arangojs in my NodeJs code?

Read more here: Source link