Skip to content

Instantly share code, notes, and snippets.

@sfrechette
Last active October 8, 2016 04:42
Show Gist options
  • Save sfrechette/dd6f585c123f17136717 to your computer and use it in GitHub Desktop.
Save sfrechette/dd6f585c123f17136717 to your computer and use it in GitHub Desktop.
Sample Meetup Cypher (demo)
// Model - Meetup
create (n1:Member {id:1, name: 'Daniel'})
create (n2:Member {id:2, name: 'Stephane'})
create (n3:Member {id:3, name: 'John'})
create (n4:Member {id:4, name: 'Randy'})
create (n5:Meetup {id:5, name: 'Ottawa SQL Server User Group'})
create (n6:Meetup {id:6, name: 'Ottawa JavaScript'})
create (n7:Meetup {id:7, name: 'Ottawa Visio User Group'})
create (n8:Meetup {id:8, name: 'Ottawa Tableau User Group'})
create (n9:Meetup {id:9, name: 'Dirty Dancing Ottawa'})
create n1-[:IS_ORGANIZER]->n6
create n2-[:IS_ORGANIZER]->n5
create n2-[:IS_ORGANIZER]->n8
create n3-[:IS_ORGANIZER]->n7
create n3-[:IS_ORGANIZER]->n9
create n1-[:IS_MEMBER]->n9
create n3-[:IS_MEMBER]->n6
create n3-[:IS_MEMBER]->n5
create n4-[:IS_MEMBER]->n6
create n4-[:IS_MEMBER]->n8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment