Group by should allow filters

Moved from GitHub dgraph/1747

Posted by 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) {

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.

manishrjain commented :

If many users are looking for this feature, we could add it.

mehdiym commented :

I have the same request in order to remove duplicate nodes in my database.