Skip to content

Commit

Permalink
Merge pull request #618 from codyleyhan/cl/method
Browse files Browse the repository at this point in the history
Adds way to determine if a resolver is a function call or value
  • Loading branch information
vektah authored Mar 13, 2019
2 parents f52726d + af6dc16 commit 2b270e4
Show file tree
Hide file tree
Showing 13 changed files with 2,117 additions and 1,578 deletions.
1 change: 1 addition & 0 deletions codegen/field.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
Object: {{$object.Name|quote}},
Field: field,
Args: nil,
IsMethod: {{or $field.IsMethod $field.IsResolver}},
}
ctx = graphql.WithResolverContext(ctx, rctx)
{{- if $field.Args }}
Expand Down
Loading

0 comments on commit 2b270e4

Please sign in to comment.