Skip to content

Instantly share code, notes, and snippets.

@freethejazz
Forked from jexp/graph_gist_template.adoc
Last active February 16, 2017 02:06
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 freethejazz/e38512e87489561290cb12c6b206cc2f to your computer and use it in GitHub Desktop.
Save freethejazz/e38512e87489561290cb12c6b206cc2f to your computer and use it in GitHub Desktop.
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments

Coal Tar Soap, the next generation of mixology

Introduction

Drinks and soap

Setup

CREATE
  (a:Person:Bartender {name: 'Alice'}),
  (ala:State {name: 'Alabama'}),
  (whiskey:Alcohol {name: 'whiskey'}),
  (bitter:Alcohol {name: 'bitters'}),
  (bourbon:Alcohol {name: 'bourbon'}),
  (rusty:Cocktail {name: 'Rusty Nail'}),
  (a)-[:LIVES_IN]->(ala),
  (bourbon)-[:IS_TYPE]->(whiskey),
  (rusty)-[:MADE_WITH]->(whiskey),
  (rusty)-[:MADE_WITH]->(bitter)

REPLACEME: FIRST USECASE TITLE

MATCH (cocktail:Cocktail {name: 'Rusty Nail'})-[:MADE_WITH]->(ingredient)
RETURN cocktail, ingredient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment