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

Method ___Directive_isRepeatable

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

Source from the content-addressed store, hash-verified

5141}
5142
5143func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
5144 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field)
5145 if err != nil {
5146 return graphql.Null
5147 }
5148 ctx = graphql.WithFieldContext(ctx, fc)
5149 defer func() {
5150 if r := recover(); r != nil {
5151 ec.Error(ctx, ec.Recover(ctx, r))
5152 ret = graphql.Null
5153 }
5154 }()
5155 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5156 ctx = rctx // use context from middleware stack in children
5157 return obj.IsRepeatable, nil
5158 })
5159 if err != nil {
5160 ec.Error(ctx, err)
5161 return graphql.Null
5162 }
5163 if resTmp == nil {
5164 if !graphql.HasFieldError(ctx, fc) {
5165 ec.Errorf(ctx, "must not be null")
5166 }
5167 return graphql.Null
5168 }
5169 res := resTmp.(bool)
5170 fc.Result = res
5171 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
5172}
5173
5174func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5175 fc = &graphql.FieldContext{

Callers 1

___DirectiveMethod · 0.95

Tested by

no test coverage detected