root_.generated.go

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