In a GraphQL schema, what does the “!” symbol represent?

In a GraphQL schema, what does the “!” symbol represent?

a) The field is required
b) The field is an array
c) The field has a default value
d) The field is deprecated

Answer:

a) The field is required

Explanation:

The “!” symbol in a GraphQL schema indicates that the field is non-nullable, meaning the client must receive a value for that field.

Reference:

GraphQL Quiz – MCQ – Multiple Choice Questions

Scroll to Top