AQL Tutorial

ArangoDB comes with various options for querying data. Among others it implements the “ArangoDB Query Language” (AQL). We have set up some data for you to learn using AQL. Available collections are: “users”, “airports”, “friendships”.

To grep one dataset of a collection, type: “FOR u IN your_collection LIMIT 1 RETURN u”

Grep 5 users and return their names and ids:
FOR u IN users                                               /* iterate over all documents in collection 'users' */
    LIMIT 5                                                  /* get top 5 */
    RETURN { "id" :, "name" : }                  /* return a projection */


Comments are closed.