Prev Next

API / GraphQL Interview Questions

What are resolvers in GraphQL?

In GraphQL, each schema field corresponds to a function known as the resolver. The resolver returns the value for a given field in an operation. Resolvers provide instructions on how to compute or retrieve data from the server or other sources. They are a crucial part of implementing GraphQL servers because they translate the fields in the schema to the real data sources—which might be databases, REST APIs, or other services.

More Related questions...

Show more question and Answers...


Comments & Discussions