Skip to content

Instantly share code, notes, and snippets.

@maniish-jaiin
Created May 10, 2020 16:57
Show Gist options
  • Save maniish-jaiin/3100bd5dc54c2004c0032bfae9ba2914 to your computer and use it in GitHub Desktop.
Save maniish-jaiin/3100bd5dc54c2004c0032bfae9ba2914 to your computer and use it in GitHub Desktop.
type Query{
hello: String
getCar(input: String) : Car!
}
type Mutation{
createCar(input: CarInput): Car
}
type Car {
name: String
price: Int
engineType: String
}
input CarInput{
name: String!
price: Int!
engineType: String!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment