diff options
author | Michael Muré <batolettre@gmail.com> | 2019-07-09 08:47:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-09 08:47:46 +0200 |
commit | a5c42b7c11fc082d47027ba5e0dbdeddcc14e62e (patch) | |
tree | a279d04878f3f1b1e28089779d011c0cb4b7545d /vendor/github.com/99designs/gqlgen/codegen/args.go | |
parent | eef7333243252ae81cd43921beb8e0749a170585 (diff) | |
parent | fb50d470483b91d98e27ca6f9f605f0c51af6a71 (diff) | |
download | git-bug-a5c42b7c11fc082d47027ba5e0dbdeddcc14e62e.tar.gz |
Merge pull request #177 from A-Hilaly/git-version
Check git version in repo RmConfigs
Diffstat (limited to 'vendor/github.com/99designs/gqlgen/codegen/args.go')
-rw-r--r-- | vendor/github.com/99designs/gqlgen/codegen/args.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/99designs/gqlgen/codegen/args.go b/vendor/github.com/99designs/gqlgen/codegen/args.go index d1498bdd..1d3e51aa 100644 --- a/vendor/github.com/99designs/gqlgen/codegen/args.go +++ b/vendor/github.com/99designs/gqlgen/codegen/args.go @@ -26,6 +26,22 @@ type FieldArgument struct { Value interface{} // value set in Data } +//ImplDirectives get not Builtin and location ARGUMENT_DEFINITION directive +func (f *FieldArgument) ImplDirectives() []*Directive { + d := make([]*Directive, 0) + for i := range f.Directives { + if !f.Directives[i].Builtin && f.Directives[i].IsLocation(ast.LocationArgumentDefinition) { + d = append(d, f.Directives[i]) + } + } + + return d +} + +func (f *FieldArgument) DirectiveObjName() string { + return "rawArgs" +} + func (f *FieldArgument) Stream() bool { return f.Object != nil && f.Object.Stream } |