Closed tomchop closed 6 months ago
Hey @tomchop,
Indeed, that was long deprecated since 3.4, thanks for pointing that out! Ideally, we would've emitted a warning from the driver, but this one slipped past, sorry about that. Right now, since the method has been completely removed from the main ArangoDB implementation, there's not much the driver can do. However, the functionality of the traversal
method can be replaced by an AQL query.
For now, we will be replacing the documentation examples (and readme) accordingly in this PR: https://github.com/arangodb/python-arango/pull/335 It should at least give you some idea on how to work around it. Later on, if we find the resources, we might try to come up with a more generic AQL query which can be wrapped by this method.
Excellent, thanks for the pointers! Fortunately the migration to AQL was fairly straightforward in our case.
(running python 3.10) We recently upgraded to arangodb 3.12 and now calling
traverse()
yields the following error:Looks like the endpoint was deprecated: https://docs.arangodb.com/3.12/release-notes/version-3.12/api-changes-in-3-12/#javascript-based-traversal-using-_apitraversal
You can reproduce this by running the python code from the readme: