Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to request the user's name in a GraphQL query.
GraphQL
query { user { [1] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a field that does not exist or is unrelated to the user's name.
✗ Incorrect
The field name is requested to get the user's name specifically.
2fill in blank
mediumComplete the code to request the user's email in a GraphQL query.
GraphQL
query { user { [1] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Requesting unrelated fields like phone or location instead of email.
✗ Incorrect
The field email is requested to get the user's email address.
3fill in blank
hardFix the error in the query to request the user's age correctly.
GraphQL
query { user { [1] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using plural or incorrect field names like
ages or userAge.✗ Incorrect
The correct field to request the user's age is age. Other options are incorrect or do not exist.
4fill in blank
hardFill both blanks to request the user's name and email in the query.
GraphQL
query { user { [1] [2] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing unrelated fields like age or location.
✗ Incorrect
Requesting name and email fields returns the user's name and email.
5fill in blank
hardFill all three blanks to request the user's name, email, and age in the query.
GraphQL
query { user { [1] [2] [3] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Including unrelated fields like address.
✗ Incorrect
Requesting name, email, and age fields returns those specific user details.