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