Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Created April 18, 2020 03:49
Show Gist options
  • Save vladbatushkov/0be00057b8ea6699cb4cc2608f5b2ad1 to your computer and use it in GitHub Desktop.
Save vladbatushkov/0be00057b8ea6699cb4cc2608f5b2ad1 to your computer and use it in GitHub Desktop.
GraphQL Airport Type
type Airport {
code: String!
name: String!
country: String!
city: String!
location: Point!
directs: [Airport] @relation(name: "FLIES_TO", direction: "OUT")
neighbors: [Airport] @cypher(statement: "MATCH (a:Airport) WHERE this.city = a.city AND this <> a RETURN a")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment