Skip to content

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

@MichelDiz

Description

@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 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 #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Check if resolvedStalearea/querylang/groupbyIssues related to the @groupby directive.cherry-pickdgraphIssue or PR created by an internal Dgraph contributor.kind/enhancementSomething could be better.status/needs-attentionThis issue needs more eyes on it, more investigation might be required before accepting/rejecting itv22.0.0Issues related to v22.0.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions