Skip to content

Instantly share code, notes, and snippets.

@philipjfulcher
Last active January 28, 2020 17:14
Show Gist options
  • Save philipjfulcher/44a99755544838c1b25dbbf8a343b9f2 to your computer and use it in GitHub Desktop.
Save philipjfulcher/44a99755544838c1b25dbbf8a343b9f2 to your computer and use it in GitHub Desktop.
# apps/api/src/app/schema.graphql
type Set {
id: Int!
name: String
year: Int
numParts: Int
}
type Query {
allSets: [Set]
}
type Mutation {
addSet(name: String, year: String, numParts: Int): Set
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment