MCPcopy Create free account
hub / github.com/encoder-run/operator / ___InputValue_description

Method ___InputValue_description

pkg/graph/generated.go:5691–5717  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue)

Source from the content-addressed store, hash-verified

5689}
5690
5691func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
5692 fc, err := ec.fieldContext___InputValue_description(ctx, field)
5693 if err != nil {
5694 return graphql.Null
5695 }
5696 ctx = graphql.WithFieldContext(ctx, fc)
5697 defer func() {
5698 if r := recover(); r != nil {
5699 ec.Error(ctx, ec.Recover(ctx, r))
5700 ret = graphql.Null
5701 }
5702 }()
5703 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5704 ctx = rctx // use context from middleware stack in children
5705 return obj.Description(), nil
5706 })
5707 if err != nil {
5708 ec.Error(ctx, err)
5709 return graphql.Null
5710 }
5711 if resTmp == nil {
5712 return graphql.Null
5713 }
5714 res := resTmp.(*string)
5715 fc.Result = res
5716 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5717}
5718
5719func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5720 fc = &graphql.FieldContext{

Callers 1

___InputValueMethod · 0.95

Tested by

no test coverage detected