Count
In this section we'll learn how to count results
By definition:#
- The form
count(predicate)counts how many predicate edges lead out of a node. - The form
count(uid)counts the number of UIDs matched in the enclosing block.
Counting with dqlx#
To count predicates we use the Count function within the Select statement.
We then pass as the argument the predicate we want to count
- dqlx
- dql
Alias#
Use the Alias function to alias the count attribute
- dqlx
- dql