(ctx context.Context, field graphql.CollectedField, obj *model.Storage)
| 4777 | } |
| 4778 | |
| 4779 | func (ec *executionContext) _Storage_deployment(ctx context.Context, field graphql.CollectedField, obj *model.Storage) (ret graphql.Marshaler) { |
| 4780 | fc, err := ec.fieldContext_Storage_deployment(ctx, field) |
| 4781 | if err != nil { |
| 4782 | return graphql.Null |
| 4783 | } |
| 4784 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4785 | defer func() { |
| 4786 | if r := recover(); r != nil { |
| 4787 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4788 | ret = graphql.Null |
| 4789 | } |
| 4790 | }() |
| 4791 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4792 | ctx = rctx // use context from middleware stack in children |
| 4793 | return obj.Deployment, nil |
| 4794 | }) |
| 4795 | if err != nil { |
| 4796 | ec.Error(ctx, err) |
| 4797 | return graphql.Null |
| 4798 | } |
| 4799 | if resTmp == nil { |
| 4800 | return graphql.Null |
| 4801 | } |
| 4802 | res := resTmp.(*model.StorageDeployment) |
| 4803 | fc.Result = res |
| 4804 | return ec.marshalOStorageDeployment2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐStorageDeployment(ctx, field.Selections, res) |
| 4805 | } |
| 4806 | |
| 4807 | func (ec *executionContext) fieldContext_Storage_deployment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4808 | fc = &graphql.FieldContext{ |
no test coverage detected