Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to query the name of a user.
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 not requested.
Forgetting to specify the field inside the user object.
✗ Incorrect
The name field is requested to get the user's name.
2fill in blank
mediumComplete the code to query the email of a user.
GraphQL
query { user { [1] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a field like
name instead of email.Leaving the field blank.
✗ Incorrect
The email field is requested to get the user's email address.
3fill in blank
hardFix the error in the query to get the user's id.
GraphQL
query { user { [1] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong field like
name or email.Not specifying any field.
✗ Incorrect
The id field is used to get the user's unique identifier.
4fill in blank
hardFill both blanks to query the user's name and email.
GraphQL
query { user { [1] [2] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using fields that are not requested like
age or id.Only filling one blank.
✗ Incorrect
To get both the user's name and email, include both fields inside the user object.
5fill in blank
hardFill all three blanks to query the user's id, name, and email.
GraphQL
query { user { [1] [2] [3] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Including fields like
age which are not requested.Missing one or more blanks.
✗ Incorrect
To get the user's id, name, and email, include all three fields inside the user object.