ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

strange error when travel graph #130

Closed Himan000 closed 5 years ago

Himan000 commented 5 years ago

FOR v IN OUTBOUND SHORTEST_PATH 'airports/BIS' TO 'airports/JFK' flights RETURN v when run above query,an error occur as below: Query: AQL: collection not known to traversal: 'airports'. please add 'WITH airports' as the first line in your AQL (while executing) It's strange. how to solve it? thanks

ifcologne commented 5 years ago

WITH airports FOR v IN OUTBOUND SHORTEST_PATH 'airports/BIS' TO 'airports/JFK' flights RETURN v

You are running an ArangoDB cluster. Here we need to know in advance which collections will be involved to set read locks accordingly. In a single instance environment, a deadlock can easily be detected when lazily adding vertex collections during the traversal.

Himan000 commented 5 years ago

Yes, it's ArangoDB cluster. It works now. Thanks.