How GraphQL Resolvers Work?
Learn how GraphQL resolvers work and how Apollo Server uses them.
We'll cover the following
How are resolvers used?
To see how Apollo Server uses our resolvers, let’s add log statements to the Query.allProducts
and Product.author
resolvers and run a GraphQL query. Then we’ll see how and when Apollo Server uses them.
To do this, we’ll add console.log
statements in both of our resolvers.
Get hands-on with 1200+ tech skills courses.