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" : u.id, "name" : u.name }                  /* return a projection */



Output









Comments are closed.