MCPcopy Create free account
hub / github.com/encoder-run/operator / _StorageDeployment_enabled

Method _StorageDeployment_enabled

pkg/graph/generated.go:4828–4857  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *model.StorageDeployment)

Source from the content-addressed store, hash-verified

4826}
4827
4828func (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
4859func (ec *executionContext) fieldContext_StorageDeployment_enabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4860 fc = &graphql.FieldContext{

Callers 1

_StorageDeploymentMethod · 0.95

Tested by

no test coverage detected