Complete the code to define a GraphQL query that fetches a user's name.
query { user(id: "1") { [1] } }The name field is requested to get the user's name in the query.
Complete the code to request only the needed fields in a GraphQL query.
query { product(id: "5") { id [1] } }GraphQL lets you request only the fields you need, like price here.
Fix the error in the GraphQL query to fetch a user's email.
query { user(id: "2") { [1] } }The correct field name to get the user's email is email.
Fill both blanks to complete a GraphQL mutation that updates a user's name.
mutation { updateUser(id: "3", input: { name: [1] }) { [2] } }The mutation sets the user's name to "Alice" and requests the updated name field in the response.
Fill all three blanks to complete a GraphQL query fetching a post's title and author's name.
query { post(id: [1]) { [2] author { [3] } } }The query fetches the post with id "10", requests its title, and the name of the author.
