diff --git a/go.mod b/go.mod index eebd9a8..a4f2658 100644 --- a/go.mod +++ b/go.mod @@ -5,9 +5,9 @@ go 1.22.5 toolchain go1.23.1 require ( - github.com/99designs/gqlgen v0.17.54 + github.com/99designs/gqlgen v0.17.55 github.com/stretchr/testify v1.9.0 - github.com/vektah/gqlparser/v2 v2.5.16 + github.com/vektah/gqlparser/v2 v2.5.17 go.opentelemetry.io/otel v1.31.0 go.opentelemetry.io/otel/sdk v1.31.0 go.opentelemetry.io/otel/trace v1.31.0 diff --git a/go.sum b/go.sum index a78fffd..e640cca 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/99designs/gqlgen v0.17.54 h1:AsF49k/7RJlwA00RQYsYN0T8cQuaosnV/7G1dHC3Uh8= -github.com/99designs/gqlgen v0.17.54/go.mod h1:77/+pVe6zlTsz++oUg2m8VLgzdUPHxjoAG3BxI5y8Rc= +github.com/99designs/gqlgen v0.17.55 h1:3vzrNWYyzSZjGDFo68e5j9sSauLxfKvLp+6ioRokVtM= +github.com/99designs/gqlgen v0.17.55/go.mod h1:3Bq768f8hgVPGZxL8aY9MaYmbxa6llPM/qu1IGH1EJo= github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= @@ -33,8 +33,8 @@ github.com/sosodev/duration v1.3.1 h1:qtHBDMQ6lvMQsL15g4aopM4HEfOaYuhWBw3NPTtlqq github.com/sosodev/duration v1.3.1/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/vektah/gqlparser/v2 v2.5.16 h1:1gcmLTvs3JLKXckwCwlUagVn/IlV2bwqle0vJ0vy5p8= -github.com/vektah/gqlparser/v2 v2.5.16/go.mod h1:1lz1OeCqgQbQepsGxPVywrjdBHW2T08PUS3pJqepRww= +github.com/vektah/gqlparser/v2 v2.5.17 h1:9At7WblLV7/36nulgekUgIaqHZWn5hxqluxrxGUhOmI= +github.com/vektah/gqlparser/v2 v2.5.17/go.mod h1:1lz1OeCqgQbQepsGxPVywrjdBHW2T08PUS3pJqepRww= go.opentelemetry.io/otel v1.31.0 h1:NsJcKPIW0D0H3NgzPDHmo0WW6SptzPdqg/L1zsIm2hY= go.opentelemetry.io/otel v1.31.0/go.mod h1:O0C14Yl9FgkjqcCZAsE053C13OaddMYr/hz6clDkEJE= go.opentelemetry.io/otel/metric v1.31.0 h1:FSErL0ATQAmYHUIzSezZibnyVlft1ybhy4ozRPcF2fE= diff --git a/testserver/generated/root_.generated.go b/testserver/generated/root_.generated.go index 991b638..7ba3ca5 100644 --- a/testserver/generated/root_.generated.go +++ b/testserver/generated/root_.generated.go @@ -40,13 +40,6 @@ type DirectiveRoot struct { } type ComplexityRoot struct { - Mutation struct { - Greet func(childComplexity int, name string) int - } - - Query struct { - Greeting func(childComplexity int) int - } } type executableSchema struct { @@ -66,28 +59,6 @@ func (e *executableSchema) Schema() *ast.Schema { func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec - switch typeName + "." + field { - - case "Mutation.greet": - if e.complexity.Mutation.Greet == nil { - break - } - - args, err := ec.field_Mutation_greet_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.Greet(childComplexity, args["name"].(string)), true - - case "Query.greeting": - if e.complexity.Query.Greeting == nil { - break - } - - return e.complexity.Query.Greeting(childComplexity), true - - } return 0, false } diff --git a/testserver/gqlgen.yml b/testserver/gqlgen.yml index 3b9736e..6022032 100644 --- a/testserver/gqlgen.yml +++ b/testserver/gqlgen.yml @@ -6,3 +6,5 @@ exec: package: generated resolver: filename: resolvers.go +omit_complexity: true +omit_gqlgen_version_in_file_notice: true