arangodb / arangojs

The official ArangoDB JavaScript driver.
https://arangodb.github.io/arangojs
Apache License 2.0
600 stars 106 forks source link

Fix return value issue in getUserDatabases and getUserAccessLevel #767

Closed softstuff closed 2 years ago

softstuff commented 2 years ago

Hi I found a return type issues, the access level is return in the body.result and not in the body. Tried to cover it with tests.

The return type for both calls is: { "error" : false, "code" : 200, "result" : "rw" } but typescript and documentation suggested only the result: "rw"