How to execute AQL queries
You can execute AQL queries in different ways, from the easy-to-use web interface to the raw HTTP REST API
You can execute AQL queries using different interfaces:
- The web interface
- The
db
object of the JavaScript API (either in arangosh or in a Foxx service) - The raw HTTP REST API
- Through a driver or integration as an abstraction over the HTTP REST API
There are always calls to the server’s API under the hood, but the web interface, arangosh, drivers, and integrations abstract away the low-level communication details and are thus easier to use.
The ArangoDB web interface has a specific section for Queries.
You can run AQL queries from the ArangoDB Shell
with the db._query()
and
db._createStatement()
methods of the db
object. This chapter
also describes how to use bind parameters, statistics, counting, and cursors with
arangosh.
If you use Foxx microservices, see how to write database queries for examples including tagged template strings.
If you want to run AQL queries from your application via the HTTP REST API, see the full API description at HTTP interface for AQL queries.