Skip to content

Commit

Permalink
mention contexts on model methods in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gracenoah committed Nov 13, 2018
1 parent 602a83d commit 9862c30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/content/reference/resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ models:
```

Here, we see that there is a method on car with the name ```Owner```, thus the ```Owner``` function will be called if
a graphQL request includes that field to be resolved
a graphQL request includes that field to be resolved.

Model methods can optionally take a context as their first argument. If a
context is required, the model method will also be run in parallel.

## Bind when the field names do not match

Expand Down

0 comments on commit 9862c30

Please sign in to comment.