Skip to content

Commit bf763b6

Browse files
committed
Merge pull request #321 from chrisbolin/patch-1
Reference promises for resolve func
2 parents 3278e86 + a747503 commit bf763b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ var schema = new GraphQLSchema({
8989
```
9090

9191
This defines a simple schema with one type and one field, that resolves
92-
to a fixed value. A more complex example is included in the top level
93-
[tests](src/__tests__) directory.
92+
to a fixed value. The `resolve` function can return a value, a promise,
93+
or an array of promises. A more complex example is included in the top
94+
level [tests](src/__tests__) directory.
9495

9596
Then, serve the result of a query against that type schema.
9697

0 commit comments

Comments
 (0)