(ctx context.Context, field graphql.CollectedField)
| 3666 | } |
| 3667 | |
| 3668 | func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { |
| 3669 | fc, err := ec.fieldContext_Query___schema(ctx, field) |
| 3670 | if err != nil { |
| 3671 | return graphql.Null |
| 3672 | } |
| 3673 | ctx = graphql.WithFieldContext(ctx, fc) |
| 3674 | defer func() { |
| 3675 | if r := recover(); r != nil { |
| 3676 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 3677 | ret = graphql.Null |
| 3678 | } |
| 3679 | }() |
| 3680 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 3681 | ctx = rctx // use context from middleware stack in children |
| 3682 | return ec.introspectSchema() |
| 3683 | }) |
| 3684 | if err != nil { |
| 3685 | ec.Error(ctx, err) |
| 3686 | return graphql.Null |
| 3687 | } |
| 3688 | if resTmp == nil { |
| 3689 | return graphql.Null |
| 3690 | } |
| 3691 | res := resTmp.(*introspection.Schema) |
| 3692 | fc.Result = res |
| 3693 | return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) |
| 3694 | } |
| 3695 | |
| 3696 | func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 3697 | fc = &graphql.FieldContext{ |
no test coverage detected