(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper)
| 123 | } |
| 124 | |
| 125 | func (ec *executionContext) _Identity_name(ctx context.Context, field graphql.CollectedField, obj models.IdentityWrapper) (ret graphql.Marshaler) { |
| 126 | fc, err := ec.fieldContext_Identity_name(ctx, field) |
| 127 | if err != nil { |
| 128 | return graphql.Null |
| 129 | } |
| 130 | ctx = graphql.WithFieldContext(ctx, fc) |
| 131 | defer func() { |
| 132 | if r := recover(); r != nil { |
| 133 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 134 | ret = graphql.Null |
| 135 | } |
| 136 | }() |
| 137 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 138 | ctx = rctx // use context from middleware stack in children |
| 139 | return obj.Name(), nil |
| 140 | }) |
| 141 | if err != nil { |
| 142 | ec.Error(ctx, err) |
| 143 | return graphql.Null |
| 144 | } |
| 145 | if resTmp == nil { |
| 146 | return graphql.Null |
| 147 | } |
| 148 | res := resTmp.(string) |
| 149 | fc.Result = res |
| 150 | return ec.marshalOString2string(ctx, field.Selections, res) |
| 151 | } |
| 152 | |
| 153 | func (ec *executionContext) fieldContext_Identity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 154 | fc = &graphql.FieldContext{ |
no test coverage detected