dgraph
dgraph copied to clipboard
As a user, I would like to group by "value" instead of just edges.
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 https://discuss.dgraph.io/t/suggestions-to-improve-groupby/4630
Why that wasn't great, with examples
See https://discuss.dgraph.io/t/suggestions-to-improve-groupby/4630
Any external references to support your case
This issue is similar but it is related to LIST TYPE https://github.com/dgraph-io/dgraph/issues/4170 See this questions https://discuss.dgraph.io/t/how-to-groupby-date/3040 There are other questions which I don't remember the link, but are several.
Github issues have been deprecated. This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.

This was partially fixed by https://github.com/dgraph-io/dgraph/pull/7746 But needs improvement
I have added a Cherry-pick PR #8550 that would be a potential fix for this issue.
I will wait the PR be merged to test if it address this issue completely.