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

Method ___EnumValue_description

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

Source from the content-addressed store, hash-verified

5229}
5230
5231func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
5232 fc, err := ec.fieldContext___EnumValue_description(ctx, field)
5233 if err != nil {
5234 return graphql.Null
5235 }
5236 ctx = graphql.WithFieldContext(ctx, fc)
5237 defer func() {
5238 if r := recover(); r != nil {
5239 ec.Error(ctx, ec.Recover(ctx, r))
5240 ret = graphql.Null
5241 }
5242 }()
5243 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5244 ctx = rctx // use context from middleware stack in children
5245 return obj.Description(), nil
5246 })
5247 if err != nil {
5248 ec.Error(ctx, err)
5249 return graphql.Null
5250 }
5251 if resTmp == nil {
5252 return graphql.Null
5253 }
5254 res := resTmp.(*string)
5255 fc.Result = res
5256 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5257}
5258
5259func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5260 fc = &graphql.FieldContext{

Callers 1

___EnumValueMethod · 0.95

Tested by

no test coverage detected