@@ 5916,14 5916,14 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field
Object: "__Directive",
Field: field,
Args: nil,
- IsMethod: false,
+ IsMethod: true,
IsResolver: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return obj.Description, nil
+ return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ 5932,9 5932,9 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
fc.Result = res
- return ec.marshalOString2string(ctx, field.Selections, res)
+ return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
@@ 6007,6 6007,41 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}
+func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
+ defer func() {
+ if r := recover(); r != nil {
+ ec.Error(ctx, ec.Recover(ctx, r))
+ ret = graphql.Null
+ }
+ }()
+ fc := &graphql.FieldContext{
+ Object: "__Directive",
+ Field: field,
+ Args: nil,
+ IsMethod: false,
+ IsResolver: false,
+ }
+
+ ctx = graphql.WithFieldContext(ctx, fc)
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.IsRepeatable, nil
+ })
+ if err != nil {
+ ec.Error(ctx, err)
+ return graphql.Null
+ }
+ if resTmp == nil {
+ if !graphql.HasFieldError(ctx, fc) {
+ ec.Errorf(ctx, "must not be null")
+ }
+ return graphql.Null
+ }
+ res := resTmp.(bool)
+ fc.Result = res
+ return ec.marshalNBoolean2bool(ctx, field.Selections, res)
+}
+
func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
@@ 6053,14 6088,14 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field
Object: "__EnumValue",
Field: field,
Args: nil,
- IsMethod: false,
+ IsMethod: true,
IsResolver: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return obj.Description, nil
+ return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ 6069,9 6104,9 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
fc.Result = res
- return ec.marshalOString2string(ctx, field.Selections, res)
+ return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
@@ 6187,14 6222,14 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap
Object: "__Field",
Field: field,
Args: nil,
- IsMethod: false,
+ IsMethod: true,
IsResolver: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return obj.Description, nil
+ return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ 6203,9 6238,9 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
fc.Result = res
- return ec.marshalOString2string(ctx, field.Selections, res)
+ return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
@@ 6391,14 6426,14 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field
Object: "__InputValue",
Field: field,
Args: nil,
- IsMethod: false,
+ IsMethod: true,
IsResolver: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return obj.Description, nil
+ return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ 6407,9 6442,9 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
fc.Result = res
- return ec.marshalOString2string(ctx, field.Selections, res)
+ return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
@@ 6479,6 6514,38 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
+func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
+ defer func() {
+ if r := recover(); r != nil {
+ ec.Error(ctx, ec.Recover(ctx, r))
+ ret = graphql.Null
+ }
+ }()
+ fc := &graphql.FieldContext{
+ Object: "__Schema",
+ Field: field,
+ Args: nil,
+ IsMethod: true,
+ IsResolver: false,
+ }
+
+ ctx = graphql.WithFieldContext(ctx, fc)
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.Description(), nil
+ })
+ if err != nil {
+ ec.Error(ctx, err)
+ return graphql.Null
+ }
+ if resTmp == nil {
+ return graphql.Null
+ }
+ res := resTmp.(*string)
+ fc.Result = res
+ return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
+}
+
func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
@@ 6742,9 6809,9 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
fc.Result = res
- return ec.marshalOString2string(ctx, field.Selections, res)
+ return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
@@ 6953,13 7020,48 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
+func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
+ defer func() {
+ if r := recover(); r != nil {
+ ec.Error(ctx, ec.Recover(ctx, r))
+ ret = graphql.Null
+ }
+ }()
+ fc := &graphql.FieldContext{
+ Object: "__Type",
+ Field: field,
+ Args: nil,
+ IsMethod: true,
+ IsResolver: false,
+ }
+
+ ctx = graphql.WithFieldContext(ctx, fc)
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.SpecifiedByURL(), nil
+ })
+ if err != nil {
+ ec.Error(ctx, err)
+ return graphql.Null
+ }
+ if resTmp == nil {
+ return graphql.Null
+ }
+ res := resTmp.(*string)
+ fc.Result = res
+ return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
+}
+
// endregion **************************** field.gotpl *****************************
// region **************************** input.gotpl *****************************
func (ec *executionContext) unmarshalInputEmailTriggerInput(ctx context.Context, obj interface{}) (model.EmailTriggerInput, error) {
var it model.EmailTriggerInput
- var asMap = obj.(map[string]interface{})
+ asMap := map[string]interface{}{}
+ for k, v := range obj.(map[string]interface{}) {
+ asMap[k] = v
+ }
for k, v := range asMap {
switch k {
@@ 6995,7 7097,10 @@ func (ec *executionContext) unmarshalInputEmailTriggerInput(ctx context.Context,
func (ec *executionContext) unmarshalInputTriggerInput(ctx context.Context, obj interface{}) (model.TriggerInput, error) {
var it model.TriggerInput
- var asMap = obj.(map[string]interface{})
+ asMap := map[string]interface{}{}
+ for k, v := range obj.(map[string]interface{}) {
+ asMap[k] = v
+ }
for k, v := range asMap {
switch k {
@@ 7039,7 7144,10 @@ func (ec *executionContext) unmarshalInputTriggerInput(ctx context.Context, obj
func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Context, obj interface{}) (model.WebhookTriggerInput, error) {
var it model.WebhookTriggerInput
- var asMap = obj.(map[string]interface{})
+ asMap := map[string]interface{}{}
+ for k, v := range obj.(map[string]interface{}) {
+ asMap[k] = v
+ }
for k, v := range asMap {
switch k {
@@ 7138,7 7246,6 @@ var artifactImplementors = []string{"Artifact"}
func (ec *executionContext) _Artifact(ctx context.Context, sel ast.SelectionSet, obj *model.Artifact) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, artifactImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7146,27 7253,52 @@ func (ec *executionContext) _Artifact(ctx context.Context, sel ast.SelectionSet,
case "__typename":
out.Values[i] = graphql.MarshalString("Artifact")
case "id":
- out.Values[i] = ec._Artifact_id(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Artifact_id(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "created":
- out.Values[i] = ec._Artifact_created(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Artifact_created(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "path":
- out.Values[i] = ec._Artifact_path(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Artifact_path(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "size":
- out.Values[i] = ec._Artifact_size(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Artifact_size(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "url":
- out.Values[i] = ec._Artifact_url(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Artifact_url(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 7182,7 7314,6 @@ var emailTriggerImplementors = []string{"EmailTrigger", "Trigger"}
func (ec *executionContext) _EmailTrigger(ctx context.Context, sel ast.SelectionSet, obj *model.EmailTrigger) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, emailTriggerImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7190,19 7321,39 @@ func (ec *executionContext) _EmailTrigger(ctx context.Context, sel ast.Selection
case "__typename":
out.Values[i] = graphql.MarshalString("EmailTrigger")
case "condition":
- out.Values[i] = ec._EmailTrigger_condition(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._EmailTrigger_condition(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "to":
- out.Values[i] = ec._EmailTrigger_to(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._EmailTrigger_to(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "cc":
- out.Values[i] = ec._EmailTrigger_cc(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._EmailTrigger_cc(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "inReplyTo":
- out.Values[i] = ec._EmailTrigger_inReplyTo(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._EmailTrigger_inReplyTo(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 7218,7 7369,6 @@ var jobImplementors = []string{"Job"}
func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj *model.Job) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7226,47 7376,93 @@ func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj
case "__typename":
out.Values[i] = graphql.MarshalString("Job")
case "id":
- out.Values[i] = ec._Job_id(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_id(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "created":
- out.Values[i] = ec._Job_created(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_created(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "updated":
- out.Values[i] = ec._Job_updated(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_updated(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "status":
- out.Values[i] = ec._Job_status(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_status(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "manifest":
- out.Values[i] = ec._Job_manifest(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_manifest(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "note":
- out.Values[i] = ec._Job_note(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_note(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "tags":
- out.Values[i] = ec._Job_tags(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_tags(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "image":
- out.Values[i] = ec._Job_image(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_image(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "runner":
- out.Values[i] = ec._Job_runner(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Job_runner(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "owner":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7277,10 7473,16 @@ func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
case "group":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7288,10 7490,16 @@ func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj
}()
res = ec._Job_group(ctx, field, obj)
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
case "tasks":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7302,10 7510,16 @@ func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
case "artifacts":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7316,10 7530,16 @@ func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
case "log":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7327,10 7547,16 @@ func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj
}()
res = ec._Job_log(ctx, field, obj)
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
case "secrets":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7338,6 7564,11 @@ func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj
}()
res = ec._Job_secrets(ctx, field, obj)
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
default:
panic("unknown field " + strconv.Quote(field.Name))
@@ 7354,7 7585,6 @@ var jobCursorImplementors = []string{"JobCursor"}
func (ec *executionContext) _JobCursor(ctx context.Context, sel ast.SelectionSet, obj *model.JobCursor) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobCursorImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7362,12 7592,22 @@ func (ec *executionContext) _JobCursor(ctx context.Context, sel ast.SelectionSet
case "__typename":
out.Values[i] = graphql.MarshalString("JobCursor")
case "results":
- out.Values[i] = ec._JobCursor_results(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._JobCursor_results(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "cursor":
- out.Values[i] = ec._JobCursor_cursor(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._JobCursor_cursor(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 7383,7 7623,6 @@ var jobGroupImplementors = []string{"JobGroup"}
func (ec *executionContext) _JobGroup(ctx context.Context, sel ast.SelectionSet, obj *model.JobGroup) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobGroupImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7391,20 7630,36 @@ func (ec *executionContext) _JobGroup(ctx context.Context, sel ast.SelectionSet,
case "__typename":
out.Values[i] = graphql.MarshalString("JobGroup")
case "id":
- out.Values[i] = ec._JobGroup_id(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._JobGroup_id(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "created":
- out.Values[i] = ec._JobGroup_created(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._JobGroup_created(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "note":
- out.Values[i] = ec._JobGroup_note(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._JobGroup_note(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "owner":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7415,10 7670,16 @@ func (ec *executionContext) _JobGroup(ctx context.Context, sel ast.SelectionSet,
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
case "jobs":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7429,10 7690,16 @@ func (ec *executionContext) _JobGroup(ctx context.Context, sel ast.SelectionSet,
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
case "triggers":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7443,6 7710,11 @@ func (ec *executionContext) _JobGroup(ctx context.Context, sel ast.SelectionSet,
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
default:
panic("unknown field " + strconv.Quote(field.Name))
@@ 7459,7 7731,6 @@ var logImplementors = []string{"Log"}
func (ec *executionContext) _Log(ctx context.Context, sel ast.SelectionSet, obj *model.Log) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, logImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7467,12 7738,22 @@ func (ec *executionContext) _Log(ctx context.Context, sel ast.SelectionSet, obj
case "__typename":
out.Values[i] = graphql.MarshalString("Log")
case "last128KiB":
- out.Values[i] = ec._Log_last128KiB(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Log_last128KiB(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "fullURL":
- out.Values[i] = ec._Log_fullURL(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Log_fullURL(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
@@ 7491,7 7772,6 @@ var mutationImplementors = []string{"Mutation"}
func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
-
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
Object: "Mutation",
})
@@ 7499,33 7779,83 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
+ innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
+ Object: field.Name,
+ Field: field,
+ })
+
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Mutation")
case "submit":
- out.Values[i] = ec._Mutation_submit(ctx, field)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_submit(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "start":
- out.Values[i] = ec._Mutation_start(ctx, field)
- case "cancel":
- out.Values[i] = ec._Mutation_cancel(ctx, field)
- case "createGroup":
- out.Values[i] = ec._Mutation_createGroup(ctx, field)
- if out.Values[i] == graphql.Null {
- invalids++
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_start(ctx, field)
}
- case "startGroup":
- out.Values[i] = ec._Mutation_startGroup(ctx, field)
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
+ case "cancel":
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_cancel(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
+ case "createGroup":
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_createGroup(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
+ if out.Values[i] == graphql.Null {
+ invalids++
+ }
+ case "startGroup":
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_startGroup(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
case "claim":
- out.Values[i] = ec._Mutation_claim(ctx, field)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_claim(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
case "updateJob":
- out.Values[i] = ec._Mutation_updateJob(ctx, field)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_updateJob(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
case "updateTask":
- out.Values[i] = ec._Mutation_updateTask(ctx, field)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_updateTask(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
case "createArtifact":
- out.Values[i] = ec._Mutation_createArtifact(ctx, field)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Mutation_createArtifact(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 7541,7 7871,6 @@ var pGPKeyImplementors = []string{"PGPKey", "Secret"}
func (ec *executionContext) _PGPKey(ctx context.Context, sel ast.SelectionSet, obj *model.PGPKey) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, pGPKeyImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7549,25 7878,46 @@ func (ec *executionContext) _PGPKey(ctx context.Context, sel ast.SelectionSet, o
case "__typename":
out.Values[i] = graphql.MarshalString("PGPKey")
case "id":
- out.Values[i] = ec._PGPKey_id(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._PGPKey_id(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "created":
- out.Values[i] = ec._PGPKey_created(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._PGPKey_created(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "uuid":
- out.Values[i] = ec._PGPKey_uuid(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._PGPKey_uuid(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "name":
- out.Values[i] = ec._PGPKey_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._PGPKey_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "privateKey":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7578,6 7928,11 @@ func (ec *executionContext) _PGPKey(ctx context.Context, sel ast.SelectionSet, o
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
default:
panic("unknown field " + strconv.Quote(field.Name))
@@ 7594,7 7949,6 @@ var queryImplementors = []string{"Query"}
func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
-
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
Object: "Query",
})
@@ 7602,12 7956,18 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
+ innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
+ Object: field.Name,
+ Field: field,
+ })
+
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Query")
case "version":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7618,10 7978,19 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ rrm := func(ctx context.Context) graphql.Marshaler {
+ return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return rrm(innerCtx)
})
case "me":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7632,10 8001,19 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ rrm := func(ctx context.Context) graphql.Marshaler {
+ return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return rrm(innerCtx)
})
case "userByID":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7643,10 8021,19 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
}()
res = ec._Query_userByID(ctx, field)
return res
+ }
+
+ rrm := func(ctx context.Context) graphql.Marshaler {
+ return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return rrm(innerCtx)
})
case "userByName":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7654,10 8041,19 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
}()
res = ec._Query_userByName(ctx, field)
return res
+ }
+
+ rrm := func(ctx context.Context) graphql.Marshaler {
+ return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return rrm(innerCtx)
})
case "jobs":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7668,10 8064,19 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ rrm := func(ctx context.Context) graphql.Marshaler {
+ return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return rrm(innerCtx)
})
case "job":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7679,10 8084,19 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
}()
res = ec._Query_job(ctx, field)
return res
+ }
+
+ rrm := func(ctx context.Context) graphql.Marshaler {
+ return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return rrm(innerCtx)
})
case "secrets":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7693,11 8107,29 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ rrm := func(ctx context.Context) graphql.Marshaler {
+ return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return rrm(innerCtx)
})
case "__type":
- out.Values[i] = ec._Query___type(ctx, field)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Query___type(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
case "__schema":
- out.Values[i] = ec._Query___schema(ctx, field)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Query___schema(ctx, field)
+ }
+
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 7713,7 8145,6 @@ var sSHKeyImplementors = []string{"SSHKey", "Secret"}
func (ec *executionContext) _SSHKey(ctx context.Context, sel ast.SelectionSet, obj *model.SSHKey) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, sSHKeyImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7721,25 8152,46 @@ func (ec *executionContext) _SSHKey(ctx context.Context, sel ast.SelectionSet, o
case "__typename":
out.Values[i] = graphql.MarshalString("SSHKey")
case "id":
- out.Values[i] = ec._SSHKey_id(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SSHKey_id(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "created":
- out.Values[i] = ec._SSHKey_created(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SSHKey_created(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "uuid":
- out.Values[i] = ec._SSHKey_uuid(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SSHKey_uuid(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "name":
- out.Values[i] = ec._SSHKey_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SSHKey_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "privateKey":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7750,6 8202,11 @@ func (ec *executionContext) _SSHKey(ctx context.Context, sel ast.SelectionSet, o
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
default:
panic("unknown field " + strconv.Quote(field.Name))
@@ 7766,7 8223,6 @@ var secretCursorImplementors = []string{"SecretCursor"}
func (ec *executionContext) _SecretCursor(ctx context.Context, sel ast.SelectionSet, obj *model.SecretCursor) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, secretCursorImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7774,12 8230,22 @@ func (ec *executionContext) _SecretCursor(ctx context.Context, sel ast.Selection
case "__typename":
out.Values[i] = graphql.MarshalString("SecretCursor")
case "results":
- out.Values[i] = ec._SecretCursor_results(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SecretCursor_results(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "cursor":
- out.Values[i] = ec._SecretCursor_cursor(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SecretCursor_cursor(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 7795,7 8261,6 @@ var secretFileImplementors = []string{"SecretFile", "Secret"}
func (ec *executionContext) _SecretFile(ctx context.Context, sel ast.SelectionSet, obj *model.SecretFile) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, secretFileImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7803,35 8268,66 @@ func (ec *executionContext) _SecretFile(ctx context.Context, sel ast.SelectionSe
case "__typename":
out.Values[i] = graphql.MarshalString("SecretFile")
case "id":
- out.Values[i] = ec._SecretFile_id(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SecretFile_id(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "created":
- out.Values[i] = ec._SecretFile_created(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SecretFile_created(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "uuid":
- out.Values[i] = ec._SecretFile_uuid(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SecretFile_uuid(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "name":
- out.Values[i] = ec._SecretFile_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SecretFile_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "path":
- out.Values[i] = ec._SecretFile_path(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SecretFile_path(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "mode":
- out.Values[i] = ec._SecretFile_mode(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._SecretFile_mode(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "data":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7842,6 8338,11 @@ func (ec *executionContext) _SecretFile(ctx context.Context, sel ast.SelectionSe
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
default:
panic("unknown field " + strconv.Quote(field.Name))
@@ 7858,7 8359,6 @@ var settingsImplementors = []string{"Settings"}
func (ec *executionContext) _Settings(ctx context.Context, sel ast.SelectionSet, obj *model.Settings) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, settingsImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7866,12 8366,22 @@ func (ec *executionContext) _Settings(ctx context.Context, sel ast.SelectionSet,
case "__typename":
out.Values[i] = graphql.MarshalString("Settings")
case "sshUser":
- out.Values[i] = ec._Settings_sshUser(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Settings_sshUser(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "buildTimeout":
- out.Values[i] = ec._Settings_buildTimeout(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Settings_buildTimeout(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
@@ 7890,7 8400,6 @@ var taskImplementors = []string{"Task"}
func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj *model.Task) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, taskImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7898,33 8407,59 @@ func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj
case "__typename":
out.Values[i] = graphql.MarshalString("Task")
case "id":
- out.Values[i] = ec._Task_id(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Task_id(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "created":
- out.Values[i] = ec._Task_created(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Task_created(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "updated":
- out.Values[i] = ec._Task_updated(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Task_updated(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "name":
- out.Values[i] = ec._Task_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Task_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "status":
- out.Values[i] = ec._Task_status(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Task_status(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "log":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7932,10 8467,16 @@ func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj
}()
res = ec._Task_log(ctx, field, obj)
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
case "job":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 7946,6 8487,11 @@ func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
default:
panic("unknown field " + strconv.Quote(field.Name))
@@ 7962,7 8508,6 @@ var userImplementors = []string{"User", "Entity"}
func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *model.User) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 7970,44 8515,90 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj
case "__typename":
out.Values[i] = graphql.MarshalString("User")
case "id":
- out.Values[i] = ec._User_id(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_id(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "created":
- out.Values[i] = ec._User_created(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_created(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "updated":
- out.Values[i] = ec._User_updated(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_updated(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "canonicalName":
- out.Values[i] = ec._User_canonicalName(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_canonicalName(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "username":
- out.Values[i] = ec._User_username(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_username(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "email":
- out.Values[i] = ec._User_email(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_email(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "url":
- out.Values[i] = ec._User_url(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_url(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "location":
- out.Values[i] = ec._User_location(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_location(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "bio":
- out.Values[i] = ec._User_bio(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._User_bio(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "jobs":
field := field
- out.Concurrently(i, func() (res graphql.Marshaler) {
+
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
@@ 8018,6 8609,11 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj
atomic.AddUint32(&invalids, 1)
}
return res
+ }
+
+ out.Concurrently(i, func() graphql.Marshaler {
+ return innerFunc(ctx)
+
})
default:
panic("unknown field " + strconv.Quote(field.Name))
@@ 8034,7 8630,6 @@ var versionImplementors = []string{"Version"}
func (ec *executionContext) _Version(ctx context.Context, sel ast.SelectionSet, obj *model.Version) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, versionImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 8042,24 8637,49 @@ func (ec *executionContext) _Version(ctx context.Context, sel ast.SelectionSet,
case "__typename":
out.Values[i] = graphql.MarshalString("Version")
case "major":
- out.Values[i] = ec._Version_major(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Version_major(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "minor":
- out.Values[i] = ec._Version_minor(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Version_minor(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "patch":
- out.Values[i] = ec._Version_patch(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Version_patch(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "deprecationDate":
- out.Values[i] = ec._Version_deprecationDate(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Version_deprecationDate(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "settings":
- out.Values[i] = ec._Version_settings(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._Version_settings(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
@@ 8078,7 8698,6 @@ var webhookTriggerImplementors = []string{"WebhookTrigger", "Trigger"}
func (ec *executionContext) _WebhookTrigger(ctx context.Context, sel ast.SelectionSet, obj *model.WebhookTrigger) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, webhookTriggerImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 8086,12 8705,22 @@ func (ec *executionContext) _WebhookTrigger(ctx context.Context, sel ast.Selecti
case "__typename":
out.Values[i] = graphql.MarshalString("WebhookTrigger")
case "condition":
- out.Values[i] = ec._WebhookTrigger_condition(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._WebhookTrigger_condition(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "url":
- out.Values[i] = ec._WebhookTrigger_url(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec._WebhookTrigger_url(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
@@ 8110,7 8739,6 @@ var __DirectiveImplementors = []string{"__Directive"}
func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 8118,19 8746,49 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS
case "__typename":
out.Values[i] = graphql.MarshalString("__Directive")
case "name":
- out.Values[i] = ec.___Directive_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Directive_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "description":
- out.Values[i] = ec.___Directive_description(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Directive_description(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "locations":
- out.Values[i] = ec.___Directive_locations(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Directive_locations(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "args":
- out.Values[i] = ec.___Directive_args(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Directive_args(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
+ if out.Values[i] == graphql.Null {
+ invalids++
+ }
+ case "isRepeatable":
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Directive_isRepeatable(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
@@ 8149,7 8807,6 @@ var __EnumValueImplementors = []string{"__EnumValue"}
func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 8157,19 8814,39 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS
case "__typename":
out.Values[i] = graphql.MarshalString("__EnumValue")
case "name":
- out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___EnumValue_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "description":
- out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___EnumValue_description(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "isDeprecated":
- out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___EnumValue_isDeprecated(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "deprecationReason":
- out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___EnumValue_deprecationReason(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 8185,7 8862,6 @@ var __FieldImplementors = []string{"__Field"}
func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 8193,29 8869,59 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet,
case "__typename":
out.Values[i] = graphql.MarshalString("__Field")
case "name":
- out.Values[i] = ec.___Field_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Field_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "description":
- out.Values[i] = ec.___Field_description(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Field_description(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "args":
- out.Values[i] = ec.___Field_args(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Field_args(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "type":
- out.Values[i] = ec.___Field_type(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Field_type(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "isDeprecated":
- out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Field_isDeprecated(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "deprecationReason":
- out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Field_deprecationReason(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 8231,7 8937,6 @@ var __InputValueImplementors = []string{"__InputValue"}
func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 8239,19 8944,39 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection
case "__typename":
out.Values[i] = graphql.MarshalString("__InputValue")
case "name":
- out.Values[i] = ec.___InputValue_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___InputValue_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "description":
- out.Values[i] = ec.___InputValue_description(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___InputValue_description(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "type":
- out.Values[i] = ec.___InputValue_type(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___InputValue_type(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "defaultValue":
- out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___InputValue_defaultValue(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 8267,29 8992,60 @@ var __SchemaImplementors = []string{"__Schema"}
func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Schema")
+ case "description":
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Schema_description(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "types":
- out.Values[i] = ec.___Schema_types(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Schema_types(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "queryType":
- out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Schema_queryType(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "mutationType":
- out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Schema_mutationType(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "subscriptionType":
- out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Schema_subscriptionType(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "directives":
- out.Values[i] = ec.___Schema_directives(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Schema_directives(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
@@ 8308,7 9064,6 @@ var __TypeImplementors = []string{"__Type"}
func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
-
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
@@ 8316,26 9071,78 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o
case "__typename":
out.Values[i] = graphql.MarshalString("__Type")
case "kind":
- out.Values[i] = ec.___Type_kind(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_kind(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
if out.Values[i] == graphql.Null {
invalids++
}
case "name":
- out.Values[i] = ec.___Type_name(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_name(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "description":
- out.Values[i] = ec.___Type_description(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_description(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "fields":
- out.Values[i] = ec.___Type_fields(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_fields(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "interfaces":
- out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_interfaces(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "possibleTypes":
- out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_possibleTypes(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "enumValues":
- out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_enumValues(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "inputFields":
- out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_inputFields(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
case "ofType":
- out.Values[i] = ec.___Type_ofType(ctx, field, obj)
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_ofType(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
+ case "specifiedByURL":
+ innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
+ return ec.___Type_specifiedByURL(ctx, field, obj)
+ }
+
+ out.Values[i] = innerFunc(ctx)
+
default:
panic("unknown field " + strconv.Quote(field.Name))
}
@@ 8405,6 9212,13 @@ func (ec *executionContext) marshalNArtifact2ᚕᚖgitᚗsrᚗhtᚋאsircmpwnᚋ
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 8491,11 9305,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti
func (ec *executionContext) unmarshalNInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) {
var vSlice []interface{}
if v != nil {
- if tmp1, ok := v.([]interface{}); ok {
- vSlice = tmp1
- } else {
- vSlice = []interface{}{v}
- }
+ vSlice = graphql.CoerceList(v)
}
var err error
res := make([]int, len(vSlice))
@@ 8515,6 9325,12 @@ func (ec *executionContext) marshalNInt2ᚕintᚄ(ctx context.Context, sel ast.S
ret[i] = ec.marshalNInt2int(ctx, sel, v[i])
}
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 8556,6 9372,13 @@ func (ec *executionContext) marshalNJob2ᚕᚖgitᚗsrᚗhtᚋאsircmpwnᚋbuild
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 8651,6 9474,13 @@ func (ec *executionContext) marshalNSecret2ᚕgitᚗsrᚗhtᚋאsircmpwnᚋbuild
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 8696,11 9526,7 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S
func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
var vSlice []interface{}
if v != nil {
- if tmp1, ok := v.([]interface{}); ok {
- vSlice = tmp1
- } else {
- vSlice = []interface{}{v}
- }
+ vSlice = graphql.CoerceList(v)
}
var err error
res := make([]string, len(vSlice))
@@ 8720,6 9546,12 @@ func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
}
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 8757,6 9589,13 @@ func (ec *executionContext) marshalNTask2ᚕᚖgitᚗsrᚗhtᚋאsircmpwnᚋbuil
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 8839,6 9678,13 @@ func (ec *executionContext) marshalNTrigger2ᚕgitᚗsrᚗhtᚋאsircmpwnᚋbuil
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 8933,6 9779,13 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 8954,11 9807,7 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte
func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
var vSlice []interface{}
if v != nil {
- if tmp1, ok := v.([]interface{}); ok {
- vSlice = tmp1
- } else {
- vSlice = []interface{}{v}
- }
+ vSlice = graphql.CoerceList(v)
}
var err error
res := make([]string, len(vSlice))
@@ 9006,6 9855,13 @@ func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 9055,6 9911,13 @@ func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋg
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 9096,6 9959,13 @@ func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 9137,7 10007,8 @@ func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interf
}
func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
- return graphql.MarshalBoolean(v)
+ res := graphql.MarshalBoolean(v)
+ return res
}
func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
@@ 9152,7 10023,8 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast
if v == nil {
return graphql.Null
}
- return graphql.MarshalBoolean(*v)
+ res := graphql.MarshalBoolean(*v)
+ return res
}
func (ec *executionContext) unmarshalOCursor2ᚖgitᚗsrᚗhtᚋאsircmpwnᚋcoreᚑgoᚋmodelᚐCursor(ctx context.Context, v interface{}) (*model1.Cursor, error) {
@@ 9237,6 10109,13 @@ func (ec *executionContext) marshalOSecret2ᚕgitᚗsrᚗhtᚋאsircmpwnᚋbuild
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 9246,7 10125,8 @@ func (ec *executionContext) unmarshalOString2string(ctx context.Context, v inter
}
func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
- return graphql.MarshalString(v)
+ res := graphql.MarshalString(v)
+ return res
}
func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
@@ 9255,11 10135,7 @@ func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v
}
var vSlice []interface{}
if v != nil {
- if tmp1, ok := v.([]interface{}); ok {
- vSlice = tmp1
- } else {
- vSlice = []interface{}{v}
- }
+ vSlice = graphql.CoerceList(v)
}
var err error
res := make([]string, len(vSlice))
@@ 9282,6 10158,12 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
}
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 9297,7 10179,8 @@ func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel as
if v == nil {
return graphql.Null
}
- return graphql.MarshalString(*v)
+ res := graphql.MarshalString(*v)
+ return res
}
func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) {
@@ 9312,7 10195,8 @@ func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel
if v == nil {
return graphql.Null
}
- return graphql.MarshalTime(*v)
+ res := graphql.MarshalTime(*v)
+ return res
}
func (ec *executionContext) unmarshalOTriggerInput2ᚕᚖgitᚗsrᚗhtᚋאsircmpwnᚋbuildsᚗsrᚗhtᚋapiᚋgraphᚋmodelᚐTriggerInputᚄ(ctx context.Context, v interface{}) ([]*model.TriggerInput, error) {
@@ 9321,11 10205,7 @@ func (ec *executionContext) unmarshalOTriggerInput2ᚕᚖgitᚗsrᚗhtᚋאsircm
}
var vSlice []interface{}
if v != nil {
- if tmp1, ok := v.([]interface{}); ok {
- vSlice = tmp1
- } else {
- vSlice = []interface{}{v}
- }
+ vSlice = graphql.CoerceList(v)
}
var err error
res := make([]*model.TriggerInput, len(vSlice))
@@ 9391,6 10271,13 @@ func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgq
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 9431,6 10318,13 @@ func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgen
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 9471,6 10365,13 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}
@@ 9518,6 10419,13 @@ func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen
}
wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
return ret
}