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).

Another solution would be to use query builder 
(https://github.com/arangodb/aqbjs), but it's also deprecated.

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?

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/arangodb/128b1c59-0585-4aab-8386-231eb1c5a05f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to