1// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
2
3package graph
4
5import (
6 "bytes"
7 "context"
8 "errors"
9 "sync/atomic"
10
11 "github.com/99designs/gqlgen/graphql"
12 "github.com/99designs/gqlgen/graphql/introspection"
13 "github.com/git-bug/git-bug/api/graphql/models"
14 gqlparser "github.com/vektah/gqlparser/v2"
15 "github.com/vektah/gqlparser/v2/ast"
16)
17
18// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
19func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
20 return &executableSchema{
21 schema: cfg.Schema,
22 resolvers: cfg.Resolvers,
23 directives: cfg.Directives,
24 complexity: cfg.Complexity,
25 }
26}
27
28type Config struct {
29 Schema *ast.Schema
30 Resolvers ResolverRoot
31 Directives DirectiveRoot
32 Complexity ComplexityRoot
33}
34
35type ResolverRoot interface {
36 Bug() BugResolver
37 BugAddCommentOperation() BugAddCommentOperationResolver
38 BugAddCommentTimelineItem() BugAddCommentTimelineItemResolver
39 BugComment() BugCommentResolver
40 BugCommentHistoryStep() BugCommentHistoryStepResolver
41 BugCreateOperation() BugCreateOperationResolver
42 BugCreateTimelineItem() BugCreateTimelineItemResolver
43 BugEditCommentOperation() BugEditCommentOperationResolver
44 BugLabelChangeOperation() BugLabelChangeOperationResolver
45 BugLabelChangeTimelineItem() BugLabelChangeTimelineItemResolver
46 BugSetStatusOperation() BugSetStatusOperationResolver
47 BugSetStatusTimelineItem() BugSetStatusTimelineItemResolver
48 BugSetTitleOperation() BugSetTitleOperationResolver
49 BugSetTitleTimelineItem() BugSetTitleTimelineItemResolver
50 Color() ColorResolver
51 Identity() IdentityResolver
52 Label() LabelResolver
53 Mutation() MutationResolver
54 Query() QueryResolver
55 Repository() RepositoryResolver
56 Subscription() SubscriptionResolver
57}
58
59type DirectiveRoot struct {
60}
61
62type ComplexityRoot struct {
63 Bug struct {
64 Actors func(childComplexity int, after *string, before *string, first *int, last *int) int
65 Author func(childComplexity int) int
66 Comments func(childComplexity int, after *string, before *string, first *int, last *int) int
67 CreatedAt func(childComplexity int) int
68 HumanID func(childComplexity int) int
69 Id func(childComplexity int) int
70 Labels func(childComplexity int) int
71 LastEdit func(childComplexity int) int
72 Operations func(childComplexity int, after *string, before *string, first *int, last *int) int
73 Participants func(childComplexity int, after *string, before *string, first *int, last *int) int
74 Status func(childComplexity int) int
75 Timeline func(childComplexity int, after *string, before *string, first *int, last *int) int
76 Title func(childComplexity int) int
77 }
78
79 BugAddCommentAndClosePayload struct {
80 Bug func(childComplexity int) int
81 ClientMutationID func(childComplexity int) int
82 CommentOperation func(childComplexity int) int
83 StatusOperation func(childComplexity int) int
84 }
85
86 BugAddCommentAndReopenPayload struct {
87 Bug func(childComplexity int) int
88 ClientMutationID func(childComplexity int) int
89 CommentOperation func(childComplexity int) int
90 StatusOperation func(childComplexity int) int
91 }
92
93 BugAddCommentOperation struct {
94 Author func(childComplexity int) int
95 Files func(childComplexity int) int
96 Id func(childComplexity int) int
97 Message func(childComplexity int) int
98 Time func(childComplexity int) int
99 }
100
101 BugAddCommentPayload struct {
102 Bug func(childComplexity int) int
103 ClientMutationID func(childComplexity int) int
104 Operation func(childComplexity int) int
105 }
106
107 BugAddCommentTimelineItem struct {
108 Author func(childComplexity int) int
109 CombinedId func(childComplexity int) int
110 CreatedAt func(childComplexity int) int
111 Edited func(childComplexity int) int
112 Files func(childComplexity int) int
113 History func(childComplexity int) int
114 LastEdit func(childComplexity int) int
115 Message func(childComplexity int) int
116 MessageIsEmpty func(childComplexity int) int
117 }
118
119 BugChangeLabelPayload struct {
120 Bug func(childComplexity int) int
121 ClientMutationID func(childComplexity int) int
122 Operation func(childComplexity int) int
123 Results func(childComplexity int) int
124 }
125
126 BugComment struct {
127 Author func(childComplexity int) int
128 CombinedId func(childComplexity int) int
129 Files func(childComplexity int) int
130 Message func(childComplexity int) int
131 }
132
133 BugCommentConnection struct {
134 Edges func(childComplexity int) int
135 Nodes func(childComplexity int) int
136 PageInfo func(childComplexity int) int
137 TotalCount func(childComplexity int) int
138 }
139
140 BugCommentEdge struct {
141 Cursor func(childComplexity int) int
142 Node func(childComplexity int) int
143 }
144
145 BugCommentHistoryStep struct {
146 Date func(childComplexity int) int
147 Message func(childComplexity int) int
148 }
149
150 BugConnection struct {
151 Edges func(childComplexity int) int
152 Nodes func(childComplexity int) int
153 PageInfo func(childComplexity int) int
154 TotalCount func(childComplexity int) int
155 }
156
157 BugCreateOperation struct {
158 Author func(childComplexity int) int
159 Files func(childComplexity int) int
160 Id func(childComplexity int) int
161 Message func(childComplexity int) int
162 Time func(childComplexity int) int
163 Title func(childComplexity int) int
164 }
165
166 BugCreatePayload struct {
167 Bug func(childComplexity int) int
168 ClientMutationID func(childComplexity int) int
169 Operation func(childComplexity int) int
170 }
171
172 BugCreateTimelineItem struct {
173 Author func(childComplexity int) int
174 CombinedId func(childComplexity int) int
175 CreatedAt func(childComplexity int) int
176 Edited func(childComplexity int) int
177 Files func(childComplexity int) int
178 History func(childComplexity int) int
179 LastEdit func(childComplexity int) int
180 Message func(childComplexity int) int
181 MessageIsEmpty func(childComplexity int) int
182 }
183
184 BugEdge struct {
185 Cursor func(childComplexity int) int
186 Node func(childComplexity int) int
187 }
188
189 BugEditCommentOperation struct {
190 Author func(childComplexity int) int
191 Files func(childComplexity int) int
192 Id func(childComplexity int) int
193 Message func(childComplexity int) int
194 Target func(childComplexity int) int
195 Time func(childComplexity int) int
196 }
197
198 BugEditCommentPayload struct {
199 Bug func(childComplexity int) int
200 ClientMutationID func(childComplexity int) int
201 Operation func(childComplexity int) int
202 }
203
204 BugEvent struct {
205 Bug func(childComplexity int) int
206 Type func(childComplexity int) int
207 }
208
209 BugLabelChangeOperation struct {
210 Added func(childComplexity int) int
211 Author func(childComplexity int) int
212 Id func(childComplexity int) int
213 Removed func(childComplexity int) int
214 Time func(childComplexity int) int
215 }
216
217 BugLabelChangeTimelineItem struct {
218 Added func(childComplexity int) int
219 Author func(childComplexity int) int
220 CombinedId func(childComplexity int) int
221 Date func(childComplexity int) int
222 Removed func(childComplexity int) int
223 }
224
225 BugSetStatusOperation struct {
226 Author func(childComplexity int) int
227 Id func(childComplexity int) int
228 Status func(childComplexity int) int
229 Time func(childComplexity int) int
230 }
231
232 BugSetStatusTimelineItem struct {
233 Author func(childComplexity int) int
234 CombinedId func(childComplexity int) int
235 Date func(childComplexity int) int
236 Status func(childComplexity int) int
237 }
238
239 BugSetTitleOperation struct {
240 Author func(childComplexity int) int
241 Id func(childComplexity int) int
242 Time func(childComplexity int) int
243 Title func(childComplexity int) int
244 Was func(childComplexity int) int
245 }
246
247 BugSetTitlePayload struct {
248 Bug func(childComplexity int) int
249 ClientMutationID func(childComplexity int) int
250 Operation func(childComplexity int) int
251 }
252
253 BugSetTitleTimelineItem struct {
254 Author func(childComplexity int) int
255 CombinedId func(childComplexity int) int
256 Date func(childComplexity int) int
257 Title func(childComplexity int) int
258 Was func(childComplexity int) int
259 }
260
261 BugStatusClosePayload struct {
262 Bug func(childComplexity int) int
263 ClientMutationID func(childComplexity int) int
264 Operation func(childComplexity int) int
265 }
266
267 BugStatusOpenPayload struct {
268 Bug func(childComplexity int) int
269 ClientMutationID func(childComplexity int) int
270 Operation func(childComplexity int) int
271 }
272
273 BugTimelineItemConnection struct {
274 Edges func(childComplexity int) int
275 Nodes func(childComplexity int) int
276 PageInfo func(childComplexity int) int
277 TotalCount func(childComplexity int) int
278 }
279
280 BugTimelineItemEdge struct {
281 Cursor func(childComplexity int) int
282 Node func(childComplexity int) int
283 }
284
285 Color struct {
286 B func(childComplexity int) int
287 G func(childComplexity int) int
288 R func(childComplexity int) int
289 }
290
291 EntityEvent struct {
292 Entity func(childComplexity int) int
293 Type func(childComplexity int) int
294 }
295
296 Identity struct {
297 AvatarUrl func(childComplexity int) int
298 DisplayName func(childComplexity int) int
299 Email func(childComplexity int) int
300 HumanID func(childComplexity int) int
301 Id func(childComplexity int) int
302 IsProtected func(childComplexity int) int
303 Login func(childComplexity int) int
304 Name func(childComplexity int) int
305 }
306
307 IdentityConnection struct {
308 Edges func(childComplexity int) int
309 Nodes func(childComplexity int) int
310 PageInfo func(childComplexity int) int
311 TotalCount func(childComplexity int) int
312 }
313
314 IdentityEdge struct {
315 Cursor func(childComplexity int) int
316 Node func(childComplexity int) int
317 }
318
319 IdentityEvent struct {
320 Identity func(childComplexity int) int
321 Type func(childComplexity int) int
322 }
323
324 Label struct {
325 Color func(childComplexity int) int
326 Name func(childComplexity int) int
327 }
328
329 LabelChangeResult struct {
330 Label func(childComplexity int) int
331 Status func(childComplexity int) int
332 }
333
334 LabelConnection struct {
335 Edges func(childComplexity int) int
336 Nodes func(childComplexity int) int
337 PageInfo func(childComplexity int) int
338 TotalCount func(childComplexity int) int
339 }
340
341 LabelEdge struct {
342 Cursor func(childComplexity int) int
343 Node func(childComplexity int) int
344 }
345
346 Mutation struct {
347 BugAddComment func(childComplexity int, input models.BugAddCommentInput) int
348 BugAddCommentAndClose func(childComplexity int, input models.BugAddCommentAndCloseInput) int
349 BugAddCommentAndReopen func(childComplexity int, input models.BugAddCommentAndReopenInput) int
350 BugChangeLabels func(childComplexity int, input *models.BugChangeLabelInput) int
351 BugCreate func(childComplexity int, input models.BugCreateInput) int
352 BugEditComment func(childComplexity int, input models.BugEditCommentInput) int
353 BugSetTitle func(childComplexity int, input models.BugSetTitleInput) int
354 BugStatusClose func(childComplexity int, input models.BugStatusCloseInput) int
355 BugStatusOpen func(childComplexity int, input models.BugStatusOpenInput) int
356 }
357
358 OperationConnection struct {
359 Edges func(childComplexity int) int
360 Nodes func(childComplexity int) int
361 PageInfo func(childComplexity int) int
362 TotalCount func(childComplexity int) int
363 }
364
365 OperationEdge struct {
366 Cursor func(childComplexity int) int
367 Node func(childComplexity int) int
368 }
369
370 PageInfo struct {
371 EndCursor func(childComplexity int) int
372 HasNextPage func(childComplexity int) int
373 HasPreviousPage func(childComplexity int) int
374 StartCursor func(childComplexity int) int
375 }
376
377 Query struct {
378 Repository func(childComplexity int, ref *string) int
379 }
380
381 Repository struct {
382 AllBugs func(childComplexity int, after *string, before *string, first *int, last *int, query *string) int
383 AllIdentities func(childComplexity int, after *string, before *string, first *int, last *int) int
384 Bug func(childComplexity int, prefix string) int
385 Identity func(childComplexity int, prefix string) int
386 Name func(childComplexity int) int
387 UserIdentity func(childComplexity int) int
388 ValidLabels func(childComplexity int, after *string, before *string, first *int, last *int) int
389 }
390
391 Subscription struct {
392 AllEvents func(childComplexity int, repoRef *string, typename *string) int
393 BugEvents func(childComplexity int, repoRef *string) int
394 IdentityEvents func(childComplexity int, repoRef *string) int
395 }
396}
397
398type executableSchema struct {
399 schema *ast.Schema
400 resolvers ResolverRoot
401 directives DirectiveRoot
402 complexity ComplexityRoot
403}
404
405func (e *executableSchema) Schema() *ast.Schema {
406 if e.schema != nil {
407 return e.schema
408 }
409 return parsedSchema
410}
411
412func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
413 ec := executionContext{nil, e, 0, 0, nil}
414 _ = ec
415 switch typeName + "." + field {
416
417 case "Bug.actors":
418 if e.complexity.Bug.Actors == nil {
419 break
420 }
421
422 args, err := ec.field_Bug_actors_args(ctx, rawArgs)
423 if err != nil {
424 return 0, false
425 }
426
427 return e.complexity.Bug.Actors(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
428
429 case "Bug.author":
430 if e.complexity.Bug.Author == nil {
431 break
432 }
433
434 return e.complexity.Bug.Author(childComplexity), true
435
436 case "Bug.comments":
437 if e.complexity.Bug.Comments == nil {
438 break
439 }
440
441 args, err := ec.field_Bug_comments_args(ctx, rawArgs)
442 if err != nil {
443 return 0, false
444 }
445
446 return e.complexity.Bug.Comments(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
447
448 case "Bug.createdAt":
449 if e.complexity.Bug.CreatedAt == nil {
450 break
451 }
452
453 return e.complexity.Bug.CreatedAt(childComplexity), true
454
455 case "Bug.humanId":
456 if e.complexity.Bug.HumanID == nil {
457 break
458 }
459
460 return e.complexity.Bug.HumanID(childComplexity), true
461
462 case "Bug.id":
463 if e.complexity.Bug.Id == nil {
464 break
465 }
466
467 return e.complexity.Bug.Id(childComplexity), true
468
469 case "Bug.labels":
470 if e.complexity.Bug.Labels == nil {
471 break
472 }
473
474 return e.complexity.Bug.Labels(childComplexity), true
475
476 case "Bug.lastEdit":
477 if e.complexity.Bug.LastEdit == nil {
478 break
479 }
480
481 return e.complexity.Bug.LastEdit(childComplexity), true
482
483 case "Bug.operations":
484 if e.complexity.Bug.Operations == nil {
485 break
486 }
487
488 args, err := ec.field_Bug_operations_args(ctx, rawArgs)
489 if err != nil {
490 return 0, false
491 }
492
493 return e.complexity.Bug.Operations(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
494
495 case "Bug.participants":
496 if e.complexity.Bug.Participants == nil {
497 break
498 }
499
500 args, err := ec.field_Bug_participants_args(ctx, rawArgs)
501 if err != nil {
502 return 0, false
503 }
504
505 return e.complexity.Bug.Participants(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
506
507 case "Bug.status":
508 if e.complexity.Bug.Status == nil {
509 break
510 }
511
512 return e.complexity.Bug.Status(childComplexity), true
513
514 case "Bug.timeline":
515 if e.complexity.Bug.Timeline == nil {
516 break
517 }
518
519 args, err := ec.field_Bug_timeline_args(ctx, rawArgs)
520 if err != nil {
521 return 0, false
522 }
523
524 return e.complexity.Bug.Timeline(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
525
526 case "Bug.title":
527 if e.complexity.Bug.Title == nil {
528 break
529 }
530
531 return e.complexity.Bug.Title(childComplexity), true
532
533 case "BugAddCommentAndClosePayload.bug":
534 if e.complexity.BugAddCommentAndClosePayload.Bug == nil {
535 break
536 }
537
538 return e.complexity.BugAddCommentAndClosePayload.Bug(childComplexity), true
539
540 case "BugAddCommentAndClosePayload.clientMutationId":
541 if e.complexity.BugAddCommentAndClosePayload.ClientMutationID == nil {
542 break
543 }
544
545 return e.complexity.BugAddCommentAndClosePayload.ClientMutationID(childComplexity), true
546
547 case "BugAddCommentAndClosePayload.commentOperation":
548 if e.complexity.BugAddCommentAndClosePayload.CommentOperation == nil {
549 break
550 }
551
552 return e.complexity.BugAddCommentAndClosePayload.CommentOperation(childComplexity), true
553
554 case "BugAddCommentAndClosePayload.statusOperation":
555 if e.complexity.BugAddCommentAndClosePayload.StatusOperation == nil {
556 break
557 }
558
559 return e.complexity.BugAddCommentAndClosePayload.StatusOperation(childComplexity), true
560
561 case "BugAddCommentAndReopenPayload.bug":
562 if e.complexity.BugAddCommentAndReopenPayload.Bug == nil {
563 break
564 }
565
566 return e.complexity.BugAddCommentAndReopenPayload.Bug(childComplexity), true
567
568 case "BugAddCommentAndReopenPayload.clientMutationId":
569 if e.complexity.BugAddCommentAndReopenPayload.ClientMutationID == nil {
570 break
571 }
572
573 return e.complexity.BugAddCommentAndReopenPayload.ClientMutationID(childComplexity), true
574
575 case "BugAddCommentAndReopenPayload.commentOperation":
576 if e.complexity.BugAddCommentAndReopenPayload.CommentOperation == nil {
577 break
578 }
579
580 return e.complexity.BugAddCommentAndReopenPayload.CommentOperation(childComplexity), true
581
582 case "BugAddCommentAndReopenPayload.statusOperation":
583 if e.complexity.BugAddCommentAndReopenPayload.StatusOperation == nil {
584 break
585 }
586
587 return e.complexity.BugAddCommentAndReopenPayload.StatusOperation(childComplexity), true
588
589 case "BugAddCommentOperation.author":
590 if e.complexity.BugAddCommentOperation.Author == nil {
591 break
592 }
593
594 return e.complexity.BugAddCommentOperation.Author(childComplexity), true
595
596 case "BugAddCommentOperation.files":
597 if e.complexity.BugAddCommentOperation.Files == nil {
598 break
599 }
600
601 return e.complexity.BugAddCommentOperation.Files(childComplexity), true
602
603 case "BugAddCommentOperation.id":
604 if e.complexity.BugAddCommentOperation.Id == nil {
605 break
606 }
607
608 return e.complexity.BugAddCommentOperation.Id(childComplexity), true
609
610 case "BugAddCommentOperation.message":
611 if e.complexity.BugAddCommentOperation.Message == nil {
612 break
613 }
614
615 return e.complexity.BugAddCommentOperation.Message(childComplexity), true
616
617 case "BugAddCommentOperation.date":
618 if e.complexity.BugAddCommentOperation.Time == nil {
619 break
620 }
621
622 return e.complexity.BugAddCommentOperation.Time(childComplexity), true
623
624 case "BugAddCommentPayload.bug":
625 if e.complexity.BugAddCommentPayload.Bug == nil {
626 break
627 }
628
629 return e.complexity.BugAddCommentPayload.Bug(childComplexity), true
630
631 case "BugAddCommentPayload.clientMutationId":
632 if e.complexity.BugAddCommentPayload.ClientMutationID == nil {
633 break
634 }
635
636 return e.complexity.BugAddCommentPayload.ClientMutationID(childComplexity), true
637
638 case "BugAddCommentPayload.operation":
639 if e.complexity.BugAddCommentPayload.Operation == nil {
640 break
641 }
642
643 return e.complexity.BugAddCommentPayload.Operation(childComplexity), true
644
645 case "BugAddCommentTimelineItem.author":
646 if e.complexity.BugAddCommentTimelineItem.Author == nil {
647 break
648 }
649
650 return e.complexity.BugAddCommentTimelineItem.Author(childComplexity), true
651
652 case "BugAddCommentTimelineItem.id":
653 if e.complexity.BugAddCommentTimelineItem.CombinedId == nil {
654 break
655 }
656
657 return e.complexity.BugAddCommentTimelineItem.CombinedId(childComplexity), true
658
659 case "BugAddCommentTimelineItem.createdAt":
660 if e.complexity.BugAddCommentTimelineItem.CreatedAt == nil {
661 break
662 }
663
664 return e.complexity.BugAddCommentTimelineItem.CreatedAt(childComplexity), true
665
666 case "BugAddCommentTimelineItem.edited":
667 if e.complexity.BugAddCommentTimelineItem.Edited == nil {
668 break
669 }
670
671 return e.complexity.BugAddCommentTimelineItem.Edited(childComplexity), true
672
673 case "BugAddCommentTimelineItem.files":
674 if e.complexity.BugAddCommentTimelineItem.Files == nil {
675 break
676 }
677
678 return e.complexity.BugAddCommentTimelineItem.Files(childComplexity), true
679
680 case "BugAddCommentTimelineItem.history":
681 if e.complexity.BugAddCommentTimelineItem.History == nil {
682 break
683 }
684
685 return e.complexity.BugAddCommentTimelineItem.History(childComplexity), true
686
687 case "BugAddCommentTimelineItem.lastEdit":
688 if e.complexity.BugAddCommentTimelineItem.LastEdit == nil {
689 break
690 }
691
692 return e.complexity.BugAddCommentTimelineItem.LastEdit(childComplexity), true
693
694 case "BugAddCommentTimelineItem.message":
695 if e.complexity.BugAddCommentTimelineItem.Message == nil {
696 break
697 }
698
699 return e.complexity.BugAddCommentTimelineItem.Message(childComplexity), true
700
701 case "BugAddCommentTimelineItem.messageIsEmpty":
702 if e.complexity.BugAddCommentTimelineItem.MessageIsEmpty == nil {
703 break
704 }
705
706 return e.complexity.BugAddCommentTimelineItem.MessageIsEmpty(childComplexity), true
707
708 case "BugChangeLabelPayload.bug":
709 if e.complexity.BugChangeLabelPayload.Bug == nil {
710 break
711 }
712
713 return e.complexity.BugChangeLabelPayload.Bug(childComplexity), true
714
715 case "BugChangeLabelPayload.clientMutationId":
716 if e.complexity.BugChangeLabelPayload.ClientMutationID == nil {
717 break
718 }
719
720 return e.complexity.BugChangeLabelPayload.ClientMutationID(childComplexity), true
721
722 case "BugChangeLabelPayload.operation":
723 if e.complexity.BugChangeLabelPayload.Operation == nil {
724 break
725 }
726
727 return e.complexity.BugChangeLabelPayload.Operation(childComplexity), true
728
729 case "BugChangeLabelPayload.results":
730 if e.complexity.BugChangeLabelPayload.Results == nil {
731 break
732 }
733
734 return e.complexity.BugChangeLabelPayload.Results(childComplexity), true
735
736 case "BugComment.author":
737 if e.complexity.BugComment.Author == nil {
738 break
739 }
740
741 return e.complexity.BugComment.Author(childComplexity), true
742
743 case "BugComment.id":
744 if e.complexity.BugComment.CombinedId == nil {
745 break
746 }
747
748 return e.complexity.BugComment.CombinedId(childComplexity), true
749
750 case "BugComment.files":
751 if e.complexity.BugComment.Files == nil {
752 break
753 }
754
755 return e.complexity.BugComment.Files(childComplexity), true
756
757 case "BugComment.message":
758 if e.complexity.BugComment.Message == nil {
759 break
760 }
761
762 return e.complexity.BugComment.Message(childComplexity), true
763
764 case "BugCommentConnection.edges":
765 if e.complexity.BugCommentConnection.Edges == nil {
766 break
767 }
768
769 return e.complexity.BugCommentConnection.Edges(childComplexity), true
770
771 case "BugCommentConnection.nodes":
772 if e.complexity.BugCommentConnection.Nodes == nil {
773 break
774 }
775
776 return e.complexity.BugCommentConnection.Nodes(childComplexity), true
777
778 case "BugCommentConnection.pageInfo":
779 if e.complexity.BugCommentConnection.PageInfo == nil {
780 break
781 }
782
783 return e.complexity.BugCommentConnection.PageInfo(childComplexity), true
784
785 case "BugCommentConnection.totalCount":
786 if e.complexity.BugCommentConnection.TotalCount == nil {
787 break
788 }
789
790 return e.complexity.BugCommentConnection.TotalCount(childComplexity), true
791
792 case "BugCommentEdge.cursor":
793 if e.complexity.BugCommentEdge.Cursor == nil {
794 break
795 }
796
797 return e.complexity.BugCommentEdge.Cursor(childComplexity), true
798
799 case "BugCommentEdge.node":
800 if e.complexity.BugCommentEdge.Node == nil {
801 break
802 }
803
804 return e.complexity.BugCommentEdge.Node(childComplexity), true
805
806 case "BugCommentHistoryStep.date":
807 if e.complexity.BugCommentHistoryStep.Date == nil {
808 break
809 }
810
811 return e.complexity.BugCommentHistoryStep.Date(childComplexity), true
812
813 case "BugCommentHistoryStep.message":
814 if e.complexity.BugCommentHistoryStep.Message == nil {
815 break
816 }
817
818 return e.complexity.BugCommentHistoryStep.Message(childComplexity), true
819
820 case "BugConnection.edges":
821 if e.complexity.BugConnection.Edges == nil {
822 break
823 }
824
825 return e.complexity.BugConnection.Edges(childComplexity), true
826
827 case "BugConnection.nodes":
828 if e.complexity.BugConnection.Nodes == nil {
829 break
830 }
831
832 return e.complexity.BugConnection.Nodes(childComplexity), true
833
834 case "BugConnection.pageInfo":
835 if e.complexity.BugConnection.PageInfo == nil {
836 break
837 }
838
839 return e.complexity.BugConnection.PageInfo(childComplexity), true
840
841 case "BugConnection.totalCount":
842 if e.complexity.BugConnection.TotalCount == nil {
843 break
844 }
845
846 return e.complexity.BugConnection.TotalCount(childComplexity), true
847
848 case "BugCreateOperation.author":
849 if e.complexity.BugCreateOperation.Author == nil {
850 break
851 }
852
853 return e.complexity.BugCreateOperation.Author(childComplexity), true
854
855 case "BugCreateOperation.files":
856 if e.complexity.BugCreateOperation.Files == nil {
857 break
858 }
859
860 return e.complexity.BugCreateOperation.Files(childComplexity), true
861
862 case "BugCreateOperation.id":
863 if e.complexity.BugCreateOperation.Id == nil {
864 break
865 }
866
867 return e.complexity.BugCreateOperation.Id(childComplexity), true
868
869 case "BugCreateOperation.message":
870 if e.complexity.BugCreateOperation.Message == nil {
871 break
872 }
873
874 return e.complexity.BugCreateOperation.Message(childComplexity), true
875
876 case "BugCreateOperation.date":
877 if e.complexity.BugCreateOperation.Time == nil {
878 break
879 }
880
881 return e.complexity.BugCreateOperation.Time(childComplexity), true
882
883 case "BugCreateOperation.title":
884 if e.complexity.BugCreateOperation.Title == nil {
885 break
886 }
887
888 return e.complexity.BugCreateOperation.Title(childComplexity), true
889
890 case "BugCreatePayload.bug":
891 if e.complexity.BugCreatePayload.Bug == nil {
892 break
893 }
894
895 return e.complexity.BugCreatePayload.Bug(childComplexity), true
896
897 case "BugCreatePayload.clientMutationId":
898 if e.complexity.BugCreatePayload.ClientMutationID == nil {
899 break
900 }
901
902 return e.complexity.BugCreatePayload.ClientMutationID(childComplexity), true
903
904 case "BugCreatePayload.operation":
905 if e.complexity.BugCreatePayload.Operation == nil {
906 break
907 }
908
909 return e.complexity.BugCreatePayload.Operation(childComplexity), true
910
911 case "BugCreateTimelineItem.author":
912 if e.complexity.BugCreateTimelineItem.Author == nil {
913 break
914 }
915
916 return e.complexity.BugCreateTimelineItem.Author(childComplexity), true
917
918 case "BugCreateTimelineItem.id":
919 if e.complexity.BugCreateTimelineItem.CombinedId == nil {
920 break
921 }
922
923 return e.complexity.BugCreateTimelineItem.CombinedId(childComplexity), true
924
925 case "BugCreateTimelineItem.createdAt":
926 if e.complexity.BugCreateTimelineItem.CreatedAt == nil {
927 break
928 }
929
930 return e.complexity.BugCreateTimelineItem.CreatedAt(childComplexity), true
931
932 case "BugCreateTimelineItem.edited":
933 if e.complexity.BugCreateTimelineItem.Edited == nil {
934 break
935 }
936
937 return e.complexity.BugCreateTimelineItem.Edited(childComplexity), true
938
939 case "BugCreateTimelineItem.files":
940 if e.complexity.BugCreateTimelineItem.Files == nil {
941 break
942 }
943
944 return e.complexity.BugCreateTimelineItem.Files(childComplexity), true
945
946 case "BugCreateTimelineItem.history":
947 if e.complexity.BugCreateTimelineItem.History == nil {
948 break
949 }
950
951 return e.complexity.BugCreateTimelineItem.History(childComplexity), true
952
953 case "BugCreateTimelineItem.lastEdit":
954 if e.complexity.BugCreateTimelineItem.LastEdit == nil {
955 break
956 }
957
958 return e.complexity.BugCreateTimelineItem.LastEdit(childComplexity), true
959
960 case "BugCreateTimelineItem.message":
961 if e.complexity.BugCreateTimelineItem.Message == nil {
962 break
963 }
964
965 return e.complexity.BugCreateTimelineItem.Message(childComplexity), true
966
967 case "BugCreateTimelineItem.messageIsEmpty":
968 if e.complexity.BugCreateTimelineItem.MessageIsEmpty == nil {
969 break
970 }
971
972 return e.complexity.BugCreateTimelineItem.MessageIsEmpty(childComplexity), true
973
974 case "BugEdge.cursor":
975 if e.complexity.BugEdge.Cursor == nil {
976 break
977 }
978
979 return e.complexity.BugEdge.Cursor(childComplexity), true
980
981 case "BugEdge.node":
982 if e.complexity.BugEdge.Node == nil {
983 break
984 }
985
986 return e.complexity.BugEdge.Node(childComplexity), true
987
988 case "BugEditCommentOperation.author":
989 if e.complexity.BugEditCommentOperation.Author == nil {
990 break
991 }
992
993 return e.complexity.BugEditCommentOperation.Author(childComplexity), true
994
995 case "BugEditCommentOperation.files":
996 if e.complexity.BugEditCommentOperation.Files == nil {
997 break
998 }
999
1000 return e.complexity.BugEditCommentOperation.Files(childComplexity), true
1001
1002 case "BugEditCommentOperation.id":
1003 if e.complexity.BugEditCommentOperation.Id == nil {
1004 break
1005 }
1006
1007 return e.complexity.BugEditCommentOperation.Id(childComplexity), true
1008
1009 case "BugEditCommentOperation.message":
1010 if e.complexity.BugEditCommentOperation.Message == nil {
1011 break
1012 }
1013
1014 return e.complexity.BugEditCommentOperation.Message(childComplexity), true
1015
1016 case "BugEditCommentOperation.target":
1017 if e.complexity.BugEditCommentOperation.Target == nil {
1018 break
1019 }
1020
1021 return e.complexity.BugEditCommentOperation.Target(childComplexity), true
1022
1023 case "BugEditCommentOperation.date":
1024 if e.complexity.BugEditCommentOperation.Time == nil {
1025 break
1026 }
1027
1028 return e.complexity.BugEditCommentOperation.Time(childComplexity), true
1029
1030 case "BugEditCommentPayload.bug":
1031 if e.complexity.BugEditCommentPayload.Bug == nil {
1032 break
1033 }
1034
1035 return e.complexity.BugEditCommentPayload.Bug(childComplexity), true
1036
1037 case "BugEditCommentPayload.clientMutationId":
1038 if e.complexity.BugEditCommentPayload.ClientMutationID == nil {
1039 break
1040 }
1041
1042 return e.complexity.BugEditCommentPayload.ClientMutationID(childComplexity), true
1043
1044 case "BugEditCommentPayload.operation":
1045 if e.complexity.BugEditCommentPayload.Operation == nil {
1046 break
1047 }
1048
1049 return e.complexity.BugEditCommentPayload.Operation(childComplexity), true
1050
1051 case "BugEvent.bug":
1052 if e.complexity.BugEvent.Bug == nil {
1053 break
1054 }
1055
1056 return e.complexity.BugEvent.Bug(childComplexity), true
1057
1058 case "BugEvent.type":
1059 if e.complexity.BugEvent.Type == nil {
1060 break
1061 }
1062
1063 return e.complexity.BugEvent.Type(childComplexity), true
1064
1065 case "BugLabelChangeOperation.added":
1066 if e.complexity.BugLabelChangeOperation.Added == nil {
1067 break
1068 }
1069
1070 return e.complexity.BugLabelChangeOperation.Added(childComplexity), true
1071
1072 case "BugLabelChangeOperation.author":
1073 if e.complexity.BugLabelChangeOperation.Author == nil {
1074 break
1075 }
1076
1077 return e.complexity.BugLabelChangeOperation.Author(childComplexity), true
1078
1079 case "BugLabelChangeOperation.id":
1080 if e.complexity.BugLabelChangeOperation.Id == nil {
1081 break
1082 }
1083
1084 return e.complexity.BugLabelChangeOperation.Id(childComplexity), true
1085
1086 case "BugLabelChangeOperation.removed":
1087 if e.complexity.BugLabelChangeOperation.Removed == nil {
1088 break
1089 }
1090
1091 return e.complexity.BugLabelChangeOperation.Removed(childComplexity), true
1092
1093 case "BugLabelChangeOperation.date":
1094 if e.complexity.BugLabelChangeOperation.Time == nil {
1095 break
1096 }
1097
1098 return e.complexity.BugLabelChangeOperation.Time(childComplexity), true
1099
1100 case "BugLabelChangeTimelineItem.added":
1101 if e.complexity.BugLabelChangeTimelineItem.Added == nil {
1102 break
1103 }
1104
1105 return e.complexity.BugLabelChangeTimelineItem.Added(childComplexity), true
1106
1107 case "BugLabelChangeTimelineItem.author":
1108 if e.complexity.BugLabelChangeTimelineItem.Author == nil {
1109 break
1110 }
1111
1112 return e.complexity.BugLabelChangeTimelineItem.Author(childComplexity), true
1113
1114 case "BugLabelChangeTimelineItem.id":
1115 if e.complexity.BugLabelChangeTimelineItem.CombinedId == nil {
1116 break
1117 }
1118
1119 return e.complexity.BugLabelChangeTimelineItem.CombinedId(childComplexity), true
1120
1121 case "BugLabelChangeTimelineItem.date":
1122 if e.complexity.BugLabelChangeTimelineItem.Date == nil {
1123 break
1124 }
1125
1126 return e.complexity.BugLabelChangeTimelineItem.Date(childComplexity), true
1127
1128 case "BugLabelChangeTimelineItem.removed":
1129 if e.complexity.BugLabelChangeTimelineItem.Removed == nil {
1130 break
1131 }
1132
1133 return e.complexity.BugLabelChangeTimelineItem.Removed(childComplexity), true
1134
1135 case "BugSetStatusOperation.author":
1136 if e.complexity.BugSetStatusOperation.Author == nil {
1137 break
1138 }
1139
1140 return e.complexity.BugSetStatusOperation.Author(childComplexity), true
1141
1142 case "BugSetStatusOperation.id":
1143 if e.complexity.BugSetStatusOperation.Id == nil {
1144 break
1145 }
1146
1147 return e.complexity.BugSetStatusOperation.Id(childComplexity), true
1148
1149 case "BugSetStatusOperation.status":
1150 if e.complexity.BugSetStatusOperation.Status == nil {
1151 break
1152 }
1153
1154 return e.complexity.BugSetStatusOperation.Status(childComplexity), true
1155
1156 case "BugSetStatusOperation.date":
1157 if e.complexity.BugSetStatusOperation.Time == nil {
1158 break
1159 }
1160
1161 return e.complexity.BugSetStatusOperation.Time(childComplexity), true
1162
1163 case "BugSetStatusTimelineItem.author":
1164 if e.complexity.BugSetStatusTimelineItem.Author == nil {
1165 break
1166 }
1167
1168 return e.complexity.BugSetStatusTimelineItem.Author(childComplexity), true
1169
1170 case "BugSetStatusTimelineItem.id":
1171 if e.complexity.BugSetStatusTimelineItem.CombinedId == nil {
1172 break
1173 }
1174
1175 return e.complexity.BugSetStatusTimelineItem.CombinedId(childComplexity), true
1176
1177 case "BugSetStatusTimelineItem.date":
1178 if e.complexity.BugSetStatusTimelineItem.Date == nil {
1179 break
1180 }
1181
1182 return e.complexity.BugSetStatusTimelineItem.Date(childComplexity), true
1183
1184 case "BugSetStatusTimelineItem.status":
1185 if e.complexity.BugSetStatusTimelineItem.Status == nil {
1186 break
1187 }
1188
1189 return e.complexity.BugSetStatusTimelineItem.Status(childComplexity), true
1190
1191 case "BugSetTitleOperation.author":
1192 if e.complexity.BugSetTitleOperation.Author == nil {
1193 break
1194 }
1195
1196 return e.complexity.BugSetTitleOperation.Author(childComplexity), true
1197
1198 case "BugSetTitleOperation.id":
1199 if e.complexity.BugSetTitleOperation.Id == nil {
1200 break
1201 }
1202
1203 return e.complexity.BugSetTitleOperation.Id(childComplexity), true
1204
1205 case "BugSetTitleOperation.date":
1206 if e.complexity.BugSetTitleOperation.Time == nil {
1207 break
1208 }
1209
1210 return e.complexity.BugSetTitleOperation.Time(childComplexity), true
1211
1212 case "BugSetTitleOperation.title":
1213 if e.complexity.BugSetTitleOperation.Title == nil {
1214 break
1215 }
1216
1217 return e.complexity.BugSetTitleOperation.Title(childComplexity), true
1218
1219 case "BugSetTitleOperation.was":
1220 if e.complexity.BugSetTitleOperation.Was == nil {
1221 break
1222 }
1223
1224 return e.complexity.BugSetTitleOperation.Was(childComplexity), true
1225
1226 case "BugSetTitlePayload.bug":
1227 if e.complexity.BugSetTitlePayload.Bug == nil {
1228 break
1229 }
1230
1231 return e.complexity.BugSetTitlePayload.Bug(childComplexity), true
1232
1233 case "BugSetTitlePayload.clientMutationId":
1234 if e.complexity.BugSetTitlePayload.ClientMutationID == nil {
1235 break
1236 }
1237
1238 return e.complexity.BugSetTitlePayload.ClientMutationID(childComplexity), true
1239
1240 case "BugSetTitlePayload.operation":
1241 if e.complexity.BugSetTitlePayload.Operation == nil {
1242 break
1243 }
1244
1245 return e.complexity.BugSetTitlePayload.Operation(childComplexity), true
1246
1247 case "BugSetTitleTimelineItem.author":
1248 if e.complexity.BugSetTitleTimelineItem.Author == nil {
1249 break
1250 }
1251
1252 return e.complexity.BugSetTitleTimelineItem.Author(childComplexity), true
1253
1254 case "BugSetTitleTimelineItem.id":
1255 if e.complexity.BugSetTitleTimelineItem.CombinedId == nil {
1256 break
1257 }
1258
1259 return e.complexity.BugSetTitleTimelineItem.CombinedId(childComplexity), true
1260
1261 case "BugSetTitleTimelineItem.date":
1262 if e.complexity.BugSetTitleTimelineItem.Date == nil {
1263 break
1264 }
1265
1266 return e.complexity.BugSetTitleTimelineItem.Date(childComplexity), true
1267
1268 case "BugSetTitleTimelineItem.title":
1269 if e.complexity.BugSetTitleTimelineItem.Title == nil {
1270 break
1271 }
1272
1273 return e.complexity.BugSetTitleTimelineItem.Title(childComplexity), true
1274
1275 case "BugSetTitleTimelineItem.was":
1276 if e.complexity.BugSetTitleTimelineItem.Was == nil {
1277 break
1278 }
1279
1280 return e.complexity.BugSetTitleTimelineItem.Was(childComplexity), true
1281
1282 case "BugStatusClosePayload.bug":
1283 if e.complexity.BugStatusClosePayload.Bug == nil {
1284 break
1285 }
1286
1287 return e.complexity.BugStatusClosePayload.Bug(childComplexity), true
1288
1289 case "BugStatusClosePayload.clientMutationId":
1290 if e.complexity.BugStatusClosePayload.ClientMutationID == nil {
1291 break
1292 }
1293
1294 return e.complexity.BugStatusClosePayload.ClientMutationID(childComplexity), true
1295
1296 case "BugStatusClosePayload.operation":
1297 if e.complexity.BugStatusClosePayload.Operation == nil {
1298 break
1299 }
1300
1301 return e.complexity.BugStatusClosePayload.Operation(childComplexity), true
1302
1303 case "BugStatusOpenPayload.bug":
1304 if e.complexity.BugStatusOpenPayload.Bug == nil {
1305 break
1306 }
1307
1308 return e.complexity.BugStatusOpenPayload.Bug(childComplexity), true
1309
1310 case "BugStatusOpenPayload.clientMutationId":
1311 if e.complexity.BugStatusOpenPayload.ClientMutationID == nil {
1312 break
1313 }
1314
1315 return e.complexity.BugStatusOpenPayload.ClientMutationID(childComplexity), true
1316
1317 case "BugStatusOpenPayload.operation":
1318 if e.complexity.BugStatusOpenPayload.Operation == nil {
1319 break
1320 }
1321
1322 return e.complexity.BugStatusOpenPayload.Operation(childComplexity), true
1323
1324 case "BugTimelineItemConnection.edges":
1325 if e.complexity.BugTimelineItemConnection.Edges == nil {
1326 break
1327 }
1328
1329 return e.complexity.BugTimelineItemConnection.Edges(childComplexity), true
1330
1331 case "BugTimelineItemConnection.nodes":
1332 if e.complexity.BugTimelineItemConnection.Nodes == nil {
1333 break
1334 }
1335
1336 return e.complexity.BugTimelineItemConnection.Nodes(childComplexity), true
1337
1338 case "BugTimelineItemConnection.pageInfo":
1339 if e.complexity.BugTimelineItemConnection.PageInfo == nil {
1340 break
1341 }
1342
1343 return e.complexity.BugTimelineItemConnection.PageInfo(childComplexity), true
1344
1345 case "BugTimelineItemConnection.totalCount":
1346 if e.complexity.BugTimelineItemConnection.TotalCount == nil {
1347 break
1348 }
1349
1350 return e.complexity.BugTimelineItemConnection.TotalCount(childComplexity), true
1351
1352 case "BugTimelineItemEdge.cursor":
1353 if e.complexity.BugTimelineItemEdge.Cursor == nil {
1354 break
1355 }
1356
1357 return e.complexity.BugTimelineItemEdge.Cursor(childComplexity), true
1358
1359 case "BugTimelineItemEdge.node":
1360 if e.complexity.BugTimelineItemEdge.Node == nil {
1361 break
1362 }
1363
1364 return e.complexity.BugTimelineItemEdge.Node(childComplexity), true
1365
1366 case "Color.B":
1367 if e.complexity.Color.B == nil {
1368 break
1369 }
1370
1371 return e.complexity.Color.B(childComplexity), true
1372
1373 case "Color.G":
1374 if e.complexity.Color.G == nil {
1375 break
1376 }
1377
1378 return e.complexity.Color.G(childComplexity), true
1379
1380 case "Color.R":
1381 if e.complexity.Color.R == nil {
1382 break
1383 }
1384
1385 return e.complexity.Color.R(childComplexity), true
1386
1387 case "EntityEvent.entity":
1388 if e.complexity.EntityEvent.Entity == nil {
1389 break
1390 }
1391
1392 return e.complexity.EntityEvent.Entity(childComplexity), true
1393
1394 case "EntityEvent.type":
1395 if e.complexity.EntityEvent.Type == nil {
1396 break
1397 }
1398
1399 return e.complexity.EntityEvent.Type(childComplexity), true
1400
1401 case "Identity.avatarUrl":
1402 if e.complexity.Identity.AvatarUrl == nil {
1403 break
1404 }
1405
1406 return e.complexity.Identity.AvatarUrl(childComplexity), true
1407
1408 case "Identity.displayName":
1409 if e.complexity.Identity.DisplayName == nil {
1410 break
1411 }
1412
1413 return e.complexity.Identity.DisplayName(childComplexity), true
1414
1415 case "Identity.email":
1416 if e.complexity.Identity.Email == nil {
1417 break
1418 }
1419
1420 return e.complexity.Identity.Email(childComplexity), true
1421
1422 case "Identity.humanId":
1423 if e.complexity.Identity.HumanID == nil {
1424 break
1425 }
1426
1427 return e.complexity.Identity.HumanID(childComplexity), true
1428
1429 case "Identity.id":
1430 if e.complexity.Identity.Id == nil {
1431 break
1432 }
1433
1434 return e.complexity.Identity.Id(childComplexity), true
1435
1436 case "Identity.isProtected":
1437 if e.complexity.Identity.IsProtected == nil {
1438 break
1439 }
1440
1441 return e.complexity.Identity.IsProtected(childComplexity), true
1442
1443 case "Identity.login":
1444 if e.complexity.Identity.Login == nil {
1445 break
1446 }
1447
1448 return e.complexity.Identity.Login(childComplexity), true
1449
1450 case "Identity.name":
1451 if e.complexity.Identity.Name == nil {
1452 break
1453 }
1454
1455 return e.complexity.Identity.Name(childComplexity), true
1456
1457 case "IdentityConnection.edges":
1458 if e.complexity.IdentityConnection.Edges == nil {
1459 break
1460 }
1461
1462 return e.complexity.IdentityConnection.Edges(childComplexity), true
1463
1464 case "IdentityConnection.nodes":
1465 if e.complexity.IdentityConnection.Nodes == nil {
1466 break
1467 }
1468
1469 return e.complexity.IdentityConnection.Nodes(childComplexity), true
1470
1471 case "IdentityConnection.pageInfo":
1472 if e.complexity.IdentityConnection.PageInfo == nil {
1473 break
1474 }
1475
1476 return e.complexity.IdentityConnection.PageInfo(childComplexity), true
1477
1478 case "IdentityConnection.totalCount":
1479 if e.complexity.IdentityConnection.TotalCount == nil {
1480 break
1481 }
1482
1483 return e.complexity.IdentityConnection.TotalCount(childComplexity), true
1484
1485 case "IdentityEdge.cursor":
1486 if e.complexity.IdentityEdge.Cursor == nil {
1487 break
1488 }
1489
1490 return e.complexity.IdentityEdge.Cursor(childComplexity), true
1491
1492 case "IdentityEdge.node":
1493 if e.complexity.IdentityEdge.Node == nil {
1494 break
1495 }
1496
1497 return e.complexity.IdentityEdge.Node(childComplexity), true
1498
1499 case "IdentityEvent.identity":
1500 if e.complexity.IdentityEvent.Identity == nil {
1501 break
1502 }
1503
1504 return e.complexity.IdentityEvent.Identity(childComplexity), true
1505
1506 case "IdentityEvent.type":
1507 if e.complexity.IdentityEvent.Type == nil {
1508 break
1509 }
1510
1511 return e.complexity.IdentityEvent.Type(childComplexity), true
1512
1513 case "Label.color":
1514 if e.complexity.Label.Color == nil {
1515 break
1516 }
1517
1518 return e.complexity.Label.Color(childComplexity), true
1519
1520 case "Label.name":
1521 if e.complexity.Label.Name == nil {
1522 break
1523 }
1524
1525 return e.complexity.Label.Name(childComplexity), true
1526
1527 case "LabelChangeResult.label":
1528 if e.complexity.LabelChangeResult.Label == nil {
1529 break
1530 }
1531
1532 return e.complexity.LabelChangeResult.Label(childComplexity), true
1533
1534 case "LabelChangeResult.status":
1535 if e.complexity.LabelChangeResult.Status == nil {
1536 break
1537 }
1538
1539 return e.complexity.LabelChangeResult.Status(childComplexity), true
1540
1541 case "LabelConnection.edges":
1542 if e.complexity.LabelConnection.Edges == nil {
1543 break
1544 }
1545
1546 return e.complexity.LabelConnection.Edges(childComplexity), true
1547
1548 case "LabelConnection.nodes":
1549 if e.complexity.LabelConnection.Nodes == nil {
1550 break
1551 }
1552
1553 return e.complexity.LabelConnection.Nodes(childComplexity), true
1554
1555 case "LabelConnection.pageInfo":
1556 if e.complexity.LabelConnection.PageInfo == nil {
1557 break
1558 }
1559
1560 return e.complexity.LabelConnection.PageInfo(childComplexity), true
1561
1562 case "LabelConnection.totalCount":
1563 if e.complexity.LabelConnection.TotalCount == nil {
1564 break
1565 }
1566
1567 return e.complexity.LabelConnection.TotalCount(childComplexity), true
1568
1569 case "LabelEdge.cursor":
1570 if e.complexity.LabelEdge.Cursor == nil {
1571 break
1572 }
1573
1574 return e.complexity.LabelEdge.Cursor(childComplexity), true
1575
1576 case "LabelEdge.node":
1577 if e.complexity.LabelEdge.Node == nil {
1578 break
1579 }
1580
1581 return e.complexity.LabelEdge.Node(childComplexity), true
1582
1583 case "Mutation.bugAddComment":
1584 if e.complexity.Mutation.BugAddComment == nil {
1585 break
1586 }
1587
1588 args, err := ec.field_Mutation_bugAddComment_args(ctx, rawArgs)
1589 if err != nil {
1590 return 0, false
1591 }
1592
1593 return e.complexity.Mutation.BugAddComment(childComplexity, args["input"].(models.BugAddCommentInput)), true
1594
1595 case "Mutation.bugAddCommentAndClose":
1596 if e.complexity.Mutation.BugAddCommentAndClose == nil {
1597 break
1598 }
1599
1600 args, err := ec.field_Mutation_bugAddCommentAndClose_args(ctx, rawArgs)
1601 if err != nil {
1602 return 0, false
1603 }
1604
1605 return e.complexity.Mutation.BugAddCommentAndClose(childComplexity, args["input"].(models.BugAddCommentAndCloseInput)), true
1606
1607 case "Mutation.bugAddCommentAndReopen":
1608 if e.complexity.Mutation.BugAddCommentAndReopen == nil {
1609 break
1610 }
1611
1612 args, err := ec.field_Mutation_bugAddCommentAndReopen_args(ctx, rawArgs)
1613 if err != nil {
1614 return 0, false
1615 }
1616
1617 return e.complexity.Mutation.BugAddCommentAndReopen(childComplexity, args["input"].(models.BugAddCommentAndReopenInput)), true
1618
1619 case "Mutation.bugChangeLabels":
1620 if e.complexity.Mutation.BugChangeLabels == nil {
1621 break
1622 }
1623
1624 args, err := ec.field_Mutation_bugChangeLabels_args(ctx, rawArgs)
1625 if err != nil {
1626 return 0, false
1627 }
1628
1629 return e.complexity.Mutation.BugChangeLabels(childComplexity, args["input"].(*models.BugChangeLabelInput)), true
1630
1631 case "Mutation.bugCreate":
1632 if e.complexity.Mutation.BugCreate == nil {
1633 break
1634 }
1635
1636 args, err := ec.field_Mutation_bugCreate_args(ctx, rawArgs)
1637 if err != nil {
1638 return 0, false
1639 }
1640
1641 return e.complexity.Mutation.BugCreate(childComplexity, args["input"].(models.BugCreateInput)), true
1642
1643 case "Mutation.bugEditComment":
1644 if e.complexity.Mutation.BugEditComment == nil {
1645 break
1646 }
1647
1648 args, err := ec.field_Mutation_bugEditComment_args(ctx, rawArgs)
1649 if err != nil {
1650 return 0, false
1651 }
1652
1653 return e.complexity.Mutation.BugEditComment(childComplexity, args["input"].(models.BugEditCommentInput)), true
1654
1655 case "Mutation.bugSetTitle":
1656 if e.complexity.Mutation.BugSetTitle == nil {
1657 break
1658 }
1659
1660 args, err := ec.field_Mutation_bugSetTitle_args(ctx, rawArgs)
1661 if err != nil {
1662 return 0, false
1663 }
1664
1665 return e.complexity.Mutation.BugSetTitle(childComplexity, args["input"].(models.BugSetTitleInput)), true
1666
1667 case "Mutation.bugStatusClose":
1668 if e.complexity.Mutation.BugStatusClose == nil {
1669 break
1670 }
1671
1672 args, err := ec.field_Mutation_bugStatusClose_args(ctx, rawArgs)
1673 if err != nil {
1674 return 0, false
1675 }
1676
1677 return e.complexity.Mutation.BugStatusClose(childComplexity, args["input"].(models.BugStatusCloseInput)), true
1678
1679 case "Mutation.bugStatusOpen":
1680 if e.complexity.Mutation.BugStatusOpen == nil {
1681 break
1682 }
1683
1684 args, err := ec.field_Mutation_bugStatusOpen_args(ctx, rawArgs)
1685 if err != nil {
1686 return 0, false
1687 }
1688
1689 return e.complexity.Mutation.BugStatusOpen(childComplexity, args["input"].(models.BugStatusOpenInput)), true
1690
1691 case "OperationConnection.edges":
1692 if e.complexity.OperationConnection.Edges == nil {
1693 break
1694 }
1695
1696 return e.complexity.OperationConnection.Edges(childComplexity), true
1697
1698 case "OperationConnection.nodes":
1699 if e.complexity.OperationConnection.Nodes == nil {
1700 break
1701 }
1702
1703 return e.complexity.OperationConnection.Nodes(childComplexity), true
1704
1705 case "OperationConnection.pageInfo":
1706 if e.complexity.OperationConnection.PageInfo == nil {
1707 break
1708 }
1709
1710 return e.complexity.OperationConnection.PageInfo(childComplexity), true
1711
1712 case "OperationConnection.totalCount":
1713 if e.complexity.OperationConnection.TotalCount == nil {
1714 break
1715 }
1716
1717 return e.complexity.OperationConnection.TotalCount(childComplexity), true
1718
1719 case "OperationEdge.cursor":
1720 if e.complexity.OperationEdge.Cursor == nil {
1721 break
1722 }
1723
1724 return e.complexity.OperationEdge.Cursor(childComplexity), true
1725
1726 case "OperationEdge.node":
1727 if e.complexity.OperationEdge.Node == nil {
1728 break
1729 }
1730
1731 return e.complexity.OperationEdge.Node(childComplexity), true
1732
1733 case "PageInfo.endCursor":
1734 if e.complexity.PageInfo.EndCursor == nil {
1735 break
1736 }
1737
1738 return e.complexity.PageInfo.EndCursor(childComplexity), true
1739
1740 case "PageInfo.hasNextPage":
1741 if e.complexity.PageInfo.HasNextPage == nil {
1742 break
1743 }
1744
1745 return e.complexity.PageInfo.HasNextPage(childComplexity), true
1746
1747 case "PageInfo.hasPreviousPage":
1748 if e.complexity.PageInfo.HasPreviousPage == nil {
1749 break
1750 }
1751
1752 return e.complexity.PageInfo.HasPreviousPage(childComplexity), true
1753
1754 case "PageInfo.startCursor":
1755 if e.complexity.PageInfo.StartCursor == nil {
1756 break
1757 }
1758
1759 return e.complexity.PageInfo.StartCursor(childComplexity), true
1760
1761 case "Query.repository":
1762 if e.complexity.Query.Repository == nil {
1763 break
1764 }
1765
1766 args, err := ec.field_Query_repository_args(ctx, rawArgs)
1767 if err != nil {
1768 return 0, false
1769 }
1770
1771 return e.complexity.Query.Repository(childComplexity, args["ref"].(*string)), true
1772
1773 case "Repository.allBugs":
1774 if e.complexity.Repository.AllBugs == nil {
1775 break
1776 }
1777
1778 args, err := ec.field_Repository_allBugs_args(ctx, rawArgs)
1779 if err != nil {
1780 return 0, false
1781 }
1782
1783 return e.complexity.Repository.AllBugs(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string)), true
1784
1785 case "Repository.allIdentities":
1786 if e.complexity.Repository.AllIdentities == nil {
1787 break
1788 }
1789
1790 args, err := ec.field_Repository_allIdentities_args(ctx, rawArgs)
1791 if err != nil {
1792 return 0, false
1793 }
1794
1795 return e.complexity.Repository.AllIdentities(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1796
1797 case "Repository.bug":
1798 if e.complexity.Repository.Bug == nil {
1799 break
1800 }
1801
1802 args, err := ec.field_Repository_bug_args(ctx, rawArgs)
1803 if err != nil {
1804 return 0, false
1805 }
1806
1807 return e.complexity.Repository.Bug(childComplexity, args["prefix"].(string)), true
1808
1809 case "Repository.identity":
1810 if e.complexity.Repository.Identity == nil {
1811 break
1812 }
1813
1814 args, err := ec.field_Repository_identity_args(ctx, rawArgs)
1815 if err != nil {
1816 return 0, false
1817 }
1818
1819 return e.complexity.Repository.Identity(childComplexity, args["prefix"].(string)), true
1820
1821 case "Repository.name":
1822 if e.complexity.Repository.Name == nil {
1823 break
1824 }
1825
1826 return e.complexity.Repository.Name(childComplexity), true
1827
1828 case "Repository.userIdentity":
1829 if e.complexity.Repository.UserIdentity == nil {
1830 break
1831 }
1832
1833 return e.complexity.Repository.UserIdentity(childComplexity), true
1834
1835 case "Repository.validLabels":
1836 if e.complexity.Repository.ValidLabels == nil {
1837 break
1838 }
1839
1840 args, err := ec.field_Repository_validLabels_args(ctx, rawArgs)
1841 if err != nil {
1842 return 0, false
1843 }
1844
1845 return e.complexity.Repository.ValidLabels(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1846
1847 case "Subscription.allEvents":
1848 if e.complexity.Subscription.AllEvents == nil {
1849 break
1850 }
1851
1852 args, err := ec.field_Subscription_allEvents_args(ctx, rawArgs)
1853 if err != nil {
1854 return 0, false
1855 }
1856
1857 return e.complexity.Subscription.AllEvents(childComplexity, args["repoRef"].(*string), args["typename"].(*string)), true
1858
1859 case "Subscription.bugEvents":
1860 if e.complexity.Subscription.BugEvents == nil {
1861 break
1862 }
1863
1864 args, err := ec.field_Subscription_bugEvents_args(ctx, rawArgs)
1865 if err != nil {
1866 return 0, false
1867 }
1868
1869 return e.complexity.Subscription.BugEvents(childComplexity, args["repoRef"].(*string)), true
1870
1871 case "Subscription.identityEvents":
1872 if e.complexity.Subscription.IdentityEvents == nil {
1873 break
1874 }
1875
1876 args, err := ec.field_Subscription_identityEvents_args(ctx, rawArgs)
1877 if err != nil {
1878 return 0, false
1879 }
1880
1881 return e.complexity.Subscription.IdentityEvents(childComplexity, args["repoRef"].(*string)), true
1882
1883 }
1884 return 0, false
1885}
1886
1887func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
1888 opCtx := graphql.GetOperationContext(ctx)
1889 ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)}
1890 inputUnmarshalMap := graphql.BuildUnmarshalerMap(
1891 ec.unmarshalInputBugAddCommentAndCloseInput,
1892 ec.unmarshalInputBugAddCommentAndReopenInput,
1893 ec.unmarshalInputBugAddCommentInput,
1894 ec.unmarshalInputBugChangeLabelInput,
1895 ec.unmarshalInputBugCreateInput,
1896 ec.unmarshalInputBugEditCommentInput,
1897 ec.unmarshalInputBugSetTitleInput,
1898 ec.unmarshalInputBugStatusCloseInput,
1899 ec.unmarshalInputBugStatusOpenInput,
1900 )
1901 first := true
1902
1903 switch opCtx.Operation.Operation {
1904 case ast.Query:
1905 return func(ctx context.Context) *graphql.Response {
1906 var response graphql.Response
1907 var data graphql.Marshaler
1908 if first {
1909 first = false
1910 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
1911 data = ec._Query(ctx, opCtx.Operation.SelectionSet)
1912 } else {
1913 if atomic.LoadInt32(&ec.pendingDeferred) > 0 {
1914 result := <-ec.deferredResults
1915 atomic.AddInt32(&ec.pendingDeferred, -1)
1916 data = result.Result
1917 response.Path = result.Path
1918 response.Label = result.Label
1919 response.Errors = result.Errors
1920 } else {
1921 return nil
1922 }
1923 }
1924 var buf bytes.Buffer
1925 data.MarshalGQL(&buf)
1926 response.Data = buf.Bytes()
1927 if atomic.LoadInt32(&ec.deferred) > 0 {
1928 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0
1929 response.HasNext = &hasNext
1930 }
1931
1932 return &response
1933 }
1934 case ast.Mutation:
1935 return func(ctx context.Context) *graphql.Response {
1936 if !first {
1937 return nil
1938 }
1939 first = false
1940 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
1941 data := ec._Mutation(ctx, opCtx.Operation.SelectionSet)
1942 var buf bytes.Buffer
1943 data.MarshalGQL(&buf)
1944
1945 return &graphql.Response{
1946 Data: buf.Bytes(),
1947 }
1948 }
1949 case ast.Subscription:
1950 next := ec._Subscription(ctx, opCtx.Operation.SelectionSet)
1951
1952 var buf bytes.Buffer
1953 return func(ctx context.Context) *graphql.Response {
1954 buf.Reset()
1955 data := next(ctx)
1956
1957 if data == nil {
1958 return nil
1959 }
1960 data.MarshalGQL(&buf)
1961
1962 return &graphql.Response{
1963 Data: buf.Bytes(),
1964 }
1965 }
1966
1967 default:
1968 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
1969 }
1970}
1971
1972type executionContext struct {
1973 *graphql.OperationContext
1974 *executableSchema
1975 deferred int32
1976 pendingDeferred int32
1977 deferredResults chan graphql.DeferredResult
1978}
1979
1980func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
1981 atomic.AddInt32(&ec.pendingDeferred, 1)
1982 go func() {
1983 ctx := graphql.WithFreshResponseContext(dg.Context)
1984 dg.FieldSet.Dispatch(ctx)
1985 ds := graphql.DeferredResult{
1986 Path: dg.Path,
1987 Label: dg.Label,
1988 Result: dg.FieldSet,
1989 Errors: graphql.GetErrors(ctx),
1990 }
1991 // null fields should bubble up
1992 if dg.FieldSet.Invalids > 0 {
1993 ds.Result = graphql.Null
1994 }
1995 ec.deferredResults <- ds
1996 }()
1997}
1998
1999func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
2000 if ec.DisableIntrospection {
2001 return nil, errors.New("introspection disabled")
2002 }
2003 return introspection.WrapSchema(ec.Schema()), nil
2004}
2005
2006func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
2007 if ec.DisableIntrospection {
2008 return nil, errors.New("introspection disabled")
2009 }
2010 return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil
2011}
2012
2013var sources = []*ast.Source{
2014 {Name: "../schema/bug.graphql", Input: `type Bug implements Authored & Entity {
2015 """The identifier for this bug"""
2016 id: ID!
2017 """The human version (truncated) identifier for this bug"""
2018 humanId: String!
2019 status: Status!
2020 title: String!
2021 labels: [Label!]!
2022 author: Identity!
2023 createdAt: Time!
2024 lastEdit: Time!
2025
2026 """The actors of the bug. Actors are Identity that have interacted with the bug."""
2027 actors(
2028 """Returns the elements in the list that come after the specified cursor."""
2029 after: String
2030 """Returns the elements in the list that come before the specified cursor."""
2031 before: String
2032 """Returns the first _n_ elements from the list."""
2033 first: Int
2034 """Returns the last _n_ elements from the list."""
2035 last: Int
2036 ): IdentityConnection!
2037
2038 """The participants of the bug. Participants are Identity that have created or
2039 added a comment on the bug."""
2040 participants(
2041 """Returns the elements in the list that come after the specified cursor."""
2042 after: String
2043 """Returns the elements in the list that come before the specified cursor."""
2044 before: String
2045 """Returns the first _n_ elements from the list."""
2046 first: Int
2047 """Returns the last _n_ elements from the list."""
2048 last: Int
2049 ): IdentityConnection!
2050
2051 comments(
2052 """Returns the elements in the list that come after the specified cursor."""
2053 after: String
2054 """Returns the elements in the list that come before the specified cursor."""
2055 before: String
2056 """Returns the first _n_ elements from the list."""
2057 first: Int
2058 """Returns the last _n_ elements from the list."""
2059 last: Int
2060 ): BugCommentConnection!
2061
2062 timeline(
2063 """Returns the elements in the list that come after the specified cursor."""
2064 after: String
2065 """Returns the elements in the list that come before the specified cursor."""
2066 before: String
2067 """Returns the first _n_ elements from the list."""
2068 first: Int
2069 """Returns the last _n_ elements from the list."""
2070 last: Int
2071 ): BugTimelineItemConnection!
2072
2073 operations(
2074 """Returns the elements in the list that come after the specified cursor."""
2075 after: String
2076 """Returns the elements in the list that come before the specified cursor."""
2077 before: String
2078 """Returns the first _n_ elements from the list."""
2079 first: Int
2080 """Returns the last _n_ elements from the list."""
2081 last: Int
2082 ): OperationConnection!
2083}
2084
2085"""The connection type for Bug."""
2086type BugConnection {
2087 """A list of edges."""
2088 edges: [BugEdge!]!
2089 nodes: [Bug!]!
2090 """Information to aid in pagination."""
2091 pageInfo: PageInfo!
2092 """Identifies the total count of items in the connection."""
2093 totalCount: Int!
2094}
2095
2096"""An edge in a connection."""
2097type BugEdge {
2098 """A cursor for use in pagination."""
2099 cursor: String!
2100 """The item at the end of the edge."""
2101 node: Bug!
2102}
2103`, BuiltIn: false},
2104 {Name: "../schema/bug_comment.graphql", Input: `"""Represents a comment on a bug."""
2105type BugComment implements Authored
2106@goModel(model: "github.com/git-bug/git-bug/entities/bug.Comment") {
2107 id: CombinedId! @goField(name: "CombinedId")
2108
2109 """The author of this comment."""
2110 author: Identity!
2111
2112 """The message of this comment."""
2113 message: String!
2114
2115 """All media's hash referenced in this comment"""
2116 files: [Hash!]!
2117}
2118
2119type BugCommentConnection {
2120 edges: [BugCommentEdge!]!
2121 nodes: [BugComment!]!
2122 pageInfo: PageInfo!
2123 totalCount: Int!
2124}
2125
2126type BugCommentEdge {
2127 cursor: String!
2128 node: BugComment!
2129}
2130`, BuiltIn: false},
2131 {Name: "../schema/bug_mutations.graphql", Input: `extend type Mutation {
2132 """Create a new bug"""
2133 bugCreate(input: BugCreateInput!): BugCreatePayload!
2134 """Add a new comment to a bug"""
2135 bugAddComment(input: BugAddCommentInput!): BugAddCommentPayload!
2136 """Add a new comment to a bug and close it"""
2137 bugAddCommentAndClose(input: BugAddCommentAndCloseInput!): BugAddCommentAndClosePayload!
2138 """Add a new comment to a bug and reopen it"""
2139 bugAddCommentAndReopen(input: BugAddCommentAndReopenInput!): BugAddCommentAndReopenPayload!
2140 """Change a comment of a bug"""
2141 bugEditComment(input: BugEditCommentInput!): BugEditCommentPayload!
2142 """Add or remove a set of label on a bug"""
2143 bugChangeLabels(input: BugChangeLabelInput): BugChangeLabelPayload!
2144 """Change a bug's status to open"""
2145 bugStatusOpen(input: BugStatusOpenInput!): BugStatusOpenPayload!
2146 """Change a bug's status to closed"""
2147 bugStatusClose(input: BugStatusCloseInput!): BugStatusClosePayload!
2148 """Change a bug's title"""
2149 bugSetTitle(input: BugSetTitleInput!): BugSetTitlePayload!
2150}
2151
2152input BugCreateInput {
2153 """A unique identifier for the client performing the mutation."""
2154 clientMutationId: String
2155 """The name of the repository. If not set, the default repository is used."""
2156 repoRef: String
2157 """The title of the new bug."""
2158 title: String!
2159 """The first message of the new bug."""
2160 message: String!
2161 """The collection of file's hash required for the first message."""
2162 files: [Hash!]
2163}
2164
2165type BugCreatePayload {
2166 """A unique identifier for the client performing the mutation."""
2167 clientMutationId: String
2168 """The created bug."""
2169 bug: Bug!
2170 """The resulting operation."""
2171 operation: BugCreateOperation!
2172}
2173
2174input BugAddCommentInput {
2175 """A unique identifier for the client performing the mutation."""
2176 clientMutationId: String
2177 """The name of the repository. If not set, the default repository is used."""
2178 repoRef: String
2179 """The bug ID's prefix."""
2180 prefix: String!
2181 """The message to be added to the bug."""
2182 message: String!
2183 """The collection of file's hash required for the first message."""
2184 files: [Hash!]
2185}
2186
2187type BugAddCommentPayload {
2188 """A unique identifier for the client performing the mutation."""
2189 clientMutationId: String
2190 """The affected bug."""
2191 bug: Bug!
2192 """The resulting operation."""
2193 operation: BugAddCommentOperation!
2194}
2195
2196input BugAddCommentAndCloseInput {
2197 """A unique identifier for the client performing the mutation."""
2198 clientMutationId: String
2199 """The name of the repository. If not set, the default repository is used."""
2200 repoRef: String
2201 """The bug ID's prefix."""
2202 prefix: String!
2203 """The message to be added to the bug."""
2204 message: String!
2205 """The collection of file's hash required for the first message."""
2206 files: [Hash!]
2207}
2208
2209type BugAddCommentAndClosePayload {
2210 """A unique identifier for the client performing the mutation."""
2211 clientMutationId: String
2212 """The affected bug."""
2213 bug: Bug!
2214 """The resulting AddComment operation."""
2215 commentOperation: BugAddCommentOperation!
2216 """The resulting SetStatusOperation."""
2217 statusOperation: BugSetStatusOperation!
2218}
2219
2220input BugAddCommentAndReopenInput {
2221 """A unique identifier for the client performing the mutation."""
2222 clientMutationId: String
2223 """The name of the repository. If not set, the default repository is used."""
2224 repoRef: String
2225 """The bug ID's prefix."""
2226 prefix: String!
2227 """The message to be added to the bug."""
2228 message: String!
2229 """The collection of file's hash required for the first message."""
2230 files: [Hash!]
2231}
2232
2233type BugAddCommentAndReopenPayload {
2234 """A unique identifier for the client performing the mutation."""
2235 clientMutationId: String
2236 """The affected bug."""
2237 bug: Bug!
2238 """The resulting AddComment operation."""
2239 commentOperation: BugAddCommentOperation!
2240 """The resulting SetStatusOperation."""
2241 statusOperation: BugSetStatusOperation!
2242}
2243
2244input BugEditCommentInput {
2245 """A unique identifier for the client performing the mutation."""
2246 clientMutationId: String
2247 """The name of the repository. If not set, the default repository is used."""
2248 repoRef: String
2249 """A prefix of the CombinedId of the comment to be changed."""
2250 targetPrefix: String!
2251 """The new message to be set."""
2252 message: String!
2253 """The collection of file's hash required for the first message."""
2254 files: [Hash!]
2255}
2256
2257type BugEditCommentPayload {
2258 """A unique identifier for the client performing the mutation."""
2259 clientMutationId: String
2260 """The affected bug."""
2261 bug: Bug!
2262 """The resulting operation."""
2263 operation: BugEditCommentOperation!
2264}
2265
2266input BugChangeLabelInput {
2267 """A unique identifier for the client performing the mutation."""
2268 clientMutationId: String
2269 """The name of the repository. If not set, the default repository is used."""
2270 repoRef: String
2271 """The bug ID's prefix."""
2272 prefix: String!
2273 """The list of label to add."""
2274 added: [String!]
2275 """The list of label to remove."""
2276 Removed: [String!]
2277}
2278
2279type BugChangeLabelPayload {
2280 """A unique identifier for the client performing the mutation."""
2281 clientMutationId: String
2282 """The affected bug."""
2283 bug: Bug!
2284 """The resulting operation."""
2285 operation: BugLabelChangeOperation!
2286 """The effect each source label had."""
2287 results: [LabelChangeResult]!
2288}
2289
2290input BugStatusOpenInput {
2291 """A unique identifier for the client performing the mutation."""
2292 clientMutationId: String
2293 """The name of the repository. If not set, the default repository is used."""
2294 repoRef: String
2295 """The bug ID's prefix."""
2296 prefix: String!
2297}
2298
2299type BugStatusOpenPayload {
2300 """A unique identifier for the client performing the mutation."""
2301 clientMutationId: String
2302 """The affected bug."""
2303 bug: Bug!
2304 """The resulting operation."""
2305 operation: BugSetStatusOperation!
2306}
2307
2308input BugStatusCloseInput {
2309 """A unique identifier for the client performing the mutation."""
2310 clientMutationId: String
2311 """The name of the repository. If not set, the default repository is used."""
2312 repoRef: String
2313 """The bug ID's prefix."""
2314 prefix: String!
2315}
2316
2317type BugStatusClosePayload {
2318 """A unique identifier for the client performing the mutation."""
2319 clientMutationId: String
2320 """The affected bug."""
2321 bug: Bug!
2322 """The resulting operation."""
2323 operation: BugSetStatusOperation!
2324}
2325
2326input BugSetTitleInput {
2327 """A unique identifier for the client performing the mutation."""
2328 clientMutationId: String
2329 """The name of the repository. If not set, the default repository is used."""
2330 repoRef: String
2331 """The bug ID's prefix."""
2332 prefix: String!
2333 """The new title."""
2334 title: String!
2335}
2336
2337type BugSetTitlePayload {
2338 """A unique identifier for the client performing the mutation."""
2339 clientMutationId: String
2340 """The affected bug."""
2341 bug: Bug!
2342 """The resulting operation"""
2343 operation: BugSetTitleOperation!
2344}
2345`, BuiltIn: false},
2346 {Name: "../schema/bug_operations.graphql", Input: `type BugCreateOperation implements Operation & Authored
2347@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateOperation") {
2348 """The identifier of the operation"""
2349 id: ID!
2350 """The author of this object."""
2351 author: Identity!
2352 """The datetime when this operation was issued."""
2353 date: Time! @goField(name: "Time")
2354
2355 title: String!
2356 message: String!
2357 files: [Hash!]!
2358}
2359
2360type BugSetTitleOperation implements Operation & Authored
2361@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleOperation") {
2362 """The identifier of the operation"""
2363 id: ID!
2364 """The author of this object."""
2365 author: Identity!
2366 """The datetime when this operation was issued."""
2367 date: Time! @goField(name: "Time")
2368
2369 title: String!
2370 was: String!
2371}
2372
2373type BugAddCommentOperation implements Operation & Authored
2374@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentOperation") {
2375 """The identifier of the operation"""
2376 id: ID!
2377 """The author of this object."""
2378 author: Identity!
2379 """The datetime when this operation was issued."""
2380 date: Time! @goField(name: "Time")
2381
2382 message: String!
2383 files: [Hash!]!
2384}
2385
2386type BugEditCommentOperation implements Operation & Authored
2387@goModel(model: "github.com/git-bug/git-bug/entities/bug.EditCommentOperation") {
2388 """The identifier of the operation"""
2389 id: ID!
2390 """The author of this object."""
2391 author: Identity!
2392 """The datetime when this operation was issued."""
2393 date: Time! @goField(name: "Time")
2394
2395 target: String!
2396 message: String!
2397 files: [Hash!]!
2398}
2399
2400type BugSetStatusOperation implements Operation & Authored
2401@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusOperation") {
2402 """The identifier of the operation"""
2403 id: ID!
2404 """The author of this object."""
2405 author: Identity!
2406 """The datetime when this operation was issued."""
2407 date: Time! @goField(name: "Time")
2408
2409 status: Status!
2410}
2411
2412type BugLabelChangeOperation implements Operation & Authored
2413@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeOperation") {
2414 """The identifier of the operation"""
2415 id: ID!
2416 """The author of this object."""
2417 author: Identity!
2418 """The datetime when this operation was issued."""
2419 date: Time! @goField(name: "Time")
2420
2421 added: [Label!]!
2422 removed: [Label!]!
2423}
2424`, BuiltIn: false},
2425 {Name: "../schema/bug_timeline.graphql", Input: `"""An item in the timeline of bug events"""
2426interface BugTimelineItem
2427@goModel(model: "github.com/git-bug/git-bug/entities/bug.TimelineItem") {
2428 """The identifier of the source operation"""
2429 id: CombinedId!
2430}
2431
2432"""CommentHistoryStep hold one version of a message in the history"""
2433type BugCommentHistoryStep
2434@goModel(model: "github.com/git-bug/git-bug/entities/bug.CommentHistoryStep") {
2435 message: String!
2436 date: Time!
2437}
2438
2439# Connection
2440
2441"""The connection type for TimelineItem"""
2442type BugTimelineItemConnection {
2443 edges: [BugTimelineItemEdge!]!
2444 nodes: [BugTimelineItem!]!
2445 pageInfo: PageInfo!
2446 totalCount: Int!
2447}
2448
2449"""Represent a TimelineItem"""
2450type BugTimelineItemEdge {
2451 cursor: String!
2452 node: BugTimelineItem!
2453}
2454
2455# Items
2456
2457"""BugCreateTimelineItem is a BugTimelineItem that represent the creation of a bug and its message edition history"""
2458type BugCreateTimelineItem implements BugTimelineItem & Authored
2459@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateTimelineItem") {
2460 """The identifier of the source operation"""
2461 id: CombinedId! @goField(name: "CombinedId")
2462 author: Identity!
2463 message: String!
2464 messageIsEmpty: Boolean!
2465 files: [Hash!]!
2466 createdAt: Time!
2467 lastEdit: Time!
2468 edited: Boolean!
2469 history: [BugCommentHistoryStep!]!
2470}
2471
2472"""BugAddCommentTimelineItem is a BugTimelineItem that represent a BugComment and its edition history"""
2473type BugAddCommentTimelineItem implements BugTimelineItem & Authored
2474@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentTimelineItem") {
2475 """The identifier of the source operation"""
2476 id: CombinedId! @goField(name: "CombinedId")
2477 author: Identity!
2478 message: String!
2479 messageIsEmpty: Boolean!
2480 files: [Hash!]!
2481 createdAt: Time!
2482 lastEdit: Time!
2483 edited: Boolean!
2484 history: [BugCommentHistoryStep!]!
2485}
2486
2487"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the labels of a bug"""
2488type BugLabelChangeTimelineItem implements BugTimelineItem & Authored
2489@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeTimelineItem") {
2490 """The identifier of the source operation"""
2491 id: CombinedId! @goField(name: "CombinedId")
2492 author: Identity!
2493 date: Time!
2494 added: [Label!]!
2495 removed: [Label!]!
2496}
2497
2498"""BugSetStatusTimelineItem is a BugTimelineItem that represent a change in the status of a bug"""
2499type BugSetStatusTimelineItem implements BugTimelineItem & Authored
2500@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusTimelineItem") {
2501 """The identifier of the source operation"""
2502 id: CombinedId! @goField(name: "CombinedId")
2503 author: Identity!
2504 date: Time!
2505 status: Status!
2506}
2507
2508"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the title of a bug"""
2509type BugSetTitleTimelineItem implements BugTimelineItem & Authored
2510@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleTimelineItem") {
2511 """The identifier of the source operation"""
2512 id: CombinedId! @goField(name: "CombinedId")
2513 author: Identity!
2514 date: Time!
2515 title: String!
2516 was: String!
2517}
2518`, BuiltIn: false},
2519 {Name: "../schema/directives.graphql", Input: `# Below are directives defined by gqlgen, see https://gqlgen.com/config/
2520
2521directive @goModel(
2522 model: String
2523 models: [String!]
2524 forceGenerate: Boolean
2525) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
2526
2527directive @goField(
2528 forceResolver: Boolean
2529 name: String
2530 omittable: Boolean
2531) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
2532
2533directive @goTag(
2534 key: String!
2535 value: String
2536) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
2537`, BuiltIn: false},
2538 {Name: "../schema/identity.graphql", Input: `"""Represents an identity"""
2539type Identity implements Entity {
2540 """The identifier for this identity"""
2541 id: ID!
2542 """The human version (truncated) identifier for this identity"""
2543 humanId: String!
2544 """The name of the person, if known."""
2545 name: String
2546 """The email of the person, if known."""
2547 email: String
2548 """The login of the person, if known."""
2549 login: String
2550 """A non-empty string to display, representing the identity, based on the non-empty values."""
2551 displayName: String!
2552 """An url to an avatar"""
2553 avatarUrl: String
2554 """isProtected is true if the chain of git commits started to be signed.
2555 If that's the case, only signed commit with a valid key for this identity can be added."""
2556 isProtected: Boolean!
2557}
2558
2559type IdentityConnection {
2560 edges: [IdentityEdge!]!
2561 nodes: [Identity!]!
2562 pageInfo: PageInfo!
2563 totalCount: Int!
2564}
2565
2566type IdentityEdge {
2567 cursor: String!
2568 node: Identity!
2569}
2570`, BuiltIn: false},
2571 {Name: "../schema/label.graphql", Input: `"""Label for a bug."""
2572type Label {
2573 """The name of the label."""
2574 name: String!
2575 """Color of the label."""
2576 color: Color!
2577}
2578
2579type LabelConnection {
2580 edges: [LabelEdge!]!
2581 nodes: [Label!]!
2582 pageInfo: PageInfo!
2583 totalCount: Int!
2584}
2585
2586type LabelEdge {
2587 cursor: String!
2588 node: Label!
2589}
2590
2591enum LabelChangeStatus {
2592 ADDED
2593 REMOVED
2594 DUPLICATE_IN_OP
2595 ALREADY_SET
2596 DOESNT_EXIST
2597}
2598
2599type LabelChangeResult {
2600 """The source label."""
2601 label: Label!
2602 """The effect this label had."""
2603 status: LabelChangeStatus!
2604}
2605`, BuiltIn: false},
2606 {Name: "../schema/operation.graphql", Input: `"""An operation applied to an entity."""
2607interface Operation
2608@goModel(model: "github.com/git-bug/git-bug/entity/dag.Operation") {
2609 """The identifier of the operation"""
2610 id: ID!
2611 """The operations author."""
2612 author: Identity!
2613 """The datetime when this operation was issued."""
2614 date: Time! @goField(name: "Time")
2615}
2616
2617# Connection
2618
2619"""The connection type for an Operation"""
2620type OperationConnection {
2621 edges: [OperationEdge!]!
2622 nodes: [Operation!]!
2623 pageInfo: PageInfo!
2624 totalCount: Int!
2625}
2626
2627"""Represent an Operation"""
2628type OperationEdge {
2629 cursor: String!
2630 node: Operation!
2631}
2632`, BuiltIn: false},
2633 {Name: "../schema/repository.graphql", Input: `type Repository {
2634 """The name of the repository"""
2635 name: String
2636
2637 """All the bugs"""
2638 allBugs(
2639 """Returns the elements in the list that come after the specified cursor."""
2640 after: String
2641 """Returns the elements in the list that come before the specified cursor."""
2642 before: String
2643 """Returns the first _n_ elements from the list."""
2644 first: Int
2645 """Returns the last _n_ elements from the list."""
2646 last: Int
2647 """A query to select and order bugs."""
2648 query: String
2649 ): BugConnection!
2650
2651 bug(prefix: String!): Bug
2652
2653 """All the identities"""
2654 allIdentities(
2655 """Returns the elements in the list that come after the specified cursor."""
2656 after: String
2657 """Returns the elements in the list that come before the specified cursor."""
2658 before: String
2659 """Returns the first _n_ elements from the list."""
2660 first: Int
2661 """Returns the last _n_ elements from the list."""
2662 last: Int
2663 ): IdentityConnection!
2664
2665 identity(prefix: String!): Identity
2666
2667 """The identity created or selected by the user as its own"""
2668 userIdentity: Identity
2669
2670 """List of valid labels."""
2671 validLabels(
2672 """Returns the elements in the list that come after the specified cursor."""
2673 after: String
2674 """Returns the elements in the list that come before the specified cursor."""
2675 before: String
2676 """Returns the first _n_ elements from the list."""
2677 first: Int
2678 """Returns the last _n_ elements from the list."""
2679 last: Int
2680 ): LabelConnection!
2681}
2682`, BuiltIn: false},
2683 {Name: "../schema/root.graphql", Input: `type Query {
2684 """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
2685 repository(ref: String): Repository
2686}
2687
2688type Mutation # See each entity mutations
2689`, BuiltIn: false},
2690 {Name: "../schema/status.graphql", Input: `enum Status {
2691 OPEN
2692 CLOSED
2693}
2694`, BuiltIn: false},
2695 {Name: "../schema/subscription.graphql", Input: `type Subscription {
2696 """Subscribe to events on all entities. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
2697 allEvents(repoRef: String, typename: String): EntityEvent!
2698 """Subscribe to identity entity events. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
2699 identityEvents(repoRef: String): IdentityEvent!
2700 """Subscribe to bug entity events. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
2701 bugEvents(repoRef: String): BugEvent!
2702}
2703
2704enum EntityEventType {
2705 CREATED
2706 UPDATED
2707 REMOVED
2708}
2709
2710type EntityEvent {
2711 type: EntityEventType!
2712 entity: Entity
2713}
2714
2715type IdentityEvent {
2716 type: EntityEventType!
2717 identity: Identity!
2718}
2719
2720type BugEvent {
2721 type: EntityEventType!
2722 bug: Bug!
2723}
2724`, BuiltIn: false},
2725 {Name: "../schema/types.graphql", Input: `scalar CombinedId
2726scalar Time
2727scalar Hash
2728
2729"""Defines a color by red, green and blue components."""
2730type Color {
2731 """Red component of the color."""
2732 R: Int!
2733 """Green component of the color."""
2734 G: Int!
2735 """Blue component of the color."""
2736 B: Int!
2737}
2738
2739"""Information about pagination in a connection."""
2740type PageInfo {
2741 """When paginating forwards, are there more items?"""
2742 hasNextPage: Boolean!
2743 """When paginating backwards, are there more items?"""
2744 hasPreviousPage: Boolean!
2745 """When paginating backwards, the cursor to continue."""
2746 startCursor: String!
2747 """When paginating forwards, the cursor to continue."""
2748 endCursor: String!
2749}
2750
2751"""An object that has an author."""
2752interface Authored {
2753 """The author of this object."""
2754 author: Identity!
2755}
2756
2757
2758"""An entity (identity, bug, ...)."""
2759interface Entity {
2760 """The identifier for this entity"""
2761 id: ID!
2762 """The human version (truncated) identifier for this entity"""
2763 humanId: String!
2764}
2765`, BuiltIn: false},
2766}
2767var parsedSchema = gqlparser.MustLoadSchema(sources...)