1
0
Fork 0
arangodb/Documentation/Books/AQL
Dan Larkin-York 2eadab33e7 Index hints (#8431) 2019-03-19 09:14:18 +01:00
..
Advanced rename .mdpp files to .md so the handling is easier. 2017-05-04 12:04:24 +02:00
Examples fix example, so geo indices are actually used (#6305) 2018-08-30 19:22:13 +02:00
ExecutionAndPerformance Doc - Complete the highlights page (#7972) 2019-02-19 00:17:13 +01:00
Extending Doc - AQL UDFs: Manage on coordinator, improve warning (#8340) 2019-03-12 09:08:26 +01:00
Functions Doc - Add cross-refs & better AQL function descriptions (#8242) 2019-03-13 08:49:12 +01:00
Fundamentals Doc - Rework AQL Data Types page (#8287) 2019-03-04 16:16:25 +01:00
Graphs Doc - Fix/improve graph traversal/background indexing pages, console.history and examples/options (#8336) 2019-03-11 14:06:28 +01:00
Invocation Feature/misc spelling corrections (#5164) 2018-07-13 13:06:20 +02:00
Operations Index hints (#8431) 2019-03-19 09:14:18 +01:00
Tutorial Doc - Training material links (#6683) 2018-10-17 23:52:35 +02:00
Views Doc - Note that ArangoSearch views cannot be used as edge collections in traversals. (#8099) 2019-02-06 10:44:25 +01:00
styles Doc - Extend generation of program option tables (#7888) 2019-01-10 19:39:26 +01:00
CommonErrors.md Bug fix/more sparsung (#6177) 2018-08-17 08:47:45 +02:00
DataQueries.md Doc - ArangoSearch documentation update (#6323) 2018-09-05 18:17:45 +02:00
FOOTER.html Add footer to docs, unify slogan 2017-05-12 10:19:37 +02:00
Operators.md Doc - Complete the highlights page (#7972) 2019-02-19 00:17:13 +01:00
README.md Doc - single link per line (#5904) 2018-07-20 10:46:27 +02:00
SUMMARY.md Doc - Add cross-refs & better AQL function descriptions (#8242) 2019-03-13 08:49:12 +01:00
book.json Doc - Add version to Gitbook configs + fix (#5701) 2018-06-27 20:56:57 +02:00

README.md

Introduction

The ArangoDB query language (AQL) can be used to retrieve and modify data that are stored in ArangoDB.

{% hint 'info' %} Want to learn AQL for the first time? Be sure to check out the Tutorial before you head off to the in-depth documentation! {% endhint %}

The general workflow when executing a query is as follows:

  • A client application ships an AQL query to the ArangoDB server. The query text contains everything ArangoDB needs to compile the result set
  • ArangoDB will parse the query, execute it and compile the results. If the query is invalid or cannot be executed, the server will return an error that the client can process and react to. If the query can be executed successfully, the server will return the query results (if any) to the client

AQL is mainly a declarative language, meaning that a query expresses what result should be achieved but not how it should be achieved. AQL aims to be human-readable and therefore uses keywords from the English language. Another design goal of AQL was client independency, meaning that the language and syntax are the same for all clients, no matter what programming language the clients may use. Further design goals of AQL were the support of complex query patterns and the different data models ArangoDB offers.

In its purpose, AQL is similar to the Structured Query Language (SQL). AQL supports reading and modifying collection data, but it doesn't support data-definition operations such as creating and dropping databases, collections and indexes. It is a pure data manipulation language (DML), not a data definition language (DDL) or a data control language (DCL).

The syntax of AQL queries is different to SQL, even if some keywords overlap. Nevertheless, AQL should be easy to understand for anyone with an SQL background.

For some example queries, please refer to the chapters Data Queries, Usual query patterns and Tutorial.