Created
March 1, 2019 10:53
-
-
Save martijnvdbrug/f0d65566bf8f9e0fc4554265a53456a1 to your computer and use it in GitHub Desktop.
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 Tesla { | |
id: ID! | |
model: String | |
edition: String | |
kwh: Int | |
range: Int | |
wheels: Wheel | |
} | |
type Wheel { | |
id: ID! | |
name: String | |
inch: Int | |
model: Tesla | |
} | |
type Query { | |
# Get a Tesla based on given model | |
Tesla: Tesla | |
} | |
type Mutation { | |
# Change wheels of given Tesla | |
pimpMyWheels(teslaId: ID!, wheelId: ID!): Tesla | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment