(ctx context.Context, field graphql.CollectedField, obj *model.StorageDeployment)
| 4826 | } |
| 4827 | |
| 4828 | func (ec *executionContext) _StorageDeployment_enabled(ctx context.Context, field graphql.CollectedField, obj *model.StorageDeployment) (ret graphql.Marshaler) { |
| 4829 | fc, err := ec.fieldContext_StorageDeployment_enabled(ctx, field) |
| 4830 | if err != nil { |
| 4831 | return graphql.Null |
| 4832 | } |
| 4833 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4834 | defer func() { |
| 4835 | if r := recover(); r != nil { |
| 4836 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4837 | ret = graphql.Null |
| 4838 | } |
| 4839 | }() |
| 4840 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4841 | ctx = rctx // use context from middleware stack in children |
| 4842 | return obj.Enabled, nil |
| 4843 | }) |
| 4844 | if err != nil { |
| 4845 | ec.Error(ctx, err) |
| 4846 | return graphql.Null |
| 4847 | } |
| 4848 | if resTmp == nil { |
| 4849 | if !graphql.HasFieldError(ctx, fc) { |
| 4850 | ec.Errorf(ctx, "must not be null") |
| 4851 | } |
| 4852 | return graphql.Null |
| 4853 | } |
| 4854 | res := resTmp.(bool) |
| 4855 | fc.Result = res |
| 4856 | return ec.marshalNBoolean2bool(ctx, field.Selections, res) |
| 4857 | } |
| 4858 | |
| 4859 | func (ec *executionContext) fieldContext_StorageDeployment_enabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4860 | fc = &graphql.FieldContext{ |
no test coverage detected