(ctx context.Context, sel ast.SelectionSet)
| 7390 | var mutationImplementors = []string{"Mutation"} |
| 7391 | |
| 7392 | func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { |
| 7393 | fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) |
| 7394 | ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ |
| 7395 | Object: "Mutation", |
| 7396 | }) |
| 7397 | |
| 7398 | out := graphql.NewFieldSet(fields) |
| 7399 | deferred := make(map[string]*graphql.FieldSet) |
| 7400 | for i, field := range fields { |
| 7401 | innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ |
| 7402 | Object: field.Name, |
| 7403 | Field: field, |
| 7404 | }) |
| 7405 | |
| 7406 | switch field.Name { |
| 7407 | case "__typename": |
| 7408 | out.Values[i] = graphql.MarshalString("Mutation") |
| 7409 | case "addModel": |
| 7410 | out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { |
| 7411 | return ec._Mutation_addModel(ctx, field) |
| 7412 | }) |
| 7413 | if out.Values[i] == graphql.Null { |
| 7414 | out.Invalids++ |
| 7415 | } |
| 7416 | case "addModelDeployment": |
| 7417 | out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { |
| 7418 | return ec._Mutation_addModelDeployment(ctx, field) |
| 7419 | }) |
| 7420 | if out.Values[i] == graphql.Null { |
| 7421 | out.Invalids++ |
| 7422 | } |
| 7423 | case "deleteModel": |
| 7424 | out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { |
| 7425 | return ec._Mutation_deleteModel(ctx, field) |
| 7426 | }) |
| 7427 | if out.Values[i] == graphql.Null { |
| 7428 | out.Invalids++ |
| 7429 | } |
| 7430 | case "addRepository": |
| 7431 | out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { |
| 7432 | return ec._Mutation_addRepository(ctx, field) |
| 7433 | }) |
| 7434 | if out.Values[i] == graphql.Null { |
| 7435 | out.Invalids++ |
| 7436 | } |
| 7437 | case "deleteRepository": |
| 7438 | out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { |
| 7439 | return ec._Mutation_deleteRepository(ctx, field) |
| 7440 | }) |
| 7441 | if out.Values[i] == graphql.Null { |
| 7442 | out.Invalids++ |
| 7443 | } |
| 7444 | case "addStorage": |
| 7445 | out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { |
| 7446 | return ec._Mutation_addStorage(ctx, field) |
| 7447 | }) |
| 7448 | if out.Values[i] == graphql.Null { |
| 7449 | out.Invalids++ |
no test coverage detected