Skip to content

Instantly share code, notes, and snippets.

@gigenthomas
Created July 11, 2018 03:16
Show Gist options
  • Save gigenthomas/4f88dbeafe8ddf5afdf4f515b6346b87 to your computer and use it in GitHub Desktop.
Save gigenthomas/4f88dbeafe8ddf5afdf4f515b6346b87 to your computer and use it in GitHub Desktop.
EXTRACT - returns a list containing the values resulting from an expression which has been applied to each element in a list
==================================================================================================================
MATCH p =(a)-->(b)-->(c)
WHERE a.name = 'Alice' AND b.name = 'Bob' AND c.name = 'Daniel'
RETURN extract(n IN nodes(p)| n.age) AS extracted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment