Created
December 9, 2016 07:31
-
-
Save lu911/082546cb27dbe277093029bf64b26669 to your computer and use it in GitHub Desktop.
Update Mutation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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