Skip to content

Instantly share code, notes, and snippets.

@lu911
Created December 9, 2016 07:31
Show Gist options
  • Save lu911/082546cb27dbe277093029bf64b26669 to your computer and use it in GitHub Desktop.
Save lu911/082546cb27dbe277093029bf64b26669 to your computer and use it in GitHub Desktop.
Update Mutation
fragment userAllFields on User {
id
name
age
gender
}
mutation {
updateUser(userData: {id: 1, name: "test2"}) {
ok
user {
...userAllFields
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment