Last active
March 1, 2018 14:49
-
-
Save LawJolla/1bb6feca034b51859076b39682a09b17 to your computer and use it in GitHub Desktop.
Directive Permission 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 { | |
vehicles(dealership: ID!): [Vehicle!]! | |
} | |
type Mutation { | |
updateVehicleAskingPrice(id: ID!, askingPrice: Int!): Vehicle | |
} | |
type Vehicle { | |
id: ID! | |
year: Int! | |
make: String! | |
model: Int! | |
askingPrice: Float | |
costBasis: Float | |
numberOfOffers: Int | |
} | |
type User { | |
id: ID! | |
name: String! | |
role: String! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment