Complete the code to define a simple GraphQL query to fetch user names.
query { users { [1] } }The name field fetches user names in GraphQL queries.
Complete the code to fetch a user's posts with their titles.
query { user(id: "1") { posts { [1] } } }The title field fetches the post titles in GraphQL.
Fix the error in the GraphQL mutation to create a new user with a name.
mutation { createUser(input: { [1]: "Alice" }) { id name } }The input field should be name to match the schema for creating a user.
Fill both blanks to query users with their names and posts' titles.
query { users { [1] posts { [2] } } }The first blank should be name to get user names, and the second blank title to get post titles.
Fill all three blanks to write a mutation that updates a post's title and content by id.
mutation { updatePost(id: "[1]", input: { [2]: "New Title", [3]: "Updated content" }) { id title content } }The post id is 1, and the input fields to update are title and content.
