Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Created August 18, 2019 12:36
Show Gist options
  • Save vladbatushkov/6fdbf9d3b465cfa72010a87dad073219 to your computer and use it in GitHub Desktop.
Save vladbatushkov/6fdbf9d3b465cfa72010a87dad073219 to your computer and use it in GitHub Desktop.
Set city population
MATCH (c:City)<-[:FROM]-(p:Person)
WITH c, count(p) as pop
SET c.population = pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment