(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper)
| 79 | } |
| 80 | |
| 81 | func (ec *executionContext) _Identity_humanId(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper) (ret graphql.Marshaler) { |
| 82 | fc, err := ec.fieldContext_Identity_humanId(ctx, field) |
| 83 | if err != nil { |
| 84 | return graphql.Null |
| 85 | } |
| 86 | ctx = graphql.WithFieldContext(ctx, fc) |
| 87 | defer func() { |
| 88 | if r := recover(); r != nil { |
| 89 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 90 | ret = graphql.Null |
| 91 | } |
| 92 | }() |
| 93 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 94 | ctx = rctx // use context from middleware stack in children |
| 95 | return ec.resolvers.Identity().HumanID(rctx, obj) |
| 96 | }) |
| 97 | if err != nil { |
| 98 | ec.Error(ctx, err) |
| 99 | return graphql.Null |
| 100 | } |
| 101 | if resTmp == nil { |
| 102 | if !graphql.HasFieldError(ctx, fc) { |
| 103 | ec.Errorf(ctx, "must not be null") |
| 104 | } |
| 105 | return graphql.Null |
| 106 | } |
| 107 | res := resTmp.(string) |
| 108 | fc.Result = res |
| 109 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 110 | } |
| 111 | |
| 112 | func (ec *executionContext) fieldContext_Identity_humanId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 113 | fc = &graphql.FieldContext{ |
no test coverage detected