I am having a problem requesting ArangoDB in java for the value of arrays. I tried with both String [] and ArrayList, and without success.
My request:
FOR document IN documents FILTER @categoriesArray IN document.categories[*].title RETURN document
BindParams:
Map<String, Object> bindVars = new MapBuilder().put("categoriesArray", categoriesArray).get();
categoriesArray contains a bunch of strings. I am not sure why it does not return any results, because if I ask with:
FOR document IN documents FILTER "Politics" IN document.categories[*].title RETURN document
I get the results I'm looking for. Just not when using an array or array.
I also tried requesting:
FOR document IN documents FILTER ["Politics","Law] IN document.categories[*].title RETURN document
to emulate an ArrayList, but this does not return any results. I would query using a bunch of individual strings, but there are too many of them, and I get an error message from the Java driver during a long query using String. So, I have to request the use of Array or ArrayList.
Array Categories Example:
["Politics", "Law", "Nature"]
Example database image:

source share