Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to select the user's name field.
GraphQL
{ user { [1] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting a field that does not exist like 'username'.
Using a field unrelated to the user's name.
✗ Incorrect
The name field is selected to get the user's name.
2fill in blank
mediumComplete the code to select the user's email field.
GraphQL
{ user { [1] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting 'phone' instead of 'email'.
Using 'username' which is not defined.
✗ Incorrect
The email field is selected to get the user's email address.
3fill in blank
hardFix the error in the query to select the user's id field.
GraphQL
{ user { [1] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ID' with uppercase letters which is case sensitive.
Selecting 'age' instead of 'id'.
✗ Incorrect
The id field uniquely identifies the user and must be selected correctly.
4fill in blank
hardFill both blanks to select the user's name and email fields.
GraphQL
{ user { [1] [2] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting 'id' or 'phone' instead of 'email'.
Using incorrect field names or misspellings.
✗ Incorrect
Selecting both name and email fields returns the user's name and email.
5fill in blank
hardFill all three blanks to select the user's id, name, and email fields.
GraphQL
{ user { [1] [2] [3] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Including 'age' instead of 'email'.
Misspelling any of the field names.
✗ Incorrect
Selecting id, name, and email fields returns the user's unique id, name, and email address.