How to execute an AQL query with Java API?

Viewed 1141

I have a collection named docCollection and I want to perform a normal AQL query on for example:

FOR id IN docCollection FILTER id.center == "Germany" RETURN id

I have tried to use the example as stated here:

https://docs.arangodb.com/cookbook/JavaDriverXmlData.html

But it didn't worked for me and it showed me

Exception in thread "main" java.lang.NullPointerException

1 Answers
Related