Skip to content

Instantly share code, notes, and snippets.

@martijnvdbrug
Created March 1, 2019 10:53
Show Gist options
  • Save martijnvdbrug/f0d65566bf8f9e0fc4554265a53456a1 to your computer and use it in GitHub Desktop.
Save martijnvdbrug/f0d65566bf8f9e0fc4554265a53456a1 to your computer and use it in GitHub Desktop.
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