Skip to content

Commit

Permalink
small improvements to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance committed Nov 8, 2016
1 parent f3f24cf commit da879f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ The project is under heavy development. It is stable enough so we use it in prod

### Resolvers

A resolver must have one method for each field of the GraphQL type it resolves. The method name has to match the field's name in a non-case-sensitive way.
A resolver must have one method for each field of the GraphQL type it resolves. The method name has to be [exported](https://golang.org/ref/spec#Exported_identifiers) and match the field's name in a non-case-sensitive way.

Methods of resolvers have up to two arguments:
The method has up to two arguments:

- Optional `context.Context` argument.
- Mandatory `*struct { ... }` argument if the corresponding GraphQL field has arguments. The names of the struct fields have to be [exported](https://golang.org/ref/spec#Exported_identifiers) and have to match the names of the GraphQL arguments in a non-case-sensitive way.

Methods of resolvers have up to two results:
The method has up to two results:

- The GraphQL field's value as determined by the resolver.
- Optional `error` result.
Expand Down

0 comments on commit da879f4

Please sign in to comment.