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

Method _Mutation_bugSetTitle

api/graphql/graph/root.generated.go:864–893  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField)

Source from the content-addressed store, hash-verified

862}
863
864func (ec *executionContext) _Mutation_bugSetTitle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
865 fc, err := ec.fieldContext_Mutation_bugSetTitle(ctx, field)
866 if err != nil {
867 return graphql.Null
868 }
869 ctx = graphql.WithFieldContext(ctx, fc)
870 defer func() {
871 if r := recover(); r != nil {
872 ec.Error(ctx, ec.Recover(ctx, r))
873 ret = graphql.Null
874 }
875 }()
876 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
877 ctx = rctx // use context from middleware stack in children
878 return ec.resolvers.Mutation().BugSetTitle(rctx, fc.Args["input"].(models.BugSetTitleInput))
879 })
880 if err != nil {
881 ec.Error(ctx, err)
882 return graphql.Null
883 }
884 if resTmp == nil {
885 if !graphql.HasFieldError(ctx, fc) {
886 ec.Errorf(ctx, "must not be null")
887 }
888 return graphql.Null
889 }
890 res := resTmp.(*models.BugSetTitlePayload)
891 fc.Result = res
892 return ec.marshalNBugSetTitlePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugSetTitlePayload(ctx, field.Selections, res)
893}
894
895func (ec *executionContext) fieldContext_Mutation_bugSetTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
896 fc = &graphql.FieldContext{

Callers 1

_MutationMethod · 0.95

Tested by

no test coverage detected