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