Skip to content

Commit

Permalink
Merge pull request #321 from chrisbolin/patch-1
Browse files Browse the repository at this point in the history
Reference promises for resolve func
  • Loading branch information
leebyron committed Mar 22, 2016
2 parents 3278e86 + a747503 commit bf763b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ var schema = new GraphQLSchema({
```

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

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

Expand Down

0 comments on commit bf763b6

Please sign in to comment.