1

I need to execute the following query:

const query = `FOR u IN ${collection} FILTER ${filter} RETURN u`

so that filter variable is generated somehow by me (it is corrects, checked with Arango console)

But

db.query(query)

always returns empty cursor, and

db.query(aql`FOR u IN ${db.collection(collection)} FILTER ${filter} RETURN u`)

ignores my filter - data is not filtered.

How to execute query with arangojs with pre-generated filter?

1 Answer 1

1

Fix: db.query(query).all() worked

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.