aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/99designs/gqlgen/graphql
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-08-17 00:48:08 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-08-17 00:48:08 +0200
commitd571deef57b682f92e71f9374c2c59893db811af (patch)
treeb17be26cfd358b1518010c9d7073fdbf0caa1561 /vendor/github.com/99designs/gqlgen/graphql
parenta89355e7fbcaaa5efb07d43c1f19a4be2e2c1537 (diff)
downloadgit-bug-d571deef57b682f92e71f9374c2c59893db811af.tar.gz
vendor: upgrade github.com/99designs/gqlgen to v0.9.2
Diffstat (limited to 'vendor/github.com/99designs/gqlgen/graphql')
-rw-r--r--vendor/github.com/99designs/gqlgen/graphql/introspection/schema.go18
-rw-r--r--vendor/github.com/99designs/gqlgen/graphql/version.go2
2 files changed, 10 insertions, 10 deletions
diff --git a/vendor/github.com/99designs/gqlgen/graphql/introspection/schema.go b/vendor/github.com/99designs/gqlgen/graphql/introspection/schema.go
index b5d2c482..a57272d5 100644
--- a/vendor/github.com/99designs/gqlgen/graphql/introspection/schema.go
+++ b/vendor/github.com/99designs/gqlgen/graphql/introspection/schema.go
@@ -11,7 +11,7 @@ type Schema struct {
}
func (s *Schema) Types() []Type {
- var types []Type
+ types := make([]Type, 0, len(s.schema.Types))
for _, typ := range s.schema.Types {
if strings.HasPrefix(typ.Name, "__") {
continue
@@ -34,7 +34,7 @@ func (s *Schema) SubscriptionType() *Type {
}
func (s *Schema) Directives() []Directive {
- var res []Directive
+ res := make([]Directive, 0, len(s.schema.Directives))
for _, d := range s.schema.Directives {
res = append(res, s.directiveFromDef(d))
@@ -44,19 +44,19 @@ func (s *Schema) Directives() []Directive {
}
func (s *Schema) directiveFromDef(d *ast.DirectiveDefinition) Directive {
- var locs []string
- for _, loc := range d.Locations {
- locs = append(locs, string(loc))
+ locs := make([]string, len(d.Locations))
+ for i, loc := range d.Locations {
+ locs[i] = string(loc)
}
- var args []InputValue
- for _, arg := range d.Arguments {
- args = append(args, InputValue{
+ args := make([]InputValue, len(d.Arguments))
+ for i, arg := range d.Arguments {
+ args[i] = InputValue{
Name: arg.Name,
Description: arg.Description,
DefaultValue: defaultValue(arg.DefaultValue),
Type: WrapTypeFromType(s.schema, arg.Type),
- })
+ }
}
return Directive{
diff --git a/vendor/github.com/99designs/gqlgen/graphql/version.go b/vendor/github.com/99designs/gqlgen/graphql/version.go
index 3c5e65d6..ea211574 100644
--- a/vendor/github.com/99designs/gqlgen/graphql/version.go
+++ b/vendor/github.com/99designs/gqlgen/graphql/version.go
@@ -1,3 +1,3 @@
package graphql
-const Version = "v0.9.1"
+const Version = "v0.9.2"