(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive)
| 5141 | } |
| 5142 | |
| 5143 | func (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 | |
| 5174 | func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 5175 | fc = &graphql.FieldContext{ |
no test coverage detected