(ctx context.Context, field graphql.CollectedField)
| 1069 | } |
| 1070 | |
| 1071 | func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { |
| 1072 | fc, err := ec.fieldContext_Query___schema(ctx, field) |
| 1073 | if err != nil { |
| 1074 | return graphql.Null |
| 1075 | } |
| 1076 | ctx = graphql.WithFieldContext(ctx, fc) |
| 1077 | defer func() { |
| 1078 | if r := recover(); r != nil { |
| 1079 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 1080 | ret = graphql.Null |
| 1081 | } |
| 1082 | }() |
| 1083 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 1084 | ctx = rctx // use context from middleware stack in children |
| 1085 | return ec.introspectSchema() |
| 1086 | }) |
| 1087 | if err != nil { |
| 1088 | ec.Error(ctx, err) |
| 1089 | return graphql.Null |
| 1090 | } |
| 1091 | if resTmp == nil { |
| 1092 | return graphql.Null |
| 1093 | } |
| 1094 | res := resTmp.(*introspection.Schema) |
| 1095 | fc.Result = res |
| 1096 | return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) |
| 1097 | } |
| 1098 | |
| 1099 | func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 1100 | fc = &graphql.FieldContext{ |
no test coverage detected