diff options
author | Amine <hilalyamine@gmail.com> | 2019-08-17 01:30:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-17 01:30:57 +0200 |
commit | 6428352bd14828f670206b60862de7f71c52d235 (patch) | |
tree | ac117a0360bcf03a948b373e2dfd34c61e932226 /vendor/github.com/99designs/gqlgen/codegen/args.gotpl | |
parent | a3815d2ebb7d4a12d7b0db434b0b244e03e5e98a (diff) | |
parent | d571deef57b682f92e71f9374c2c59893db811af (diff) | |
download | git-bug-6428352bd14828f670206b60862de7f71c52d235.tar.gz |
Merge pull request #194 from MichaelMure/dependabot/dep/github.com/99designs/gqlgen-0.9.2
build(deps): bump github.com/99designs/gqlgen from 0.9.1 to 0.9.2
Diffstat (limited to 'vendor/github.com/99designs/gqlgen/codegen/args.gotpl')
-rw-r--r-- | vendor/github.com/99designs/gqlgen/codegen/args.gotpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/99designs/gqlgen/codegen/args.gotpl b/vendor/github.com/99designs/gqlgen/codegen/args.gotpl index c76bf0f7..318f1ff4 100644 --- a/vendor/github.com/99designs/gqlgen/codegen/args.gotpl +++ b/vendor/github.com/99designs/gqlgen/codegen/args.gotpl @@ -14,6 +14,10 @@ func (ec *executionContext) {{ $name }}(ctx context.Context, rawArgs map[string] } if data, ok := tmp.({{ $arg.TypeReference.GO | ref }}) ; ok { arg{{$i}} = data + {{- if $arg.TypeReference.IsNilable }} + } else if tmp == nil { + arg{{$i}} = nil + {{- end }} } else { return nil, fmt.Errorf(`unexpected type %T from directive, should be {{ $arg.TypeReference.GO }}`, tmp) } |