fix(deps): update module github.com/99designs/gqlgen to v0.17.64
This commit is contained in:
@@ -5,7 +5,7 @@ go 1.22.5
|
|||||||
toolchain go1.23.5
|
toolchain go1.23.5
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/99designs/gqlgen v0.17.63
|
github.com/99designs/gqlgen v0.17.64
|
||||||
github.com/Khan/genqlient v0.7.0
|
github.com/Khan/genqlient v0.7.0
|
||||||
github.com/alecthomas/kong v1.6.1
|
github.com/alecthomas/kong v1.6.1
|
||||||
github.com/apex/log v1.9.0
|
github.com/apex/log v1.9.0
|
||||||
@@ -18,7 +18,7 @@ require (
|
|||||||
github.com/rs/cors v1.11.1
|
github.com/rs/cors v1.11.1
|
||||||
github.com/sparetimecoders/goamqp v0.3.1
|
github.com/sparetimecoders/goamqp v0.3.1
|
||||||
github.com/stretchr/testify v1.10.0
|
github.com/stretchr/testify v1.10.0
|
||||||
github.com/vektah/gqlparser/v2 v2.5.21
|
github.com/vektah/gqlparser/v2 v2.5.22
|
||||||
github.com/wundergraph/graphql-go-tools v1.67.4
|
github.com/wundergraph/graphql-go-tools v1.67.4
|
||||||
gitlab.com/unboundsoftware/eventsourced/amqp v1.7.0
|
gitlab.com/unboundsoftware/eventsourced/amqp v1.7.0
|
||||||
gitlab.com/unboundsoftware/eventsourced/eventsourced v1.16.0
|
gitlab.com/unboundsoftware/eventsourced/eventsourced v1.16.0
|
||||||
@@ -54,7 +54,7 @@ require (
|
|||||||
golang.org/x/mod v0.20.0 // indirect
|
golang.org/x/mod v0.20.0 // indirect
|
||||||
golang.org/x/net v0.33.0 // indirect
|
golang.org/x/net v0.33.0 // indirect
|
||||||
golang.org/x/sync v0.10.0 // indirect
|
golang.org/x/sync v0.10.0 // indirect
|
||||||
golang.org/x/sys v0.28.0 // indirect
|
golang.org/x/sys v0.29.0 // indirect
|
||||||
golang.org/x/text v0.21.0 // indirect
|
golang.org/x/text v0.21.0 // indirect
|
||||||
golang.org/x/tools v0.24.0 // indirect
|
golang.org/x/tools v0.24.0 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||||
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
||||||
github.com/99designs/gqlgen v0.17.63 h1:HCdaYDPd9HqUXRchEvmE3EFzELRwLlaJ8DBuyC8Cqto=
|
github.com/99designs/gqlgen v0.17.64 h1:BzpqO5ofQXyy2XOa93Q6fP1BHLRjTOeU35ovTEsbYlw=
|
||||||
github.com/99designs/gqlgen v0.17.63/go.mod h1:sVCM2iwIZisJjTI/DEC3fpH+HFgxY1496ZJ+jbT9IjA=
|
github.com/99designs/gqlgen v0.17.64/go.mod h1:kaxLetFxPGeBBwiuKk75NxuI1fe9HRvob17In74v/Zc=
|
||||||
github.com/DATA-DOG/go-sqlmock v1.5.2 h1:OcvFkGmslmlZibjAjaHm3L//6LiuBgolP7OputlJIzU=
|
github.com/DATA-DOG/go-sqlmock v1.5.2 h1:OcvFkGmslmlZibjAjaHm3L//6LiuBgolP7OputlJIzU=
|
||||||
github.com/DATA-DOG/go-sqlmock v1.5.2/go.mod h1:88MAG/4G7SMwSE3CeA0ZKzrT5CiOU3OJ+JlNzwDqpNU=
|
github.com/DATA-DOG/go-sqlmock v1.5.2/go.mod h1:88MAG/4G7SMwSE3CeA0ZKzrT5CiOU3OJ+JlNzwDqpNU=
|
||||||
github.com/Khan/genqlient v0.7.0 h1:GZ1meyRnzcDTK48EjqB8t3bcfYvHArCUUvgOwpz1D4w=
|
github.com/Khan/genqlient v0.7.0 h1:GZ1meyRnzcDTK48EjqB8t3bcfYvHArCUUvgOwpz1D4w=
|
||||||
@@ -175,8 +175,8 @@ github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPf
|
|||||||
github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4=
|
github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4=
|
||||||
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
|
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
|
||||||
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
|
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
|
||||||
github.com/vektah/gqlparser/v2 v2.5.21 h1:Zw1rG2dr1pRR4wqwbVq4d6+xk2f4ut/yo+hwr4QjE08=
|
github.com/vektah/gqlparser/v2 v2.5.22 h1:yaaeJ0fu+nv1vUMW0Hl+aS1eiv1vMfapBNjpffAda1I=
|
||||||
github.com/vektah/gqlparser/v2 v2.5.21/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM=
|
github.com/vektah/gqlparser/v2 v2.5.22/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM=
|
||||||
github.com/wundergraph/graphql-go-tools v1.67.4 h1:1QtoftaZz5sScV/J6XLZ/oTfi1lMHp6UmFkYRQfY2/g=
|
github.com/wundergraph/graphql-go-tools v1.67.4 h1:1QtoftaZz5sScV/J6XLZ/oTfi1lMHp6UmFkYRQfY2/g=
|
||||||
github.com/wundergraph/graphql-go-tools v1.67.4/go.mod h1:UFvflYjB/qnSCdgcHQuE6dTfwZ6viJB7yPnGOtBuibo=
|
github.com/wundergraph/graphql-go-tools v1.67.4/go.mod h1:UFvflYjB/qnSCdgcHQuE6dTfwZ6viJB7yPnGOtBuibo=
|
||||||
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
|
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
|
||||||
@@ -209,8 +209,8 @@ golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5h
|
|||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
|
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
|
||||||
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||||
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
|
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
|
||||||
|
|||||||
@@ -767,6 +767,62 @@ func (ec *executionContext) field_Query_supergraph_argsIsAfter(
|
|||||||
return zeroVal, nil
|
return zeroVal, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
||||||
|
var err error
|
||||||
|
args := map[string]any{}
|
||||||
|
arg0, err := ec.field___Directive_args_argsIncludeDeprecated(ctx, rawArgs)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
args["includeDeprecated"] = arg0
|
||||||
|
return args, nil
|
||||||
|
}
|
||||||
|
func (ec *executionContext) field___Directive_args_argsIncludeDeprecated(
|
||||||
|
ctx context.Context,
|
||||||
|
rawArgs map[string]any,
|
||||||
|
) (*bool, error) {
|
||||||
|
if _, ok := rawArgs["includeDeprecated"]; !ok {
|
||||||
|
var zeroVal *bool
|
||||||
|
return zeroVal, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
||||||
|
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
||||||
|
return ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
|
||||||
|
}
|
||||||
|
|
||||||
|
var zeroVal *bool
|
||||||
|
return zeroVal, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
||||||
|
var err error
|
||||||
|
args := map[string]any{}
|
||||||
|
arg0, err := ec.field___Field_args_argsIncludeDeprecated(ctx, rawArgs)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
args["includeDeprecated"] = arg0
|
||||||
|
return args, nil
|
||||||
|
}
|
||||||
|
func (ec *executionContext) field___Field_args_argsIncludeDeprecated(
|
||||||
|
ctx context.Context,
|
||||||
|
rawArgs map[string]any,
|
||||||
|
) (*bool, error) {
|
||||||
|
if _, ok := rawArgs["includeDeprecated"]; !ok {
|
||||||
|
var zeroVal *bool
|
||||||
|
return zeroVal, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
||||||
|
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
||||||
|
return ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
|
||||||
|
}
|
||||||
|
|
||||||
|
var zeroVal *bool
|
||||||
|
return zeroVal, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
||||||
var err error
|
var err error
|
||||||
args := map[string]any{}
|
args := map[string]any{}
|
||||||
@@ -1849,6 +1905,8 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -2708,7 +2766,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql
|
|||||||
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||||
fc = &graphql.FieldContext{
|
fc = &graphql.FieldContext{
|
||||||
Object: "__Directive",
|
Object: "__Directive",
|
||||||
Field: field,
|
Field: field,
|
||||||
@@ -2724,10 +2782,25 @@ func (ec *executionContext) fieldContext___Directive_args(_ context.Context, fie
|
|||||||
return ec.fieldContext___InputValue_type(ctx, field)
|
return ec.fieldContext___InputValue_type(ctx, field)
|
||||||
case "defaultValue":
|
case "defaultValue":
|
||||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||||
|
case "isDeprecated":
|
||||||
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||||
|
case "deprecationReason":
|
||||||
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
err = ec.Recover(ctx, r)
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
ctx = graphql.WithFieldContext(ctx, fc)
|
||||||
|
if fc.Args, err = ec.field___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return fc, err
|
||||||
|
}
|
||||||
return fc, nil
|
return fc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3061,7 +3134,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col
|
|||||||
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||||
fc = &graphql.FieldContext{
|
fc = &graphql.FieldContext{
|
||||||
Object: "__Field",
|
Object: "__Field",
|
||||||
Field: field,
|
Field: field,
|
||||||
@@ -3077,10 +3150,25 @@ func (ec *executionContext) fieldContext___Field_args(_ context.Context, field g
|
|||||||
return ec.fieldContext___InputValue_type(ctx, field)
|
return ec.fieldContext___InputValue_type(ctx, field)
|
||||||
case "defaultValue":
|
case "defaultValue":
|
||||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||||
|
case "isDeprecated":
|
||||||
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||||
|
case "deprecationReason":
|
||||||
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
err = ec.Recover(ctx, r)
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
ctx = graphql.WithFieldContext(ctx, fc)
|
||||||
|
if fc.Args, err = ec.field___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return fc, err
|
||||||
|
}
|
||||||
return fc, nil
|
return fc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3143,6 +3231,8 @@ func (ec *executionContext) fieldContext___Field_type(_ context.Context, field g
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -3379,6 +3469,8 @@ func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, fi
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -3427,6 +3519,91 @@ func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Con
|
|||||||
return fc, nil
|
return fc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
||||||
|
fc, err := ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||||
|
if err != nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
ctx = graphql.WithFieldContext(ctx, fc)
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
ec.Error(ctx, ec.Recover(ctx, r))
|
||||||
|
ret = graphql.Null
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||||
|
ctx = rctx // use context from middleware stack in children
|
||||||
|
return obj.IsDeprecated(), nil
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
if resTmp == nil {
|
||||||
|
if !graphql.HasFieldError(ctx, fc) {
|
||||||
|
ec.Errorf(ctx, "must not be null")
|
||||||
|
}
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
res := resTmp.(bool)
|
||||||
|
fc.Result = res
|
||||||
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||||
|
fc = &graphql.FieldContext{
|
||||||
|
Object: "__InputValue",
|
||||||
|
Field: field,
|
||||||
|
IsMethod: true,
|
||||||
|
IsResolver: false,
|
||||||
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
||||||
|
return nil, errors.New("field of type Boolean does not have child fields")
|
||||||
|
},
|
||||||
|
}
|
||||||
|
return fc, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
||||||
|
fc, err := ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||||
|
if err != nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
ctx = graphql.WithFieldContext(ctx, fc)
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
ec.Error(ctx, ec.Recover(ctx, r))
|
||||||
|
ret = graphql.Null
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||||
|
ctx = rctx // use context from middleware stack in children
|
||||||
|
return obj.DeprecationReason(), nil
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
if resTmp == nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
res := resTmp.(*string)
|
||||||
|
fc.Result = res
|
||||||
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||||
|
fc = &graphql.FieldContext{
|
||||||
|
Object: "__InputValue",
|
||||||
|
Field: field,
|
||||||
|
IsMethod: true,
|
||||||
|
IsResolver: false,
|
||||||
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
||||||
|
return nil, errors.New("field of type String does not have child fields")
|
||||||
|
},
|
||||||
|
}
|
||||||
|
return fc, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
||||||
fc, err := ec.fieldContext___Schema_description(ctx, field)
|
fc, err := ec.fieldContext___Schema_description(ctx, field)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -3527,6 +3704,8 @@ func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -3593,6 +3772,8 @@ func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, f
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -3656,6 +3837,8 @@ func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -3719,6 +3902,8 @@ func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Con
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -4030,6 +4215,8 @@ func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, fi
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -4093,6 +4280,8 @@ func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context,
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -4206,6 +4395,10 @@ func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, f
|
|||||||
return ec.fieldContext___InputValue_type(ctx, field)
|
return ec.fieldContext___InputValue_type(ctx, field)
|
||||||
case "defaultValue":
|
case "defaultValue":
|
||||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||||
|
case "isDeprecated":
|
||||||
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||||
|
case "deprecationReason":
|
||||||
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
||||||
},
|
},
|
||||||
@@ -4269,6 +4462,8 @@ func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -4317,6 +4512,47 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context
|
|||||||
return fc, nil
|
return fc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
||||||
|
fc, err := ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
|
if err != nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
ctx = graphql.WithFieldContext(ctx, fc)
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
ec.Error(ctx, ec.Recover(ctx, r))
|
||||||
|
ret = graphql.Null
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||||
|
ctx = rctx // use context from middleware stack in children
|
||||||
|
return obj.IsOneOf(), nil
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
if resTmp == nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
res := resTmp.(bool)
|
||||||
|
fc.Result = res
|
||||||
|
return ec.marshalOBoolean2bool(ctx, field.Selections, res)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||||
|
fc = &graphql.FieldContext{
|
||||||
|
Object: "__Type",
|
||||||
|
Field: field,
|
||||||
|
IsMethod: true,
|
||||||
|
IsResolver: false,
|
||||||
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
||||||
|
return nil, errors.New("field of type Boolean does not have child fields")
|
||||||
|
},
|
||||||
|
}
|
||||||
|
return fc, nil
|
||||||
|
}
|
||||||
|
|
||||||
// endregion **************************** field.gotpl *****************************
|
// endregion **************************** field.gotpl *****************************
|
||||||
|
|
||||||
// region **************************** input.gotpl *****************************
|
// region **************************** input.gotpl *****************************
|
||||||
@@ -5126,6 +5362,13 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection
|
|||||||
}
|
}
|
||||||
case "defaultValue":
|
case "defaultValue":
|
||||||
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
||||||
|
case "isDeprecated":
|
||||||
|
out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
|
||||||
|
if out.Values[i] == graphql.Null {
|
||||||
|
out.Invalids++
|
||||||
|
}
|
||||||
|
case "deprecationReason":
|
||||||
|
out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
|
||||||
default:
|
default:
|
||||||
panic("unknown field " + strconv.Quote(field.Name))
|
panic("unknown field " + strconv.Quote(field.Name))
|
||||||
}
|
}
|
||||||
@@ -5238,6 +5481,8 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o
|
|||||||
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
||||||
|
case "isOneOf":
|
||||||
|
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
||||||
default:
|
default:
|
||||||
panic("unknown field " + strconv.Quote(field.Name))
|
panic("unknown field " + strconv.Quote(field.Name))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user