(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper)
| 164 | } |
| 165 | |
| 166 | func (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 | |
| 194 | func (ec *executionContext) fieldContext_Identity_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 195 | fc = &graphql.FieldContext{ |
no test coverage detected