Hi,
if I understand you correctly, you mean to export the array of ids into
bindVars.
This code work for Java driver 4.0.0 and above. The ArrayList *ids *will be
parsed into ["id1","id2",...]
Collection<String> ids = new ArrayList<String>();
ids.add("id1");
ids.add("id2");
...
Map<String, Object> bindVars = new MapBuilder().put("ids", ids).get();
ArangoCursor<BaseDocument> cursor = arangoDB.db().query("FOR i IN items
FILTER i.id NOT IN @ids RETURN i", bindVars, null, BaseDocument.class);
If you are using Java driver 3.1.0 or earlier, use the method
*executeAqlQuery() *from class *ArangoDriver instead
of arangoDB.db().query()*
Am Donnerstag, 27. Oktober 2016 15:39:23 UTC+2 schrieb Schiran:
>
> Hi,
>
> Arangodb has been playing very nice with us!
>
> One question though,
>
> FOR i IN items
> FILTER i.id NOT IN [ 'id1', 'id2', 'id3', 'id4', ... ]
>
> RETURN i
>
>
> How to templatize this query when using Java driver?
>
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.