I am using the ArangoDB java driver and am trying to query for documents containing one of a number of Strings, which are stored in the arangoDB documents in lists. I am using ArrayList with a list of Strings in the query.
Query:
FOR document IN documents FILTER ( @now - document.dateAdded < 2592000000 ) &&
(document.categories IN @categories || document.tags IN @tags
|| document.locations IN @locations ) RETURN document
Map<String, Object> bindVars = new MapBuilder().put("now", now).put("categories", categories).put("@tags", tags).put("@locations", locations).get();
"now" contains a long. All the others are ArrayList<String>. This is throwing an error explaining that "bind parameter '@tags' has an invalid value or type". Since this ArrayList is no different than the others, my only theory is that I am inputting the logic incorrectly. How does one query for:
FunctionCondition1 AND (condition2 OR condition3 OR condition4)