I'm planning to migrate an app from mongodb to arangodb, but I can't find how to properly implement dynamic queries using the javascript driver.
By dynamic query I mean queries that are built using params passed from elsewhere, like filters in a product catalogue, where user can filter by price, brand, etc, without having to specify all possible field on the server and using external data as keys for the filter.
After searching online, I found an old guide for migrating from mongodb to arango db, and it mentions .firstExample and .byExample where you can conveniently pass a json object as a filter for the query. But driver documentation lists these methods as deprecated (if I understood correctly, they are grossly inefficient compared to an aql query).
There's also an example project showcasing graphql+arangodb integration, but it's pretty primitive and it's mentioned that it's impossible to map graphql into aql directly.
So, how do people build aql queries dynamically?