Skip to content

Instantly share code, notes, and snippets.

@dawidnawrot
Created October 19, 2018 11:13
Show Gist options
  • Save dawidnawrot/f612b0420d72007fa7f5841eafa0eaeb to your computer and use it in GitHub Desktop.
Save dawidnawrot/f612b0420d72007fa7f5841eafa0eaeb to your computer and use it in GitHub Desktop.
# QUERY AND MUTATION
query authors {
authors(first:5, offset:97) {
id,
firstName,
lastName
}
}
mutation createAuthor($inputPage:CreateAuthorInput!) {
createAuthor(input:$inputPage) {
author {
firstName
lastName
}
}
}
# QUERY VARIABLES
{
"inputPage": {
"author": {
"firstName": "Dawid",
"lastName": "Nawrot"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment