Complete the code to define a GraphQL query that fetches a user's name.
query { user(id: "1") { [1] } }The field name is used to fetch the user's name in GraphQL queries.
Complete the code to specify the HTTP method used by REST to retrieve data.
fetch('/api/users', { method: '[1]' })
REST uses the GET method to retrieve data from the server.
Fix the error in the GraphQL query to fetch a user's email.
query { user(id: "1") { [1] } }The correct field to fetch a user's email in GraphQL is email.
Fill both blanks to complete the REST API call that updates a user's name.
fetch('/api/users/1', { method: '[1]', body: JSON.stringify({ name: '[2]' }) })
REST uses PUT to update data, and the new name is John.
Fill all three blanks to complete a GraphQL mutation that updates a user's email.
mutation { updateUser(id: "1", input: { [1]: "[2]" }) { [3] } }The mutation updates the email field with the new email and returns the updated email.
