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