Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Created May 10, 2019 15:35
Show Gist options
  • Save vladbatushkov/0fb07ab06c892367bcfda74f5d2aad5b to your computer and use it in GitHub Desktop.
Save vladbatushkov/0fb07ab06c892367bcfda74f5d2aad5b to your computer and use it in GitHub Desktop.
Find path from BKK to Cayman Islands.
MATCH path = (:Airport { IATA: "BKK" })-[:TO*1..3]->(to)
WHERE to.IATA = "CYB" OR to.IATA = "LYB" OR to.IATA = "GMC"
RETURN path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment