You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/tutorial/resolvers.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "3. Write your graph's resolvers"
3
3
description: Start here for the Apollo fullstack tutorial
4
4
---
5
5
6
-
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. There are a few things to note about resolver functions.
6
+
It's time to finally leverage all the data sources logic in our graph's resolvers. Resolvers provide the instructions for turning a graph operation into data. They are functions that fetch or modify data from underlying data sources for fields in a schema type. There are a few things to note about resolver functions.
7
7
8
8
1. A resolver function must bear the same name as the field it operates on.
9
9
2. A resolver function must return the type of data that was specified in the schema field.
@@ -123,6 +123,8 @@ The `trips` resolver function works like the steps outlined below:
123
123
124
124
<h2id="write-query">Write a query in the playground</h2>
0 commit comments