cj2001 / neo4j-gds-book

0 stars 0 forks source link

Cypher implicit group by aggregations #6

Open tomasonjo opened 3 years ago

tomasonjo commented 3 years ago

This could be a blog post, but I'll also introduce it in my book. I've seen a lot of people having problems with aggregating data as the GROUP BY clause is missing. An example would be

MATCH (p:Person)
RETURN p, count(p)

The count will always be 1 as you are grouping by the person...

cj2001 commented 3 years ago

Do you have a feel for how much time you want to spend discussing basic Cypher, or do you think the target audience already has that background.

That being said, it would be helpful for me to know both who the target audience is as well as to see the outline. I might make a series of labels for the issues + PRs based on chapter or something.

tomasonjo commented 3 years ago

The assumption is that a user has no previous knowledge of graphs or Cypher. I think there will be 2 chapters focused solely on Cypher...