Complete the code to start a GraphQL mutation operation.
mutation [1] { createUser(name: "Alice") { id } }
The name after mutation is the operation name. It can be any valid identifier like CreateUser.
Complete the code to specify the mutation field to update a user's email.
mutation UpdateEmail { [1](id: "123", email: "new@example.com") { id email } }The mutation field updateUserEmail is used to update the user's email.
Fix the error in the mutation by completing the missing keyword.
mutation CreateUser { createUser(name: "Bob") [1] id name }The selection set of fields must be enclosed in curly braces { } after the mutation field.
Complete the code to complete the mutation that deletes a user and returns their id and name.
mutation DeleteUser [1](id: "456") { id name }
The mutation field is deleteUser and the selection set starts with a curly brace {.
Fill both blanks to complete the mutation that creates a user and returns their id and email.
mutation {BLANK_1}} { {{BLANK_2}}(name: "Eve", email: "eve@example.com") { id email }The operation name is CreateUser, the mutation field is createUser, and the selection set starts with {.