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

Method _Identity_login

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

Source from the content-addressed store, hash-verified

205}
206
207func (ec *executionContext) _Identity_login(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper) (ret graphql.Marshaler) {
208 fc, err := ec.fieldContext_Identity_login(ctx, field)
209 if err != nil {
210 return graphql.Null
211 }
212 ctx = graphql.WithFieldContext(ctx, fc)
213 defer func() {
214 if r := recover(); r != nil {
215 ec.Error(ctx, ec.Recover(ctx, r))
216 ret = graphql.Null
217 }
218 }()
219 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
220 ctx = rctx // use context from middleware stack in children
221 return obj.Login()
222 })
223 if err != nil {
224 ec.Error(ctx, err)
225 return graphql.Null
226 }
227 if resTmp == nil {
228 return graphql.Null
229 }
230 res := resTmp.(string)
231 fc.Result = res
232 return ec.marshalOString2string(ctx, field.Selections, res)
233}
234
235func (ec *executionContext) fieldContext_Identity_login(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
236 fc = &graphql.FieldContext{

Callers 1

_IdentityMethod · 0.95

Calls 4

marshalOString2stringMethod · 0.95
LoginMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected