Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Understanding GraphQL for Beginners–Part Three
mutation {
nutritionUpdate(input: {
id: 4,
sugars: "30 g"
}) {
id
sugars
}
}
{
"data": {
"nutritionUpdate": {
"id": "4",
"sugars": "30 g"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment