Skip to content

Commit

Permalink
updates on FieldResolveFn to allow return optional error - graphql-go#44
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ramon committed Nov 25, 2015
1 parent 54d79ca commit 149040d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ type ResolveParams struct {
}

// TODO: relook at FieldResolveFn params
type FieldResolveFn func(p ResolveParams) interface{}
type FieldResolveFn func(p ResolveParams) (interface{}, error)

type ResolveInfo struct {
FieldName string
Expand Down

0 comments on commit 149040d

Please sign in to comment.