(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue)
| 5185 | } |
| 5186 | |
| 5187 | func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { |
| 5188 | fc, err := ec.fieldContext___EnumValue_name(ctx, field) |
| 5189 | if err != nil { |
| 5190 | return graphql.Null |
| 5191 | } |
| 5192 | ctx = graphql.WithFieldContext(ctx, fc) |
| 5193 | defer func() { |
| 5194 | if r := recover(); r != nil { |
| 5195 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 5196 | ret = graphql.Null |
| 5197 | } |
| 5198 | }() |
| 5199 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 5200 | ctx = rctx // use context from middleware stack in children |
| 5201 | return obj.Name, nil |
| 5202 | }) |
| 5203 | if err != nil { |
| 5204 | ec.Error(ctx, err) |
| 5205 | return graphql.Null |
| 5206 | } |
| 5207 | if resTmp == nil { |
| 5208 | if !graphql.HasFieldError(ctx, fc) { |
| 5209 | ec.Errorf(ctx, "must not be null") |
| 5210 | } |
| 5211 | return graphql.Null |
| 5212 | } |
| 5213 | res := resTmp.(string) |
| 5214 | fc.Result = res |
| 5215 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 5216 | } |
| 5217 | |
| 5218 | func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 5219 | fc = &graphql.FieldContext{ |
no test coverage detected