i am quite new to dgraph and graphql and trying to define some first queries on my schema.
now i’d like to count edges with a particular predicate but they are nested. could someone give me a hint how to do that?
here some details :
person → owns → animal.
animal → carriesHorns → boolean.
now i like to count:
how many animals do people own (on average) where the animal carriesHorns is true?