Created
April 18, 2020 03:49
-
-
Save vladbatushkov/0be00057b8ea6699cb4cc2608f5b2ad1 to your computer and use it in GitHub Desktop.
GraphQL Airport Type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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