GraphQL - Resolvers
You want your resolver to return only the fields requested by the client to save resources. Which approach using the
info argument is best?info argument is best?info to get requested fieldsinfo.fieldNodes provides the exact fields the client asked for, so you can fetch only those.info.fieldNodes to find requested fields and fetch only those from the database. uses info correctly. Options B, C, and D either waste resources or guess incorrectly.info.fieldNodes to find requested fields and fetch only those from the database. -> Option D15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions