aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/99designs/gqlgen/codegen/args.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-07-09 08:47:46 +0200
committerGitHub <noreply@github.com>2019-07-09 08:47:46 +0200
commita5c42b7c11fc082d47027ba5e0dbdeddcc14e62e (patch)
treea279d04878f3f1b1e28089779d011c0cb4b7545d /vendor/github.com/99designs/gqlgen/codegen/args.go
parenteef7333243252ae81cd43921beb8e0749a170585 (diff)
parentfb50d470483b91d98e27ca6f9f605f0c51af6a71 (diff)
downloadgit-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.go16
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
}