Files
apollo/docs/source/tutorial/resolvers.md
unicodeveloper 2639c5b6bf Add notes
2018-11-07 09:26:27 -08:00

799 B

title, description
title description
3. Write your graph's resolvers Start here for the Apollo fullstack tutorial

It's time to finally leverage all the data sources logic in our graph's resolvers. Resolvers provide the instructions for turning a GraphQL operation into data. They are functions that fetch or modify data from underlying data sources for fields in a schema type.

Call your data sources in resolvers

In the previous section of this tutorial, two data source classes were created. We'll be able to access those data sources in our resolvers, however, we need

Create a resolvers.js file within the src directory.

Write a query in the playground

Authenticate users

Test your graph