(ctx context.Context, field graphql.CollectedField, obj *model.Storage)
| 4601 | } |
| 4602 | |
| 4603 | func (ec *executionContext) _Storage_id(ctx context.Context, field graphql.CollectedField, obj *model.Storage) (ret graphql.Marshaler) { |
| 4604 | fc, err := ec.fieldContext_Storage_id(ctx, field) |
| 4605 | if err != nil { |
| 4606 | return graphql.Null |
| 4607 | } |
| 4608 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4609 | defer func() { |
| 4610 | if r := recover(); r != nil { |
| 4611 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4612 | ret = graphql.Null |
| 4613 | } |
| 4614 | }() |
| 4615 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4616 | ctx = rctx // use context from middleware stack in children |
| 4617 | return obj.ID, nil |
| 4618 | }) |
| 4619 | if err != nil { |
| 4620 | ec.Error(ctx, err) |
| 4621 | return graphql.Null |
| 4622 | } |
| 4623 | if resTmp == nil { |
| 4624 | if !graphql.HasFieldError(ctx, fc) { |
| 4625 | ec.Errorf(ctx, "must not be null") |
| 4626 | } |
| 4627 | return graphql.Null |
| 4628 | } |
| 4629 | res := resTmp.(string) |
| 4630 | fc.Result = res |
| 4631 | return ec.marshalNID2string(ctx, field.Selections, res) |
| 4632 | } |
| 4633 | |
| 4634 | func (ec *executionContext) fieldContext_Storage_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4635 | fc = &graphql.FieldContext{ |
no test coverage detected