fix(deps): update module github.com/vektah/gqlparser/v2 to v2.5.23
This commit is contained in:
@@ -16,7 +16,7 @@ require (
|
||||
github.com/rs/cors v1.11.1
|
||||
github.com/sparetimecoders/goamqp v0.3.1
|
||||
github.com/stretchr/testify v1.10.0
|
||||
github.com/vektah/gqlparser/v2 v2.5.22
|
||||
github.com/vektah/gqlparser/v2 v2.5.23
|
||||
github.com/wundergraph/graphql-go-tools v1.67.4
|
||||
gitlab.com/unboundsoftware/eventsourced/amqp v1.8.0
|
||||
gitlab.com/unboundsoftware/eventsourced/eventsourced v1.17.0
|
||||
@@ -24,7 +24,7 @@ require (
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/agnivade/levenshtein v1.2.0 // indirect
|
||||
github.com/agnivade/levenshtein v1.2.1 // indirect
|
||||
github.com/buger/jsonparser v1.1.1 // indirect
|
||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
|
||||
|
||||
@@ -8,8 +8,8 @@ github.com/Khan/genqlient v0.8.0 h1:Hd1a+E1CQHYbMEKakIkvBH3zW0PWEeiX6Hp1i2kP2WE=
|
||||
github.com/Khan/genqlient v0.8.0/go.mod h1:hn70SpYjWteRGvxTwo0kfaqg4wxvndECGkfa1fdDdYI=
|
||||
github.com/PuerkitoBio/goquery v1.9.3 h1:mpJr/ikUA9/GNJB/DBZcGeFDXUtosHRyRrwh7KGdTG0=
|
||||
github.com/PuerkitoBio/goquery v1.9.3/go.mod h1:1ndLHPdTz+DyQPICCWYlYQMPl0oXZj0G6D4LCYA6u4U=
|
||||
github.com/agnivade/levenshtein v1.2.0 h1:U9L4IOT0Y3i0TIlUIDJ7rVUziKi/zPbrJGaFrtYH3SY=
|
||||
github.com/agnivade/levenshtein v1.2.0/go.mod h1:QVVI16kDrtSuwcpd0p1+xMC6Z/VfhtCyDIjcwga4/DU=
|
||||
github.com/agnivade/levenshtein v1.2.1 h1:EHBY3UOn1gwdy/VbFwgo4cxecRznFk7fKWN1KOX7eoM=
|
||||
github.com/agnivade/levenshtein v1.2.1/go.mod h1:QVVI16kDrtSuwcpd0p1+xMC6Z/VfhtCyDIjcwga4/DU=
|
||||
github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0=
|
||||
github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
|
||||
github.com/alecthomas/kong v1.8.1 h1:6aamvWBE/REnR/BCq10EcozmcpUPc5aGI1lPAWdB0EE=
|
||||
@@ -169,8 +169,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/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/vektah/gqlparser/v2 v2.5.22 h1:yaaeJ0fu+nv1vUMW0Hl+aS1eiv1vMfapBNjpffAda1I=
|
||||
github.com/vektah/gqlparser/v2 v2.5.22/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM=
|
||||
github.com/vektah/gqlparser/v2 v2.5.23 h1:PurJ9wpgEVB7tty1seRUwkIDa/QH5RzkzraiKIjKLfA=
|
||||
github.com/vektah/gqlparser/v2 v2.5.23/go.mod h1:D1/VCZtV3LPnQrcPBeR/q5jkSQIPti0uYCP/RI0gIeo=
|
||||
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/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
|
||||
|
||||
+114
-114
@@ -1891,6 +1891,8 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -1903,8 +1905,6 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -2691,6 +2691,50 @@ func (ec *executionContext) fieldContext___Directive_description(_ context.Conte
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___Directive_isRepeatable(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.IsRepeatable, 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___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
fc = &graphql.FieldContext{
|
||||
Object: "__Directive",
|
||||
Field: field,
|
||||
IsMethod: false,
|
||||
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) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___Directive_locations(ctx, field)
|
||||
if err != nil {
|
||||
@@ -2804,50 +2848,6 @@ func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, f
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___Directive_isRepeatable(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.IsRepeatable, 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___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
fc = &graphql.FieldContext{
|
||||
Object: "__Directive",
|
||||
Field: field,
|
||||
IsMethod: false,
|
||||
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) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___EnumValue_name(ctx, field)
|
||||
if err != nil {
|
||||
@@ -3217,6 +3217,8 @@ func (ec *executionContext) fieldContext___Field_type(_ context.Context, field g
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -3229,8 +3231,6 @@ func (ec *executionContext) fieldContext___Field_type(_ context.Context, field g
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -3455,6 +3455,8 @@ func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, fi
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -3467,8 +3469,6 @@ func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, fi
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -3690,6 +3690,8 @@ func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -3702,8 +3704,6 @@ func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -3758,6 +3758,8 @@ func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, f
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -3770,8 +3772,6 @@ func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, f
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -3823,6 +3823,8 @@ func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -3835,8 +3837,6 @@ func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -3888,6 +3888,8 @@ func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Con
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -3900,8 +3902,6 @@ func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Con
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -3954,12 +3954,12 @@ func (ec *executionContext) fieldContext___Schema_directives(_ context.Context,
|
||||
return ec.fieldContext___Directive_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Directive_description(ctx, field)
|
||||
case "isRepeatable":
|
||||
return ec.fieldContext___Directive_isRepeatable(ctx, field)
|
||||
case "locations":
|
||||
return ec.fieldContext___Directive_locations(ctx, field)
|
||||
case "args":
|
||||
return ec.fieldContext___Directive_args(ctx, field)
|
||||
case "isRepeatable":
|
||||
return ec.fieldContext___Directive_isRepeatable(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
|
||||
},
|
||||
@@ -4093,6 +4093,47 @@ func (ec *executionContext) fieldContext___Type_description(_ context.Context, f
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___Type_specifiedByURL(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.SpecifiedByURL(), 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___Type_specifiedByURL(_ 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 String does not have child fields")
|
||||
},
|
||||
}
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___Type_fields(ctx, field)
|
||||
if err != nil {
|
||||
@@ -4201,6 +4242,8 @@ func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, fi
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -4213,8 +4256,6 @@ func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, fi
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -4266,6 +4307,8 @@ func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context,
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -4278,8 +4321,6 @@ func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context,
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -4448,6 +4489,8 @@ func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field
|
||||
return ec.fieldContext___Type_name(ctx, field)
|
||||
case "description":
|
||||
return ec.fieldContext___Type_description(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "fields":
|
||||
return ec.fieldContext___Type_fields(ctx, field)
|
||||
case "interfaces":
|
||||
@@ -4460,8 +4503,6 @@ func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field
|
||||
return ec.fieldContext___Type_inputFields(ctx, field)
|
||||
case "ofType":
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
@@ -4471,47 +4512,6 @@ func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___Type_specifiedByURL(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.SpecifiedByURL(), 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___Type_specifiedByURL(_ 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 String does not have child fields")
|
||||
},
|
||||
}
|
||||
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 {
|
||||
@@ -5193,6 +5193,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS
|
||||
}
|
||||
case "description":
|
||||
out.Values[i] = ec.___Directive_description(ctx, field, obj)
|
||||
case "isRepeatable":
|
||||
out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
|
||||
if out.Values[i] == graphql.Null {
|
||||
out.Invalids++
|
||||
}
|
||||
case "locations":
|
||||
out.Values[i] = ec.___Directive_locations(ctx, field, obj)
|
||||
if out.Values[i] == graphql.Null {
|
||||
@@ -5203,11 +5208,6 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS
|
||||
if out.Values[i] == graphql.Null {
|
||||
out.Invalids++
|
||||
}
|
||||
case "isRepeatable":
|
||||
out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
|
||||
if out.Values[i] == graphql.Null {
|
||||
out.Invalids++
|
||||
}
|
||||
default:
|
||||
panic("unknown field " + strconv.Quote(field.Name))
|
||||
}
|
||||
@@ -5467,6 +5467,8 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o
|
||||
out.Values[i] = ec.___Type_name(ctx, field, obj)
|
||||
case "description":
|
||||
out.Values[i] = ec.___Type_description(ctx, field, obj)
|
||||
case "specifiedByURL":
|
||||
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
||||
case "fields":
|
||||
out.Values[i] = ec.___Type_fields(ctx, field, obj)
|
||||
case "interfaces":
|
||||
@@ -5479,8 +5481,6 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o
|
||||
out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
|
||||
case "ofType":
|
||||
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
||||
case "specifiedByURL":
|
||||
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
||||
case "isOneOf":
|
||||
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user