Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.