Executing Multiple Mutations
This section will explain how to create multiple mutations.
Overview
How does it work?
Examples
Update the user program and profile restrictions
mutation {
updateUserProgram(
programId: "UHJvZ3JhbTo2NDI1YTEwNS02MDQ4LTQ2OTktOWY1Yy02MzA3ZjZiM2RiYzk="
) {
success
message
}
profileRestrictionsUpdate(
restrictions: [
"UmVzdHJpY3Rpb246M2ZmZDQ1OGUtMjczZi00MTZmLWE5NjYtNmFkYzliYjQ3OWE1"
]
) {
success
message
}
}
{
"data": {
"updateUserProgram": {
"success": true,
"message": "User's program was successfully updated"
},
"profileRestrictionsUpdate": {
"success": true,
"message": "Profile updated"
}
}
}Update the meal plan settings and generate the meal plan
Last updated
Was this helpful?