dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

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

Open MichelDiz opened this issue 4 years ago • 2 comments

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.

MichelDiz avatar May 10 '20 18:05 MichelDiz

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.

drawing

minhaj-shakeel avatar Jul 16 '20 14:07 minhaj-shakeel

This was partially fixed by https://github.com/dgraph-io/dgraph/pull/7746 But needs improvement

MichelDiz avatar Aug 24 '22 00:08 MichelDiz

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.

MichelDiz avatar Dec 21 '22 00:12 MichelDiz