MCPcopy Index your code
hub / github.com/git-bug/git-bug / _Bug_createdAt

Method _Bug_createdAt

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

Source from the content-addressed store, hash-verified

816}
817
818func (ec *executionContext) _Bug_createdAt(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) {
819 fc, err := ec.fieldContext_Bug_createdAt(ctx, field)
820 if err != nil {
821 return graphql.Null
822 }
823 ctx = graphql.WithFieldContext(ctx, fc)
824 defer func() {
825 if r := recover(); r != nil {
826 ec.Error(ctx, ec.Recover(ctx, r))
827 ret = graphql.Null
828 }
829 }()
830 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
831 ctx = rctx // use context from middleware stack in children
832 return obj.CreatedAt(), nil
833 })
834 if err != nil {
835 ec.Error(ctx, err)
836 return graphql.Null
837 }
838 if resTmp == nil {
839 if !graphql.HasFieldError(ctx, fc) {
840 ec.Errorf(ctx, "must not be null")
841 }
842 return graphql.Null
843 }
844 res := resTmp.(time.Time)
845 fc.Result = res
846 return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
847}
848
849func (ec *executionContext) fieldContext_Bug_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
850 fc = &graphql.FieldContext{

Callers 1

_BugMethod · 0.95

Calls 5

ErrorfMethod · 0.80
CreatedAtMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected