(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema)
| 3436 | var __SchemaImplementors = []string{"__Schema"} |
| 3437 | |
| 3438 | func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { |
| 3439 | fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) |
| 3440 | out := graphql.NewFieldSet(fields) |
| 3441 | var invalids uint32 |
| 3442 | for i, field := range fields { |
| 3443 | switch field.Name { |
| 3444 | case "__typename": |
| 3445 | out.Values[i] = graphql.MarshalString("__Schema") |
| 3446 | case "description": |
| 3447 | |
| 3448 | out.Values[i] = ec.___Schema_description(ctx, field, obj) |
| 3449 | |
| 3450 | case "types": |
| 3451 | |
| 3452 | out.Values[i] = ec.___Schema_types(ctx, field, obj) |
| 3453 | |
| 3454 | if out.Values[i] == graphql.Null { |
| 3455 | invalids++ |
| 3456 | } |
| 3457 | case "queryType": |
| 3458 | |
| 3459 | out.Values[i] = ec.___Schema_queryType(ctx, field, obj) |
| 3460 | |
| 3461 | if out.Values[i] == graphql.Null { |
| 3462 | invalids++ |
| 3463 | } |
| 3464 | case "mutationType": |
| 3465 | |
| 3466 | out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) |
| 3467 | |
| 3468 | case "subscriptionType": |
| 3469 | |
| 3470 | out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) |
| 3471 | |
| 3472 | case "directives": |
| 3473 | |
| 3474 | out.Values[i] = ec.___Schema_directives(ctx, field, obj) |
| 3475 | |
| 3476 | if out.Values[i] == graphql.Null { |
| 3477 | invalids++ |
| 3478 | } |
| 3479 | default: |
| 3480 | panic("unknown field " + strconv.Quote(field.Name)) |
| 3481 | } |
| 3482 | } |
| 3483 | out.Dispatch() |
| 3484 | if invalids > 0 { |
| 3485 | return graphql.Null |
| 3486 | } |
| 3487 | return out |
| 3488 | } |
| 3489 | |
| 3490 | var __TypeImplementors = []string{"__Type"} |
| 3491 |
no test coverage detected