Which of the following is TRUE about default resolvers in GraphQL?
easy📝 Conceptual Q2 of 15
GraphQL - Resolvers
Which of the following is TRUE about default resolvers in GraphQL?
AThey automatically resolve scalar fields from parent data
BThey require explicit code for every field
CThey only work with list types
DThey cache results for faster queries
Step-by-Step Solution
Solution:
Step 1: Recall default resolver capabilities
Default resolvers automatically resolve scalar fields by looking up the parent object.
Step 2: Evaluate each option
They automatically resolve scalar fields from parent data correctly states this. Options B, C, and D are incorrect as default resolvers do not require explicit code for every field, are not limited to lists, and do not cache results.
Final Answer:
They automatically resolve scalar fields from parent data -> Option A