Skip to content

group by should allow filters #1747

@abbas-zaidi

Description

@abbas-zaidi

RIDE is a node and DRIVER and RIDER are edges coming out of RIDE. Driver and RIDER are different nodes as well. I need to query the rides which has the same driver-rider pair.

{
   q(func:eq(name,"RIDE")) @groupby(rider,driver) {
     count(_uid_)
   }
}

I should be able to filter the query as i want to display the rides having count greater than 1. Otherwise i am getting a big list of rides and i need to write application logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/querylangIssues related to the query language specification and implementation.area/querylang/groupbyIssues related to the @groupby directive.kind/enhancementSomething could be better.priority/P2Somehow important but would not block a release.status/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions