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

Method _Query___schema

pkg/graph/generated.go:3668–3694  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField)

Source from the content-addressed store, hash-verified

3666}
3667
3668func (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
3696func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3697 fc = &graphql.FieldContext{

Callers 1

_QueryMethod · 0.95

Tested by

no test coverage detected