mirror of
https://github.com/zhigang1992/apollo.git
synced 2026-05-13 09:26:34 +08:00
799 B
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.