Created
February 8, 2017 19:43
-
-
Save donedgardo/f055952472ca9ec79ff4eb58005fc94d to your computer and use it in GitHub Desktop.
ES 6 article
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
`# 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