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

Method ___Directive_description

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

Source from the content-addressed store, hash-verified

5002}
5003
5004func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
5005 fc, err := ec.fieldContext___Directive_description(ctx, field)
5006 if err != nil {
5007 return graphql.Null
5008 }
5009 ctx = graphql.WithFieldContext(ctx, fc)
5010 defer func() {
5011 if r := recover(); r != nil {
5012 ec.Error(ctx, ec.Recover(ctx, r))
5013 ret = graphql.Null
5014 }
5015 }()
5016 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5017 ctx = rctx // use context from middleware stack in children
5018 return obj.Description(), nil
5019 })
5020 if err != nil {
5021 ec.Error(ctx, err)
5022 return graphql.Null
5023 }
5024 if resTmp == nil {
5025 return graphql.Null
5026 }
5027 res := resTmp.(*string)
5028 fc.Result = res
5029 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5030}
5031
5032func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5033 fc = &graphql.FieldContext{

Callers 1

___DirectiveMethod · 0.95

Tested by

no test coverage detected