AQL (ArangoDB Query Language)

From HandWiki

, {"a": {"A": 2}}]

    FILTER x.a.A < 2
    RETURN x.a

Example

The following is a parameterized query for finding the number of descendants of a particular node (@start) in a graph named @g with @max nodes:

FOR v IN 1 .. @max OUTBOUND @start GRAPH @g
    OPTIONS {uniqueVertices: "global", bfs: true }
COLLECT WITH COUNT INTO c
RETURN c

The uppercase words are AQL keywords. Notice how AQL is graph-aware. The OPTIONS are necessary to ensure the query can be run on a graph with cycles; "bfs" stands for breadth-first search.

References

External References