Last active
November 1, 2019 13:42
-
-
Save birk-astrup/b6192103f3319c34e6da54031db9834f to your computer and use it in GitHub Desktop.
Example graphql schema
This file contains 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 Query { | |
building_with_id(_id: ID!): Building | |
resident_with_id(_id: ID!): Resident | |
} | |
type Building { | |
id: ID! | |
buildYear: String! | |
residents: [Resident] | |
} | |
type Resident { | |
id: ID! | |
name: String! | |
age: Int! | |
family: [Resident] | |
building: Building | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment