(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper)
| 205 | } |
| 206 | |
| 207 | func (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 | |
| 235 | func (ec *executionContext) fieldContext_Identity_login(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 236 | fc = &graphql.FieldContext{ |
no test coverage detected