Limit limits the query result to
Offset sets the first node to return from the query.
Order returns the entities sorted by the values of one or more fields. Note that, an error is returned if the given fields are not valid columns or foreign-keys.
In order to sort by fields of an edge (relation), start the traversal from the edge (you want to order by), apply the ordering, and then jump to the neighbours (target type).
The following shows how to order the users by the
"name" of their
"pets" in ascending order.
Custom ordering functions can be useful if you want to write your own storage-specific logic.
The following shows how to order pets by their name, and their owners' name in ascending order.