As a user, I would like to group by "value" instead of just edges

Moved from GitHub dgraph/5412

Posted by MichelDiz:

Experience Report

This issue can be solved by #5335 if we don’t wanna do any specific approach for it some how.

We wanna see if this topic is popular or not. Please, share your use cases and “vote” this.

What you wanted to do

Run the groupby func in value edges.

https://dgraph.io/docs/query-language/#groupby

What you actually did

See Suggestions to Improve GroupBy

Why that wasn’t great, with examples

See Suggestions to Improve GroupBy

Any external references to support your case

This issue is similar but it is related to LIST TYPE Groupby does not support predicate of list type · Issue #4170 · dgraph-io/dgraph · GitHub
See this questions How to groupby date
There are other questions which I don’t remember the link, but are several.

1 Like