MCPcopy Create free account
hub / github.com/git-bug/git-bug / _Mutation

Method _Mutation

api/graphql/graph/root.generated.go:1140–1241  ·  view source on GitHub ↗
(ctx context.Context, sel ast.SelectionSet)

Source from the content-addressed store, hash-verified

1138var mutationImplementors = []string{"Mutation"}
1139
1140func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
1141 fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
1142 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
1143 Object: "Mutation",
1144 })
1145
1146 out := graphql.NewFieldSet(fields)
1147 deferred := make(map[string]*graphql.FieldSet)
1148 for i, field := range fields {
1149 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
1150 Object: field.Name,
1151 Field: field,
1152 })
1153
1154 switch field.Name {
1155 case "__typename":
1156 out.Values[i] = graphql.MarshalString("Mutation")
1157 case "bugCreate":
1158 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
1159 return ec._Mutation_bugCreate(ctx, field)
1160 })
1161 if out.Values[i] == graphql.Null {
1162 out.Invalids++
1163 }
1164 case "bugAddComment":
1165 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
1166 return ec._Mutation_bugAddComment(ctx, field)
1167 })
1168 if out.Values[i] == graphql.Null {
1169 out.Invalids++
1170 }
1171 case "bugAddCommentAndClose":
1172 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
1173 return ec._Mutation_bugAddCommentAndClose(ctx, field)
1174 })
1175 if out.Values[i] == graphql.Null {
1176 out.Invalids++
1177 }
1178 case "bugAddCommentAndReopen":
1179 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
1180 return ec._Mutation_bugAddCommentAndReopen(ctx, field)
1181 })
1182 if out.Values[i] == graphql.Null {
1183 out.Invalids++
1184 }
1185 case "bugEditComment":
1186 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
1187 return ec._Mutation_bugEditComment(ctx, field)
1188 })
1189 if out.Values[i] == graphql.Null {
1190 out.Invalids++
1191 }
1192 case "bugChangeLabels":
1193 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
1194 return ec._Mutation_bugChangeLabels(ctx, field)
1195 })
1196 if out.Values[i] == graphql.Null {
1197 out.Invalids++

Callers 1

ExecMethod · 0.95

Tested by

no test coverage detected