summaryrefslogtreecommitdiffstatshomepage
path: root/api/graphql/graph/bug_operations.generated.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/graphql/graph/bug_operations.generated.go')
-rw-r--r--api/graphql/graph/bug_operations.generated.go111
1 files changed, 39 insertions, 72 deletions
diff --git a/api/graphql/graph/bug_operations.generated.go b/api/graphql/graph/bug_operations.generated.go
index 9124bfed1..d9ed50db7 100644
--- a/api/graphql/graph/bug_operations.generated.go
+++ b/api/graphql/graph/bug_operations.generated.go
@@ -29,8 +29,6 @@ type BugCreateOperationResolver interface {
}
type BugEditCommentOperationResolver interface {
Author(ctx context.Context, obj *bug.EditCommentOperation) (models.IdentityWrapper, error)
-
- Target(ctx context.Context, obj *bug.EditCommentOperation) (string, error)
}
type BugLabelChangeOperationResolver interface {
Author(ctx context.Context, obj *bug.LabelChangeOperation) (models.IdentityWrapper, error)
@@ -66,7 +64,7 @@ func (ec *executionContext) _BugAddCommentOperation_id(ctx context.Context, fiel
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Id(), nil
})
@@ -110,7 +108,7 @@ func (ec *executionContext) _BugAddCommentOperation_author(ctx context.Context,
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.BugAddCommentOperation().Author(rctx, obj)
})
@@ -172,7 +170,7 @@ func (ec *executionContext) _BugAddCommentOperation_date(ctx context.Context, fi
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Time(), nil
})
@@ -216,7 +214,7 @@ func (ec *executionContext) _BugAddCommentOperation_message(ctx context.Context,
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
@@ -260,7 +258,7 @@ func (ec *executionContext) _BugAddCommentOperation_files(ctx context.Context, f
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
@@ -304,7 +302,7 @@ func (ec *executionContext) _BugCreateOperation_id(ctx context.Context, field gr
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Id(), nil
})
@@ -348,7 +346,7 @@ func (ec *executionContext) _BugCreateOperation_author(ctx context.Context, fiel
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.BugCreateOperation().Author(rctx, obj)
})
@@ -410,7 +408,7 @@ func (ec *executionContext) _BugCreateOperation_date(ctx context.Context, field
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Time(), nil
})
@@ -454,7 +452,7 @@ func (ec *executionContext) _BugCreateOperation_title(ctx context.Context, field
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
@@ -498,7 +496,7 @@ func (ec *executionContext) _BugCreateOperation_message(ctx context.Context, fie
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
@@ -542,7 +540,7 @@ func (ec *executionContext) _BugCreateOperation_files(ctx context.Context, field
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
@@ -586,7 +584,7 @@ func (ec *executionContext) _BugEditCommentOperation_id(ctx context.Context, fie
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Id(), nil
})
@@ -630,7 +628,7 @@ func (ec *executionContext) _BugEditCommentOperation_author(ctx context.Context,
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.BugEditCommentOperation().Author(rctx, obj)
})
@@ -692,7 +690,7 @@ func (ec *executionContext) _BugEditCommentOperation_date(ctx context.Context, f
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Time(), nil
})
@@ -736,9 +734,9 @@ func (ec *executionContext) _BugEditCommentOperation_target(ctx context.Context,
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.BugEditCommentOperation().Target(rctx, obj)
+ return obj.Target, nil
})
if err != nil {
ec.Error(ctx, err)
@@ -750,17 +748,17 @@ func (ec *executionContext) _BugEditCommentOperation_target(ctx context.Context,
}
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(entity.Id)
fc.Result = res
- return ec.marshalNString2string(ctx, field.Selections, res)
+ return ec.marshalNString2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐId(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_BugEditCommentOperation_target(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "BugEditCommentOperation",
Field: field,
- IsMethod: true,
- IsResolver: true,
+ IsMethod: false,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type String does not have child fields")
},
@@ -780,7 +778,7 @@ func (ec *executionContext) _BugEditCommentOperation_message(ctx context.Context
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
@@ -824,7 +822,7 @@ func (ec *executionContext) _BugEditCommentOperation_files(ctx context.Context,
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
@@ -868,7 +866,7 @@ func (ec *executionContext) _BugLabelChangeOperation_id(ctx context.Context, fie
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Id(), nil
})
@@ -912,7 +910,7 @@ func (ec *executionContext) _BugLabelChangeOperation_author(ctx context.Context,
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.BugLabelChangeOperation().Author(rctx, obj)
})
@@ -974,7 +972,7 @@ func (ec *executionContext) _BugLabelChangeOperation_date(ctx context.Context, f
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Time(), nil
})
@@ -1018,7 +1016,7 @@ func (ec *executionContext) _BugLabelChangeOperation_added(ctx context.Context,
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Added, nil
})
@@ -1068,7 +1066,7 @@ func (ec *executionContext) _BugLabelChangeOperation_removed(ctx context.Context
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Removed, nil
})
@@ -1118,7 +1116,7 @@ func (ec *executionContext) _BugSetStatusOperation_id(ctx context.Context, field
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Id(), nil
})
@@ -1162,7 +1160,7 @@ func (ec *executionContext) _BugSetStatusOperation_author(ctx context.Context, f
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.BugSetStatusOperation().Author(rctx, obj)
})
@@ -1224,7 +1222,7 @@ func (ec *executionContext) _BugSetStatusOperation_date(ctx context.Context, fie
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Time(), nil
})
@@ -1268,7 +1266,7 @@ func (ec *executionContext) _BugSetStatusOperation_status(ctx context.Context, f
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Status, nil
})
@@ -1312,7 +1310,7 @@ func (ec *executionContext) _BugSetTitleOperation_id(ctx context.Context, field
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Id(), nil
})
@@ -1356,7 +1354,7 @@ func (ec *executionContext) _BugSetTitleOperation_author(ctx context.Context, fi
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.BugSetTitleOperation().Author(rctx, obj)
})
@@ -1418,7 +1416,7 @@ func (ec *executionContext) _BugSetTitleOperation_date(ctx context.Context, fiel
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Time(), nil
})
@@ -1462,7 +1460,7 @@ func (ec *executionContext) _BugSetTitleOperation_title(ctx context.Context, fie
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
@@ -1506,7 +1504,7 @@ func (ec *executionContext) _BugSetTitleOperation_was(ctx context.Context, field
ret = graphql.Null
}
}()
- resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
+ resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
ctx = rctx // use context from middleware stack in children
return obj.Was, nil
})
@@ -1793,41 +1791,10 @@ func (ec *executionContext) _BugEditCommentOperation(ctx context.Context, sel as
atomic.AddUint32(&out.Invalids, 1)
}
case "target":
- field := field
-
- innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
- defer func() {
- if r := recover(); r != nil {
- ec.Error(ctx, ec.Recover(ctx, r))
- }
- }()
- res = ec._BugEditCommentOperation_target(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- return res
- }
-
- if field.Deferrable != nil {
- dfs, ok := deferred[field.Deferrable.Label]
- di := 0
- if ok {
- dfs.AddField(field)
- di = len(dfs.Values) - 1
- } else {
- dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
- deferred[field.Deferrable.Label] = dfs
- }
- dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
- return innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugEditCommentOperation_target(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "message":
out.Values[i] = ec._BugEditCommentOperation_message(ctx, field, obj)
if out.Values[i] == graphql.Null {