Complete the code to select the user's name in a GraphQL query.
query { user { [1] } }The field name is used to fetch the user's name in the query.
Complete the code to fetch the list of posts with their titles.
query { posts { [1] } }content instead of title when only titles are needed.The title field fetches the title of each post.
Fix the error in the query to fetch user email correctly.
query { user { [1] } }emails or userEmail.The correct field to fetch the user's email is email.
Fill both blanks to optimize the query by selecting only needed fields.
query { user { [1] [2] } }posts which can slow down the query.email when needed.Selecting only name and email fetches just the needed user info, optimizing the query.
Fill all three blanks to write a query that fetches post title, author name, and date.
query { posts { [1] author { [2] } [3] } }content instead of date which can be large.This query fetches the title of posts, the name of the author, and the date of the post, which are common useful fields.
