root_.generated.go

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