Skip to content

Instantly share code, notes, and snippets.

@donedgardo
Created February 8, 2017 19:43
Show Gist options
  • Save donedgardo/f055952472ca9ec79ff4eb58005fc94d to your computer and use it in GitHub Desktop.
Save donedgardo/f055952472ca9ec79ff4eb58005fc94d to your computer and use it in GitHub Desktop.
ES 6 article
`# Our Schema allows these mutations
type Mutation {
# Update Food Truck (omg only in one mutation?!) :p
updateFoodTruck(input: FoodTruckUpdateInput!): FoodTruck
}
# Defines the type of the input
input FoodTruckUpdateInput {
# Id of foodtruck to update
foodTruckId: ID!
# Photo of FoodTruck
image: String
# Image of logo
logo: String
# Name of FoodTruck
name: String
# If the Truck is taking orders
takingOrders: Boolean
# If the Truck is available
available: Boolean
# Location of FoodTruck [latitude, longitude]
location: [Float]
}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment