Skip to content

Instantly share code, notes, and snippets.

@philipjfulcher
Created January 24, 2020 18:47
Show Gist options
  • Save philipjfulcher/195d672390d0e0e04756e6ce6490af56 to your computer and use it in GitHub Desktop.
Save philipjfulcher/195d672390d0e0e04756e6ce6490af56 to your computer and use it in GitHub Desktop.
# libs/data-access/src/lib/graphql/operations.graphql
query setList {
allSets{
id
name
numParts
year
}
}
mutation addSet($name: String!, $year: String!, $numParts: Int!) {
addSet(name: $name, year: $year, numParts: $numParts) {
id
name
numParts
year
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment