Skip to content

Instantly share code, notes, and snippets.

@Pajn
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pajn/400867d3d6373ed975f2 to your computer and use it in GitHub Desktop.
Save Pajn/400867d3d6373ed975f2 to your computer and use it in GitHub Desktop.
Cypher in Dart?
Match (Movie, {'name': 'Avatar'}) -[#r]>> n(#actor, Actor).
Where ([#r, {'role': Do.exist}]).
Optional (Match (#actor) -['actedIn']- n(#movie, Movie)).
Return ([#actor, #movie]);
Match (Movie, {'name': 'Avatar'}) <<_([#r, 'rated'])- n(User).
Where ([#r, {'rating': Is.greaterThan(4.5)}]).
Return ([#r]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment