Skip to content

Commit a747503

Browse files
committed
Reference promises for resolve func
In response to #27 and SO questions. I don't believe there is "official" documentation (besides in issues and tests) of Promise support in the resolve function. Totally willing to be wrong :)
1 parent 57d71e1 commit a747503

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)