dgraphql
dgraphql copied to clipboard
Facets and Aggregation, and @count Option? How to.
https://tour.dgraph.io/intro/3/ Facets and Aggregation https://docs.dgraph.io/query-language/#facets-and-aggregation mutation {
schema {
name: string @index(exact, term) .
age: int @index(int) .
friend: uid @count .
Reputation: int @index(int)
}
If I need to count how many partners, children, parents or friends How to proceed? Using the Dgraph feature of counting. Cheers
I noticed that DgraphQL does automatic indexing. And I figured out how to make friends. But the counting feature would be great.
friend: [Person] @reverse(name: "Person")