cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Aggregate with GroupBy SDN

Is there anyway with which we can fetch the aggregates(like count) grouped by some property of the node without writing custom-query in the code using SDN/OGM.

Any help is appreciated. Thanks in advance.

1 REPLY 1

Hi, since Cypher does not have any groupBy capability we do not offer anything out-of-the-box for grouping entities. The only, common way to achieve this is adding a count(<groupProperty>) to a custom query and parsing the result by yourself.
The data in the same "row" should get mapped by OGM in some form of collection if OGM knows about the domain classes you want to get.