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

Method _Bug_actors

api/graphql/graph/bug.generated.go:906–935  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper)

Source from the content-addressed store, hash-verified

904}
905
906func (ec *executionContext) _Bug_actors(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) {
907 fc, err := ec.fieldContext_Bug_actors(ctx, field)
908 if err != nil {
909 return graphql.Null
910 }
911 ctx = graphql.WithFieldContext(ctx, fc)
912 defer func() {
913 if r := recover(); r != nil {
914 ec.Error(ctx, ec.Recover(ctx, r))
915 ret = graphql.Null
916 }
917 }()
918 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
919 ctx = rctx // use context from middleware stack in children
920 return ec.resolvers.Bug().Actors(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int))
921 })
922 if err != nil {
923 ec.Error(ctx, err)
924 return graphql.Null
925 }
926 if resTmp == nil {
927 if !graphql.HasFieldError(ctx, fc) {
928 ec.Errorf(ctx, "must not be null")
929 }
930 return graphql.Null
931 }
932 res := resTmp.(*models.IdentityConnection)
933 fc.Result = res
934 return ec.marshalNIdentityConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityConnection(ctx, field.Selections, res)
935}
936
937func (ec *executionContext) fieldContext_Bug_actors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
938 fc = &graphql.FieldContext{

Callers 1

_BugMethod · 0.95

Tested by

no test coverage detected