Thenable wrapper for the ArangoDB JS driver