(ctx context.Context, field graphql.CollectedField, obj *model.Storage)
| 4733 | } |
| 4734 | |
| 4735 | func (ec *executionContext) _Storage_status(ctx context.Context, field graphql.CollectedField, obj *model.Storage) (ret graphql.Marshaler) { |
| 4736 | fc, err := ec.fieldContext_Storage_status(ctx, field) |
| 4737 | if err != nil { |
| 4738 | return graphql.Null |
| 4739 | } |
| 4740 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4741 | defer func() { |
| 4742 | if r := recover(); r != nil { |
| 4743 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4744 | ret = graphql.Null |
| 4745 | } |
| 4746 | }() |
| 4747 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4748 | ctx = rctx // use context from middleware stack in children |
| 4749 | return obj.Status, nil |
| 4750 | }) |
| 4751 | if err != nil { |
| 4752 | ec.Error(ctx, err) |
| 4753 | return graphql.Null |
| 4754 | } |
| 4755 | if resTmp == nil { |
| 4756 | if !graphql.HasFieldError(ctx, fc) { |
| 4757 | ec.Errorf(ctx, "must not be null") |
| 4758 | } |
| 4759 | return graphql.Null |
| 4760 | } |
| 4761 | res := resTmp.(model.StorageStatus) |
| 4762 | fc.Result = res |
| 4763 | return ec.marshalNStorageStatus2githubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐStorageStatus(ctx, field.Selections, res) |
| 4764 | } |
| 4765 | |
| 4766 | func (ec *executionContext) fieldContext_Storage_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4767 | fc = &graphql.FieldContext{ |
no test coverage detected