Skip to content

Instantly share code, notes, and snippets.

@LawJolla
Last active March 1, 2018 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LawJolla/1bb6feca034b51859076b39682a09b17 to your computer and use it in GitHub Desktop.
Save LawJolla/1bb6feca034b51859076b39682a09b17 to your computer and use it in GitHub Desktop.
Directive Permission Schema
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