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

Method _Identity_email

api/graphql/graph/identity.generated.go:166–192  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper)

Source from the content-addressed store, hash-verified

164}
165
166func (ec *executionContext) _Identity_email(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper) (ret graphql.Marshaler) {
167 fc, err := ec.fieldContext_Identity_email(ctx, field)
168 if err != nil {
169 return graphql.Null
170 }
171 ctx = graphql.WithFieldContext(ctx, fc)
172 defer func() {
173 if r := recover(); r != nil {
174 ec.Error(ctx, ec.Recover(ctx, r))
175 ret = graphql.Null
176 }
177 }()
178 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
179 ctx = rctx // use context from middleware stack in children
180 return obj.Email()
181 })
182 if err != nil {
183 ec.Error(ctx, err)
184 return graphql.Null
185 }
186 if resTmp == nil {
187 return graphql.Null
188 }
189 res := resTmp.(string)
190 fc.Result = res
191 return ec.marshalOString2string(ctx, field.Selections, res)
192}
193
194func (ec *executionContext) fieldContext_Identity_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
195 fc = &graphql.FieldContext{

Callers 1

_IdentityMethod · 0.95

Calls 4

marshalOString2stringMethod · 0.95
EmailMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected