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 Board() BoardResolver
37 BoardAddItemDraftOperation() BoardAddItemDraftOperationResolver
38 BoardAddItemEntityOperation() BoardAddItemEntityOperationResolver
39 BoardColumn() BoardColumnResolver
40 BoardCreateOperation() BoardCreateOperationResolver
41 BoardItemBug() BoardItemBugResolver
42 BoardItemDraft() BoardItemDraftResolver
43 BoardSetDescriptionOperation() BoardSetDescriptionOperationResolver
44 BoardSetTitleOperation() BoardSetTitleOperationResolver
45 Bug() BugResolver
46 BugAddCommentOperation() BugAddCommentOperationResolver
47 BugAddCommentTimelineItem() BugAddCommentTimelineItemResolver
48 BugComment() BugCommentResolver
49 BugCommentHistoryStep() BugCommentHistoryStepResolver
50 BugCreateOperation() BugCreateOperationResolver
51 BugCreateTimelineItem() BugCreateTimelineItemResolver
52 BugEditCommentOperation() BugEditCommentOperationResolver
53 BugLabelChangeOperation() BugLabelChangeOperationResolver
54 BugLabelChangeTimelineItem() BugLabelChangeTimelineItemResolver
55 BugSetStatusOperation() BugSetStatusOperationResolver
56 BugSetStatusTimelineItem() BugSetStatusTimelineItemResolver
57 BugSetTitleOperation() BugSetTitleOperationResolver
58 BugSetTitleTimelineItem() BugSetTitleTimelineItemResolver
59 Color() ColorResolver
60 Identity() IdentityResolver
61 Label() LabelResolver
62 Mutation() MutationResolver
63 Query() QueryResolver
64 Repository() RepositoryResolver
65}
66
67type DirectiveRoot struct {
68}
69
70type ComplexityRoot struct {
71 Board struct {
72 Actors func(childComplexity int, after *string, before *string, first *int, last *int) int
73 Columns func(childComplexity int, after *string, before *string, first *int, last *int) int
74 CreatedAt func(childComplexity int) int
75 Description func(childComplexity int) int
76 HumanID func(childComplexity int) int
77 Id func(childComplexity int) int
78 LastEdit func(childComplexity int) int
79 Operations func(childComplexity int, after *string, before *string, first *int, last *int) int
80 Title func(childComplexity int) int
81 }
82
83 BoardAddItemDraftOperation struct {
84 Author func(childComplexity int) int
85 ColumnId func(childComplexity int) int
86 Id func(childComplexity int) int
87 Time func(childComplexity int) int
88 Title func(childComplexity int) int
89 }
90
91 BoardAddItemEntityOperation struct {
92 Author func(childComplexity int) int
93 ColumnId func(childComplexity int) int
94 EntityId func(childComplexity int) int
95 EntityType func(childComplexity int) int
96 Id func(childComplexity int) int
97 Time func(childComplexity int) int
98 }
99
100 BoardColumn struct {
101 CombinedId func(childComplexity int) int
102 Items func(childComplexity int, after *string, before *string, first *int, last *int) int
103 Name func(childComplexity int) int
104 }
105
106 BoardColumnConnection struct {
107 Edges func(childComplexity int) int
108 Nodes func(childComplexity int) int
109 PageInfo func(childComplexity int) int
110 TotalCount func(childComplexity int) int
111 }
112
113 BoardColumnEdge struct {
114 Cursor func(childComplexity int) int
115 Node func(childComplexity int) int
116 }
117
118 BoardConnection struct {
119 Edges func(childComplexity int) int
120 Nodes func(childComplexity int) int
121 PageInfo func(childComplexity int) int
122 TotalCount func(childComplexity int) int
123 }
124
125 BoardCreateOperation struct {
126 Author func(childComplexity int) int
127 Columns func(childComplexity int) int
128 Description func(childComplexity int) int
129 Id func(childComplexity int) int
130 Time func(childComplexity int) int
131 Title func(childComplexity int) int
132 }
133
134 BoardEdge struct {
135 Cursor func(childComplexity int) int
136 Node func(childComplexity int) int
137 }
138
139 BoardItemBug struct {
140 Author func(childComplexity int) int
141 CombinedId func(childComplexity int) int
142 Labels func(childComplexity int) int
143 Title func(childComplexity int) int
144 }
145
146 BoardItemConnection struct {
147 Edges func(childComplexity int) int
148 Nodes func(childComplexity int) int
149 PageInfo func(childComplexity int) int
150 TotalCount func(childComplexity int) int
151 }
152
153 BoardItemDraft struct {
154 Author func(childComplexity int) int
155 CombinedId func(childComplexity int) int
156 Labels func(childComplexity int) int
157 Title func(childComplexity int) int
158 }
159
160 BoardItemEdge struct {
161 Cursor func(childComplexity int) int
162 Node func(childComplexity int) int
163 }
164
165 BoardSetDescriptionOperation struct {
166 Author func(childComplexity int) int
167 Description func(childComplexity int) int
168 Id func(childComplexity int) int
169 Time func(childComplexity int) int
170 Was func(childComplexity int) int
171 }
172
173 BoardSetTitleOperation struct {
174 Author func(childComplexity int) int
175 Id func(childComplexity int) int
176 Time func(childComplexity int) int
177 Title func(childComplexity int) int
178 Was func(childComplexity int) int
179 }
180
181 Bug struct {
182 Actors func(childComplexity int, after *string, before *string, first *int, last *int) int
183 Author func(childComplexity int) int
184 Comments func(childComplexity int, after *string, before *string, first *int, last *int) int
185 CreatedAt func(childComplexity int) int
186 HumanID func(childComplexity int) int
187 Id func(childComplexity int) int
188 Labels func(childComplexity int) int
189 LastEdit func(childComplexity int) int
190 Operations func(childComplexity int, after *string, before *string, first *int, last *int) int
191 Participants func(childComplexity int, after *string, before *string, first *int, last *int) int
192 Status func(childComplexity int) int
193 Timeline func(childComplexity int, after *string, before *string, first *int, last *int) int
194 Title func(childComplexity int) int
195 }
196
197 BugAddCommentAndClosePayload struct {
198 Bug func(childComplexity int) int
199 ClientMutationID func(childComplexity int) int
200 CommentOperation func(childComplexity int) int
201 StatusOperation func(childComplexity int) int
202 }
203
204 BugAddCommentAndReopenPayload struct {
205 Bug func(childComplexity int) int
206 ClientMutationID func(childComplexity int) int
207 CommentOperation func(childComplexity int) int
208 StatusOperation func(childComplexity int) int
209 }
210
211 BugAddCommentOperation struct {
212 Author func(childComplexity int) int
213 Files func(childComplexity int) int
214 Id func(childComplexity int) int
215 Message func(childComplexity int) int
216 Time func(childComplexity int) int
217 }
218
219 BugAddCommentPayload struct {
220 Bug func(childComplexity int) int
221 ClientMutationID func(childComplexity int) int
222 Operation func(childComplexity int) int
223 }
224
225 BugAddCommentTimelineItem struct {
226 Author func(childComplexity int) int
227 CombinedId func(childComplexity int) int
228 CreatedAt func(childComplexity int) int
229 Edited func(childComplexity int) int
230 Files func(childComplexity int) int
231 History func(childComplexity int) int
232 LastEdit func(childComplexity int) int
233 Message func(childComplexity int) int
234 MessageIsEmpty func(childComplexity int) int
235 }
236
237 BugChangeLabelPayload struct {
238 Bug func(childComplexity int) int
239 ClientMutationID func(childComplexity int) int
240 Operation func(childComplexity int) int
241 Results func(childComplexity int) int
242 }
243
244 BugComment struct {
245 Author func(childComplexity int) int
246 CombinedId func(childComplexity int) int
247 Files func(childComplexity int) int
248 Message func(childComplexity int) int
249 }
250
251 BugCommentConnection struct {
252 Edges func(childComplexity int) int
253 Nodes func(childComplexity int) int
254 PageInfo func(childComplexity int) int
255 TotalCount func(childComplexity int) int
256 }
257
258 BugCommentEdge struct {
259 Cursor func(childComplexity int) int
260 Node func(childComplexity int) int
261 }
262
263 BugCommentHistoryStep struct {
264 Date func(childComplexity int) int
265 Message func(childComplexity int) int
266 }
267
268 BugConnection struct {
269 Edges func(childComplexity int) int
270 Nodes func(childComplexity int) int
271 PageInfo func(childComplexity int) int
272 TotalCount func(childComplexity int) int
273 }
274
275 BugCreateOperation struct {
276 Author func(childComplexity int) int
277 Files func(childComplexity int) int
278 Id func(childComplexity int) int
279 Message func(childComplexity int) int
280 Time func(childComplexity int) int
281 Title func(childComplexity int) int
282 }
283
284 BugCreatePayload struct {
285 Bug func(childComplexity int) int
286 ClientMutationID func(childComplexity int) int
287 Operation func(childComplexity int) int
288 }
289
290 BugCreateTimelineItem struct {
291 Author func(childComplexity int) int
292 CombinedId func(childComplexity int) int
293 CreatedAt func(childComplexity int) int
294 Edited func(childComplexity int) int
295 Files func(childComplexity int) int
296 History func(childComplexity int) int
297 LastEdit func(childComplexity int) int
298 Message func(childComplexity int) int
299 MessageIsEmpty func(childComplexity int) int
300 }
301
302 BugEdge struct {
303 Cursor func(childComplexity int) int
304 Node func(childComplexity int) int
305 }
306
307 BugEditCommentOperation struct {
308 Author func(childComplexity int) int
309 Files func(childComplexity int) int
310 Id func(childComplexity int) int
311 Message func(childComplexity int) int
312 Target func(childComplexity int) int
313 Time func(childComplexity int) int
314 }
315
316 BugEditCommentPayload struct {
317 Bug func(childComplexity int) int
318 ClientMutationID func(childComplexity int) int
319 Operation func(childComplexity int) int
320 }
321
322 BugLabelChangeOperation struct {
323 Added func(childComplexity int) int
324 Author func(childComplexity int) int
325 Id func(childComplexity int) int
326 Removed func(childComplexity int) int
327 Time func(childComplexity int) int
328 }
329
330 BugLabelChangeTimelineItem struct {
331 Added func(childComplexity int) int
332 Author func(childComplexity int) int
333 CombinedId func(childComplexity int) int
334 Date func(childComplexity int) int
335 Removed func(childComplexity int) int
336 }
337
338 BugSetStatusOperation struct {
339 Author func(childComplexity int) int
340 Id func(childComplexity int) int
341 Status func(childComplexity int) int
342 Time func(childComplexity int) int
343 }
344
345 BugSetStatusTimelineItem struct {
346 Author func(childComplexity int) int
347 CombinedId func(childComplexity int) int
348 Date func(childComplexity int) int
349 Status func(childComplexity int) int
350 }
351
352 BugSetTitleOperation struct {
353 Author func(childComplexity int) int
354 Id func(childComplexity int) int
355 Time func(childComplexity int) int
356 Title func(childComplexity int) int
357 Was func(childComplexity int) int
358 }
359
360 BugSetTitlePayload struct {
361 Bug func(childComplexity int) int
362 ClientMutationID func(childComplexity int) int
363 Operation func(childComplexity int) int
364 }
365
366 BugSetTitleTimelineItem struct {
367 Author func(childComplexity int) int
368 CombinedId func(childComplexity int) int
369 Date func(childComplexity int) int
370 Title func(childComplexity int) int
371 Was func(childComplexity int) int
372 }
373
374 BugStatusClosePayload struct {
375 Bug func(childComplexity int) int
376 ClientMutationID func(childComplexity int) int
377 Operation func(childComplexity int) int
378 }
379
380 BugStatusOpenPayload struct {
381 Bug func(childComplexity int) int
382 ClientMutationID func(childComplexity int) int
383 Operation func(childComplexity int) int
384 }
385
386 BugTimelineItemConnection struct {
387 Edges func(childComplexity int) int
388 Nodes func(childComplexity int) int
389 PageInfo func(childComplexity int) int
390 TotalCount func(childComplexity int) int
391 }
392
393 BugTimelineItemEdge struct {
394 Cursor func(childComplexity int) int
395 Node func(childComplexity int) int
396 }
397
398 Color struct {
399 B func(childComplexity int) int
400 G func(childComplexity int) int
401 R func(childComplexity int) int
402 }
403
404 Identity struct {
405 AvatarUrl func(childComplexity int) int
406 DisplayName func(childComplexity int) int
407 Email func(childComplexity int) int
408 HumanID func(childComplexity int) int
409 Id func(childComplexity int) int
410 IsProtected func(childComplexity int) int
411 Login func(childComplexity int) int
412 Name func(childComplexity int) int
413 }
414
415 IdentityConnection struct {
416 Edges func(childComplexity int) int
417 Nodes func(childComplexity int) int
418 PageInfo func(childComplexity int) int
419 TotalCount func(childComplexity int) int
420 }
421
422 IdentityEdge struct {
423 Cursor func(childComplexity int) int
424 Node func(childComplexity int) int
425 }
426
427 Label struct {
428 Color func(childComplexity int) int
429 Name func(childComplexity int) int
430 }
431
432 LabelChangeResult struct {
433 Label func(childComplexity int) int
434 Status func(childComplexity int) int
435 }
436
437 LabelConnection struct {
438 Edges func(childComplexity int) int
439 Nodes func(childComplexity int) int
440 PageInfo func(childComplexity int) int
441 TotalCount func(childComplexity int) int
442 }
443
444 LabelEdge struct {
445 Cursor func(childComplexity int) int
446 Node func(childComplexity int) int
447 }
448
449 Mutation struct {
450 BugAddComment func(childComplexity int, input models.BugAddCommentInput) int
451 BugAddCommentAndClose func(childComplexity int, input models.BugAddCommentAndCloseInput) int
452 BugAddCommentAndReopen func(childComplexity int, input models.BugAddCommentAndReopenInput) int
453 BugChangeLabels func(childComplexity int, input *models.BugChangeLabelInput) int
454 BugCreate func(childComplexity int, input models.BugCreateInput) int
455 BugEditComment func(childComplexity int, input models.BugEditCommentInput) int
456 BugSetTitle func(childComplexity int, input models.BugSetTitleInput) int
457 BugStatusClose func(childComplexity int, input models.BugStatusCloseInput) int
458 BugStatusOpen func(childComplexity int, input models.BugStatusOpenInput) int
459 }
460
461 OperationConnection struct {
462 Edges func(childComplexity int) int
463 Nodes func(childComplexity int) int
464 PageInfo func(childComplexity int) int
465 TotalCount func(childComplexity int) int
466 }
467
468 OperationEdge struct {
469 Cursor func(childComplexity int) int
470 Node func(childComplexity int) int
471 }
472
473 PageInfo struct {
474 EndCursor func(childComplexity int) int
475 HasNextPage func(childComplexity int) int
476 HasPreviousPage func(childComplexity int) int
477 StartCursor func(childComplexity int) int
478 }
479
480 Query struct {
481 Repository func(childComplexity int, ref *string) int
482 }
483
484 Repository struct {
485 AllBoards func(childComplexity int, after *string, before *string, first *int, last *int, query *string) int
486 AllBugs func(childComplexity int, after *string, before *string, first *int, last *int, query *string) int
487 AllIdentities func(childComplexity int, after *string, before *string, first *int, last *int) int
488 Board func(childComplexity int, prefix string) int
489 Bug func(childComplexity int, prefix string) int
490 Identity func(childComplexity int, prefix string) int
491 Name func(childComplexity int) int
492 UserIdentity func(childComplexity int) int
493 ValidLabels func(childComplexity int, after *string, before *string, first *int, last *int) int
494 }
495}
496
497type executableSchema struct {
498 schema *ast.Schema
499 resolvers ResolverRoot
500 directives DirectiveRoot
501 complexity ComplexityRoot
502}
503
504func (e *executableSchema) Schema() *ast.Schema {
505 if e.schema != nil {
506 return e.schema
507 }
508 return parsedSchema
509}
510
511func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
512 ec := executionContext{nil, e, 0, 0, nil}
513 _ = ec
514 switch typeName + "." + field {
515
516 case "Board.actors":
517 if e.complexity.Board.Actors == nil {
518 break
519 }
520
521 args, err := ec.field_Board_actors_args(ctx, rawArgs)
522 if err != nil {
523 return 0, false
524 }
525
526 return e.complexity.Board.Actors(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
527
528 case "Board.columns":
529 if e.complexity.Board.Columns == nil {
530 break
531 }
532
533 args, err := ec.field_Board_columns_args(ctx, rawArgs)
534 if err != nil {
535 return 0, false
536 }
537
538 return e.complexity.Board.Columns(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
539
540 case "Board.createdAt":
541 if e.complexity.Board.CreatedAt == nil {
542 break
543 }
544
545 return e.complexity.Board.CreatedAt(childComplexity), true
546
547 case "Board.description":
548 if e.complexity.Board.Description == nil {
549 break
550 }
551
552 return e.complexity.Board.Description(childComplexity), true
553
554 case "Board.humanId":
555 if e.complexity.Board.HumanID == nil {
556 break
557 }
558
559 return e.complexity.Board.HumanID(childComplexity), true
560
561 case "Board.id":
562 if e.complexity.Board.Id == nil {
563 break
564 }
565
566 return e.complexity.Board.Id(childComplexity), true
567
568 case "Board.lastEdit":
569 if e.complexity.Board.LastEdit == nil {
570 break
571 }
572
573 return e.complexity.Board.LastEdit(childComplexity), true
574
575 case "Board.operations":
576 if e.complexity.Board.Operations == nil {
577 break
578 }
579
580 args, err := ec.field_Board_operations_args(ctx, rawArgs)
581 if err != nil {
582 return 0, false
583 }
584
585 return e.complexity.Board.Operations(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
586
587 case "Board.title":
588 if e.complexity.Board.Title == nil {
589 break
590 }
591
592 return e.complexity.Board.Title(childComplexity), true
593
594 case "BoardAddItemDraftOperation.author":
595 if e.complexity.BoardAddItemDraftOperation.Author == nil {
596 break
597 }
598
599 return e.complexity.BoardAddItemDraftOperation.Author(childComplexity), true
600
601 case "BoardAddItemDraftOperation.columnId":
602 if e.complexity.BoardAddItemDraftOperation.ColumnId == nil {
603 break
604 }
605
606 return e.complexity.BoardAddItemDraftOperation.ColumnId(childComplexity), true
607
608 case "BoardAddItemDraftOperation.id":
609 if e.complexity.BoardAddItemDraftOperation.Id == nil {
610 break
611 }
612
613 return e.complexity.BoardAddItemDraftOperation.Id(childComplexity), true
614
615 case "BoardAddItemDraftOperation.date":
616 if e.complexity.BoardAddItemDraftOperation.Time == nil {
617 break
618 }
619
620 return e.complexity.BoardAddItemDraftOperation.Time(childComplexity), true
621
622 case "BoardAddItemDraftOperation.title":
623 if e.complexity.BoardAddItemDraftOperation.Title == nil {
624 break
625 }
626
627 return e.complexity.BoardAddItemDraftOperation.Title(childComplexity), true
628
629 case "BoardAddItemEntityOperation.author":
630 if e.complexity.BoardAddItemEntityOperation.Author == nil {
631 break
632 }
633
634 return e.complexity.BoardAddItemEntityOperation.Author(childComplexity), true
635
636 case "BoardAddItemEntityOperation.columnId":
637 if e.complexity.BoardAddItemEntityOperation.ColumnId == nil {
638 break
639 }
640
641 return e.complexity.BoardAddItemEntityOperation.ColumnId(childComplexity), true
642
643 case "BoardAddItemEntityOperation.entityId":
644 if e.complexity.BoardAddItemEntityOperation.EntityId == nil {
645 break
646 }
647
648 return e.complexity.BoardAddItemEntityOperation.EntityId(childComplexity), true
649
650 case "BoardAddItemEntityOperation.entityType":
651 if e.complexity.BoardAddItemEntityOperation.EntityType == nil {
652 break
653 }
654
655 return e.complexity.BoardAddItemEntityOperation.EntityType(childComplexity), true
656
657 case "BoardAddItemEntityOperation.id":
658 if e.complexity.BoardAddItemEntityOperation.Id == nil {
659 break
660 }
661
662 return e.complexity.BoardAddItemEntityOperation.Id(childComplexity), true
663
664 case "BoardAddItemEntityOperation.date":
665 if e.complexity.BoardAddItemEntityOperation.Time == nil {
666 break
667 }
668
669 return e.complexity.BoardAddItemEntityOperation.Time(childComplexity), true
670
671 case "BoardColumn.id":
672 if e.complexity.BoardColumn.CombinedId == nil {
673 break
674 }
675
676 return e.complexity.BoardColumn.CombinedId(childComplexity), true
677
678 case "BoardColumn.items":
679 if e.complexity.BoardColumn.Items == nil {
680 break
681 }
682
683 args, err := ec.field_BoardColumn_items_args(ctx, rawArgs)
684 if err != nil {
685 return 0, false
686 }
687
688 return e.complexity.BoardColumn.Items(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
689
690 case "BoardColumn.name":
691 if e.complexity.BoardColumn.Name == nil {
692 break
693 }
694
695 return e.complexity.BoardColumn.Name(childComplexity), true
696
697 case "BoardColumnConnection.edges":
698 if e.complexity.BoardColumnConnection.Edges == nil {
699 break
700 }
701
702 return e.complexity.BoardColumnConnection.Edges(childComplexity), true
703
704 case "BoardColumnConnection.nodes":
705 if e.complexity.BoardColumnConnection.Nodes == nil {
706 break
707 }
708
709 return e.complexity.BoardColumnConnection.Nodes(childComplexity), true
710
711 case "BoardColumnConnection.pageInfo":
712 if e.complexity.BoardColumnConnection.PageInfo == nil {
713 break
714 }
715
716 return e.complexity.BoardColumnConnection.PageInfo(childComplexity), true
717
718 case "BoardColumnConnection.totalCount":
719 if e.complexity.BoardColumnConnection.TotalCount == nil {
720 break
721 }
722
723 return e.complexity.BoardColumnConnection.TotalCount(childComplexity), true
724
725 case "BoardColumnEdge.cursor":
726 if e.complexity.BoardColumnEdge.Cursor == nil {
727 break
728 }
729
730 return e.complexity.BoardColumnEdge.Cursor(childComplexity), true
731
732 case "BoardColumnEdge.node":
733 if e.complexity.BoardColumnEdge.Node == nil {
734 break
735 }
736
737 return e.complexity.BoardColumnEdge.Node(childComplexity), true
738
739 case "BoardConnection.edges":
740 if e.complexity.BoardConnection.Edges == nil {
741 break
742 }
743
744 return e.complexity.BoardConnection.Edges(childComplexity), true
745
746 case "BoardConnection.nodes":
747 if e.complexity.BoardConnection.Nodes == nil {
748 break
749 }
750
751 return e.complexity.BoardConnection.Nodes(childComplexity), true
752
753 case "BoardConnection.pageInfo":
754 if e.complexity.BoardConnection.PageInfo == nil {
755 break
756 }
757
758 return e.complexity.BoardConnection.PageInfo(childComplexity), true
759
760 case "BoardConnection.totalCount":
761 if e.complexity.BoardConnection.TotalCount == nil {
762 break
763 }
764
765 return e.complexity.BoardConnection.TotalCount(childComplexity), true
766
767 case "BoardCreateOperation.author":
768 if e.complexity.BoardCreateOperation.Author == nil {
769 break
770 }
771
772 return e.complexity.BoardCreateOperation.Author(childComplexity), true
773
774 case "BoardCreateOperation.columns":
775 if e.complexity.BoardCreateOperation.Columns == nil {
776 break
777 }
778
779 return e.complexity.BoardCreateOperation.Columns(childComplexity), true
780
781 case "BoardCreateOperation.description":
782 if e.complexity.BoardCreateOperation.Description == nil {
783 break
784 }
785
786 return e.complexity.BoardCreateOperation.Description(childComplexity), true
787
788 case "BoardCreateOperation.id":
789 if e.complexity.BoardCreateOperation.Id == nil {
790 break
791 }
792
793 return e.complexity.BoardCreateOperation.Id(childComplexity), true
794
795 case "BoardCreateOperation.date":
796 if e.complexity.BoardCreateOperation.Time == nil {
797 break
798 }
799
800 return e.complexity.BoardCreateOperation.Time(childComplexity), true
801
802 case "BoardCreateOperation.title":
803 if e.complexity.BoardCreateOperation.Title == nil {
804 break
805 }
806
807 return e.complexity.BoardCreateOperation.Title(childComplexity), true
808
809 case "BoardEdge.cursor":
810 if e.complexity.BoardEdge.Cursor == nil {
811 break
812 }
813
814 return e.complexity.BoardEdge.Cursor(childComplexity), true
815
816 case "BoardEdge.node":
817 if e.complexity.BoardEdge.Node == nil {
818 break
819 }
820
821 return e.complexity.BoardEdge.Node(childComplexity), true
822
823 case "BoardItemBug.author":
824 if e.complexity.BoardItemBug.Author == nil {
825 break
826 }
827
828 return e.complexity.BoardItemBug.Author(childComplexity), true
829
830 case "BoardItemBug.id":
831 if e.complexity.BoardItemBug.CombinedId == nil {
832 break
833 }
834
835 return e.complexity.BoardItemBug.CombinedId(childComplexity), true
836
837 case "BoardItemBug.labels":
838 if e.complexity.BoardItemBug.Labels == nil {
839 break
840 }
841
842 return e.complexity.BoardItemBug.Labels(childComplexity), true
843
844 case "BoardItemBug.title":
845 if e.complexity.BoardItemBug.Title == nil {
846 break
847 }
848
849 return e.complexity.BoardItemBug.Title(childComplexity), true
850
851 case "BoardItemConnection.edges":
852 if e.complexity.BoardItemConnection.Edges == nil {
853 break
854 }
855
856 return e.complexity.BoardItemConnection.Edges(childComplexity), true
857
858 case "BoardItemConnection.nodes":
859 if e.complexity.BoardItemConnection.Nodes == nil {
860 break
861 }
862
863 return e.complexity.BoardItemConnection.Nodes(childComplexity), true
864
865 case "BoardItemConnection.pageInfo":
866 if e.complexity.BoardItemConnection.PageInfo == nil {
867 break
868 }
869
870 return e.complexity.BoardItemConnection.PageInfo(childComplexity), true
871
872 case "BoardItemConnection.totalCount":
873 if e.complexity.BoardItemConnection.TotalCount == nil {
874 break
875 }
876
877 return e.complexity.BoardItemConnection.TotalCount(childComplexity), true
878
879 case "BoardItemDraft.author":
880 if e.complexity.BoardItemDraft.Author == nil {
881 break
882 }
883
884 return e.complexity.BoardItemDraft.Author(childComplexity), true
885
886 case "BoardItemDraft.id":
887 if e.complexity.BoardItemDraft.CombinedId == nil {
888 break
889 }
890
891 return e.complexity.BoardItemDraft.CombinedId(childComplexity), true
892
893 case "BoardItemDraft.labels":
894 if e.complexity.BoardItemDraft.Labels == nil {
895 break
896 }
897
898 return e.complexity.BoardItemDraft.Labels(childComplexity), true
899
900 case "BoardItemDraft.title":
901 if e.complexity.BoardItemDraft.Title == nil {
902 break
903 }
904
905 return e.complexity.BoardItemDraft.Title(childComplexity), true
906
907 case "BoardItemEdge.cursor":
908 if e.complexity.BoardItemEdge.Cursor == nil {
909 break
910 }
911
912 return e.complexity.BoardItemEdge.Cursor(childComplexity), true
913
914 case "BoardItemEdge.node":
915 if e.complexity.BoardItemEdge.Node == nil {
916 break
917 }
918
919 return e.complexity.BoardItemEdge.Node(childComplexity), true
920
921 case "BoardSetDescriptionOperation.author":
922 if e.complexity.BoardSetDescriptionOperation.Author == nil {
923 break
924 }
925
926 return e.complexity.BoardSetDescriptionOperation.Author(childComplexity), true
927
928 case "BoardSetDescriptionOperation.description":
929 if e.complexity.BoardSetDescriptionOperation.Description == nil {
930 break
931 }
932
933 return e.complexity.BoardSetDescriptionOperation.Description(childComplexity), true
934
935 case "BoardSetDescriptionOperation.id":
936 if e.complexity.BoardSetDescriptionOperation.Id == nil {
937 break
938 }
939
940 return e.complexity.BoardSetDescriptionOperation.Id(childComplexity), true
941
942 case "BoardSetDescriptionOperation.date":
943 if e.complexity.BoardSetDescriptionOperation.Time == nil {
944 break
945 }
946
947 return e.complexity.BoardSetDescriptionOperation.Time(childComplexity), true
948
949 case "BoardSetDescriptionOperation.was":
950 if e.complexity.BoardSetDescriptionOperation.Was == nil {
951 break
952 }
953
954 return e.complexity.BoardSetDescriptionOperation.Was(childComplexity), true
955
956 case "BoardSetTitleOperation.author":
957 if e.complexity.BoardSetTitleOperation.Author == nil {
958 break
959 }
960
961 return e.complexity.BoardSetTitleOperation.Author(childComplexity), true
962
963 case "BoardSetTitleOperation.id":
964 if e.complexity.BoardSetTitleOperation.Id == nil {
965 break
966 }
967
968 return e.complexity.BoardSetTitleOperation.Id(childComplexity), true
969
970 case "BoardSetTitleOperation.date":
971 if e.complexity.BoardSetTitleOperation.Time == nil {
972 break
973 }
974
975 return e.complexity.BoardSetTitleOperation.Time(childComplexity), true
976
977 case "BoardSetTitleOperation.title":
978 if e.complexity.BoardSetTitleOperation.Title == nil {
979 break
980 }
981
982 return e.complexity.BoardSetTitleOperation.Title(childComplexity), true
983
984 case "BoardSetTitleOperation.was":
985 if e.complexity.BoardSetTitleOperation.Was == nil {
986 break
987 }
988
989 return e.complexity.BoardSetTitleOperation.Was(childComplexity), true
990
991 case "Bug.actors":
992 if e.complexity.Bug.Actors == nil {
993 break
994 }
995
996 args, err := ec.field_Bug_actors_args(ctx, rawArgs)
997 if err != nil {
998 return 0, false
999 }
1000
1001 return e.complexity.Bug.Actors(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1002
1003 case "Bug.author":
1004 if e.complexity.Bug.Author == nil {
1005 break
1006 }
1007
1008 return e.complexity.Bug.Author(childComplexity), true
1009
1010 case "Bug.comments":
1011 if e.complexity.Bug.Comments == nil {
1012 break
1013 }
1014
1015 args, err := ec.field_Bug_comments_args(ctx, rawArgs)
1016 if err != nil {
1017 return 0, false
1018 }
1019
1020 return e.complexity.Bug.Comments(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1021
1022 case "Bug.createdAt":
1023 if e.complexity.Bug.CreatedAt == nil {
1024 break
1025 }
1026
1027 return e.complexity.Bug.CreatedAt(childComplexity), true
1028
1029 case "Bug.humanId":
1030 if e.complexity.Bug.HumanID == nil {
1031 break
1032 }
1033
1034 return e.complexity.Bug.HumanID(childComplexity), true
1035
1036 case "Bug.id":
1037 if e.complexity.Bug.Id == nil {
1038 break
1039 }
1040
1041 return e.complexity.Bug.Id(childComplexity), true
1042
1043 case "Bug.labels":
1044 if e.complexity.Bug.Labels == nil {
1045 break
1046 }
1047
1048 return e.complexity.Bug.Labels(childComplexity), true
1049
1050 case "Bug.lastEdit":
1051 if e.complexity.Bug.LastEdit == nil {
1052 break
1053 }
1054
1055 return e.complexity.Bug.LastEdit(childComplexity), true
1056
1057 case "Bug.operations":
1058 if e.complexity.Bug.Operations == nil {
1059 break
1060 }
1061
1062 args, err := ec.field_Bug_operations_args(ctx, rawArgs)
1063 if err != nil {
1064 return 0, false
1065 }
1066
1067 return e.complexity.Bug.Operations(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1068
1069 case "Bug.participants":
1070 if e.complexity.Bug.Participants == nil {
1071 break
1072 }
1073
1074 args, err := ec.field_Bug_participants_args(ctx, rawArgs)
1075 if err != nil {
1076 return 0, false
1077 }
1078
1079 return e.complexity.Bug.Participants(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1080
1081 case "Bug.status":
1082 if e.complexity.Bug.Status == nil {
1083 break
1084 }
1085
1086 return e.complexity.Bug.Status(childComplexity), true
1087
1088 case "Bug.timeline":
1089 if e.complexity.Bug.Timeline == nil {
1090 break
1091 }
1092
1093 args, err := ec.field_Bug_timeline_args(ctx, rawArgs)
1094 if err != nil {
1095 return 0, false
1096 }
1097
1098 return e.complexity.Bug.Timeline(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1099
1100 case "Bug.title":
1101 if e.complexity.Bug.Title == nil {
1102 break
1103 }
1104
1105 return e.complexity.Bug.Title(childComplexity), true
1106
1107 case "BugAddCommentAndClosePayload.bug":
1108 if e.complexity.BugAddCommentAndClosePayload.Bug == nil {
1109 break
1110 }
1111
1112 return e.complexity.BugAddCommentAndClosePayload.Bug(childComplexity), true
1113
1114 case "BugAddCommentAndClosePayload.clientMutationId":
1115 if e.complexity.BugAddCommentAndClosePayload.ClientMutationID == nil {
1116 break
1117 }
1118
1119 return e.complexity.BugAddCommentAndClosePayload.ClientMutationID(childComplexity), true
1120
1121 case "BugAddCommentAndClosePayload.commentOperation":
1122 if e.complexity.BugAddCommentAndClosePayload.CommentOperation == nil {
1123 break
1124 }
1125
1126 return e.complexity.BugAddCommentAndClosePayload.CommentOperation(childComplexity), true
1127
1128 case "BugAddCommentAndClosePayload.statusOperation":
1129 if e.complexity.BugAddCommentAndClosePayload.StatusOperation == nil {
1130 break
1131 }
1132
1133 return e.complexity.BugAddCommentAndClosePayload.StatusOperation(childComplexity), true
1134
1135 case "BugAddCommentAndReopenPayload.bug":
1136 if e.complexity.BugAddCommentAndReopenPayload.Bug == nil {
1137 break
1138 }
1139
1140 return e.complexity.BugAddCommentAndReopenPayload.Bug(childComplexity), true
1141
1142 case "BugAddCommentAndReopenPayload.clientMutationId":
1143 if e.complexity.BugAddCommentAndReopenPayload.ClientMutationID == nil {
1144 break
1145 }
1146
1147 return e.complexity.BugAddCommentAndReopenPayload.ClientMutationID(childComplexity), true
1148
1149 case "BugAddCommentAndReopenPayload.commentOperation":
1150 if e.complexity.BugAddCommentAndReopenPayload.CommentOperation == nil {
1151 break
1152 }
1153
1154 return e.complexity.BugAddCommentAndReopenPayload.CommentOperation(childComplexity), true
1155
1156 case "BugAddCommentAndReopenPayload.statusOperation":
1157 if e.complexity.BugAddCommentAndReopenPayload.StatusOperation == nil {
1158 break
1159 }
1160
1161 return e.complexity.BugAddCommentAndReopenPayload.StatusOperation(childComplexity), true
1162
1163 case "BugAddCommentOperation.author":
1164 if e.complexity.BugAddCommentOperation.Author == nil {
1165 break
1166 }
1167
1168 return e.complexity.BugAddCommentOperation.Author(childComplexity), true
1169
1170 case "BugAddCommentOperation.files":
1171 if e.complexity.BugAddCommentOperation.Files == nil {
1172 break
1173 }
1174
1175 return e.complexity.BugAddCommentOperation.Files(childComplexity), true
1176
1177 case "BugAddCommentOperation.id":
1178 if e.complexity.BugAddCommentOperation.Id == nil {
1179 break
1180 }
1181
1182 return e.complexity.BugAddCommentOperation.Id(childComplexity), true
1183
1184 case "BugAddCommentOperation.message":
1185 if e.complexity.BugAddCommentOperation.Message == nil {
1186 break
1187 }
1188
1189 return e.complexity.BugAddCommentOperation.Message(childComplexity), true
1190
1191 case "BugAddCommentOperation.date":
1192 if e.complexity.BugAddCommentOperation.Time == nil {
1193 break
1194 }
1195
1196 return e.complexity.BugAddCommentOperation.Time(childComplexity), true
1197
1198 case "BugAddCommentPayload.bug":
1199 if e.complexity.BugAddCommentPayload.Bug == nil {
1200 break
1201 }
1202
1203 return e.complexity.BugAddCommentPayload.Bug(childComplexity), true
1204
1205 case "BugAddCommentPayload.clientMutationId":
1206 if e.complexity.BugAddCommentPayload.ClientMutationID == nil {
1207 break
1208 }
1209
1210 return e.complexity.BugAddCommentPayload.ClientMutationID(childComplexity), true
1211
1212 case "BugAddCommentPayload.operation":
1213 if e.complexity.BugAddCommentPayload.Operation == nil {
1214 break
1215 }
1216
1217 return e.complexity.BugAddCommentPayload.Operation(childComplexity), true
1218
1219 case "BugAddCommentTimelineItem.author":
1220 if e.complexity.BugAddCommentTimelineItem.Author == nil {
1221 break
1222 }
1223
1224 return e.complexity.BugAddCommentTimelineItem.Author(childComplexity), true
1225
1226 case "BugAddCommentTimelineItem.id":
1227 if e.complexity.BugAddCommentTimelineItem.CombinedId == nil {
1228 break
1229 }
1230
1231 return e.complexity.BugAddCommentTimelineItem.CombinedId(childComplexity), true
1232
1233 case "BugAddCommentTimelineItem.createdAt":
1234 if e.complexity.BugAddCommentTimelineItem.CreatedAt == nil {
1235 break
1236 }
1237
1238 return e.complexity.BugAddCommentTimelineItem.CreatedAt(childComplexity), true
1239
1240 case "BugAddCommentTimelineItem.edited":
1241 if e.complexity.BugAddCommentTimelineItem.Edited == nil {
1242 break
1243 }
1244
1245 return e.complexity.BugAddCommentTimelineItem.Edited(childComplexity), true
1246
1247 case "BugAddCommentTimelineItem.files":
1248 if e.complexity.BugAddCommentTimelineItem.Files == nil {
1249 break
1250 }
1251
1252 return e.complexity.BugAddCommentTimelineItem.Files(childComplexity), true
1253
1254 case "BugAddCommentTimelineItem.history":
1255 if e.complexity.BugAddCommentTimelineItem.History == nil {
1256 break
1257 }
1258
1259 return e.complexity.BugAddCommentTimelineItem.History(childComplexity), true
1260
1261 case "BugAddCommentTimelineItem.lastEdit":
1262 if e.complexity.BugAddCommentTimelineItem.LastEdit == nil {
1263 break
1264 }
1265
1266 return e.complexity.BugAddCommentTimelineItem.LastEdit(childComplexity), true
1267
1268 case "BugAddCommentTimelineItem.message":
1269 if e.complexity.BugAddCommentTimelineItem.Message == nil {
1270 break
1271 }
1272
1273 return e.complexity.BugAddCommentTimelineItem.Message(childComplexity), true
1274
1275 case "BugAddCommentTimelineItem.messageIsEmpty":
1276 if e.complexity.BugAddCommentTimelineItem.MessageIsEmpty == nil {
1277 break
1278 }
1279
1280 return e.complexity.BugAddCommentTimelineItem.MessageIsEmpty(childComplexity), true
1281
1282 case "BugChangeLabelPayload.bug":
1283 if e.complexity.BugChangeLabelPayload.Bug == nil {
1284 break
1285 }
1286
1287 return e.complexity.BugChangeLabelPayload.Bug(childComplexity), true
1288
1289 case "BugChangeLabelPayload.clientMutationId":
1290 if e.complexity.BugChangeLabelPayload.ClientMutationID == nil {
1291 break
1292 }
1293
1294 return e.complexity.BugChangeLabelPayload.ClientMutationID(childComplexity), true
1295
1296 case "BugChangeLabelPayload.operation":
1297 if e.complexity.BugChangeLabelPayload.Operation == nil {
1298 break
1299 }
1300
1301 return e.complexity.BugChangeLabelPayload.Operation(childComplexity), true
1302
1303 case "BugChangeLabelPayload.results":
1304 if e.complexity.BugChangeLabelPayload.Results == nil {
1305 break
1306 }
1307
1308 return e.complexity.BugChangeLabelPayload.Results(childComplexity), true
1309
1310 case "BugComment.author":
1311 if e.complexity.BugComment.Author == nil {
1312 break
1313 }
1314
1315 return e.complexity.BugComment.Author(childComplexity), true
1316
1317 case "BugComment.id":
1318 if e.complexity.BugComment.CombinedId == nil {
1319 break
1320 }
1321
1322 return e.complexity.BugComment.CombinedId(childComplexity), true
1323
1324 case "BugComment.files":
1325 if e.complexity.BugComment.Files == nil {
1326 break
1327 }
1328
1329 return e.complexity.BugComment.Files(childComplexity), true
1330
1331 case "BugComment.message":
1332 if e.complexity.BugComment.Message == nil {
1333 break
1334 }
1335
1336 return e.complexity.BugComment.Message(childComplexity), true
1337
1338 case "BugCommentConnection.edges":
1339 if e.complexity.BugCommentConnection.Edges == nil {
1340 break
1341 }
1342
1343 return e.complexity.BugCommentConnection.Edges(childComplexity), true
1344
1345 case "BugCommentConnection.nodes":
1346 if e.complexity.BugCommentConnection.Nodes == nil {
1347 break
1348 }
1349
1350 return e.complexity.BugCommentConnection.Nodes(childComplexity), true
1351
1352 case "BugCommentConnection.pageInfo":
1353 if e.complexity.BugCommentConnection.PageInfo == nil {
1354 break
1355 }
1356
1357 return e.complexity.BugCommentConnection.PageInfo(childComplexity), true
1358
1359 case "BugCommentConnection.totalCount":
1360 if e.complexity.BugCommentConnection.TotalCount == nil {
1361 break
1362 }
1363
1364 return e.complexity.BugCommentConnection.TotalCount(childComplexity), true
1365
1366 case "BugCommentEdge.cursor":
1367 if e.complexity.BugCommentEdge.Cursor == nil {
1368 break
1369 }
1370
1371 return e.complexity.BugCommentEdge.Cursor(childComplexity), true
1372
1373 case "BugCommentEdge.node":
1374 if e.complexity.BugCommentEdge.Node == nil {
1375 break
1376 }
1377
1378 return e.complexity.BugCommentEdge.Node(childComplexity), true
1379
1380 case "BugCommentHistoryStep.date":
1381 if e.complexity.BugCommentHistoryStep.Date == nil {
1382 break
1383 }
1384
1385 return e.complexity.BugCommentHistoryStep.Date(childComplexity), true
1386
1387 case "BugCommentHistoryStep.message":
1388 if e.complexity.BugCommentHistoryStep.Message == nil {
1389 break
1390 }
1391
1392 return e.complexity.BugCommentHistoryStep.Message(childComplexity), true
1393
1394 case "BugConnection.edges":
1395 if e.complexity.BugConnection.Edges == nil {
1396 break
1397 }
1398
1399 return e.complexity.BugConnection.Edges(childComplexity), true
1400
1401 case "BugConnection.nodes":
1402 if e.complexity.BugConnection.Nodes == nil {
1403 break
1404 }
1405
1406 return e.complexity.BugConnection.Nodes(childComplexity), true
1407
1408 case "BugConnection.pageInfo":
1409 if e.complexity.BugConnection.PageInfo == nil {
1410 break
1411 }
1412
1413 return e.complexity.BugConnection.PageInfo(childComplexity), true
1414
1415 case "BugConnection.totalCount":
1416 if e.complexity.BugConnection.TotalCount == nil {
1417 break
1418 }
1419
1420 return e.complexity.BugConnection.TotalCount(childComplexity), true
1421
1422 case "BugCreateOperation.author":
1423 if e.complexity.BugCreateOperation.Author == nil {
1424 break
1425 }
1426
1427 return e.complexity.BugCreateOperation.Author(childComplexity), true
1428
1429 case "BugCreateOperation.files":
1430 if e.complexity.BugCreateOperation.Files == nil {
1431 break
1432 }
1433
1434 return e.complexity.BugCreateOperation.Files(childComplexity), true
1435
1436 case "BugCreateOperation.id":
1437 if e.complexity.BugCreateOperation.Id == nil {
1438 break
1439 }
1440
1441 return e.complexity.BugCreateOperation.Id(childComplexity), true
1442
1443 case "BugCreateOperation.message":
1444 if e.complexity.BugCreateOperation.Message == nil {
1445 break
1446 }
1447
1448 return e.complexity.BugCreateOperation.Message(childComplexity), true
1449
1450 case "BugCreateOperation.date":
1451 if e.complexity.BugCreateOperation.Time == nil {
1452 break
1453 }
1454
1455 return e.complexity.BugCreateOperation.Time(childComplexity), true
1456
1457 case "BugCreateOperation.title":
1458 if e.complexity.BugCreateOperation.Title == nil {
1459 break
1460 }
1461
1462 return e.complexity.BugCreateOperation.Title(childComplexity), true
1463
1464 case "BugCreatePayload.bug":
1465 if e.complexity.BugCreatePayload.Bug == nil {
1466 break
1467 }
1468
1469 return e.complexity.BugCreatePayload.Bug(childComplexity), true
1470
1471 case "BugCreatePayload.clientMutationId":
1472 if e.complexity.BugCreatePayload.ClientMutationID == nil {
1473 break
1474 }
1475
1476 return e.complexity.BugCreatePayload.ClientMutationID(childComplexity), true
1477
1478 case "BugCreatePayload.operation":
1479 if e.complexity.BugCreatePayload.Operation == nil {
1480 break
1481 }
1482
1483 return e.complexity.BugCreatePayload.Operation(childComplexity), true
1484
1485 case "BugCreateTimelineItem.author":
1486 if e.complexity.BugCreateTimelineItem.Author == nil {
1487 break
1488 }
1489
1490 return e.complexity.BugCreateTimelineItem.Author(childComplexity), true
1491
1492 case "BugCreateTimelineItem.id":
1493 if e.complexity.BugCreateTimelineItem.CombinedId == nil {
1494 break
1495 }
1496
1497 return e.complexity.BugCreateTimelineItem.CombinedId(childComplexity), true
1498
1499 case "BugCreateTimelineItem.createdAt":
1500 if e.complexity.BugCreateTimelineItem.CreatedAt == nil {
1501 break
1502 }
1503
1504 return e.complexity.BugCreateTimelineItem.CreatedAt(childComplexity), true
1505
1506 case "BugCreateTimelineItem.edited":
1507 if e.complexity.BugCreateTimelineItem.Edited == nil {
1508 break
1509 }
1510
1511 return e.complexity.BugCreateTimelineItem.Edited(childComplexity), true
1512
1513 case "BugCreateTimelineItem.files":
1514 if e.complexity.BugCreateTimelineItem.Files == nil {
1515 break
1516 }
1517
1518 return e.complexity.BugCreateTimelineItem.Files(childComplexity), true
1519
1520 case "BugCreateTimelineItem.history":
1521 if e.complexity.BugCreateTimelineItem.History == nil {
1522 break
1523 }
1524
1525 return e.complexity.BugCreateTimelineItem.History(childComplexity), true
1526
1527 case "BugCreateTimelineItem.lastEdit":
1528 if e.complexity.BugCreateTimelineItem.LastEdit == nil {
1529 break
1530 }
1531
1532 return e.complexity.BugCreateTimelineItem.LastEdit(childComplexity), true
1533
1534 case "BugCreateTimelineItem.message":
1535 if e.complexity.BugCreateTimelineItem.Message == nil {
1536 break
1537 }
1538
1539 return e.complexity.BugCreateTimelineItem.Message(childComplexity), true
1540
1541 case "BugCreateTimelineItem.messageIsEmpty":
1542 if e.complexity.BugCreateTimelineItem.MessageIsEmpty == nil {
1543 break
1544 }
1545
1546 return e.complexity.BugCreateTimelineItem.MessageIsEmpty(childComplexity), true
1547
1548 case "BugEdge.cursor":
1549 if e.complexity.BugEdge.Cursor == nil {
1550 break
1551 }
1552
1553 return e.complexity.BugEdge.Cursor(childComplexity), true
1554
1555 case "BugEdge.node":
1556 if e.complexity.BugEdge.Node == nil {
1557 break
1558 }
1559
1560 return e.complexity.BugEdge.Node(childComplexity), true
1561
1562 case "BugEditCommentOperation.author":
1563 if e.complexity.BugEditCommentOperation.Author == nil {
1564 break
1565 }
1566
1567 return e.complexity.BugEditCommentOperation.Author(childComplexity), true
1568
1569 case "BugEditCommentOperation.files":
1570 if e.complexity.BugEditCommentOperation.Files == nil {
1571 break
1572 }
1573
1574 return e.complexity.BugEditCommentOperation.Files(childComplexity), true
1575
1576 case "BugEditCommentOperation.id":
1577 if e.complexity.BugEditCommentOperation.Id == nil {
1578 break
1579 }
1580
1581 return e.complexity.BugEditCommentOperation.Id(childComplexity), true
1582
1583 case "BugEditCommentOperation.message":
1584 if e.complexity.BugEditCommentOperation.Message == nil {
1585 break
1586 }
1587
1588 return e.complexity.BugEditCommentOperation.Message(childComplexity), true
1589
1590 case "BugEditCommentOperation.target":
1591 if e.complexity.BugEditCommentOperation.Target == nil {
1592 break
1593 }
1594
1595 return e.complexity.BugEditCommentOperation.Target(childComplexity), true
1596
1597 case "BugEditCommentOperation.date":
1598 if e.complexity.BugEditCommentOperation.Time == nil {
1599 break
1600 }
1601
1602 return e.complexity.BugEditCommentOperation.Time(childComplexity), true
1603
1604 case "BugEditCommentPayload.bug":
1605 if e.complexity.BugEditCommentPayload.Bug == nil {
1606 break
1607 }
1608
1609 return e.complexity.BugEditCommentPayload.Bug(childComplexity), true
1610
1611 case "BugEditCommentPayload.clientMutationId":
1612 if e.complexity.BugEditCommentPayload.ClientMutationID == nil {
1613 break
1614 }
1615
1616 return e.complexity.BugEditCommentPayload.ClientMutationID(childComplexity), true
1617
1618 case "BugEditCommentPayload.operation":
1619 if e.complexity.BugEditCommentPayload.Operation == nil {
1620 break
1621 }
1622
1623 return e.complexity.BugEditCommentPayload.Operation(childComplexity), true
1624
1625 case "BugLabelChangeOperation.added":
1626 if e.complexity.BugLabelChangeOperation.Added == nil {
1627 break
1628 }
1629
1630 return e.complexity.BugLabelChangeOperation.Added(childComplexity), true
1631
1632 case "BugLabelChangeOperation.author":
1633 if e.complexity.BugLabelChangeOperation.Author == nil {
1634 break
1635 }
1636
1637 return e.complexity.BugLabelChangeOperation.Author(childComplexity), true
1638
1639 case "BugLabelChangeOperation.id":
1640 if e.complexity.BugLabelChangeOperation.Id == nil {
1641 break
1642 }
1643
1644 return e.complexity.BugLabelChangeOperation.Id(childComplexity), true
1645
1646 case "BugLabelChangeOperation.removed":
1647 if e.complexity.BugLabelChangeOperation.Removed == nil {
1648 break
1649 }
1650
1651 return e.complexity.BugLabelChangeOperation.Removed(childComplexity), true
1652
1653 case "BugLabelChangeOperation.date":
1654 if e.complexity.BugLabelChangeOperation.Time == nil {
1655 break
1656 }
1657
1658 return e.complexity.BugLabelChangeOperation.Time(childComplexity), true
1659
1660 case "BugLabelChangeTimelineItem.added":
1661 if e.complexity.BugLabelChangeTimelineItem.Added == nil {
1662 break
1663 }
1664
1665 return e.complexity.BugLabelChangeTimelineItem.Added(childComplexity), true
1666
1667 case "BugLabelChangeTimelineItem.author":
1668 if e.complexity.BugLabelChangeTimelineItem.Author == nil {
1669 break
1670 }
1671
1672 return e.complexity.BugLabelChangeTimelineItem.Author(childComplexity), true
1673
1674 case "BugLabelChangeTimelineItem.id":
1675 if e.complexity.BugLabelChangeTimelineItem.CombinedId == nil {
1676 break
1677 }
1678
1679 return e.complexity.BugLabelChangeTimelineItem.CombinedId(childComplexity), true
1680
1681 case "BugLabelChangeTimelineItem.date":
1682 if e.complexity.BugLabelChangeTimelineItem.Date == nil {
1683 break
1684 }
1685
1686 return e.complexity.BugLabelChangeTimelineItem.Date(childComplexity), true
1687
1688 case "BugLabelChangeTimelineItem.removed":
1689 if e.complexity.BugLabelChangeTimelineItem.Removed == nil {
1690 break
1691 }
1692
1693 return e.complexity.BugLabelChangeTimelineItem.Removed(childComplexity), true
1694
1695 case "BugSetStatusOperation.author":
1696 if e.complexity.BugSetStatusOperation.Author == nil {
1697 break
1698 }
1699
1700 return e.complexity.BugSetStatusOperation.Author(childComplexity), true
1701
1702 case "BugSetStatusOperation.id":
1703 if e.complexity.BugSetStatusOperation.Id == nil {
1704 break
1705 }
1706
1707 return e.complexity.BugSetStatusOperation.Id(childComplexity), true
1708
1709 case "BugSetStatusOperation.status":
1710 if e.complexity.BugSetStatusOperation.Status == nil {
1711 break
1712 }
1713
1714 return e.complexity.BugSetStatusOperation.Status(childComplexity), true
1715
1716 case "BugSetStatusOperation.date":
1717 if e.complexity.BugSetStatusOperation.Time == nil {
1718 break
1719 }
1720
1721 return e.complexity.BugSetStatusOperation.Time(childComplexity), true
1722
1723 case "BugSetStatusTimelineItem.author":
1724 if e.complexity.BugSetStatusTimelineItem.Author == nil {
1725 break
1726 }
1727
1728 return e.complexity.BugSetStatusTimelineItem.Author(childComplexity), true
1729
1730 case "BugSetStatusTimelineItem.id":
1731 if e.complexity.BugSetStatusTimelineItem.CombinedId == nil {
1732 break
1733 }
1734
1735 return e.complexity.BugSetStatusTimelineItem.CombinedId(childComplexity), true
1736
1737 case "BugSetStatusTimelineItem.date":
1738 if e.complexity.BugSetStatusTimelineItem.Date == nil {
1739 break
1740 }
1741
1742 return e.complexity.BugSetStatusTimelineItem.Date(childComplexity), true
1743
1744 case "BugSetStatusTimelineItem.status":
1745 if e.complexity.BugSetStatusTimelineItem.Status == nil {
1746 break
1747 }
1748
1749 return e.complexity.BugSetStatusTimelineItem.Status(childComplexity), true
1750
1751 case "BugSetTitleOperation.author":
1752 if e.complexity.BugSetTitleOperation.Author == nil {
1753 break
1754 }
1755
1756 return e.complexity.BugSetTitleOperation.Author(childComplexity), true
1757
1758 case "BugSetTitleOperation.id":
1759 if e.complexity.BugSetTitleOperation.Id == nil {
1760 break
1761 }
1762
1763 return e.complexity.BugSetTitleOperation.Id(childComplexity), true
1764
1765 case "BugSetTitleOperation.date":
1766 if e.complexity.BugSetTitleOperation.Time == nil {
1767 break
1768 }
1769
1770 return e.complexity.BugSetTitleOperation.Time(childComplexity), true
1771
1772 case "BugSetTitleOperation.title":
1773 if e.complexity.BugSetTitleOperation.Title == nil {
1774 break
1775 }
1776
1777 return e.complexity.BugSetTitleOperation.Title(childComplexity), true
1778
1779 case "BugSetTitleOperation.was":
1780 if e.complexity.BugSetTitleOperation.Was == nil {
1781 break
1782 }
1783
1784 return e.complexity.BugSetTitleOperation.Was(childComplexity), true
1785
1786 case "BugSetTitlePayload.bug":
1787 if e.complexity.BugSetTitlePayload.Bug == nil {
1788 break
1789 }
1790
1791 return e.complexity.BugSetTitlePayload.Bug(childComplexity), true
1792
1793 case "BugSetTitlePayload.clientMutationId":
1794 if e.complexity.BugSetTitlePayload.ClientMutationID == nil {
1795 break
1796 }
1797
1798 return e.complexity.BugSetTitlePayload.ClientMutationID(childComplexity), true
1799
1800 case "BugSetTitlePayload.operation":
1801 if e.complexity.BugSetTitlePayload.Operation == nil {
1802 break
1803 }
1804
1805 return e.complexity.BugSetTitlePayload.Operation(childComplexity), true
1806
1807 case "BugSetTitleTimelineItem.author":
1808 if e.complexity.BugSetTitleTimelineItem.Author == nil {
1809 break
1810 }
1811
1812 return e.complexity.BugSetTitleTimelineItem.Author(childComplexity), true
1813
1814 case "BugSetTitleTimelineItem.id":
1815 if e.complexity.BugSetTitleTimelineItem.CombinedId == nil {
1816 break
1817 }
1818
1819 return e.complexity.BugSetTitleTimelineItem.CombinedId(childComplexity), true
1820
1821 case "BugSetTitleTimelineItem.date":
1822 if e.complexity.BugSetTitleTimelineItem.Date == nil {
1823 break
1824 }
1825
1826 return e.complexity.BugSetTitleTimelineItem.Date(childComplexity), true
1827
1828 case "BugSetTitleTimelineItem.title":
1829 if e.complexity.BugSetTitleTimelineItem.Title == nil {
1830 break
1831 }
1832
1833 return e.complexity.BugSetTitleTimelineItem.Title(childComplexity), true
1834
1835 case "BugSetTitleTimelineItem.was":
1836 if e.complexity.BugSetTitleTimelineItem.Was == nil {
1837 break
1838 }
1839
1840 return e.complexity.BugSetTitleTimelineItem.Was(childComplexity), true
1841
1842 case "BugStatusClosePayload.bug":
1843 if e.complexity.BugStatusClosePayload.Bug == nil {
1844 break
1845 }
1846
1847 return e.complexity.BugStatusClosePayload.Bug(childComplexity), true
1848
1849 case "BugStatusClosePayload.clientMutationId":
1850 if e.complexity.BugStatusClosePayload.ClientMutationID == nil {
1851 break
1852 }
1853
1854 return e.complexity.BugStatusClosePayload.ClientMutationID(childComplexity), true
1855
1856 case "BugStatusClosePayload.operation":
1857 if e.complexity.BugStatusClosePayload.Operation == nil {
1858 break
1859 }
1860
1861 return e.complexity.BugStatusClosePayload.Operation(childComplexity), true
1862
1863 case "BugStatusOpenPayload.bug":
1864 if e.complexity.BugStatusOpenPayload.Bug == nil {
1865 break
1866 }
1867
1868 return e.complexity.BugStatusOpenPayload.Bug(childComplexity), true
1869
1870 case "BugStatusOpenPayload.clientMutationId":
1871 if e.complexity.BugStatusOpenPayload.ClientMutationID == nil {
1872 break
1873 }
1874
1875 return e.complexity.BugStatusOpenPayload.ClientMutationID(childComplexity), true
1876
1877 case "BugStatusOpenPayload.operation":
1878 if e.complexity.BugStatusOpenPayload.Operation == nil {
1879 break
1880 }
1881
1882 return e.complexity.BugStatusOpenPayload.Operation(childComplexity), true
1883
1884 case "BugTimelineItemConnection.edges":
1885 if e.complexity.BugTimelineItemConnection.Edges == nil {
1886 break
1887 }
1888
1889 return e.complexity.BugTimelineItemConnection.Edges(childComplexity), true
1890
1891 case "BugTimelineItemConnection.nodes":
1892 if e.complexity.BugTimelineItemConnection.Nodes == nil {
1893 break
1894 }
1895
1896 return e.complexity.BugTimelineItemConnection.Nodes(childComplexity), true
1897
1898 case "BugTimelineItemConnection.pageInfo":
1899 if e.complexity.BugTimelineItemConnection.PageInfo == nil {
1900 break
1901 }
1902
1903 return e.complexity.BugTimelineItemConnection.PageInfo(childComplexity), true
1904
1905 case "BugTimelineItemConnection.totalCount":
1906 if e.complexity.BugTimelineItemConnection.TotalCount == nil {
1907 break
1908 }
1909
1910 return e.complexity.BugTimelineItemConnection.TotalCount(childComplexity), true
1911
1912 case "BugTimelineItemEdge.cursor":
1913 if e.complexity.BugTimelineItemEdge.Cursor == nil {
1914 break
1915 }
1916
1917 return e.complexity.BugTimelineItemEdge.Cursor(childComplexity), true
1918
1919 case "BugTimelineItemEdge.node":
1920 if e.complexity.BugTimelineItemEdge.Node == nil {
1921 break
1922 }
1923
1924 return e.complexity.BugTimelineItemEdge.Node(childComplexity), true
1925
1926 case "Color.B":
1927 if e.complexity.Color.B == nil {
1928 break
1929 }
1930
1931 return e.complexity.Color.B(childComplexity), true
1932
1933 case "Color.G":
1934 if e.complexity.Color.G == nil {
1935 break
1936 }
1937
1938 return e.complexity.Color.G(childComplexity), true
1939
1940 case "Color.R":
1941 if e.complexity.Color.R == nil {
1942 break
1943 }
1944
1945 return e.complexity.Color.R(childComplexity), true
1946
1947 case "Identity.avatarUrl":
1948 if e.complexity.Identity.AvatarUrl == nil {
1949 break
1950 }
1951
1952 return e.complexity.Identity.AvatarUrl(childComplexity), true
1953
1954 case "Identity.displayName":
1955 if e.complexity.Identity.DisplayName == nil {
1956 break
1957 }
1958
1959 return e.complexity.Identity.DisplayName(childComplexity), true
1960
1961 case "Identity.email":
1962 if e.complexity.Identity.Email == nil {
1963 break
1964 }
1965
1966 return e.complexity.Identity.Email(childComplexity), true
1967
1968 case "Identity.humanId":
1969 if e.complexity.Identity.HumanID == nil {
1970 break
1971 }
1972
1973 return e.complexity.Identity.HumanID(childComplexity), true
1974
1975 case "Identity.id":
1976 if e.complexity.Identity.Id == nil {
1977 break
1978 }
1979
1980 return e.complexity.Identity.Id(childComplexity), true
1981
1982 case "Identity.isProtected":
1983 if e.complexity.Identity.IsProtected == nil {
1984 break
1985 }
1986
1987 return e.complexity.Identity.IsProtected(childComplexity), true
1988
1989 case "Identity.login":
1990 if e.complexity.Identity.Login == nil {
1991 break
1992 }
1993
1994 return e.complexity.Identity.Login(childComplexity), true
1995
1996 case "Identity.name":
1997 if e.complexity.Identity.Name == nil {
1998 break
1999 }
2000
2001 return e.complexity.Identity.Name(childComplexity), true
2002
2003 case "IdentityConnection.edges":
2004 if e.complexity.IdentityConnection.Edges == nil {
2005 break
2006 }
2007
2008 return e.complexity.IdentityConnection.Edges(childComplexity), true
2009
2010 case "IdentityConnection.nodes":
2011 if e.complexity.IdentityConnection.Nodes == nil {
2012 break
2013 }
2014
2015 return e.complexity.IdentityConnection.Nodes(childComplexity), true
2016
2017 case "IdentityConnection.pageInfo":
2018 if e.complexity.IdentityConnection.PageInfo == nil {
2019 break
2020 }
2021
2022 return e.complexity.IdentityConnection.PageInfo(childComplexity), true
2023
2024 case "IdentityConnection.totalCount":
2025 if e.complexity.IdentityConnection.TotalCount == nil {
2026 break
2027 }
2028
2029 return e.complexity.IdentityConnection.TotalCount(childComplexity), true
2030
2031 case "IdentityEdge.cursor":
2032 if e.complexity.IdentityEdge.Cursor == nil {
2033 break
2034 }
2035
2036 return e.complexity.IdentityEdge.Cursor(childComplexity), true
2037
2038 case "IdentityEdge.node":
2039 if e.complexity.IdentityEdge.Node == nil {
2040 break
2041 }
2042
2043 return e.complexity.IdentityEdge.Node(childComplexity), true
2044
2045 case "Label.color":
2046 if e.complexity.Label.Color == nil {
2047 break
2048 }
2049
2050 return e.complexity.Label.Color(childComplexity), true
2051
2052 case "Label.name":
2053 if e.complexity.Label.Name == nil {
2054 break
2055 }
2056
2057 return e.complexity.Label.Name(childComplexity), true
2058
2059 case "LabelChangeResult.label":
2060 if e.complexity.LabelChangeResult.Label == nil {
2061 break
2062 }
2063
2064 return e.complexity.LabelChangeResult.Label(childComplexity), true
2065
2066 case "LabelChangeResult.status":
2067 if e.complexity.LabelChangeResult.Status == nil {
2068 break
2069 }
2070
2071 return e.complexity.LabelChangeResult.Status(childComplexity), true
2072
2073 case "LabelConnection.edges":
2074 if e.complexity.LabelConnection.Edges == nil {
2075 break
2076 }
2077
2078 return e.complexity.LabelConnection.Edges(childComplexity), true
2079
2080 case "LabelConnection.nodes":
2081 if e.complexity.LabelConnection.Nodes == nil {
2082 break
2083 }
2084
2085 return e.complexity.LabelConnection.Nodes(childComplexity), true
2086
2087 case "LabelConnection.pageInfo":
2088 if e.complexity.LabelConnection.PageInfo == nil {
2089 break
2090 }
2091
2092 return e.complexity.LabelConnection.PageInfo(childComplexity), true
2093
2094 case "LabelConnection.totalCount":
2095 if e.complexity.LabelConnection.TotalCount == nil {
2096 break
2097 }
2098
2099 return e.complexity.LabelConnection.TotalCount(childComplexity), true
2100
2101 case "LabelEdge.cursor":
2102 if e.complexity.LabelEdge.Cursor == nil {
2103 break
2104 }
2105
2106 return e.complexity.LabelEdge.Cursor(childComplexity), true
2107
2108 case "LabelEdge.node":
2109 if e.complexity.LabelEdge.Node == nil {
2110 break
2111 }
2112
2113 return e.complexity.LabelEdge.Node(childComplexity), true
2114
2115 case "Mutation.bugAddComment":
2116 if e.complexity.Mutation.BugAddComment == nil {
2117 break
2118 }
2119
2120 args, err := ec.field_Mutation_bugAddComment_args(ctx, rawArgs)
2121 if err != nil {
2122 return 0, false
2123 }
2124
2125 return e.complexity.Mutation.BugAddComment(childComplexity, args["input"].(models.BugAddCommentInput)), true
2126
2127 case "Mutation.bugAddCommentAndClose":
2128 if e.complexity.Mutation.BugAddCommentAndClose == nil {
2129 break
2130 }
2131
2132 args, err := ec.field_Mutation_bugAddCommentAndClose_args(ctx, rawArgs)
2133 if err != nil {
2134 return 0, false
2135 }
2136
2137 return e.complexity.Mutation.BugAddCommentAndClose(childComplexity, args["input"].(models.BugAddCommentAndCloseInput)), true
2138
2139 case "Mutation.bugAddCommentAndReopen":
2140 if e.complexity.Mutation.BugAddCommentAndReopen == nil {
2141 break
2142 }
2143
2144 args, err := ec.field_Mutation_bugAddCommentAndReopen_args(ctx, rawArgs)
2145 if err != nil {
2146 return 0, false
2147 }
2148
2149 return e.complexity.Mutation.BugAddCommentAndReopen(childComplexity, args["input"].(models.BugAddCommentAndReopenInput)), true
2150
2151 case "Mutation.bugChangeLabels":
2152 if e.complexity.Mutation.BugChangeLabels == nil {
2153 break
2154 }
2155
2156 args, err := ec.field_Mutation_bugChangeLabels_args(ctx, rawArgs)
2157 if err != nil {
2158 return 0, false
2159 }
2160
2161 return e.complexity.Mutation.BugChangeLabels(childComplexity, args["input"].(*models.BugChangeLabelInput)), true
2162
2163 case "Mutation.bugCreate":
2164 if e.complexity.Mutation.BugCreate == nil {
2165 break
2166 }
2167
2168 args, err := ec.field_Mutation_bugCreate_args(ctx, rawArgs)
2169 if err != nil {
2170 return 0, false
2171 }
2172
2173 return e.complexity.Mutation.BugCreate(childComplexity, args["input"].(models.BugCreateInput)), true
2174
2175 case "Mutation.bugEditComment":
2176 if e.complexity.Mutation.BugEditComment == nil {
2177 break
2178 }
2179
2180 args, err := ec.field_Mutation_bugEditComment_args(ctx, rawArgs)
2181 if err != nil {
2182 return 0, false
2183 }
2184
2185 return e.complexity.Mutation.BugEditComment(childComplexity, args["input"].(models.BugEditCommentInput)), true
2186
2187 case "Mutation.bugSetTitle":
2188 if e.complexity.Mutation.BugSetTitle == nil {
2189 break
2190 }
2191
2192 args, err := ec.field_Mutation_bugSetTitle_args(ctx, rawArgs)
2193 if err != nil {
2194 return 0, false
2195 }
2196
2197 return e.complexity.Mutation.BugSetTitle(childComplexity, args["input"].(models.BugSetTitleInput)), true
2198
2199 case "Mutation.bugStatusClose":
2200 if e.complexity.Mutation.BugStatusClose == nil {
2201 break
2202 }
2203
2204 args, err := ec.field_Mutation_bugStatusClose_args(ctx, rawArgs)
2205 if err != nil {
2206 return 0, false
2207 }
2208
2209 return e.complexity.Mutation.BugStatusClose(childComplexity, args["input"].(models.BugStatusCloseInput)), true
2210
2211 case "Mutation.bugStatusOpen":
2212 if e.complexity.Mutation.BugStatusOpen == nil {
2213 break
2214 }
2215
2216 args, err := ec.field_Mutation_bugStatusOpen_args(ctx, rawArgs)
2217 if err != nil {
2218 return 0, false
2219 }
2220
2221 return e.complexity.Mutation.BugStatusOpen(childComplexity, args["input"].(models.BugStatusOpenInput)), true
2222
2223 case "OperationConnection.edges":
2224 if e.complexity.OperationConnection.Edges == nil {
2225 break
2226 }
2227
2228 return e.complexity.OperationConnection.Edges(childComplexity), true
2229
2230 case "OperationConnection.nodes":
2231 if e.complexity.OperationConnection.Nodes == nil {
2232 break
2233 }
2234
2235 return e.complexity.OperationConnection.Nodes(childComplexity), true
2236
2237 case "OperationConnection.pageInfo":
2238 if e.complexity.OperationConnection.PageInfo == nil {
2239 break
2240 }
2241
2242 return e.complexity.OperationConnection.PageInfo(childComplexity), true
2243
2244 case "OperationConnection.totalCount":
2245 if e.complexity.OperationConnection.TotalCount == nil {
2246 break
2247 }
2248
2249 return e.complexity.OperationConnection.TotalCount(childComplexity), true
2250
2251 case "OperationEdge.cursor":
2252 if e.complexity.OperationEdge.Cursor == nil {
2253 break
2254 }
2255
2256 return e.complexity.OperationEdge.Cursor(childComplexity), true
2257
2258 case "OperationEdge.node":
2259 if e.complexity.OperationEdge.Node == nil {
2260 break
2261 }
2262
2263 return e.complexity.OperationEdge.Node(childComplexity), true
2264
2265 case "PageInfo.endCursor":
2266 if e.complexity.PageInfo.EndCursor == nil {
2267 break
2268 }
2269
2270 return e.complexity.PageInfo.EndCursor(childComplexity), true
2271
2272 case "PageInfo.hasNextPage":
2273 if e.complexity.PageInfo.HasNextPage == nil {
2274 break
2275 }
2276
2277 return e.complexity.PageInfo.HasNextPage(childComplexity), true
2278
2279 case "PageInfo.hasPreviousPage":
2280 if e.complexity.PageInfo.HasPreviousPage == nil {
2281 break
2282 }
2283
2284 return e.complexity.PageInfo.HasPreviousPage(childComplexity), true
2285
2286 case "PageInfo.startCursor":
2287 if e.complexity.PageInfo.StartCursor == nil {
2288 break
2289 }
2290
2291 return e.complexity.PageInfo.StartCursor(childComplexity), true
2292
2293 case "Query.repository":
2294 if e.complexity.Query.Repository == nil {
2295 break
2296 }
2297
2298 args, err := ec.field_Query_repository_args(ctx, rawArgs)
2299 if err != nil {
2300 return 0, false
2301 }
2302
2303 return e.complexity.Query.Repository(childComplexity, args["ref"].(*string)), true
2304
2305 case "Repository.allBoards":
2306 if e.complexity.Repository.AllBoards == nil {
2307 break
2308 }
2309
2310 args, err := ec.field_Repository_allBoards_args(ctx, rawArgs)
2311 if err != nil {
2312 return 0, false
2313 }
2314
2315 return e.complexity.Repository.AllBoards(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string)), true
2316
2317 case "Repository.allBugs":
2318 if e.complexity.Repository.AllBugs == nil {
2319 break
2320 }
2321
2322 args, err := ec.field_Repository_allBugs_args(ctx, rawArgs)
2323 if err != nil {
2324 return 0, false
2325 }
2326
2327 return e.complexity.Repository.AllBugs(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string)), true
2328
2329 case "Repository.allIdentities":
2330 if e.complexity.Repository.AllIdentities == nil {
2331 break
2332 }
2333
2334 args, err := ec.field_Repository_allIdentities_args(ctx, rawArgs)
2335 if err != nil {
2336 return 0, false
2337 }
2338
2339 return e.complexity.Repository.AllIdentities(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
2340
2341 case "Repository.board":
2342 if e.complexity.Repository.Board == nil {
2343 break
2344 }
2345
2346 args, err := ec.field_Repository_board_args(ctx, rawArgs)
2347 if err != nil {
2348 return 0, false
2349 }
2350
2351 return e.complexity.Repository.Board(childComplexity, args["prefix"].(string)), true
2352
2353 case "Repository.bug":
2354 if e.complexity.Repository.Bug == nil {
2355 break
2356 }
2357
2358 args, err := ec.field_Repository_bug_args(ctx, rawArgs)
2359 if err != nil {
2360 return 0, false
2361 }
2362
2363 return e.complexity.Repository.Bug(childComplexity, args["prefix"].(string)), true
2364
2365 case "Repository.identity":
2366 if e.complexity.Repository.Identity == nil {
2367 break
2368 }
2369
2370 args, err := ec.field_Repository_identity_args(ctx, rawArgs)
2371 if err != nil {
2372 return 0, false
2373 }
2374
2375 return e.complexity.Repository.Identity(childComplexity, args["prefix"].(string)), true
2376
2377 case "Repository.name":
2378 if e.complexity.Repository.Name == nil {
2379 break
2380 }
2381
2382 return e.complexity.Repository.Name(childComplexity), true
2383
2384 case "Repository.userIdentity":
2385 if e.complexity.Repository.UserIdentity == nil {
2386 break
2387 }
2388
2389 return e.complexity.Repository.UserIdentity(childComplexity), true
2390
2391 case "Repository.validLabels":
2392 if e.complexity.Repository.ValidLabels == nil {
2393 break
2394 }
2395
2396 args, err := ec.field_Repository_validLabels_args(ctx, rawArgs)
2397 if err != nil {
2398 return 0, false
2399 }
2400
2401 return e.complexity.Repository.ValidLabels(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
2402
2403 }
2404 return 0, false
2405}
2406
2407func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
2408 opCtx := graphql.GetOperationContext(ctx)
2409 ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)}
2410 inputUnmarshalMap := graphql.BuildUnmarshalerMap(
2411 ec.unmarshalInputBugAddCommentAndCloseInput,
2412 ec.unmarshalInputBugAddCommentAndReopenInput,
2413 ec.unmarshalInputBugAddCommentInput,
2414 ec.unmarshalInputBugChangeLabelInput,
2415 ec.unmarshalInputBugCreateInput,
2416 ec.unmarshalInputBugEditCommentInput,
2417 ec.unmarshalInputBugSetTitleInput,
2418 ec.unmarshalInputBugStatusCloseInput,
2419 ec.unmarshalInputBugStatusOpenInput,
2420 )
2421 first := true
2422
2423 switch opCtx.Operation.Operation {
2424 case ast.Query:
2425 return func(ctx context.Context) *graphql.Response {
2426 var response graphql.Response
2427 var data graphql.Marshaler
2428 if first {
2429 first = false
2430 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
2431 data = ec._Query(ctx, opCtx.Operation.SelectionSet)
2432 } else {
2433 if atomic.LoadInt32(&ec.pendingDeferred) > 0 {
2434 result := <-ec.deferredResults
2435 atomic.AddInt32(&ec.pendingDeferred, -1)
2436 data = result.Result
2437 response.Path = result.Path
2438 response.Label = result.Label
2439 response.Errors = result.Errors
2440 } else {
2441 return nil
2442 }
2443 }
2444 var buf bytes.Buffer
2445 data.MarshalGQL(&buf)
2446 response.Data = buf.Bytes()
2447 if atomic.LoadInt32(&ec.deferred) > 0 {
2448 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0
2449 response.HasNext = &hasNext
2450 }
2451
2452 return &response
2453 }
2454 case ast.Mutation:
2455 return func(ctx context.Context) *graphql.Response {
2456 if !first {
2457 return nil
2458 }
2459 first = false
2460 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
2461 data := ec._Mutation(ctx, opCtx.Operation.SelectionSet)
2462 var buf bytes.Buffer
2463 data.MarshalGQL(&buf)
2464
2465 return &graphql.Response{
2466 Data: buf.Bytes(),
2467 }
2468 }
2469
2470 default:
2471 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
2472 }
2473}
2474
2475type executionContext struct {
2476 *graphql.OperationContext
2477 *executableSchema
2478 deferred int32
2479 pendingDeferred int32
2480 deferredResults chan graphql.DeferredResult
2481}
2482
2483func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
2484 atomic.AddInt32(&ec.pendingDeferred, 1)
2485 go func() {
2486 ctx := graphql.WithFreshResponseContext(dg.Context)
2487 dg.FieldSet.Dispatch(ctx)
2488 ds := graphql.DeferredResult{
2489 Path: dg.Path,
2490 Label: dg.Label,
2491 Result: dg.FieldSet,
2492 Errors: graphql.GetErrors(ctx),
2493 }
2494 // null fields should bubble up
2495 if dg.FieldSet.Invalids > 0 {
2496 ds.Result = graphql.Null
2497 }
2498 ec.deferredResults <- ds
2499 }()
2500}
2501
2502func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
2503 if ec.DisableIntrospection {
2504 return nil, errors.New("introspection disabled")
2505 }
2506 return introspection.WrapSchema(ec.Schema()), nil
2507}
2508
2509func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
2510 if ec.DisableIntrospection {
2511 return nil, errors.New("introspection disabled")
2512 }
2513 return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil
2514}
2515
2516var sources = []*ast.Source{
2517 {Name: "../schema/board.graphql", Input: `type Board
2518@goModel(model: "github.com/git-bug/git-bug/api/graphql/models.BoardWrapper") {
2519
2520 """The identifier for this board"""
2521 id: ID!
2522 """The human version (truncated) identifier for this board"""
2523 humanId: String!
2524
2525 createdAt: Time!
2526 lastEdit: Time!
2527
2528 title: String!
2529 description: String!
2530
2531 columns(
2532 """Returns the elements in the list that come after the specified cursor."""
2533 after: String
2534 """Returns the elements in the list that come before the specified cursor."""
2535 before: String
2536 """Returns the first _n_ elements from the list."""
2537 first: Int
2538 """Returns the last _n_ elements from the list."""
2539 last: Int
2540 ): BoardColumnConnection!
2541
2542 """The actors of the board. Actors are Identity that have interacted with the board."""
2543 actors(
2544 """Returns the elements in the list that come after the specified cursor."""
2545 after: String
2546 """Returns the elements in the list that come before the specified cursor."""
2547 before: String
2548 """Returns the first _n_ elements from the list."""
2549 first: Int
2550 """Returns the last _n_ elements from the list."""
2551 last: Int
2552 ): IdentityConnection!
2553
2554 operations(
2555 """Returns the elements in the list that come after the specified cursor."""
2556 after: String
2557 """Returns the elements in the list that come before the specified cursor."""
2558 before: String
2559 """Returns the first _n_ elements from the list."""
2560 first: Int
2561 """Returns the last _n_ elements from the list."""
2562 last: Int
2563 ): OperationConnection!
2564}
2565
2566"""The connection type for Board."""
2567type BoardConnection {
2568 """A list of edges."""
2569 edges: [BoardEdge!]!
2570 nodes: [Board!]!
2571 """Information to aid in pagination."""
2572 pageInfo: PageInfo!
2573 """Identifies the total count of items in the connection."""
2574 totalCount: Int!
2575}
2576
2577"""An edge in a connection."""
2578type BoardEdge {
2579 """A cursor for use in pagination."""
2580 cursor: String!
2581 """The item at the end of the edge."""
2582 node: Board!
2583}
2584`, BuiltIn: false},
2585 {Name: "../schema/board_columns.graphql", Input: `"""Represents a column on a Board."""
2586type BoardColumn
2587@goModel(model: "github.com/git-bug/git-bug/entities/board.Column") {
2588 id: CombinedId! @goField(name: "CombinedId")
2589
2590 name: String!
2591
2592 items(
2593 """Returns the elements in the list that come after the specified cursor."""
2594 after: String
2595 """Returns the elements in the list that come before the specified cursor."""
2596 before: String
2597 """Returns the first _n_ elements from the list."""
2598 first: Int
2599 """Returns the last _n_ elements from the list."""
2600 last: Int
2601 ): BoardItemConnection!
2602}
2603
2604type BoardColumnConnection {
2605 edges: [BoardColumnEdge!]!
2606 nodes: [BoardColumn!]!
2607 pageInfo: PageInfo!
2608 totalCount: Int!
2609}
2610
2611type BoardColumnEdge {
2612 cursor: String!
2613 node: BoardColumn!
2614}
2615`, BuiltIn: false},
2616 {Name: "../schema/board_item.graphql", Input: `"""Represents an Item on a Board's Column."""
2617interface BoardItem
2618@goModel(model: "github.com/git-bug/git-bug/entities/board.Item") {
2619 """The identifier of the item"""
2620 id: CombinedId! @goField(name: "CombinedId")
2621 """The item's author."""
2622 author: Identity!
2623 """The item's title."""
2624 title: String!
2625 """The item's labels."""
2626 labels: [Label!]!
2627}
2628
2629type BoardItemConnection {
2630 edges: [BoardItemEdge!]!
2631 nodes: [BoardItem!]!
2632 pageInfo: PageInfo!
2633 totalCount: Int!
2634}
2635
2636type BoardItemEdge {
2637 cursor: String!
2638 node: BoardItem!
2639}
2640
2641type BoardItemDraft implements BoardItem & Authored
2642@goModel(model: "github.com/git-bug/git-bug/entities/board.Draft") {
2643 """The identifier of the item"""
2644 id: CombinedId! @goField(name: "CombinedId")
2645 """The item's author."""
2646 author: Identity!
2647 """The item's title."""
2648 title: String!
2649 """The item's labels."""
2650 labels: [Label!]!
2651}
2652
2653type BoardItemBug implements BoardItem & Authored
2654@goModel(model: "github.com/git-bug/git-bug/entities/board.BugItem") {
2655 """The identifier of the item"""
2656 id: CombinedId! @goField(name: "CombinedId")
2657 """The item's author."""
2658 author: Identity!
2659 """The item's title."""
2660 title: String!
2661 """The item's labels."""
2662 labels: [Label!]!
2663}
2664`, BuiltIn: false},
2665 {Name: "../schema/board_operations.graphql", Input: `type BoardCreateOperation implements Operation & Authored
2666@goModel(model: "github.com/git-bug/git-bug/entities/board.CreateOperation") {
2667 """The identifier of the operation"""
2668 id: ID!
2669 """The author of this object."""
2670 author: Identity!
2671 """The datetime when this operation was issued."""
2672 date: Time! @goField(name: "Time")
2673
2674 title: String!
2675 description: String!
2676 columns: [String!]!
2677}
2678
2679type BoardAddItemDraftOperation implements Operation & Authored
2680@goModel(model: "github.com/git-bug/git-bug/entities/board.AddItemDraftOperation") {
2681 """The identifier of the operation"""
2682 id: ID!
2683 """The author of this object."""
2684 author: Identity!
2685 """The datetime when this operation was issued."""
2686 date: Time! @goField(name: "Time")
2687
2688 columnId: ID!
2689 title: String!
2690}
2691
2692type BoardAddItemEntityOperation implements Operation & Authored
2693@goModel(model: "github.com/git-bug/git-bug/entities/board.AddItemEntityOperation") {
2694 """The identifier of the operation"""
2695 id: ID!
2696 """The author of this object."""
2697 author: Identity!
2698 """The datetime when this operation was issued."""
2699 date: Time! @goField(name: "Time")
2700
2701 columnId: ID!
2702 entityType: BoardItemEntityType!
2703 entityId: ID!
2704}
2705
2706enum BoardItemEntityType {
2707 BUG
2708}
2709
2710type BoardSetDescriptionOperation implements Operation & Authored
2711@goModel(model: "github.com/git-bug/git-bug/entities/board.SetDescriptionOperation") {
2712 """The identifier of the operation"""
2713 id: ID!
2714 """The author of this object."""
2715 author: Identity!
2716 """The datetime when this operation was issued."""
2717 date: Time! @goField(name: "Time")
2718
2719 description: String!
2720 was: String!
2721}
2722
2723type BoardSetTitleOperation implements Operation & Authored
2724@goModel(model: "github.com/git-bug/git-bug/entities/board.SetTitleOperation") {
2725 """The identifier of the operation"""
2726 id: ID!
2727 """The author of this object."""
2728 author: Identity!
2729 """The datetime when this operation was issued."""
2730 date: Time! @goField(name: "Time")
2731
2732 title: String!
2733 was: String!
2734}
2735`, BuiltIn: false},
2736 {Name: "../schema/bug.graphql", Input: `type Bug implements Authored
2737@goModel(model: "github.com/git-bug/git-bug/api/graphql/models.BugWrapper") {
2738
2739 """The identifier for this bug"""
2740 id: ID!
2741 """The human version (truncated) identifier for this bug"""
2742 humanId: String!
2743
2744 createdAt: Time!
2745 lastEdit: Time!
2746
2747 status: Status!
2748 title: String!
2749 labels: [Label!]!
2750 author: Identity!
2751
2752 """The actors of the bug. Actors are Identity that have interacted with the bug."""
2753 actors(
2754 """Returns the elements in the list that come after the specified cursor."""
2755 after: String
2756 """Returns the elements in the list that come before the specified cursor."""
2757 before: String
2758 """Returns the first _n_ elements from the list."""
2759 first: Int
2760 """Returns the last _n_ elements from the list."""
2761 last: Int
2762 ): IdentityConnection!
2763
2764 """The participants of the bug. Participants are Identity that have created or
2765 added a comment on the bug."""
2766 participants(
2767 """Returns the elements in the list that come after the specified cursor."""
2768 after: String
2769 """Returns the elements in the list that come before the specified cursor."""
2770 before: String
2771 """Returns the first _n_ elements from the list."""
2772 first: Int
2773 """Returns the last _n_ elements from the list."""
2774 last: Int
2775 ): IdentityConnection!
2776
2777 """The comments of the bug. They include the bug's creation comment."""
2778 comments(
2779 """Returns the elements in the list that come after the specified cursor."""
2780 after: String
2781 """Returns the elements in the list that come before the specified cursor."""
2782 before: String
2783 """Returns the first _n_ elements from the list."""
2784 first: Int
2785 """Returns the last _n_ elements from the list."""
2786 last: Int
2787 ): BugCommentConnection!
2788
2789 """The timeline of changes on the bug."""
2790 timeline(
2791 """Returns the elements in the list that come after the specified cursor."""
2792 after: String
2793 """Returns the elements in the list that come before the specified cursor."""
2794 before: String
2795 """Returns the first _n_ elements from the list."""
2796 first: Int
2797 """Returns the last _n_ elements from the list."""
2798 last: Int
2799 ): BugTimelineItemConnection!
2800
2801 """The raw operations on the bug."""
2802 operations(
2803 """Returns the elements in the list that come after the specified cursor."""
2804 after: String
2805 """Returns the elements in the list that come before the specified cursor."""
2806 before: String
2807 """Returns the first _n_ elements from the list."""
2808 first: Int
2809 """Returns the last _n_ elements from the list."""
2810 last: Int
2811 ): OperationConnection!
2812}
2813
2814"""The connection type for Bug."""
2815type BugConnection {
2816 """A list of edges."""
2817 edges: [BugEdge!]!
2818 nodes: [Bug!]!
2819 """Information to aid in pagination."""
2820 pageInfo: PageInfo!
2821 """Identifies the total count of items in the connection."""
2822 totalCount: Int!
2823}
2824
2825"""An edge in a connection."""
2826type BugEdge {
2827 """A cursor for use in pagination."""
2828 cursor: String!
2829 """The item at the end of the edge."""
2830 node: Bug!
2831}
2832`, BuiltIn: false},
2833 {Name: "../schema/bug_comment.graphql", Input: `"""Represents a comment on a bug."""
2834type BugComment implements Authored
2835@goModel(model: "github.com/git-bug/git-bug/entities/bug.Comment") {
2836 id: CombinedId! @goField(name: "CombinedId")
2837
2838 """The author of this comment."""
2839 author: Identity!
2840
2841 """The message of this comment."""
2842 message: String!
2843
2844 """All media's hash referenced in this comment"""
2845 files: [Hash!]!
2846}
2847
2848type BugCommentConnection {
2849 edges: [BugCommentEdge!]!
2850 nodes: [BugComment!]!
2851 pageInfo: PageInfo!
2852 totalCount: Int!
2853}
2854
2855type BugCommentEdge {
2856 cursor: String!
2857 node: BugComment!
2858}
2859`, BuiltIn: false},
2860 {Name: "../schema/bug_mutations.graphql", Input: `extend type Mutation {
2861 """Create a new bug"""
2862 bugCreate(input: BugCreateInput!): BugCreatePayload!
2863 """Add a new comment to a bug"""
2864 bugAddComment(input: BugAddCommentInput!): BugAddCommentPayload!
2865 """Add a new comment to a bug and close it"""
2866 bugAddCommentAndClose(input: BugAddCommentAndCloseInput!): BugAddCommentAndClosePayload!
2867 """Add a new comment to a bug and reopen it"""
2868 bugAddCommentAndReopen(input: BugAddCommentAndReopenInput!): BugAddCommentAndReopenPayload!
2869 """Change a comment of a bug"""
2870 bugEditComment(input: BugEditCommentInput!): BugEditCommentPayload!
2871 """Add or remove a set of label on a bug"""
2872 bugChangeLabels(input: BugChangeLabelInput): BugChangeLabelPayload!
2873 """Change a bug's status to open"""
2874 bugStatusOpen(input: BugStatusOpenInput!): BugStatusOpenPayload!
2875 """Change a bug's status to closed"""
2876 bugStatusClose(input: BugStatusCloseInput!): BugStatusClosePayload!
2877 """Change a bug's title"""
2878 bugSetTitle(input: BugSetTitleInput!): BugSetTitlePayload!
2879}
2880
2881input BugCreateInput {
2882 """A unique identifier for the client performing the mutation."""
2883 clientMutationId: String
2884 """The name of the repository. If not set, the default repository is used."""
2885 repoRef: String
2886 """The title of the new bug."""
2887 title: String!
2888 """The first message of the new bug."""
2889 message: String!
2890 """The collection of file's hash required for the first message."""
2891 files: [Hash!]
2892}
2893
2894type BugCreatePayload {
2895 """A unique identifier for the client performing the mutation."""
2896 clientMutationId: String
2897 """The created bug."""
2898 bug: Bug!
2899 """The resulting operation."""
2900 operation: BugCreateOperation!
2901}
2902
2903input BugAddCommentInput {
2904 """A unique identifier for the client performing the mutation."""
2905 clientMutationId: String
2906 """The name of the repository. If not set, the default repository is used."""
2907 repoRef: String
2908 """The bug ID's prefix."""
2909 prefix: String!
2910 """The message to be added to the bug."""
2911 message: String!
2912 """The collection of file's hash required for the first message."""
2913 files: [Hash!]
2914}
2915
2916type BugAddCommentPayload {
2917 """A unique identifier for the client performing the mutation."""
2918 clientMutationId: String
2919 """The affected bug."""
2920 bug: Bug!
2921 """The resulting operation."""
2922 operation: BugAddCommentOperation!
2923}
2924
2925input BugAddCommentAndCloseInput {
2926 """A unique identifier for the client performing the mutation."""
2927 clientMutationId: String
2928 """The name of the repository. If not set, the default repository is used."""
2929 repoRef: String
2930 """The bug ID's prefix."""
2931 prefix: String!
2932 """The message to be added to the bug."""
2933 message: String!
2934 """The collection of file's hash required for the first message."""
2935 files: [Hash!]
2936}
2937
2938type BugAddCommentAndClosePayload {
2939 """A unique identifier for the client performing the mutation."""
2940 clientMutationId: String
2941 """The affected bug."""
2942 bug: Bug!
2943 """The resulting AddComment operation."""
2944 commentOperation: BugAddCommentOperation!
2945 """The resulting SetStatusOperation."""
2946 statusOperation: BugSetStatusOperation!
2947}
2948
2949input BugAddCommentAndReopenInput {
2950 """A unique identifier for the client performing the mutation."""
2951 clientMutationId: String
2952 """The name of the repository. If not set, the default repository is used."""
2953 repoRef: String
2954 """The bug ID's prefix."""
2955 prefix: String!
2956 """The message to be added to the bug."""
2957 message: String!
2958 """The collection of file's hash required for the first message."""
2959 files: [Hash!]
2960}
2961
2962type BugAddCommentAndReopenPayload {
2963 """A unique identifier for the client performing the mutation."""
2964 clientMutationId: String
2965 """The affected bug."""
2966 bug: Bug!
2967 """The resulting AddComment operation."""
2968 commentOperation: BugAddCommentOperation!
2969 """The resulting SetStatusOperation."""
2970 statusOperation: BugSetStatusOperation!
2971}
2972
2973input BugEditCommentInput {
2974 """A unique identifier for the client performing the mutation."""
2975 clientMutationId: String
2976 """The name of the repository. If not set, the default repository is used."""
2977 repoRef: String
2978 """A prefix of the CombinedId of the comment to be changed."""
2979 targetPrefix: String!
2980 """The new message to be set."""
2981 message: String!
2982 """The collection of file's hash required for the first message."""
2983 files: [Hash!]
2984}
2985
2986type BugEditCommentPayload {
2987 """A unique identifier for the client performing the mutation."""
2988 clientMutationId: String
2989 """The affected bug."""
2990 bug: Bug!
2991 """The resulting operation."""
2992 operation: BugEditCommentOperation!
2993}
2994
2995input BugChangeLabelInput {
2996 """A unique identifier for the client performing the mutation."""
2997 clientMutationId: String
2998 """The name of the repository. If not set, the default repository is used."""
2999 repoRef: String
3000 """The bug ID's prefix."""
3001 prefix: String!
3002 """The list of label to add."""
3003 added: [String!]
3004 """The list of label to remove."""
3005 Removed: [String!]
3006}
3007
3008type BugChangeLabelPayload {
3009 """A unique identifier for the client performing the mutation."""
3010 clientMutationId: String
3011 """The affected bug."""
3012 bug: Bug!
3013 """The resulting operation."""
3014 operation: BugLabelChangeOperation!
3015 """The effect each source label had."""
3016 results: [LabelChangeResult]!
3017}
3018
3019input BugStatusOpenInput {
3020 """A unique identifier for the client performing the mutation."""
3021 clientMutationId: String
3022 """The name of the repository. If not set, the default repository is used."""
3023 repoRef: String
3024 """The bug ID's prefix."""
3025 prefix: String!
3026}
3027
3028type BugStatusOpenPayload {
3029 """A unique identifier for the client performing the mutation."""
3030 clientMutationId: String
3031 """The affected bug."""
3032 bug: Bug!
3033 """The resulting operation."""
3034 operation: BugSetStatusOperation!
3035}
3036
3037input BugStatusCloseInput {
3038 """A unique identifier for the client performing the mutation."""
3039 clientMutationId: String
3040 """The name of the repository. If not set, the default repository is used."""
3041 repoRef: String
3042 """The bug ID's prefix."""
3043 prefix: String!
3044}
3045
3046type BugStatusClosePayload {
3047 """A unique identifier for the client performing the mutation."""
3048 clientMutationId: String
3049 """The affected bug."""
3050 bug: Bug!
3051 """The resulting operation."""
3052 operation: BugSetStatusOperation!
3053}
3054
3055input BugSetTitleInput {
3056 """A unique identifier for the client performing the mutation."""
3057 clientMutationId: String
3058 """The name of the repository. If not set, the default repository is used."""
3059 repoRef: String
3060 """The bug ID's prefix."""
3061 prefix: String!
3062 """The new title."""
3063 title: String!
3064}
3065
3066type BugSetTitlePayload {
3067 """A unique identifier for the client performing the mutation."""
3068 clientMutationId: String
3069 """The affected bug."""
3070 bug: Bug!
3071 """The resulting operation"""
3072 operation: BugSetTitleOperation!
3073}
3074`, BuiltIn: false},
3075 {Name: "../schema/bug_operations.graphql", Input: `type BugCreateOperation implements Operation & Authored
3076@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateOperation") {
3077 """The identifier of the operation"""
3078 id: ID!
3079 """The author of this object."""
3080 author: Identity!
3081 """The datetime when this operation was issued."""
3082 date: Time! @goField(name: "Time")
3083
3084 title: String!
3085 message: String!
3086 files: [Hash!]!
3087}
3088
3089type BugSetTitleOperation implements Operation & Authored
3090@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleOperation") {
3091 """The identifier of the operation"""
3092 id: ID!
3093 """The author of this object."""
3094 author: Identity!
3095 """The datetime when this operation was issued."""
3096 date: Time! @goField(name: "Time")
3097
3098 title: String!
3099 was: String!
3100}
3101
3102type BugAddCommentOperation implements Operation & Authored
3103@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentOperation") {
3104 """The identifier of the operation"""
3105 id: ID!
3106 """The author of this object."""
3107 author: Identity!
3108 """The datetime when this operation was issued."""
3109 date: Time! @goField(name: "Time")
3110
3111 message: String!
3112 files: [Hash!]!
3113}
3114
3115type BugEditCommentOperation implements Operation & Authored
3116@goModel(model: "github.com/git-bug/git-bug/entities/bug.EditCommentOperation") {
3117 """The identifier of the operation"""
3118 id: ID!
3119 """The author of this object."""
3120 author: Identity!
3121 """The datetime when this operation was issued."""
3122 date: Time! @goField(name: "Time")
3123
3124 target: String!
3125 message: String!
3126 files: [Hash!]!
3127}
3128
3129type BugSetStatusOperation implements Operation & Authored
3130@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusOperation") {
3131 """The identifier of the operation"""
3132 id: ID!
3133 """The author of this object."""
3134 author: Identity!
3135 """The datetime when this operation was issued."""
3136 date: Time! @goField(name: "Time")
3137
3138 status: Status!
3139}
3140
3141type BugLabelChangeOperation implements Operation & Authored
3142@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeOperation") {
3143 """The identifier of the operation"""
3144 id: ID!
3145 """The author of this object."""
3146 author: Identity!
3147 """The datetime when this operation was issued."""
3148 date: Time! @goField(name: "Time")
3149
3150 added: [Label!]!
3151 removed: [Label!]!
3152}
3153`, BuiltIn: false},
3154 {Name: "../schema/bug_timeline.graphql", Input: `"""An item in the timeline of bug events"""
3155interface BugTimelineItem
3156@goModel(model: "github.com/git-bug/git-bug/entities/bug.TimelineItem") {
3157 """The identifier of the source operation"""
3158 id: CombinedId!
3159}
3160
3161"""CommentHistoryStep hold one version of a message in the history"""
3162type BugCommentHistoryStep
3163@goModel(model: "github.com/git-bug/git-bug/entities/bug.CommentHistoryStep") {
3164 message: String!
3165 date: Time!
3166}
3167
3168# Connection
3169
3170"""The connection type for TimelineItem"""
3171type BugTimelineItemConnection {
3172 edges: [BugTimelineItemEdge!]!
3173 nodes: [BugTimelineItem!]!
3174 pageInfo: PageInfo!
3175 totalCount: Int!
3176}
3177
3178"""Represent a TimelineItem"""
3179type BugTimelineItemEdge {
3180 cursor: String!
3181 node: BugTimelineItem!
3182}
3183
3184# Items
3185
3186"""BugCreateTimelineItem is a BugTimelineItem that represent the creation of a bug and its message edition history"""
3187type BugCreateTimelineItem implements BugTimelineItem & Authored
3188@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateTimelineItem") {
3189 """The identifier of the source operation"""
3190 id: CombinedId! @goField(name: "CombinedId")
3191 author: Identity!
3192 message: String!
3193 messageIsEmpty: Boolean!
3194 files: [Hash!]!
3195 createdAt: Time!
3196 lastEdit: Time!
3197 edited: Boolean!
3198 history: [BugCommentHistoryStep!]!
3199}
3200
3201"""BugAddCommentTimelineItem is a BugTimelineItem that represent a BugComment and its edition history"""
3202type BugAddCommentTimelineItem implements BugTimelineItem & Authored
3203@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentTimelineItem") {
3204 """The identifier of the source operation"""
3205 id: CombinedId! @goField(name: "CombinedId")
3206 author: Identity!
3207 message: String!
3208 messageIsEmpty: Boolean!
3209 files: [Hash!]!
3210 createdAt: Time!
3211 lastEdit: Time!
3212 edited: Boolean!
3213 history: [BugCommentHistoryStep!]!
3214}
3215
3216"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the labels of a bug"""
3217type BugLabelChangeTimelineItem implements BugTimelineItem & Authored
3218@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeTimelineItem") {
3219 """The identifier of the source operation"""
3220 id: CombinedId! @goField(name: "CombinedId")
3221 author: Identity!
3222 date: Time!
3223 added: [Label!]!
3224 removed: [Label!]!
3225}
3226
3227"""BugSetStatusTimelineItem is a BugTimelineItem that represent a change in the status of a bug"""
3228type BugSetStatusTimelineItem implements BugTimelineItem & Authored
3229@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusTimelineItem") {
3230 """The identifier of the source operation"""
3231 id: CombinedId! @goField(name: "CombinedId")
3232 author: Identity!
3233 date: Time!
3234 status: Status!
3235}
3236
3237"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the title of a bug"""
3238type BugSetTitleTimelineItem implements BugTimelineItem & Authored
3239@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleTimelineItem") {
3240 """The identifier of the source operation"""
3241 id: CombinedId! @goField(name: "CombinedId")
3242 author: Identity!
3243 date: Time!
3244 title: String!
3245 was: String!
3246}
3247`, BuiltIn: false},
3248 {Name: "../schema/directives.graphql", Input: `# Below are directives defined by gqlgen, see https://gqlgen.com/config/
3249
3250directive @goModel(
3251 model: String
3252 models: [String!]
3253 forceGenerate: Boolean
3254) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
3255
3256directive @goField(
3257 forceResolver: Boolean
3258 name: String
3259 omittable: Boolean
3260) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
3261
3262directive @goTag(
3263 key: String!
3264 value: String
3265) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
3266`, BuiltIn: false},
3267 {Name: "../schema/identity.graphql", Input: `"""Represents an identity"""
3268type Identity
3269@goModel(model: "github.com/git-bug/git-bug/api/graphql/models.IdentityWrapper") {
3270
3271 """The identifier for this identity"""
3272 id: ID!
3273 """The human version (truncated) identifier for this identity"""
3274 humanId: String!
3275 """The name of the person, if known."""
3276 name: String
3277 """The email of the person, if known."""
3278 email: String
3279 """The login of the person, if known."""
3280 login: String
3281 """A non-empty string to display, representing the identity, based on the non-empty values."""
3282 displayName: String!
3283 """An url to an avatar"""
3284 avatarUrl: String
3285 """isProtected is true if the chain of git commits started to be signed.
3286 If that's the case, only signed commit with a valid key for this identity can be added."""
3287 isProtected: Boolean!
3288}
3289
3290type IdentityConnection {
3291 edges: [IdentityEdge!]!
3292 nodes: [Identity!]!
3293 pageInfo: PageInfo!
3294 totalCount: Int!
3295}
3296
3297type IdentityEdge {
3298 cursor: String!
3299 node: Identity!
3300}
3301`, BuiltIn: false},
3302 {Name: "../schema/label.graphql", Input: `"""Label for a bug."""
3303type Label {
3304 """The name of the label."""
3305 name: String!
3306 """Color of the label."""
3307 color: Color!
3308}
3309
3310type LabelConnection {
3311 edges: [LabelEdge!]!
3312 nodes: [Label!]!
3313 pageInfo: PageInfo!
3314 totalCount: Int!
3315}
3316
3317type LabelEdge {
3318 cursor: String!
3319 node: Label!
3320}
3321
3322enum LabelChangeStatus {
3323 ADDED
3324 REMOVED
3325 DUPLICATE_IN_OP
3326 ALREADY_SET
3327 DOESNT_EXIST
3328}
3329
3330type LabelChangeResult {
3331 """The source label."""
3332 label: Label!
3333 """The effect this label had."""
3334 status: LabelChangeStatus!
3335}
3336`, BuiltIn: false},
3337 {Name: "../schema/operation.graphql", Input: `"""An operation applied to an entity."""
3338interface Operation {
3339 """The identifier of the operation"""
3340 id: ID!
3341 """The operations author."""
3342 author: Identity!
3343 """The datetime when this operation was issued."""
3344 date: Time! @goField(name: "Time")
3345}
3346
3347# Connection
3348
3349"""The connection type for an Operation"""
3350type OperationConnection {
3351 edges: [OperationEdge!]!
3352 nodes: [Operation!]!
3353 pageInfo: PageInfo!
3354 totalCount: Int!
3355}
3356
3357"""Represent an Operation"""
3358type OperationEdge {
3359 cursor: String!
3360 node: Operation!
3361}
3362`, BuiltIn: false},
3363 {Name: "../schema/repository.graphql", Input: `type Repository {
3364 """The name of the repository"""
3365 name: String
3366
3367 """All the boards"""
3368 allBoards(
3369 """Returns the elements in the list that come after the specified cursor."""
3370 after: String
3371 """Returns the elements in the list that come before the specified cursor."""
3372 before: String
3373 """Returns the first _n_ elements from the list."""
3374 first: Int
3375 """Returns the last _n_ elements from the list."""
3376 last: Int
3377 """A query to select and order bugs."""
3378 query: String
3379 ): BoardConnection!
3380
3381 board(prefix: String!): Board
3382
3383 """All the bugs"""
3384 allBugs(
3385 """Returns the elements in the list that come after the specified cursor."""
3386 after: String
3387 """Returns the elements in the list that come before the specified cursor."""
3388 before: String
3389 """Returns the first _n_ elements from the list."""
3390 first: Int
3391 """Returns the last _n_ elements from the list."""
3392 last: Int
3393 """A query to select and order bugs."""
3394 query: String
3395 ): BugConnection!
3396
3397 bug(prefix: String!): Bug
3398
3399 """All the identities"""
3400 allIdentities(
3401 """Returns the elements in the list that come after the specified cursor."""
3402 after: String
3403 """Returns the elements in the list that come before the specified cursor."""
3404 before: String
3405 """Returns the first _n_ elements from the list."""
3406 first: Int
3407 """Returns the last _n_ elements from the list."""
3408 last: Int
3409 ): IdentityConnection!
3410
3411 identity(prefix: String!): Identity
3412
3413 """The identity created or selected by the user as its own"""
3414 userIdentity: Identity
3415
3416 """List of valid labels."""
3417 validLabels(
3418 """Returns the elements in the list that come after the specified cursor."""
3419 after: String
3420 """Returns the elements in the list that come before the specified cursor."""
3421 before: String
3422 """Returns the first _n_ elements from the list."""
3423 first: Int
3424 """Returns the last _n_ elements from the list."""
3425 last: Int
3426 ): LabelConnection!
3427}
3428`, BuiltIn: false},
3429 {Name: "../schema/root.graphql", Input: `type Query {
3430 """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
3431 repository(ref: String): Repository
3432}
3433
3434type Mutation # See each entity mutations
3435`, BuiltIn: false},
3436 {Name: "../schema/status.graphql", Input: `enum Status {
3437 OPEN
3438 CLOSED
3439}
3440`, BuiltIn: false},
3441 {Name: "../schema/types.graphql", Input: `scalar CombinedId
3442scalar Time
3443scalar Hash
3444
3445"""Defines a color by red, green and blue components."""
3446type Color
3447@goModel(model: "image/color.RGBA") {
3448 """Red component of the color."""
3449 R: Int!
3450 """Green component of the color."""
3451 G: Int!
3452 """Blue component of the color."""
3453 B: Int!
3454}
3455
3456"""Information about pagination in a connection."""
3457type PageInfo {
3458 """When paginating forwards, are there more items?"""
3459 hasNextPage: Boolean!
3460 """When paginating backwards, are there more items?"""
3461 hasPreviousPage: Boolean!
3462 """When paginating backwards, the cursor to continue."""
3463 startCursor: String!
3464 """When paginating forwards, the cursor to continue."""
3465 endCursor: String!
3466}
3467
3468"""An object that has an author."""
3469interface Authored {
3470 """The author of this object."""
3471 author: Identity!
3472}
3473`, BuiltIn: false},
3474}
3475var parsedSchema = gqlparser.MustLoadSchema(sources...)