github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/cmd/state-svc/internal/server/generated/generated.go (about) 1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. 2 3 package genserver 4 5 import ( 6 "bytes" 7 "context" 8 "errors" 9 "fmt" 10 "strconv" 11 "sync" 12 13 "github.com/99designs/gqlgen/graphql" 14 "github.com/99designs/gqlgen/graphql/introspection" 15 "github.com/ActiveState/cli/internal/graph" 16 gqlparser "github.com/vektah/gqlparser/v2" 17 "github.com/vektah/gqlparser/v2/ast" 18 ) 19 20 // region ************************** generated!.gotpl ************************** 21 22 // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. 23 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { 24 return &executableSchema{ 25 resolvers: cfg.Resolvers, 26 directives: cfg.Directives, 27 complexity: cfg.Complexity, 28 } 29 } 30 31 type Config struct { 32 Resolvers ResolverRoot 33 Directives DirectiveRoot 34 Complexity ComplexityRoot 35 } 36 37 type ResolverRoot interface { 38 Query() QueryResolver 39 } 40 41 type DirectiveRoot struct { 42 } 43 44 type ComplexityRoot struct { 45 AnalyticsEventResponse struct { 46 Sent func(childComplexity int) int 47 } 48 49 AvailableUpdate struct { 50 Channel func(childComplexity int) int 51 Path func(childComplexity int) int 52 Platform func(childComplexity int) int 53 Sha256 func(childComplexity int) int 54 Version func(childComplexity int) int 55 } 56 57 ConfigChangedResponse struct { 58 Received func(childComplexity int) int 59 } 60 61 MessageInfo struct { 62 Condition func(childComplexity int) int 63 ID func(childComplexity int) int 64 Interrupt func(childComplexity int) int 65 Message func(childComplexity int) int 66 Placement func(childComplexity int) int 67 Repeat func(childComplexity int) int 68 } 69 70 ProcessInfo struct { 71 Exe func(childComplexity int) int 72 Pid func(childComplexity int) int 73 } 74 75 Project struct { 76 Locations func(childComplexity int) int 77 Namespace func(childComplexity int) int 78 } 79 80 Query struct { 81 AnalyticsEvent func(childComplexity int, category string, action string, source string, label *string, dimensionsJSON string) int 82 AvailableUpdate func(childComplexity int, desiredChannel string, desiredVersion string) int 83 CheckMessages func(childComplexity int, command string, flags []string) int 84 ConfigChanged func(childComplexity int, key string) int 85 FetchLogTail func(childComplexity int) int 86 GetProcessesInUse func(childComplexity int, execDir string) int 87 Projects func(childComplexity int) int 88 ReportRuntimeUsage func(childComplexity int, pid int, exec string, source string, dimensionsJSON string) int 89 Version func(childComplexity int) int 90 } 91 92 ReportRuntimeUsageResponse struct { 93 Received func(childComplexity int) int 94 } 95 96 StateVersion struct { 97 Channel func(childComplexity int) int 98 Date func(childComplexity int) int 99 License func(childComplexity int) int 100 Revision func(childComplexity int) int 101 Version func(childComplexity int) int 102 } 103 104 Version struct { 105 State func(childComplexity int) int 106 } 107 } 108 109 type QueryResolver interface { 110 Version(ctx context.Context) (*graph.Version, error) 111 AvailableUpdate(ctx context.Context, desiredChannel string, desiredVersion string) (*graph.AvailableUpdate, error) 112 Projects(ctx context.Context) ([]*graph.Project, error) 113 AnalyticsEvent(ctx context.Context, category string, action string, source string, label *string, dimensionsJSON string) (*graph.AnalyticsEventResponse, error) 114 ReportRuntimeUsage(ctx context.Context, pid int, exec string, source string, dimensionsJSON string) (*graph.ReportRuntimeUsageResponse, error) 115 CheckMessages(ctx context.Context, command string, flags []string) ([]*graph.MessageInfo, error) 116 ConfigChanged(ctx context.Context, key string) (*graph.ConfigChangedResponse, error) 117 FetchLogTail(ctx context.Context) (string, error) 118 GetProcessesInUse(ctx context.Context, execDir string) ([]*graph.ProcessInfo, error) 119 } 120 121 type executableSchema struct { 122 resolvers ResolverRoot 123 directives DirectiveRoot 124 complexity ComplexityRoot 125 } 126 127 func (e *executableSchema) Schema() *ast.Schema { 128 return parsedSchema 129 } 130 131 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { 132 ec := executionContext{nil, e} 133 _ = ec 134 switch typeName + "." + field { 135 136 case "AnalyticsEventResponse.sent": 137 if e.complexity.AnalyticsEventResponse.Sent == nil { 138 break 139 } 140 141 return e.complexity.AnalyticsEventResponse.Sent(childComplexity), true 142 143 case "AvailableUpdate.channel": 144 if e.complexity.AvailableUpdate.Channel == nil { 145 break 146 } 147 148 return e.complexity.AvailableUpdate.Channel(childComplexity), true 149 150 case "AvailableUpdate.path": 151 if e.complexity.AvailableUpdate.Path == nil { 152 break 153 } 154 155 return e.complexity.AvailableUpdate.Path(childComplexity), true 156 157 case "AvailableUpdate.platform": 158 if e.complexity.AvailableUpdate.Platform == nil { 159 break 160 } 161 162 return e.complexity.AvailableUpdate.Platform(childComplexity), true 163 164 case "AvailableUpdate.sha256": 165 if e.complexity.AvailableUpdate.Sha256 == nil { 166 break 167 } 168 169 return e.complexity.AvailableUpdate.Sha256(childComplexity), true 170 171 case "AvailableUpdate.version": 172 if e.complexity.AvailableUpdate.Version == nil { 173 break 174 } 175 176 return e.complexity.AvailableUpdate.Version(childComplexity), true 177 178 case "ConfigChangedResponse.received": 179 if e.complexity.ConfigChangedResponse.Received == nil { 180 break 181 } 182 183 return e.complexity.ConfigChangedResponse.Received(childComplexity), true 184 185 case "MessageInfo.condition": 186 if e.complexity.MessageInfo.Condition == nil { 187 break 188 } 189 190 return e.complexity.MessageInfo.Condition(childComplexity), true 191 192 case "MessageInfo.id": 193 if e.complexity.MessageInfo.ID == nil { 194 break 195 } 196 197 return e.complexity.MessageInfo.ID(childComplexity), true 198 199 case "MessageInfo.interrupt": 200 if e.complexity.MessageInfo.Interrupt == nil { 201 break 202 } 203 204 return e.complexity.MessageInfo.Interrupt(childComplexity), true 205 206 case "MessageInfo.message": 207 if e.complexity.MessageInfo.Message == nil { 208 break 209 } 210 211 return e.complexity.MessageInfo.Message(childComplexity), true 212 213 case "MessageInfo.placement": 214 if e.complexity.MessageInfo.Placement == nil { 215 break 216 } 217 218 return e.complexity.MessageInfo.Placement(childComplexity), true 219 220 case "MessageInfo.repeat": 221 if e.complexity.MessageInfo.Repeat == nil { 222 break 223 } 224 225 return e.complexity.MessageInfo.Repeat(childComplexity), true 226 227 case "ProcessInfo.exe": 228 if e.complexity.ProcessInfo.Exe == nil { 229 break 230 } 231 232 return e.complexity.ProcessInfo.Exe(childComplexity), true 233 234 case "ProcessInfo.pid": 235 if e.complexity.ProcessInfo.Pid == nil { 236 break 237 } 238 239 return e.complexity.ProcessInfo.Pid(childComplexity), true 240 241 case "Project.locations": 242 if e.complexity.Project.Locations == nil { 243 break 244 } 245 246 return e.complexity.Project.Locations(childComplexity), true 247 248 case "Project.namespace": 249 if e.complexity.Project.Namespace == nil { 250 break 251 } 252 253 return e.complexity.Project.Namespace(childComplexity), true 254 255 case "Query.analyticsEvent": 256 if e.complexity.Query.AnalyticsEvent == nil { 257 break 258 } 259 260 args, err := ec.field_Query_analyticsEvent_args(context.TODO(), rawArgs) 261 if err != nil { 262 return 0, false 263 } 264 265 return e.complexity.Query.AnalyticsEvent(childComplexity, args["category"].(string), args["action"].(string), args["source"].(string), args["label"].(*string), args["dimensionsJson"].(string)), true 266 267 case "Query.availableUpdate": 268 if e.complexity.Query.AvailableUpdate == nil { 269 break 270 } 271 272 args, err := ec.field_Query_availableUpdate_args(context.TODO(), rawArgs) 273 if err != nil { 274 return 0, false 275 } 276 277 return e.complexity.Query.AvailableUpdate(childComplexity, args["desiredChannel"].(string), args["desiredVersion"].(string)), true 278 279 case "Query.checkMessages": 280 if e.complexity.Query.CheckMessages == nil { 281 break 282 } 283 284 args, err := ec.field_Query_checkMessages_args(context.TODO(), rawArgs) 285 if err != nil { 286 return 0, false 287 } 288 289 return e.complexity.Query.CheckMessages(childComplexity, args["command"].(string), args["flags"].([]string)), true 290 291 case "Query.configChanged": 292 if e.complexity.Query.ConfigChanged == nil { 293 break 294 } 295 296 args, err := ec.field_Query_configChanged_args(context.TODO(), rawArgs) 297 if err != nil { 298 return 0, false 299 } 300 301 return e.complexity.Query.ConfigChanged(childComplexity, args["key"].(string)), true 302 303 case "Query.fetchLogTail": 304 if e.complexity.Query.FetchLogTail == nil { 305 break 306 } 307 308 return e.complexity.Query.FetchLogTail(childComplexity), true 309 310 case "Query.getProcessesInUse": 311 if e.complexity.Query.GetProcessesInUse == nil { 312 break 313 } 314 315 args, err := ec.field_Query_getProcessesInUse_args(context.TODO(), rawArgs) 316 if err != nil { 317 return 0, false 318 } 319 320 return e.complexity.Query.GetProcessesInUse(childComplexity, args["execDir"].(string)), true 321 322 case "Query.projects": 323 if e.complexity.Query.Projects == nil { 324 break 325 } 326 327 return e.complexity.Query.Projects(childComplexity), true 328 329 case "Query.reportRuntimeUsage": 330 if e.complexity.Query.ReportRuntimeUsage == nil { 331 break 332 } 333 334 args, err := ec.field_Query_reportRuntimeUsage_args(context.TODO(), rawArgs) 335 if err != nil { 336 return 0, false 337 } 338 339 return e.complexity.Query.ReportRuntimeUsage(childComplexity, args["pid"].(int), args["exec"].(string), args["source"].(string), args["dimensionsJson"].(string)), true 340 341 case "Query.version": 342 if e.complexity.Query.Version == nil { 343 break 344 } 345 346 return e.complexity.Query.Version(childComplexity), true 347 348 case "ReportRuntimeUsageResponse.received": 349 if e.complexity.ReportRuntimeUsageResponse.Received == nil { 350 break 351 } 352 353 return e.complexity.ReportRuntimeUsageResponse.Received(childComplexity), true 354 355 case "StateVersion.channel": 356 if e.complexity.StateVersion.Channel == nil { 357 break 358 } 359 360 return e.complexity.StateVersion.Channel(childComplexity), true 361 362 case "StateVersion.date": 363 if e.complexity.StateVersion.Date == nil { 364 break 365 } 366 367 return e.complexity.StateVersion.Date(childComplexity), true 368 369 case "StateVersion.license": 370 if e.complexity.StateVersion.License == nil { 371 break 372 } 373 374 return e.complexity.StateVersion.License(childComplexity), true 375 376 case "StateVersion.revision": 377 if e.complexity.StateVersion.Revision == nil { 378 break 379 } 380 381 return e.complexity.StateVersion.Revision(childComplexity), true 382 383 case "StateVersion.version": 384 if e.complexity.StateVersion.Version == nil { 385 break 386 } 387 388 return e.complexity.StateVersion.Version(childComplexity), true 389 390 case "Version.state": 391 if e.complexity.Version.State == nil { 392 break 393 } 394 395 return e.complexity.Version.State(childComplexity), true 396 397 } 398 return 0, false 399 } 400 401 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { 402 rc := graphql.GetOperationContext(ctx) 403 ec := executionContext{rc, e} 404 inputUnmarshalMap := graphql.BuildUnmarshalerMap() 405 first := true 406 407 switch rc.Operation.Operation { 408 case ast.Query: 409 return func(ctx context.Context) *graphql.Response { 410 if !first { 411 return nil 412 } 413 first = false 414 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 415 data := ec._Query(ctx, rc.Operation.SelectionSet) 416 var buf bytes.Buffer 417 data.MarshalGQL(&buf) 418 419 return &graphql.Response{ 420 Data: buf.Bytes(), 421 } 422 } 423 424 default: 425 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) 426 } 427 } 428 429 type executionContext struct { 430 *graphql.OperationContext 431 *executableSchema 432 } 433 434 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { 435 if ec.DisableIntrospection { 436 return nil, errors.New("introspection disabled") 437 } 438 return introspection.WrapSchema(parsedSchema), nil 439 } 440 441 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { 442 if ec.DisableIntrospection { 443 return nil, errors.New("introspection disabled") 444 } 445 return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil 446 } 447 448 var sources = []*ast.Source{ 449 {Name: "../../../schema/schema.graphqls", Input: `type Version { 450 state: StateVersion! 451 } 452 453 type StateVersion { 454 license: String! 455 version: String! 456 channel: String! 457 revision: String! 458 date: String! 459 } 460 461 type AvailableUpdate { 462 version: String! 463 channel: String! 464 path: String! 465 platform: String! 466 sha256: String! 467 } 468 469 type Project { 470 namespace: String! 471 locations: [String!]! 472 } 473 474 type AnalyticsEventResponse { 475 sent: Boolean! 476 } 477 478 type ReportRuntimeUsageResponse { 479 received: Boolean! 480 } 481 482 enum MessageRepeatType { 483 Disabled 484 Constantly 485 Hourly 486 Daily 487 Weekly 488 Monthly 489 } 490 491 enum MessageInterruptType { 492 Disabled 493 Prompt 494 Exit 495 } 496 497 enum MessagePlacementType { 498 BeforeCmd 499 AfterCmd 500 } 501 502 type MessageInfo { 503 id: String! 504 message: String! 505 condition: String! 506 repeat: MessageRepeatType! 507 interrupt: MessageInterruptType! 508 placement: MessagePlacementType! 509 } 510 511 type Query { 512 version: Version 513 availableUpdate(desiredChannel: String!, desiredVersion: String!): AvailableUpdate 514 projects: [Project]! 515 analyticsEvent(category: String!, action: String!, source: String!, label: String, dimensionsJson: String!): AnalyticsEventResponse 516 reportRuntimeUsage(pid: Int!, exec: String!, source: String!, dimensionsJson: String!): ReportRuntimeUsageResponse 517 checkMessages(command: String!, flags: [String!]!): [MessageInfo!]! 518 configChanged(key: String!): ConfigChangedResponse 519 fetchLogTail: String! 520 getProcessesInUse(execDir: String!): [ProcessInfo!]! 521 } 522 523 type ConfigChangedResponse { 524 received: Boolean! 525 } 526 527 type ProcessInfo { 528 exe: String! 529 pid: Int! 530 } 531 `, BuiltIn: false}, 532 } 533 var parsedSchema = gqlparser.MustLoadSchema(sources...) 534 535 // endregion ************************** generated!.gotpl ************************** 536 537 // region ***************************** args.gotpl ***************************** 538 539 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 540 var err error 541 args := map[string]interface{}{} 542 var arg0 string 543 if tmp, ok := rawArgs["name"]; ok { 544 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 545 arg0, err = ec.unmarshalNString2string(ctx, tmp) 546 if err != nil { 547 return nil, err 548 } 549 } 550 args["name"] = arg0 551 return args, nil 552 } 553 554 func (ec *executionContext) field_Query_analyticsEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 555 var err error 556 args := map[string]interface{}{} 557 var arg0 string 558 if tmp, ok := rawArgs["category"]; ok { 559 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) 560 arg0, err = ec.unmarshalNString2string(ctx, tmp) 561 if err != nil { 562 return nil, err 563 } 564 } 565 args["category"] = arg0 566 var arg1 string 567 if tmp, ok := rawArgs["action"]; ok { 568 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("action")) 569 arg1, err = ec.unmarshalNString2string(ctx, tmp) 570 if err != nil { 571 return nil, err 572 } 573 } 574 args["action"] = arg1 575 var arg2 string 576 if tmp, ok := rawArgs["source"]; ok { 577 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) 578 arg2, err = ec.unmarshalNString2string(ctx, tmp) 579 if err != nil { 580 return nil, err 581 } 582 } 583 args["source"] = arg2 584 var arg3 *string 585 if tmp, ok := rawArgs["label"]; ok { 586 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("label")) 587 arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 588 if err != nil { 589 return nil, err 590 } 591 } 592 args["label"] = arg3 593 var arg4 string 594 if tmp, ok := rawArgs["dimensionsJson"]; ok { 595 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dimensionsJson")) 596 arg4, err = ec.unmarshalNString2string(ctx, tmp) 597 if err != nil { 598 return nil, err 599 } 600 } 601 args["dimensionsJson"] = arg4 602 return args, nil 603 } 604 605 func (ec *executionContext) field_Query_availableUpdate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 606 var err error 607 args := map[string]interface{}{} 608 var arg0 string 609 if tmp, ok := rawArgs["desiredChannel"]; ok { 610 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("desiredChannel")) 611 arg0, err = ec.unmarshalNString2string(ctx, tmp) 612 if err != nil { 613 return nil, err 614 } 615 } 616 args["desiredChannel"] = arg0 617 var arg1 string 618 if tmp, ok := rawArgs["desiredVersion"]; ok { 619 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("desiredVersion")) 620 arg1, err = ec.unmarshalNString2string(ctx, tmp) 621 if err != nil { 622 return nil, err 623 } 624 } 625 args["desiredVersion"] = arg1 626 return args, nil 627 } 628 629 func (ec *executionContext) field_Query_checkMessages_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 630 var err error 631 args := map[string]interface{}{} 632 var arg0 string 633 if tmp, ok := rawArgs["command"]; ok { 634 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("command")) 635 arg0, err = ec.unmarshalNString2string(ctx, tmp) 636 if err != nil { 637 return nil, err 638 } 639 } 640 args["command"] = arg0 641 var arg1 []string 642 if tmp, ok := rawArgs["flags"]; ok { 643 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("flags")) 644 arg1, err = ec.unmarshalNString2ᚕstringᚄ(ctx, tmp) 645 if err != nil { 646 return nil, err 647 } 648 } 649 args["flags"] = arg1 650 return args, nil 651 } 652 653 func (ec *executionContext) field_Query_configChanged_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 654 var err error 655 args := map[string]interface{}{} 656 var arg0 string 657 if tmp, ok := rawArgs["key"]; ok { 658 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 659 arg0, err = ec.unmarshalNString2string(ctx, tmp) 660 if err != nil { 661 return nil, err 662 } 663 } 664 args["key"] = arg0 665 return args, nil 666 } 667 668 func (ec *executionContext) field_Query_getProcessesInUse_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 669 var err error 670 args := map[string]interface{}{} 671 var arg0 string 672 if tmp, ok := rawArgs["execDir"]; ok { 673 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("execDir")) 674 arg0, err = ec.unmarshalNString2string(ctx, tmp) 675 if err != nil { 676 return nil, err 677 } 678 } 679 args["execDir"] = arg0 680 return args, nil 681 } 682 683 func (ec *executionContext) field_Query_reportRuntimeUsage_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 684 var err error 685 args := map[string]interface{}{} 686 var arg0 int 687 if tmp, ok := rawArgs["pid"]; ok { 688 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pid")) 689 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 690 if err != nil { 691 return nil, err 692 } 693 } 694 args["pid"] = arg0 695 var arg1 string 696 if tmp, ok := rawArgs["exec"]; ok { 697 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exec")) 698 arg1, err = ec.unmarshalNString2string(ctx, tmp) 699 if err != nil { 700 return nil, err 701 } 702 } 703 args["exec"] = arg1 704 var arg2 string 705 if tmp, ok := rawArgs["source"]; ok { 706 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) 707 arg2, err = ec.unmarshalNString2string(ctx, tmp) 708 if err != nil { 709 return nil, err 710 } 711 } 712 args["source"] = arg2 713 var arg3 string 714 if tmp, ok := rawArgs["dimensionsJson"]; ok { 715 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dimensionsJson")) 716 arg3, err = ec.unmarshalNString2string(ctx, tmp) 717 if err != nil { 718 return nil, err 719 } 720 } 721 args["dimensionsJson"] = arg3 722 return args, nil 723 } 724 725 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 726 var err error 727 args := map[string]interface{}{} 728 var arg0 bool 729 if tmp, ok := rawArgs["includeDeprecated"]; ok { 730 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 731 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 732 if err != nil { 733 return nil, err 734 } 735 } 736 args["includeDeprecated"] = arg0 737 return args, nil 738 } 739 740 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 741 var err error 742 args := map[string]interface{}{} 743 var arg0 bool 744 if tmp, ok := rawArgs["includeDeprecated"]; ok { 745 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 746 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 747 if err != nil { 748 return nil, err 749 } 750 } 751 args["includeDeprecated"] = arg0 752 return args, nil 753 } 754 755 // endregion ***************************** args.gotpl ***************************** 756 757 // region ************************** directives.gotpl ************************** 758 759 // endregion ************************** directives.gotpl ************************** 760 761 // region **************************** field.gotpl ***************************** 762 763 func (ec *executionContext) _AnalyticsEventResponse_sent(ctx context.Context, field graphql.CollectedField, obj *graph.AnalyticsEventResponse) (ret graphql.Marshaler) { 764 fc, err := ec.fieldContext_AnalyticsEventResponse_sent(ctx, field) 765 if err != nil { 766 return graphql.Null 767 } 768 ctx = graphql.WithFieldContext(ctx, fc) 769 defer func() { 770 if r := recover(); r != nil { 771 ec.Error(ctx, ec.Recover(ctx, r)) 772 ret = graphql.Null 773 } 774 }() 775 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 776 ctx = rctx // use context from middleware stack in children 777 return obj.Sent, nil 778 }) 779 if err != nil { 780 ec.Error(ctx, err) 781 return graphql.Null 782 } 783 if resTmp == nil { 784 if !graphql.HasFieldError(ctx, fc) { 785 ec.Errorf(ctx, "must not be null") 786 } 787 return graphql.Null 788 } 789 res := resTmp.(bool) 790 fc.Result = res 791 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 792 } 793 794 func (ec *executionContext) fieldContext_AnalyticsEventResponse_sent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 795 fc = &graphql.FieldContext{ 796 Object: "AnalyticsEventResponse", 797 Field: field, 798 IsMethod: false, 799 IsResolver: false, 800 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 801 return nil, errors.New("field of type Boolean does not have child fields") 802 }, 803 } 804 return fc, nil 805 } 806 807 func (ec *executionContext) _AvailableUpdate_version(ctx context.Context, field graphql.CollectedField, obj *graph.AvailableUpdate) (ret graphql.Marshaler) { 808 fc, err := ec.fieldContext_AvailableUpdate_version(ctx, field) 809 if err != nil { 810 return graphql.Null 811 } 812 ctx = graphql.WithFieldContext(ctx, fc) 813 defer func() { 814 if r := recover(); r != nil { 815 ec.Error(ctx, ec.Recover(ctx, r)) 816 ret = graphql.Null 817 } 818 }() 819 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 820 ctx = rctx // use context from middleware stack in children 821 return obj.Version, nil 822 }) 823 if err != nil { 824 ec.Error(ctx, err) 825 return graphql.Null 826 } 827 if resTmp == nil { 828 if !graphql.HasFieldError(ctx, fc) { 829 ec.Errorf(ctx, "must not be null") 830 } 831 return graphql.Null 832 } 833 res := resTmp.(string) 834 fc.Result = res 835 return ec.marshalNString2string(ctx, field.Selections, res) 836 } 837 838 func (ec *executionContext) fieldContext_AvailableUpdate_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 839 fc = &graphql.FieldContext{ 840 Object: "AvailableUpdate", 841 Field: field, 842 IsMethod: false, 843 IsResolver: false, 844 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 845 return nil, errors.New("field of type String does not have child fields") 846 }, 847 } 848 return fc, nil 849 } 850 851 func (ec *executionContext) _AvailableUpdate_channel(ctx context.Context, field graphql.CollectedField, obj *graph.AvailableUpdate) (ret graphql.Marshaler) { 852 fc, err := ec.fieldContext_AvailableUpdate_channel(ctx, field) 853 if err != nil { 854 return graphql.Null 855 } 856 ctx = graphql.WithFieldContext(ctx, fc) 857 defer func() { 858 if r := recover(); r != nil { 859 ec.Error(ctx, ec.Recover(ctx, r)) 860 ret = graphql.Null 861 } 862 }() 863 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 864 ctx = rctx // use context from middleware stack in children 865 return obj.Channel, nil 866 }) 867 if err != nil { 868 ec.Error(ctx, err) 869 return graphql.Null 870 } 871 if resTmp == nil { 872 if !graphql.HasFieldError(ctx, fc) { 873 ec.Errorf(ctx, "must not be null") 874 } 875 return graphql.Null 876 } 877 res := resTmp.(string) 878 fc.Result = res 879 return ec.marshalNString2string(ctx, field.Selections, res) 880 } 881 882 func (ec *executionContext) fieldContext_AvailableUpdate_channel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 883 fc = &graphql.FieldContext{ 884 Object: "AvailableUpdate", 885 Field: field, 886 IsMethod: false, 887 IsResolver: false, 888 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 889 return nil, errors.New("field of type String does not have child fields") 890 }, 891 } 892 return fc, nil 893 } 894 895 func (ec *executionContext) _AvailableUpdate_path(ctx context.Context, field graphql.CollectedField, obj *graph.AvailableUpdate) (ret graphql.Marshaler) { 896 fc, err := ec.fieldContext_AvailableUpdate_path(ctx, field) 897 if err != nil { 898 return graphql.Null 899 } 900 ctx = graphql.WithFieldContext(ctx, fc) 901 defer func() { 902 if r := recover(); r != nil { 903 ec.Error(ctx, ec.Recover(ctx, r)) 904 ret = graphql.Null 905 } 906 }() 907 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 908 ctx = rctx // use context from middleware stack in children 909 return obj.Path, nil 910 }) 911 if err != nil { 912 ec.Error(ctx, err) 913 return graphql.Null 914 } 915 if resTmp == nil { 916 if !graphql.HasFieldError(ctx, fc) { 917 ec.Errorf(ctx, "must not be null") 918 } 919 return graphql.Null 920 } 921 res := resTmp.(string) 922 fc.Result = res 923 return ec.marshalNString2string(ctx, field.Selections, res) 924 } 925 926 func (ec *executionContext) fieldContext_AvailableUpdate_path(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 927 fc = &graphql.FieldContext{ 928 Object: "AvailableUpdate", 929 Field: field, 930 IsMethod: false, 931 IsResolver: false, 932 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 933 return nil, errors.New("field of type String does not have child fields") 934 }, 935 } 936 return fc, nil 937 } 938 939 func (ec *executionContext) _AvailableUpdate_platform(ctx context.Context, field graphql.CollectedField, obj *graph.AvailableUpdate) (ret graphql.Marshaler) { 940 fc, err := ec.fieldContext_AvailableUpdate_platform(ctx, field) 941 if err != nil { 942 return graphql.Null 943 } 944 ctx = graphql.WithFieldContext(ctx, fc) 945 defer func() { 946 if r := recover(); r != nil { 947 ec.Error(ctx, ec.Recover(ctx, r)) 948 ret = graphql.Null 949 } 950 }() 951 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 952 ctx = rctx // use context from middleware stack in children 953 return obj.Platform, nil 954 }) 955 if err != nil { 956 ec.Error(ctx, err) 957 return graphql.Null 958 } 959 if resTmp == nil { 960 if !graphql.HasFieldError(ctx, fc) { 961 ec.Errorf(ctx, "must not be null") 962 } 963 return graphql.Null 964 } 965 res := resTmp.(string) 966 fc.Result = res 967 return ec.marshalNString2string(ctx, field.Selections, res) 968 } 969 970 func (ec *executionContext) fieldContext_AvailableUpdate_platform(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 971 fc = &graphql.FieldContext{ 972 Object: "AvailableUpdate", 973 Field: field, 974 IsMethod: false, 975 IsResolver: false, 976 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 977 return nil, errors.New("field of type String does not have child fields") 978 }, 979 } 980 return fc, nil 981 } 982 983 func (ec *executionContext) _AvailableUpdate_sha256(ctx context.Context, field graphql.CollectedField, obj *graph.AvailableUpdate) (ret graphql.Marshaler) { 984 fc, err := ec.fieldContext_AvailableUpdate_sha256(ctx, field) 985 if err != nil { 986 return graphql.Null 987 } 988 ctx = graphql.WithFieldContext(ctx, fc) 989 defer func() { 990 if r := recover(); r != nil { 991 ec.Error(ctx, ec.Recover(ctx, r)) 992 ret = graphql.Null 993 } 994 }() 995 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 996 ctx = rctx // use context from middleware stack in children 997 return obj.Sha256, nil 998 }) 999 if err != nil { 1000 ec.Error(ctx, err) 1001 return graphql.Null 1002 } 1003 if resTmp == nil { 1004 if !graphql.HasFieldError(ctx, fc) { 1005 ec.Errorf(ctx, "must not be null") 1006 } 1007 return graphql.Null 1008 } 1009 res := resTmp.(string) 1010 fc.Result = res 1011 return ec.marshalNString2string(ctx, field.Selections, res) 1012 } 1013 1014 func (ec *executionContext) fieldContext_AvailableUpdate_sha256(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1015 fc = &graphql.FieldContext{ 1016 Object: "AvailableUpdate", 1017 Field: field, 1018 IsMethod: false, 1019 IsResolver: false, 1020 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1021 return nil, errors.New("field of type String does not have child fields") 1022 }, 1023 } 1024 return fc, nil 1025 } 1026 1027 func (ec *executionContext) _ConfigChangedResponse_received(ctx context.Context, field graphql.CollectedField, obj *graph.ConfigChangedResponse) (ret graphql.Marshaler) { 1028 fc, err := ec.fieldContext_ConfigChangedResponse_received(ctx, field) 1029 if err != nil { 1030 return graphql.Null 1031 } 1032 ctx = graphql.WithFieldContext(ctx, fc) 1033 defer func() { 1034 if r := recover(); r != nil { 1035 ec.Error(ctx, ec.Recover(ctx, r)) 1036 ret = graphql.Null 1037 } 1038 }() 1039 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1040 ctx = rctx // use context from middleware stack in children 1041 return obj.Received, nil 1042 }) 1043 if err != nil { 1044 ec.Error(ctx, err) 1045 return graphql.Null 1046 } 1047 if resTmp == nil { 1048 if !graphql.HasFieldError(ctx, fc) { 1049 ec.Errorf(ctx, "must not be null") 1050 } 1051 return graphql.Null 1052 } 1053 res := resTmp.(bool) 1054 fc.Result = res 1055 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 1056 } 1057 1058 func (ec *executionContext) fieldContext_ConfigChangedResponse_received(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1059 fc = &graphql.FieldContext{ 1060 Object: "ConfigChangedResponse", 1061 Field: field, 1062 IsMethod: false, 1063 IsResolver: false, 1064 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1065 return nil, errors.New("field of type Boolean does not have child fields") 1066 }, 1067 } 1068 return fc, nil 1069 } 1070 1071 func (ec *executionContext) _MessageInfo_id(ctx context.Context, field graphql.CollectedField, obj *graph.MessageInfo) (ret graphql.Marshaler) { 1072 fc, err := ec.fieldContext_MessageInfo_id(ctx, field) 1073 if err != nil { 1074 return graphql.Null 1075 } 1076 ctx = graphql.WithFieldContext(ctx, fc) 1077 defer func() { 1078 if r := recover(); r != nil { 1079 ec.Error(ctx, ec.Recover(ctx, r)) 1080 ret = graphql.Null 1081 } 1082 }() 1083 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1084 ctx = rctx // use context from middleware stack in children 1085 return obj.ID, nil 1086 }) 1087 if err != nil { 1088 ec.Error(ctx, err) 1089 return graphql.Null 1090 } 1091 if resTmp == nil { 1092 if !graphql.HasFieldError(ctx, fc) { 1093 ec.Errorf(ctx, "must not be null") 1094 } 1095 return graphql.Null 1096 } 1097 res := resTmp.(string) 1098 fc.Result = res 1099 return ec.marshalNString2string(ctx, field.Selections, res) 1100 } 1101 1102 func (ec *executionContext) fieldContext_MessageInfo_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1103 fc = &graphql.FieldContext{ 1104 Object: "MessageInfo", 1105 Field: field, 1106 IsMethod: false, 1107 IsResolver: false, 1108 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1109 return nil, errors.New("field of type String does not have child fields") 1110 }, 1111 } 1112 return fc, nil 1113 } 1114 1115 func (ec *executionContext) _MessageInfo_message(ctx context.Context, field graphql.CollectedField, obj *graph.MessageInfo) (ret graphql.Marshaler) { 1116 fc, err := ec.fieldContext_MessageInfo_message(ctx, field) 1117 if err != nil { 1118 return graphql.Null 1119 } 1120 ctx = graphql.WithFieldContext(ctx, fc) 1121 defer func() { 1122 if r := recover(); r != nil { 1123 ec.Error(ctx, ec.Recover(ctx, r)) 1124 ret = graphql.Null 1125 } 1126 }() 1127 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1128 ctx = rctx // use context from middleware stack in children 1129 return obj.Message, nil 1130 }) 1131 if err != nil { 1132 ec.Error(ctx, err) 1133 return graphql.Null 1134 } 1135 if resTmp == nil { 1136 if !graphql.HasFieldError(ctx, fc) { 1137 ec.Errorf(ctx, "must not be null") 1138 } 1139 return graphql.Null 1140 } 1141 res := resTmp.(string) 1142 fc.Result = res 1143 return ec.marshalNString2string(ctx, field.Selections, res) 1144 } 1145 1146 func (ec *executionContext) fieldContext_MessageInfo_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1147 fc = &graphql.FieldContext{ 1148 Object: "MessageInfo", 1149 Field: field, 1150 IsMethod: false, 1151 IsResolver: false, 1152 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1153 return nil, errors.New("field of type String does not have child fields") 1154 }, 1155 } 1156 return fc, nil 1157 } 1158 1159 func (ec *executionContext) _MessageInfo_condition(ctx context.Context, field graphql.CollectedField, obj *graph.MessageInfo) (ret graphql.Marshaler) { 1160 fc, err := ec.fieldContext_MessageInfo_condition(ctx, field) 1161 if err != nil { 1162 return graphql.Null 1163 } 1164 ctx = graphql.WithFieldContext(ctx, fc) 1165 defer func() { 1166 if r := recover(); r != nil { 1167 ec.Error(ctx, ec.Recover(ctx, r)) 1168 ret = graphql.Null 1169 } 1170 }() 1171 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1172 ctx = rctx // use context from middleware stack in children 1173 return obj.Condition, nil 1174 }) 1175 if err != nil { 1176 ec.Error(ctx, err) 1177 return graphql.Null 1178 } 1179 if resTmp == nil { 1180 if !graphql.HasFieldError(ctx, fc) { 1181 ec.Errorf(ctx, "must not be null") 1182 } 1183 return graphql.Null 1184 } 1185 res := resTmp.(string) 1186 fc.Result = res 1187 return ec.marshalNString2string(ctx, field.Selections, res) 1188 } 1189 1190 func (ec *executionContext) fieldContext_MessageInfo_condition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1191 fc = &graphql.FieldContext{ 1192 Object: "MessageInfo", 1193 Field: field, 1194 IsMethod: false, 1195 IsResolver: false, 1196 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1197 return nil, errors.New("field of type String does not have child fields") 1198 }, 1199 } 1200 return fc, nil 1201 } 1202 1203 func (ec *executionContext) _MessageInfo_repeat(ctx context.Context, field graphql.CollectedField, obj *graph.MessageInfo) (ret graphql.Marshaler) { 1204 fc, err := ec.fieldContext_MessageInfo_repeat(ctx, field) 1205 if err != nil { 1206 return graphql.Null 1207 } 1208 ctx = graphql.WithFieldContext(ctx, fc) 1209 defer func() { 1210 if r := recover(); r != nil { 1211 ec.Error(ctx, ec.Recover(ctx, r)) 1212 ret = graphql.Null 1213 } 1214 }() 1215 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1216 ctx = rctx // use context from middleware stack in children 1217 return obj.Repeat, nil 1218 }) 1219 if err != nil { 1220 ec.Error(ctx, err) 1221 return graphql.Null 1222 } 1223 if resTmp == nil { 1224 if !graphql.HasFieldError(ctx, fc) { 1225 ec.Errorf(ctx, "must not be null") 1226 } 1227 return graphql.Null 1228 } 1229 res := resTmp.(graph.MessageRepeatType) 1230 fc.Result = res 1231 return ec.marshalNMessageRepeatType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageRepeatType(ctx, field.Selections, res) 1232 } 1233 1234 func (ec *executionContext) fieldContext_MessageInfo_repeat(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1235 fc = &graphql.FieldContext{ 1236 Object: "MessageInfo", 1237 Field: field, 1238 IsMethod: false, 1239 IsResolver: false, 1240 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1241 return nil, errors.New("field of type MessageRepeatType does not have child fields") 1242 }, 1243 } 1244 return fc, nil 1245 } 1246 1247 func (ec *executionContext) _MessageInfo_interrupt(ctx context.Context, field graphql.CollectedField, obj *graph.MessageInfo) (ret graphql.Marshaler) { 1248 fc, err := ec.fieldContext_MessageInfo_interrupt(ctx, field) 1249 if err != nil { 1250 return graphql.Null 1251 } 1252 ctx = graphql.WithFieldContext(ctx, fc) 1253 defer func() { 1254 if r := recover(); r != nil { 1255 ec.Error(ctx, ec.Recover(ctx, r)) 1256 ret = graphql.Null 1257 } 1258 }() 1259 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1260 ctx = rctx // use context from middleware stack in children 1261 return obj.Interrupt, nil 1262 }) 1263 if err != nil { 1264 ec.Error(ctx, err) 1265 return graphql.Null 1266 } 1267 if resTmp == nil { 1268 if !graphql.HasFieldError(ctx, fc) { 1269 ec.Errorf(ctx, "must not be null") 1270 } 1271 return graphql.Null 1272 } 1273 res := resTmp.(graph.MessageInterruptType) 1274 fc.Result = res 1275 return ec.marshalNMessageInterruptType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageInterruptType(ctx, field.Selections, res) 1276 } 1277 1278 func (ec *executionContext) fieldContext_MessageInfo_interrupt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1279 fc = &graphql.FieldContext{ 1280 Object: "MessageInfo", 1281 Field: field, 1282 IsMethod: false, 1283 IsResolver: false, 1284 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1285 return nil, errors.New("field of type MessageInterruptType does not have child fields") 1286 }, 1287 } 1288 return fc, nil 1289 } 1290 1291 func (ec *executionContext) _MessageInfo_placement(ctx context.Context, field graphql.CollectedField, obj *graph.MessageInfo) (ret graphql.Marshaler) { 1292 fc, err := ec.fieldContext_MessageInfo_placement(ctx, field) 1293 if err != nil { 1294 return graphql.Null 1295 } 1296 ctx = graphql.WithFieldContext(ctx, fc) 1297 defer func() { 1298 if r := recover(); r != nil { 1299 ec.Error(ctx, ec.Recover(ctx, r)) 1300 ret = graphql.Null 1301 } 1302 }() 1303 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1304 ctx = rctx // use context from middleware stack in children 1305 return obj.Placement, nil 1306 }) 1307 if err != nil { 1308 ec.Error(ctx, err) 1309 return graphql.Null 1310 } 1311 if resTmp == nil { 1312 if !graphql.HasFieldError(ctx, fc) { 1313 ec.Errorf(ctx, "must not be null") 1314 } 1315 return graphql.Null 1316 } 1317 res := resTmp.(graph.MessagePlacementType) 1318 fc.Result = res 1319 return ec.marshalNMessagePlacementType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessagePlacementType(ctx, field.Selections, res) 1320 } 1321 1322 func (ec *executionContext) fieldContext_MessageInfo_placement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1323 fc = &graphql.FieldContext{ 1324 Object: "MessageInfo", 1325 Field: field, 1326 IsMethod: false, 1327 IsResolver: false, 1328 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1329 return nil, errors.New("field of type MessagePlacementType does not have child fields") 1330 }, 1331 } 1332 return fc, nil 1333 } 1334 1335 func (ec *executionContext) _ProcessInfo_exe(ctx context.Context, field graphql.CollectedField, obj *graph.ProcessInfo) (ret graphql.Marshaler) { 1336 fc, err := ec.fieldContext_ProcessInfo_exe(ctx, field) 1337 if err != nil { 1338 return graphql.Null 1339 } 1340 ctx = graphql.WithFieldContext(ctx, fc) 1341 defer func() { 1342 if r := recover(); r != nil { 1343 ec.Error(ctx, ec.Recover(ctx, r)) 1344 ret = graphql.Null 1345 } 1346 }() 1347 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1348 ctx = rctx // use context from middleware stack in children 1349 return obj.Exe, nil 1350 }) 1351 if err != nil { 1352 ec.Error(ctx, err) 1353 return graphql.Null 1354 } 1355 if resTmp == nil { 1356 if !graphql.HasFieldError(ctx, fc) { 1357 ec.Errorf(ctx, "must not be null") 1358 } 1359 return graphql.Null 1360 } 1361 res := resTmp.(string) 1362 fc.Result = res 1363 return ec.marshalNString2string(ctx, field.Selections, res) 1364 } 1365 1366 func (ec *executionContext) fieldContext_ProcessInfo_exe(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1367 fc = &graphql.FieldContext{ 1368 Object: "ProcessInfo", 1369 Field: field, 1370 IsMethod: false, 1371 IsResolver: false, 1372 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1373 return nil, errors.New("field of type String does not have child fields") 1374 }, 1375 } 1376 return fc, nil 1377 } 1378 1379 func (ec *executionContext) _ProcessInfo_pid(ctx context.Context, field graphql.CollectedField, obj *graph.ProcessInfo) (ret graphql.Marshaler) { 1380 fc, err := ec.fieldContext_ProcessInfo_pid(ctx, field) 1381 if err != nil { 1382 return graphql.Null 1383 } 1384 ctx = graphql.WithFieldContext(ctx, fc) 1385 defer func() { 1386 if r := recover(); r != nil { 1387 ec.Error(ctx, ec.Recover(ctx, r)) 1388 ret = graphql.Null 1389 } 1390 }() 1391 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1392 ctx = rctx // use context from middleware stack in children 1393 return obj.Pid, nil 1394 }) 1395 if err != nil { 1396 ec.Error(ctx, err) 1397 return graphql.Null 1398 } 1399 if resTmp == nil { 1400 if !graphql.HasFieldError(ctx, fc) { 1401 ec.Errorf(ctx, "must not be null") 1402 } 1403 return graphql.Null 1404 } 1405 res := resTmp.(int) 1406 fc.Result = res 1407 return ec.marshalNInt2int(ctx, field.Selections, res) 1408 } 1409 1410 func (ec *executionContext) fieldContext_ProcessInfo_pid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1411 fc = &graphql.FieldContext{ 1412 Object: "ProcessInfo", 1413 Field: field, 1414 IsMethod: false, 1415 IsResolver: false, 1416 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1417 return nil, errors.New("field of type Int does not have child fields") 1418 }, 1419 } 1420 return fc, nil 1421 } 1422 1423 func (ec *executionContext) _Project_namespace(ctx context.Context, field graphql.CollectedField, obj *graph.Project) (ret graphql.Marshaler) { 1424 fc, err := ec.fieldContext_Project_namespace(ctx, field) 1425 if err != nil { 1426 return graphql.Null 1427 } 1428 ctx = graphql.WithFieldContext(ctx, fc) 1429 defer func() { 1430 if r := recover(); r != nil { 1431 ec.Error(ctx, ec.Recover(ctx, r)) 1432 ret = graphql.Null 1433 } 1434 }() 1435 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1436 ctx = rctx // use context from middleware stack in children 1437 return obj.Namespace, nil 1438 }) 1439 if err != nil { 1440 ec.Error(ctx, err) 1441 return graphql.Null 1442 } 1443 if resTmp == nil { 1444 if !graphql.HasFieldError(ctx, fc) { 1445 ec.Errorf(ctx, "must not be null") 1446 } 1447 return graphql.Null 1448 } 1449 res := resTmp.(string) 1450 fc.Result = res 1451 return ec.marshalNString2string(ctx, field.Selections, res) 1452 } 1453 1454 func (ec *executionContext) fieldContext_Project_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1455 fc = &graphql.FieldContext{ 1456 Object: "Project", 1457 Field: field, 1458 IsMethod: false, 1459 IsResolver: false, 1460 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1461 return nil, errors.New("field of type String does not have child fields") 1462 }, 1463 } 1464 return fc, nil 1465 } 1466 1467 func (ec *executionContext) _Project_locations(ctx context.Context, field graphql.CollectedField, obj *graph.Project) (ret graphql.Marshaler) { 1468 fc, err := ec.fieldContext_Project_locations(ctx, field) 1469 if err != nil { 1470 return graphql.Null 1471 } 1472 ctx = graphql.WithFieldContext(ctx, fc) 1473 defer func() { 1474 if r := recover(); r != nil { 1475 ec.Error(ctx, ec.Recover(ctx, r)) 1476 ret = graphql.Null 1477 } 1478 }() 1479 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1480 ctx = rctx // use context from middleware stack in children 1481 return obj.Locations, nil 1482 }) 1483 if err != nil { 1484 ec.Error(ctx, err) 1485 return graphql.Null 1486 } 1487 if resTmp == nil { 1488 if !graphql.HasFieldError(ctx, fc) { 1489 ec.Errorf(ctx, "must not be null") 1490 } 1491 return graphql.Null 1492 } 1493 res := resTmp.([]string) 1494 fc.Result = res 1495 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 1496 } 1497 1498 func (ec *executionContext) fieldContext_Project_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1499 fc = &graphql.FieldContext{ 1500 Object: "Project", 1501 Field: field, 1502 IsMethod: false, 1503 IsResolver: false, 1504 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1505 return nil, errors.New("field of type String does not have child fields") 1506 }, 1507 } 1508 return fc, nil 1509 } 1510 1511 func (ec *executionContext) _Query_version(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1512 fc, err := ec.fieldContext_Query_version(ctx, field) 1513 if err != nil { 1514 return graphql.Null 1515 } 1516 ctx = graphql.WithFieldContext(ctx, fc) 1517 defer func() { 1518 if r := recover(); r != nil { 1519 ec.Error(ctx, ec.Recover(ctx, r)) 1520 ret = graphql.Null 1521 } 1522 }() 1523 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1524 ctx = rctx // use context from middleware stack in children 1525 return ec.resolvers.Query().Version(rctx) 1526 }) 1527 if err != nil { 1528 ec.Error(ctx, err) 1529 } 1530 if resTmp == nil { 1531 return graphql.Null 1532 } 1533 res := resTmp.(*graph.Version) 1534 fc.Result = res 1535 return ec.marshalOVersion2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐVersion(ctx, field.Selections, res) 1536 } 1537 1538 func (ec *executionContext) fieldContext_Query_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1539 fc = &graphql.FieldContext{ 1540 Object: "Query", 1541 Field: field, 1542 IsMethod: true, 1543 IsResolver: true, 1544 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1545 switch field.Name { 1546 case "state": 1547 return ec.fieldContext_Version_state(ctx, field) 1548 } 1549 return nil, fmt.Errorf("no field named %q was found under type Version", field.Name) 1550 }, 1551 } 1552 return fc, nil 1553 } 1554 1555 func (ec *executionContext) _Query_availableUpdate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1556 fc, err := ec.fieldContext_Query_availableUpdate(ctx, field) 1557 if err != nil { 1558 return graphql.Null 1559 } 1560 ctx = graphql.WithFieldContext(ctx, fc) 1561 defer func() { 1562 if r := recover(); r != nil { 1563 ec.Error(ctx, ec.Recover(ctx, r)) 1564 ret = graphql.Null 1565 } 1566 }() 1567 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1568 ctx = rctx // use context from middleware stack in children 1569 return ec.resolvers.Query().AvailableUpdate(rctx, fc.Args["desiredChannel"].(string), fc.Args["desiredVersion"].(string)) 1570 }) 1571 if err != nil { 1572 ec.Error(ctx, err) 1573 } 1574 if resTmp == nil { 1575 return graphql.Null 1576 } 1577 res := resTmp.(*graph.AvailableUpdate) 1578 fc.Result = res 1579 return ec.marshalOAvailableUpdate2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐAvailableUpdate(ctx, field.Selections, res) 1580 } 1581 1582 func (ec *executionContext) fieldContext_Query_availableUpdate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1583 fc = &graphql.FieldContext{ 1584 Object: "Query", 1585 Field: field, 1586 IsMethod: true, 1587 IsResolver: true, 1588 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1589 switch field.Name { 1590 case "version": 1591 return ec.fieldContext_AvailableUpdate_version(ctx, field) 1592 case "channel": 1593 return ec.fieldContext_AvailableUpdate_channel(ctx, field) 1594 case "path": 1595 return ec.fieldContext_AvailableUpdate_path(ctx, field) 1596 case "platform": 1597 return ec.fieldContext_AvailableUpdate_platform(ctx, field) 1598 case "sha256": 1599 return ec.fieldContext_AvailableUpdate_sha256(ctx, field) 1600 } 1601 return nil, fmt.Errorf("no field named %q was found under type AvailableUpdate", field.Name) 1602 }, 1603 } 1604 defer func() { 1605 if r := recover(); r != nil { 1606 err = ec.Recover(ctx, r) 1607 ec.Error(ctx, err) 1608 } 1609 }() 1610 ctx = graphql.WithFieldContext(ctx, fc) 1611 if fc.Args, err = ec.field_Query_availableUpdate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 1612 ec.Error(ctx, err) 1613 return 1614 } 1615 return fc, nil 1616 } 1617 1618 func (ec *executionContext) _Query_projects(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1619 fc, err := ec.fieldContext_Query_projects(ctx, field) 1620 if err != nil { 1621 return graphql.Null 1622 } 1623 ctx = graphql.WithFieldContext(ctx, fc) 1624 defer func() { 1625 if r := recover(); r != nil { 1626 ec.Error(ctx, ec.Recover(ctx, r)) 1627 ret = graphql.Null 1628 } 1629 }() 1630 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1631 ctx = rctx // use context from middleware stack in children 1632 return ec.resolvers.Query().Projects(rctx) 1633 }) 1634 if err != nil { 1635 ec.Error(ctx, err) 1636 } 1637 if resTmp == nil { 1638 if !graphql.HasFieldError(ctx, fc) { 1639 ec.Errorf(ctx, "must not be null") 1640 } 1641 return graphql.Null 1642 } 1643 res := resTmp.([]*graph.Project) 1644 fc.Result = res 1645 return ec.marshalNProject2ᚕᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐProject(ctx, field.Selections, res) 1646 } 1647 1648 func (ec *executionContext) fieldContext_Query_projects(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1649 fc = &graphql.FieldContext{ 1650 Object: "Query", 1651 Field: field, 1652 IsMethod: true, 1653 IsResolver: true, 1654 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1655 switch field.Name { 1656 case "namespace": 1657 return ec.fieldContext_Project_namespace(ctx, field) 1658 case "locations": 1659 return ec.fieldContext_Project_locations(ctx, field) 1660 } 1661 return nil, fmt.Errorf("no field named %q was found under type Project", field.Name) 1662 }, 1663 } 1664 return fc, nil 1665 } 1666 1667 func (ec *executionContext) _Query_analyticsEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1668 fc, err := ec.fieldContext_Query_analyticsEvent(ctx, field) 1669 if err != nil { 1670 return graphql.Null 1671 } 1672 ctx = graphql.WithFieldContext(ctx, fc) 1673 defer func() { 1674 if r := recover(); r != nil { 1675 ec.Error(ctx, ec.Recover(ctx, r)) 1676 ret = graphql.Null 1677 } 1678 }() 1679 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1680 ctx = rctx // use context from middleware stack in children 1681 return ec.resolvers.Query().AnalyticsEvent(rctx, fc.Args["category"].(string), fc.Args["action"].(string), fc.Args["source"].(string), fc.Args["label"].(*string), fc.Args["dimensionsJson"].(string)) 1682 }) 1683 if err != nil { 1684 ec.Error(ctx, err) 1685 } 1686 if resTmp == nil { 1687 return graphql.Null 1688 } 1689 res := resTmp.(*graph.AnalyticsEventResponse) 1690 fc.Result = res 1691 return ec.marshalOAnalyticsEventResponse2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐAnalyticsEventResponse(ctx, field.Selections, res) 1692 } 1693 1694 func (ec *executionContext) fieldContext_Query_analyticsEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1695 fc = &graphql.FieldContext{ 1696 Object: "Query", 1697 Field: field, 1698 IsMethod: true, 1699 IsResolver: true, 1700 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1701 switch field.Name { 1702 case "sent": 1703 return ec.fieldContext_AnalyticsEventResponse_sent(ctx, field) 1704 } 1705 return nil, fmt.Errorf("no field named %q was found under type AnalyticsEventResponse", field.Name) 1706 }, 1707 } 1708 defer func() { 1709 if r := recover(); r != nil { 1710 err = ec.Recover(ctx, r) 1711 ec.Error(ctx, err) 1712 } 1713 }() 1714 ctx = graphql.WithFieldContext(ctx, fc) 1715 if fc.Args, err = ec.field_Query_analyticsEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 1716 ec.Error(ctx, err) 1717 return 1718 } 1719 return fc, nil 1720 } 1721 1722 func (ec *executionContext) _Query_reportRuntimeUsage(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1723 fc, err := ec.fieldContext_Query_reportRuntimeUsage(ctx, field) 1724 if err != nil { 1725 return graphql.Null 1726 } 1727 ctx = graphql.WithFieldContext(ctx, fc) 1728 defer func() { 1729 if r := recover(); r != nil { 1730 ec.Error(ctx, ec.Recover(ctx, r)) 1731 ret = graphql.Null 1732 } 1733 }() 1734 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1735 ctx = rctx // use context from middleware stack in children 1736 return ec.resolvers.Query().ReportRuntimeUsage(rctx, fc.Args["pid"].(int), fc.Args["exec"].(string), fc.Args["source"].(string), fc.Args["dimensionsJson"].(string)) 1737 }) 1738 if err != nil { 1739 ec.Error(ctx, err) 1740 } 1741 if resTmp == nil { 1742 return graphql.Null 1743 } 1744 res := resTmp.(*graph.ReportRuntimeUsageResponse) 1745 fc.Result = res 1746 return ec.marshalOReportRuntimeUsageResponse2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐReportRuntimeUsageResponse(ctx, field.Selections, res) 1747 } 1748 1749 func (ec *executionContext) fieldContext_Query_reportRuntimeUsage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1750 fc = &graphql.FieldContext{ 1751 Object: "Query", 1752 Field: field, 1753 IsMethod: true, 1754 IsResolver: true, 1755 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1756 switch field.Name { 1757 case "received": 1758 return ec.fieldContext_ReportRuntimeUsageResponse_received(ctx, field) 1759 } 1760 return nil, fmt.Errorf("no field named %q was found under type ReportRuntimeUsageResponse", field.Name) 1761 }, 1762 } 1763 defer func() { 1764 if r := recover(); r != nil { 1765 err = ec.Recover(ctx, r) 1766 ec.Error(ctx, err) 1767 } 1768 }() 1769 ctx = graphql.WithFieldContext(ctx, fc) 1770 if fc.Args, err = ec.field_Query_reportRuntimeUsage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 1771 ec.Error(ctx, err) 1772 return 1773 } 1774 return fc, nil 1775 } 1776 1777 func (ec *executionContext) _Query_checkMessages(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1778 fc, err := ec.fieldContext_Query_checkMessages(ctx, field) 1779 if err != nil { 1780 return graphql.Null 1781 } 1782 ctx = graphql.WithFieldContext(ctx, fc) 1783 defer func() { 1784 if r := recover(); r != nil { 1785 ec.Error(ctx, ec.Recover(ctx, r)) 1786 ret = graphql.Null 1787 } 1788 }() 1789 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1790 ctx = rctx // use context from middleware stack in children 1791 return ec.resolvers.Query().CheckMessages(rctx, fc.Args["command"].(string), fc.Args["flags"].([]string)) 1792 }) 1793 if err != nil { 1794 ec.Error(ctx, err) 1795 } 1796 if resTmp == nil { 1797 if !graphql.HasFieldError(ctx, fc) { 1798 ec.Errorf(ctx, "must not be null") 1799 } 1800 return graphql.Null 1801 } 1802 res := resTmp.([]*graph.MessageInfo) 1803 fc.Result = res 1804 return ec.marshalNMessageInfo2ᚕᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageInfoᚄ(ctx, field.Selections, res) 1805 } 1806 1807 func (ec *executionContext) fieldContext_Query_checkMessages(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1808 fc = &graphql.FieldContext{ 1809 Object: "Query", 1810 Field: field, 1811 IsMethod: true, 1812 IsResolver: true, 1813 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1814 switch field.Name { 1815 case "id": 1816 return ec.fieldContext_MessageInfo_id(ctx, field) 1817 case "message": 1818 return ec.fieldContext_MessageInfo_message(ctx, field) 1819 case "condition": 1820 return ec.fieldContext_MessageInfo_condition(ctx, field) 1821 case "repeat": 1822 return ec.fieldContext_MessageInfo_repeat(ctx, field) 1823 case "interrupt": 1824 return ec.fieldContext_MessageInfo_interrupt(ctx, field) 1825 case "placement": 1826 return ec.fieldContext_MessageInfo_placement(ctx, field) 1827 } 1828 return nil, fmt.Errorf("no field named %q was found under type MessageInfo", field.Name) 1829 }, 1830 } 1831 defer func() { 1832 if r := recover(); r != nil { 1833 err = ec.Recover(ctx, r) 1834 ec.Error(ctx, err) 1835 } 1836 }() 1837 ctx = graphql.WithFieldContext(ctx, fc) 1838 if fc.Args, err = ec.field_Query_checkMessages_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 1839 ec.Error(ctx, err) 1840 return 1841 } 1842 return fc, nil 1843 } 1844 1845 func (ec *executionContext) _Query_configChanged(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1846 fc, err := ec.fieldContext_Query_configChanged(ctx, field) 1847 if err != nil { 1848 return graphql.Null 1849 } 1850 ctx = graphql.WithFieldContext(ctx, fc) 1851 defer func() { 1852 if r := recover(); r != nil { 1853 ec.Error(ctx, ec.Recover(ctx, r)) 1854 ret = graphql.Null 1855 } 1856 }() 1857 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1858 ctx = rctx // use context from middleware stack in children 1859 return ec.resolvers.Query().ConfigChanged(rctx, fc.Args["key"].(string)) 1860 }) 1861 if err != nil { 1862 ec.Error(ctx, err) 1863 } 1864 if resTmp == nil { 1865 return graphql.Null 1866 } 1867 res := resTmp.(*graph.ConfigChangedResponse) 1868 fc.Result = res 1869 return ec.marshalOConfigChangedResponse2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐConfigChangedResponse(ctx, field.Selections, res) 1870 } 1871 1872 func (ec *executionContext) fieldContext_Query_configChanged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1873 fc = &graphql.FieldContext{ 1874 Object: "Query", 1875 Field: field, 1876 IsMethod: true, 1877 IsResolver: true, 1878 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1879 switch field.Name { 1880 case "received": 1881 return ec.fieldContext_ConfigChangedResponse_received(ctx, field) 1882 } 1883 return nil, fmt.Errorf("no field named %q was found under type ConfigChangedResponse", field.Name) 1884 }, 1885 } 1886 defer func() { 1887 if r := recover(); r != nil { 1888 err = ec.Recover(ctx, r) 1889 ec.Error(ctx, err) 1890 } 1891 }() 1892 ctx = graphql.WithFieldContext(ctx, fc) 1893 if fc.Args, err = ec.field_Query_configChanged_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 1894 ec.Error(ctx, err) 1895 return 1896 } 1897 return fc, nil 1898 } 1899 1900 func (ec *executionContext) _Query_fetchLogTail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1901 fc, err := ec.fieldContext_Query_fetchLogTail(ctx, field) 1902 if err != nil { 1903 return graphql.Null 1904 } 1905 ctx = graphql.WithFieldContext(ctx, fc) 1906 defer func() { 1907 if r := recover(); r != nil { 1908 ec.Error(ctx, ec.Recover(ctx, r)) 1909 ret = graphql.Null 1910 } 1911 }() 1912 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1913 ctx = rctx // use context from middleware stack in children 1914 return ec.resolvers.Query().FetchLogTail(rctx) 1915 }) 1916 if err != nil { 1917 ec.Error(ctx, err) 1918 } 1919 if resTmp == nil { 1920 if !graphql.HasFieldError(ctx, fc) { 1921 ec.Errorf(ctx, "must not be null") 1922 } 1923 return graphql.Null 1924 } 1925 res := resTmp.(string) 1926 fc.Result = res 1927 return ec.marshalNString2string(ctx, field.Selections, res) 1928 } 1929 1930 func (ec *executionContext) fieldContext_Query_fetchLogTail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1931 fc = &graphql.FieldContext{ 1932 Object: "Query", 1933 Field: field, 1934 IsMethod: true, 1935 IsResolver: true, 1936 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1937 return nil, errors.New("field of type String does not have child fields") 1938 }, 1939 } 1940 return fc, nil 1941 } 1942 1943 func (ec *executionContext) _Query_getProcessesInUse(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 1944 fc, err := ec.fieldContext_Query_getProcessesInUse(ctx, field) 1945 if err != nil { 1946 return graphql.Null 1947 } 1948 ctx = graphql.WithFieldContext(ctx, fc) 1949 defer func() { 1950 if r := recover(); r != nil { 1951 ec.Error(ctx, ec.Recover(ctx, r)) 1952 ret = graphql.Null 1953 } 1954 }() 1955 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 1956 ctx = rctx // use context from middleware stack in children 1957 return ec.resolvers.Query().GetProcessesInUse(rctx, fc.Args["execDir"].(string)) 1958 }) 1959 if err != nil { 1960 ec.Error(ctx, err) 1961 } 1962 if resTmp == nil { 1963 if !graphql.HasFieldError(ctx, fc) { 1964 ec.Errorf(ctx, "must not be null") 1965 } 1966 return graphql.Null 1967 } 1968 res := resTmp.([]*graph.ProcessInfo) 1969 fc.Result = res 1970 return ec.marshalNProcessInfo2ᚕᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐProcessInfoᚄ(ctx, field.Selections, res) 1971 } 1972 1973 func (ec *executionContext) fieldContext_Query_getProcessesInUse(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 1974 fc = &graphql.FieldContext{ 1975 Object: "Query", 1976 Field: field, 1977 IsMethod: true, 1978 IsResolver: true, 1979 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 1980 switch field.Name { 1981 case "exe": 1982 return ec.fieldContext_ProcessInfo_exe(ctx, field) 1983 case "pid": 1984 return ec.fieldContext_ProcessInfo_pid(ctx, field) 1985 } 1986 return nil, fmt.Errorf("no field named %q was found under type ProcessInfo", field.Name) 1987 }, 1988 } 1989 defer func() { 1990 if r := recover(); r != nil { 1991 err = ec.Recover(ctx, r) 1992 ec.Error(ctx, err) 1993 } 1994 }() 1995 ctx = graphql.WithFieldContext(ctx, fc) 1996 if fc.Args, err = ec.field_Query_getProcessesInUse_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 1997 ec.Error(ctx, err) 1998 return 1999 } 2000 return fc, nil 2001 } 2002 2003 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 2004 fc, err := ec.fieldContext_Query___type(ctx, field) 2005 if err != nil { 2006 return graphql.Null 2007 } 2008 ctx = graphql.WithFieldContext(ctx, fc) 2009 defer func() { 2010 if r := recover(); r != nil { 2011 ec.Error(ctx, ec.Recover(ctx, r)) 2012 ret = graphql.Null 2013 } 2014 }() 2015 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2016 ctx = rctx // use context from middleware stack in children 2017 return ec.introspectType(fc.Args["name"].(string)) 2018 }) 2019 if err != nil { 2020 ec.Error(ctx, err) 2021 } 2022 if resTmp == nil { 2023 return graphql.Null 2024 } 2025 res := resTmp.(*introspection.Type) 2026 fc.Result = res 2027 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 2028 } 2029 2030 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2031 fc = &graphql.FieldContext{ 2032 Object: "Query", 2033 Field: field, 2034 IsMethod: true, 2035 IsResolver: false, 2036 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2037 switch field.Name { 2038 case "kind": 2039 return ec.fieldContext___Type_kind(ctx, field) 2040 case "name": 2041 return ec.fieldContext___Type_name(ctx, field) 2042 case "description": 2043 return ec.fieldContext___Type_description(ctx, field) 2044 case "fields": 2045 return ec.fieldContext___Type_fields(ctx, field) 2046 case "interfaces": 2047 return ec.fieldContext___Type_interfaces(ctx, field) 2048 case "possibleTypes": 2049 return ec.fieldContext___Type_possibleTypes(ctx, field) 2050 case "enumValues": 2051 return ec.fieldContext___Type_enumValues(ctx, field) 2052 case "inputFields": 2053 return ec.fieldContext___Type_inputFields(ctx, field) 2054 case "ofType": 2055 return ec.fieldContext___Type_ofType(ctx, field) 2056 case "specifiedByURL": 2057 return ec.fieldContext___Type_specifiedByURL(ctx, field) 2058 } 2059 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 2060 }, 2061 } 2062 defer func() { 2063 if r := recover(); r != nil { 2064 err = ec.Recover(ctx, r) 2065 ec.Error(ctx, err) 2066 } 2067 }() 2068 ctx = graphql.WithFieldContext(ctx, fc) 2069 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 2070 ec.Error(ctx, err) 2071 return 2072 } 2073 return fc, nil 2074 } 2075 2076 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 2077 fc, err := ec.fieldContext_Query___schema(ctx, field) 2078 if err != nil { 2079 return graphql.Null 2080 } 2081 ctx = graphql.WithFieldContext(ctx, fc) 2082 defer func() { 2083 if r := recover(); r != nil { 2084 ec.Error(ctx, ec.Recover(ctx, r)) 2085 ret = graphql.Null 2086 } 2087 }() 2088 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2089 ctx = rctx // use context from middleware stack in children 2090 return ec.introspectSchema() 2091 }) 2092 if err != nil { 2093 ec.Error(ctx, err) 2094 } 2095 if resTmp == nil { 2096 return graphql.Null 2097 } 2098 res := resTmp.(*introspection.Schema) 2099 fc.Result = res 2100 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) 2101 } 2102 2103 func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2104 fc = &graphql.FieldContext{ 2105 Object: "Query", 2106 Field: field, 2107 IsMethod: true, 2108 IsResolver: false, 2109 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2110 switch field.Name { 2111 case "description": 2112 return ec.fieldContext___Schema_description(ctx, field) 2113 case "types": 2114 return ec.fieldContext___Schema_types(ctx, field) 2115 case "queryType": 2116 return ec.fieldContext___Schema_queryType(ctx, field) 2117 case "mutationType": 2118 return ec.fieldContext___Schema_mutationType(ctx, field) 2119 case "subscriptionType": 2120 return ec.fieldContext___Schema_subscriptionType(ctx, field) 2121 case "directives": 2122 return ec.fieldContext___Schema_directives(ctx, field) 2123 } 2124 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) 2125 }, 2126 } 2127 return fc, nil 2128 } 2129 2130 func (ec *executionContext) _ReportRuntimeUsageResponse_received(ctx context.Context, field graphql.CollectedField, obj *graph.ReportRuntimeUsageResponse) (ret graphql.Marshaler) { 2131 fc, err := ec.fieldContext_ReportRuntimeUsageResponse_received(ctx, field) 2132 if err != nil { 2133 return graphql.Null 2134 } 2135 ctx = graphql.WithFieldContext(ctx, fc) 2136 defer func() { 2137 if r := recover(); r != nil { 2138 ec.Error(ctx, ec.Recover(ctx, r)) 2139 ret = graphql.Null 2140 } 2141 }() 2142 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2143 ctx = rctx // use context from middleware stack in children 2144 return obj.Received, nil 2145 }) 2146 if err != nil { 2147 ec.Error(ctx, err) 2148 return graphql.Null 2149 } 2150 if resTmp == nil { 2151 if !graphql.HasFieldError(ctx, fc) { 2152 ec.Errorf(ctx, "must not be null") 2153 } 2154 return graphql.Null 2155 } 2156 res := resTmp.(bool) 2157 fc.Result = res 2158 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 2159 } 2160 2161 func (ec *executionContext) fieldContext_ReportRuntimeUsageResponse_received(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2162 fc = &graphql.FieldContext{ 2163 Object: "ReportRuntimeUsageResponse", 2164 Field: field, 2165 IsMethod: false, 2166 IsResolver: false, 2167 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2168 return nil, errors.New("field of type Boolean does not have child fields") 2169 }, 2170 } 2171 return fc, nil 2172 } 2173 2174 func (ec *executionContext) _StateVersion_license(ctx context.Context, field graphql.CollectedField, obj *graph.StateVersion) (ret graphql.Marshaler) { 2175 fc, err := ec.fieldContext_StateVersion_license(ctx, field) 2176 if err != nil { 2177 return graphql.Null 2178 } 2179 ctx = graphql.WithFieldContext(ctx, fc) 2180 defer func() { 2181 if r := recover(); r != nil { 2182 ec.Error(ctx, ec.Recover(ctx, r)) 2183 ret = graphql.Null 2184 } 2185 }() 2186 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2187 ctx = rctx // use context from middleware stack in children 2188 return obj.License, nil 2189 }) 2190 if err != nil { 2191 ec.Error(ctx, err) 2192 return graphql.Null 2193 } 2194 if resTmp == nil { 2195 if !graphql.HasFieldError(ctx, fc) { 2196 ec.Errorf(ctx, "must not be null") 2197 } 2198 return graphql.Null 2199 } 2200 res := resTmp.(string) 2201 fc.Result = res 2202 return ec.marshalNString2string(ctx, field.Selections, res) 2203 } 2204 2205 func (ec *executionContext) fieldContext_StateVersion_license(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2206 fc = &graphql.FieldContext{ 2207 Object: "StateVersion", 2208 Field: field, 2209 IsMethod: false, 2210 IsResolver: false, 2211 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2212 return nil, errors.New("field of type String does not have child fields") 2213 }, 2214 } 2215 return fc, nil 2216 } 2217 2218 func (ec *executionContext) _StateVersion_version(ctx context.Context, field graphql.CollectedField, obj *graph.StateVersion) (ret graphql.Marshaler) { 2219 fc, err := ec.fieldContext_StateVersion_version(ctx, field) 2220 if err != nil { 2221 return graphql.Null 2222 } 2223 ctx = graphql.WithFieldContext(ctx, fc) 2224 defer func() { 2225 if r := recover(); r != nil { 2226 ec.Error(ctx, ec.Recover(ctx, r)) 2227 ret = graphql.Null 2228 } 2229 }() 2230 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2231 ctx = rctx // use context from middleware stack in children 2232 return obj.Version, nil 2233 }) 2234 if err != nil { 2235 ec.Error(ctx, err) 2236 return graphql.Null 2237 } 2238 if resTmp == nil { 2239 if !graphql.HasFieldError(ctx, fc) { 2240 ec.Errorf(ctx, "must not be null") 2241 } 2242 return graphql.Null 2243 } 2244 res := resTmp.(string) 2245 fc.Result = res 2246 return ec.marshalNString2string(ctx, field.Selections, res) 2247 } 2248 2249 func (ec *executionContext) fieldContext_StateVersion_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2250 fc = &graphql.FieldContext{ 2251 Object: "StateVersion", 2252 Field: field, 2253 IsMethod: false, 2254 IsResolver: false, 2255 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2256 return nil, errors.New("field of type String does not have child fields") 2257 }, 2258 } 2259 return fc, nil 2260 } 2261 2262 func (ec *executionContext) _StateVersion_channel(ctx context.Context, field graphql.CollectedField, obj *graph.StateVersion) (ret graphql.Marshaler) { 2263 fc, err := ec.fieldContext_StateVersion_channel(ctx, field) 2264 if err != nil { 2265 return graphql.Null 2266 } 2267 ctx = graphql.WithFieldContext(ctx, fc) 2268 defer func() { 2269 if r := recover(); r != nil { 2270 ec.Error(ctx, ec.Recover(ctx, r)) 2271 ret = graphql.Null 2272 } 2273 }() 2274 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2275 ctx = rctx // use context from middleware stack in children 2276 return obj.Channel, nil 2277 }) 2278 if err != nil { 2279 ec.Error(ctx, err) 2280 return graphql.Null 2281 } 2282 if resTmp == nil { 2283 if !graphql.HasFieldError(ctx, fc) { 2284 ec.Errorf(ctx, "must not be null") 2285 } 2286 return graphql.Null 2287 } 2288 res := resTmp.(string) 2289 fc.Result = res 2290 return ec.marshalNString2string(ctx, field.Selections, res) 2291 } 2292 2293 func (ec *executionContext) fieldContext_StateVersion_channel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2294 fc = &graphql.FieldContext{ 2295 Object: "StateVersion", 2296 Field: field, 2297 IsMethod: false, 2298 IsResolver: false, 2299 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2300 return nil, errors.New("field of type String does not have child fields") 2301 }, 2302 } 2303 return fc, nil 2304 } 2305 2306 func (ec *executionContext) _StateVersion_revision(ctx context.Context, field graphql.CollectedField, obj *graph.StateVersion) (ret graphql.Marshaler) { 2307 fc, err := ec.fieldContext_StateVersion_revision(ctx, field) 2308 if err != nil { 2309 return graphql.Null 2310 } 2311 ctx = graphql.WithFieldContext(ctx, fc) 2312 defer func() { 2313 if r := recover(); r != nil { 2314 ec.Error(ctx, ec.Recover(ctx, r)) 2315 ret = graphql.Null 2316 } 2317 }() 2318 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2319 ctx = rctx // use context from middleware stack in children 2320 return obj.Revision, nil 2321 }) 2322 if err != nil { 2323 ec.Error(ctx, err) 2324 return graphql.Null 2325 } 2326 if resTmp == nil { 2327 if !graphql.HasFieldError(ctx, fc) { 2328 ec.Errorf(ctx, "must not be null") 2329 } 2330 return graphql.Null 2331 } 2332 res := resTmp.(string) 2333 fc.Result = res 2334 return ec.marshalNString2string(ctx, field.Selections, res) 2335 } 2336 2337 func (ec *executionContext) fieldContext_StateVersion_revision(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2338 fc = &graphql.FieldContext{ 2339 Object: "StateVersion", 2340 Field: field, 2341 IsMethod: false, 2342 IsResolver: false, 2343 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2344 return nil, errors.New("field of type String does not have child fields") 2345 }, 2346 } 2347 return fc, nil 2348 } 2349 2350 func (ec *executionContext) _StateVersion_date(ctx context.Context, field graphql.CollectedField, obj *graph.StateVersion) (ret graphql.Marshaler) { 2351 fc, err := ec.fieldContext_StateVersion_date(ctx, field) 2352 if err != nil { 2353 return graphql.Null 2354 } 2355 ctx = graphql.WithFieldContext(ctx, fc) 2356 defer func() { 2357 if r := recover(); r != nil { 2358 ec.Error(ctx, ec.Recover(ctx, r)) 2359 ret = graphql.Null 2360 } 2361 }() 2362 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2363 ctx = rctx // use context from middleware stack in children 2364 return obj.Date, nil 2365 }) 2366 if err != nil { 2367 ec.Error(ctx, err) 2368 return graphql.Null 2369 } 2370 if resTmp == nil { 2371 if !graphql.HasFieldError(ctx, fc) { 2372 ec.Errorf(ctx, "must not be null") 2373 } 2374 return graphql.Null 2375 } 2376 res := resTmp.(string) 2377 fc.Result = res 2378 return ec.marshalNString2string(ctx, field.Selections, res) 2379 } 2380 2381 func (ec *executionContext) fieldContext_StateVersion_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2382 fc = &graphql.FieldContext{ 2383 Object: "StateVersion", 2384 Field: field, 2385 IsMethod: false, 2386 IsResolver: false, 2387 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2388 return nil, errors.New("field of type String does not have child fields") 2389 }, 2390 } 2391 return fc, nil 2392 } 2393 2394 func (ec *executionContext) _Version_state(ctx context.Context, field graphql.CollectedField, obj *graph.Version) (ret graphql.Marshaler) { 2395 fc, err := ec.fieldContext_Version_state(ctx, field) 2396 if err != nil { 2397 return graphql.Null 2398 } 2399 ctx = graphql.WithFieldContext(ctx, fc) 2400 defer func() { 2401 if r := recover(); r != nil { 2402 ec.Error(ctx, ec.Recover(ctx, r)) 2403 ret = graphql.Null 2404 } 2405 }() 2406 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2407 ctx = rctx // use context from middleware stack in children 2408 return obj.State, nil 2409 }) 2410 if err != nil { 2411 ec.Error(ctx, err) 2412 return graphql.Null 2413 } 2414 if resTmp == nil { 2415 if !graphql.HasFieldError(ctx, fc) { 2416 ec.Errorf(ctx, "must not be null") 2417 } 2418 return graphql.Null 2419 } 2420 res := resTmp.(*graph.StateVersion) 2421 fc.Result = res 2422 return ec.marshalNStateVersion2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐStateVersion(ctx, field.Selections, res) 2423 } 2424 2425 func (ec *executionContext) fieldContext_Version_state(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2426 fc = &graphql.FieldContext{ 2427 Object: "Version", 2428 Field: field, 2429 IsMethod: false, 2430 IsResolver: false, 2431 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2432 switch field.Name { 2433 case "license": 2434 return ec.fieldContext_StateVersion_license(ctx, field) 2435 case "version": 2436 return ec.fieldContext_StateVersion_version(ctx, field) 2437 case "channel": 2438 return ec.fieldContext_StateVersion_channel(ctx, field) 2439 case "revision": 2440 return ec.fieldContext_StateVersion_revision(ctx, field) 2441 case "date": 2442 return ec.fieldContext_StateVersion_date(ctx, field) 2443 } 2444 return nil, fmt.Errorf("no field named %q was found under type StateVersion", field.Name) 2445 }, 2446 } 2447 return fc, nil 2448 } 2449 2450 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 2451 fc, err := ec.fieldContext___Directive_name(ctx, field) 2452 if err != nil { 2453 return graphql.Null 2454 } 2455 ctx = graphql.WithFieldContext(ctx, fc) 2456 defer func() { 2457 if r := recover(); r != nil { 2458 ec.Error(ctx, ec.Recover(ctx, r)) 2459 ret = graphql.Null 2460 } 2461 }() 2462 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2463 ctx = rctx // use context from middleware stack in children 2464 return obj.Name, nil 2465 }) 2466 if err != nil { 2467 ec.Error(ctx, err) 2468 return graphql.Null 2469 } 2470 if resTmp == nil { 2471 if !graphql.HasFieldError(ctx, fc) { 2472 ec.Errorf(ctx, "must not be null") 2473 } 2474 return graphql.Null 2475 } 2476 res := resTmp.(string) 2477 fc.Result = res 2478 return ec.marshalNString2string(ctx, field.Selections, res) 2479 } 2480 2481 func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2482 fc = &graphql.FieldContext{ 2483 Object: "__Directive", 2484 Field: field, 2485 IsMethod: false, 2486 IsResolver: false, 2487 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2488 return nil, errors.New("field of type String does not have child fields") 2489 }, 2490 } 2491 return fc, nil 2492 } 2493 2494 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 2495 fc, err := ec.fieldContext___Directive_description(ctx, field) 2496 if err != nil { 2497 return graphql.Null 2498 } 2499 ctx = graphql.WithFieldContext(ctx, fc) 2500 defer func() { 2501 if r := recover(); r != nil { 2502 ec.Error(ctx, ec.Recover(ctx, r)) 2503 ret = graphql.Null 2504 } 2505 }() 2506 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2507 ctx = rctx // use context from middleware stack in children 2508 return obj.Description(), nil 2509 }) 2510 if err != nil { 2511 ec.Error(ctx, err) 2512 return graphql.Null 2513 } 2514 if resTmp == nil { 2515 return graphql.Null 2516 } 2517 res := resTmp.(*string) 2518 fc.Result = res 2519 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2520 } 2521 2522 func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2523 fc = &graphql.FieldContext{ 2524 Object: "__Directive", 2525 Field: field, 2526 IsMethod: true, 2527 IsResolver: false, 2528 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2529 return nil, errors.New("field of type String does not have child fields") 2530 }, 2531 } 2532 return fc, nil 2533 } 2534 2535 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 2536 fc, err := ec.fieldContext___Directive_locations(ctx, field) 2537 if err != nil { 2538 return graphql.Null 2539 } 2540 ctx = graphql.WithFieldContext(ctx, fc) 2541 defer func() { 2542 if r := recover(); r != nil { 2543 ec.Error(ctx, ec.Recover(ctx, r)) 2544 ret = graphql.Null 2545 } 2546 }() 2547 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2548 ctx = rctx // use context from middleware stack in children 2549 return obj.Locations, nil 2550 }) 2551 if err != nil { 2552 ec.Error(ctx, err) 2553 return graphql.Null 2554 } 2555 if resTmp == nil { 2556 if !graphql.HasFieldError(ctx, fc) { 2557 ec.Errorf(ctx, "must not be null") 2558 } 2559 return graphql.Null 2560 } 2561 res := resTmp.([]string) 2562 fc.Result = res 2563 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) 2564 } 2565 2566 func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2567 fc = &graphql.FieldContext{ 2568 Object: "__Directive", 2569 Field: field, 2570 IsMethod: false, 2571 IsResolver: false, 2572 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2573 return nil, errors.New("field of type __DirectiveLocation does not have child fields") 2574 }, 2575 } 2576 return fc, nil 2577 } 2578 2579 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 2580 fc, err := ec.fieldContext___Directive_args(ctx, field) 2581 if err != nil { 2582 return graphql.Null 2583 } 2584 ctx = graphql.WithFieldContext(ctx, fc) 2585 defer func() { 2586 if r := recover(); r != nil { 2587 ec.Error(ctx, ec.Recover(ctx, r)) 2588 ret = graphql.Null 2589 } 2590 }() 2591 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2592 ctx = rctx // use context from middleware stack in children 2593 return obj.Args, nil 2594 }) 2595 if err != nil { 2596 ec.Error(ctx, err) 2597 return graphql.Null 2598 } 2599 if resTmp == nil { 2600 if !graphql.HasFieldError(ctx, fc) { 2601 ec.Errorf(ctx, "must not be null") 2602 } 2603 return graphql.Null 2604 } 2605 res := resTmp.([]introspection.InputValue) 2606 fc.Result = res 2607 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 2608 } 2609 2610 func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2611 fc = &graphql.FieldContext{ 2612 Object: "__Directive", 2613 Field: field, 2614 IsMethod: false, 2615 IsResolver: false, 2616 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2617 switch field.Name { 2618 case "name": 2619 return ec.fieldContext___InputValue_name(ctx, field) 2620 case "description": 2621 return ec.fieldContext___InputValue_description(ctx, field) 2622 case "type": 2623 return ec.fieldContext___InputValue_type(ctx, field) 2624 case "defaultValue": 2625 return ec.fieldContext___InputValue_defaultValue(ctx, field) 2626 } 2627 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 2628 }, 2629 } 2630 return fc, nil 2631 } 2632 2633 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 2634 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) 2635 if err != nil { 2636 return graphql.Null 2637 } 2638 ctx = graphql.WithFieldContext(ctx, fc) 2639 defer func() { 2640 if r := recover(); r != nil { 2641 ec.Error(ctx, ec.Recover(ctx, r)) 2642 ret = graphql.Null 2643 } 2644 }() 2645 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2646 ctx = rctx // use context from middleware stack in children 2647 return obj.IsRepeatable, nil 2648 }) 2649 if err != nil { 2650 ec.Error(ctx, err) 2651 return graphql.Null 2652 } 2653 if resTmp == nil { 2654 if !graphql.HasFieldError(ctx, fc) { 2655 ec.Errorf(ctx, "must not be null") 2656 } 2657 return graphql.Null 2658 } 2659 res := resTmp.(bool) 2660 fc.Result = res 2661 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 2662 } 2663 2664 func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2665 fc = &graphql.FieldContext{ 2666 Object: "__Directive", 2667 Field: field, 2668 IsMethod: false, 2669 IsResolver: false, 2670 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2671 return nil, errors.New("field of type Boolean does not have child fields") 2672 }, 2673 } 2674 return fc, nil 2675 } 2676 2677 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 2678 fc, err := ec.fieldContext___EnumValue_name(ctx, field) 2679 if err != nil { 2680 return graphql.Null 2681 } 2682 ctx = graphql.WithFieldContext(ctx, fc) 2683 defer func() { 2684 if r := recover(); r != nil { 2685 ec.Error(ctx, ec.Recover(ctx, r)) 2686 ret = graphql.Null 2687 } 2688 }() 2689 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2690 ctx = rctx // use context from middleware stack in children 2691 return obj.Name, nil 2692 }) 2693 if err != nil { 2694 ec.Error(ctx, err) 2695 return graphql.Null 2696 } 2697 if resTmp == nil { 2698 if !graphql.HasFieldError(ctx, fc) { 2699 ec.Errorf(ctx, "must not be null") 2700 } 2701 return graphql.Null 2702 } 2703 res := resTmp.(string) 2704 fc.Result = res 2705 return ec.marshalNString2string(ctx, field.Selections, res) 2706 } 2707 2708 func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2709 fc = &graphql.FieldContext{ 2710 Object: "__EnumValue", 2711 Field: field, 2712 IsMethod: false, 2713 IsResolver: false, 2714 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2715 return nil, errors.New("field of type String does not have child fields") 2716 }, 2717 } 2718 return fc, nil 2719 } 2720 2721 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 2722 fc, err := ec.fieldContext___EnumValue_description(ctx, field) 2723 if err != nil { 2724 return graphql.Null 2725 } 2726 ctx = graphql.WithFieldContext(ctx, fc) 2727 defer func() { 2728 if r := recover(); r != nil { 2729 ec.Error(ctx, ec.Recover(ctx, r)) 2730 ret = graphql.Null 2731 } 2732 }() 2733 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2734 ctx = rctx // use context from middleware stack in children 2735 return obj.Description(), nil 2736 }) 2737 if err != nil { 2738 ec.Error(ctx, err) 2739 return graphql.Null 2740 } 2741 if resTmp == nil { 2742 return graphql.Null 2743 } 2744 res := resTmp.(*string) 2745 fc.Result = res 2746 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2747 } 2748 2749 func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2750 fc = &graphql.FieldContext{ 2751 Object: "__EnumValue", 2752 Field: field, 2753 IsMethod: true, 2754 IsResolver: false, 2755 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2756 return nil, errors.New("field of type String does not have child fields") 2757 }, 2758 } 2759 return fc, nil 2760 } 2761 2762 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 2763 fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) 2764 if err != nil { 2765 return graphql.Null 2766 } 2767 ctx = graphql.WithFieldContext(ctx, fc) 2768 defer func() { 2769 if r := recover(); r != nil { 2770 ec.Error(ctx, ec.Recover(ctx, r)) 2771 ret = graphql.Null 2772 } 2773 }() 2774 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2775 ctx = rctx // use context from middleware stack in children 2776 return obj.IsDeprecated(), nil 2777 }) 2778 if err != nil { 2779 ec.Error(ctx, err) 2780 return graphql.Null 2781 } 2782 if resTmp == nil { 2783 if !graphql.HasFieldError(ctx, fc) { 2784 ec.Errorf(ctx, "must not be null") 2785 } 2786 return graphql.Null 2787 } 2788 res := resTmp.(bool) 2789 fc.Result = res 2790 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 2791 } 2792 2793 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2794 fc = &graphql.FieldContext{ 2795 Object: "__EnumValue", 2796 Field: field, 2797 IsMethod: true, 2798 IsResolver: false, 2799 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2800 return nil, errors.New("field of type Boolean does not have child fields") 2801 }, 2802 } 2803 return fc, nil 2804 } 2805 2806 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 2807 fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) 2808 if err != nil { 2809 return graphql.Null 2810 } 2811 ctx = graphql.WithFieldContext(ctx, fc) 2812 defer func() { 2813 if r := recover(); r != nil { 2814 ec.Error(ctx, ec.Recover(ctx, r)) 2815 ret = graphql.Null 2816 } 2817 }() 2818 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2819 ctx = rctx // use context from middleware stack in children 2820 return obj.DeprecationReason(), nil 2821 }) 2822 if err != nil { 2823 ec.Error(ctx, err) 2824 return graphql.Null 2825 } 2826 if resTmp == nil { 2827 return graphql.Null 2828 } 2829 res := resTmp.(*string) 2830 fc.Result = res 2831 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2832 } 2833 2834 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2835 fc = &graphql.FieldContext{ 2836 Object: "__EnumValue", 2837 Field: field, 2838 IsMethod: true, 2839 IsResolver: false, 2840 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2841 return nil, errors.New("field of type String does not have child fields") 2842 }, 2843 } 2844 return fc, nil 2845 } 2846 2847 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 2848 fc, err := ec.fieldContext___Field_name(ctx, field) 2849 if err != nil { 2850 return graphql.Null 2851 } 2852 ctx = graphql.WithFieldContext(ctx, fc) 2853 defer func() { 2854 if r := recover(); r != nil { 2855 ec.Error(ctx, ec.Recover(ctx, r)) 2856 ret = graphql.Null 2857 } 2858 }() 2859 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2860 ctx = rctx // use context from middleware stack in children 2861 return obj.Name, nil 2862 }) 2863 if err != nil { 2864 ec.Error(ctx, err) 2865 return graphql.Null 2866 } 2867 if resTmp == nil { 2868 if !graphql.HasFieldError(ctx, fc) { 2869 ec.Errorf(ctx, "must not be null") 2870 } 2871 return graphql.Null 2872 } 2873 res := resTmp.(string) 2874 fc.Result = res 2875 return ec.marshalNString2string(ctx, field.Selections, res) 2876 } 2877 2878 func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2879 fc = &graphql.FieldContext{ 2880 Object: "__Field", 2881 Field: field, 2882 IsMethod: false, 2883 IsResolver: false, 2884 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2885 return nil, errors.New("field of type String does not have child fields") 2886 }, 2887 } 2888 return fc, nil 2889 } 2890 2891 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 2892 fc, err := ec.fieldContext___Field_description(ctx, field) 2893 if err != nil { 2894 return graphql.Null 2895 } 2896 ctx = graphql.WithFieldContext(ctx, fc) 2897 defer func() { 2898 if r := recover(); r != nil { 2899 ec.Error(ctx, ec.Recover(ctx, r)) 2900 ret = graphql.Null 2901 } 2902 }() 2903 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2904 ctx = rctx // use context from middleware stack in children 2905 return obj.Description(), nil 2906 }) 2907 if err != nil { 2908 ec.Error(ctx, err) 2909 return graphql.Null 2910 } 2911 if resTmp == nil { 2912 return graphql.Null 2913 } 2914 res := resTmp.(*string) 2915 fc.Result = res 2916 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2917 } 2918 2919 func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2920 fc = &graphql.FieldContext{ 2921 Object: "__Field", 2922 Field: field, 2923 IsMethod: true, 2924 IsResolver: false, 2925 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2926 return nil, errors.New("field of type String does not have child fields") 2927 }, 2928 } 2929 return fc, nil 2930 } 2931 2932 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 2933 fc, err := ec.fieldContext___Field_args(ctx, field) 2934 if err != nil { 2935 return graphql.Null 2936 } 2937 ctx = graphql.WithFieldContext(ctx, fc) 2938 defer func() { 2939 if r := recover(); r != nil { 2940 ec.Error(ctx, ec.Recover(ctx, r)) 2941 ret = graphql.Null 2942 } 2943 }() 2944 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2945 ctx = rctx // use context from middleware stack in children 2946 return obj.Args, nil 2947 }) 2948 if err != nil { 2949 ec.Error(ctx, err) 2950 return graphql.Null 2951 } 2952 if resTmp == nil { 2953 if !graphql.HasFieldError(ctx, fc) { 2954 ec.Errorf(ctx, "must not be null") 2955 } 2956 return graphql.Null 2957 } 2958 res := resTmp.([]introspection.InputValue) 2959 fc.Result = res 2960 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 2961 } 2962 2963 func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2964 fc = &graphql.FieldContext{ 2965 Object: "__Field", 2966 Field: field, 2967 IsMethod: false, 2968 IsResolver: false, 2969 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2970 switch field.Name { 2971 case "name": 2972 return ec.fieldContext___InputValue_name(ctx, field) 2973 case "description": 2974 return ec.fieldContext___InputValue_description(ctx, field) 2975 case "type": 2976 return ec.fieldContext___InputValue_type(ctx, field) 2977 case "defaultValue": 2978 return ec.fieldContext___InputValue_defaultValue(ctx, field) 2979 } 2980 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 2981 }, 2982 } 2983 return fc, nil 2984 } 2985 2986 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 2987 fc, err := ec.fieldContext___Field_type(ctx, field) 2988 if err != nil { 2989 return graphql.Null 2990 } 2991 ctx = graphql.WithFieldContext(ctx, fc) 2992 defer func() { 2993 if r := recover(); r != nil { 2994 ec.Error(ctx, ec.Recover(ctx, r)) 2995 ret = graphql.Null 2996 } 2997 }() 2998 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2999 ctx = rctx // use context from middleware stack in children 3000 return obj.Type, nil 3001 }) 3002 if err != nil { 3003 ec.Error(ctx, err) 3004 return graphql.Null 3005 } 3006 if resTmp == nil { 3007 if !graphql.HasFieldError(ctx, fc) { 3008 ec.Errorf(ctx, "must not be null") 3009 } 3010 return graphql.Null 3011 } 3012 res := resTmp.(*introspection.Type) 3013 fc.Result = res 3014 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 3015 } 3016 3017 func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3018 fc = &graphql.FieldContext{ 3019 Object: "__Field", 3020 Field: field, 3021 IsMethod: false, 3022 IsResolver: false, 3023 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3024 switch field.Name { 3025 case "kind": 3026 return ec.fieldContext___Type_kind(ctx, field) 3027 case "name": 3028 return ec.fieldContext___Type_name(ctx, field) 3029 case "description": 3030 return ec.fieldContext___Type_description(ctx, field) 3031 case "fields": 3032 return ec.fieldContext___Type_fields(ctx, field) 3033 case "interfaces": 3034 return ec.fieldContext___Type_interfaces(ctx, field) 3035 case "possibleTypes": 3036 return ec.fieldContext___Type_possibleTypes(ctx, field) 3037 case "enumValues": 3038 return ec.fieldContext___Type_enumValues(ctx, field) 3039 case "inputFields": 3040 return ec.fieldContext___Type_inputFields(ctx, field) 3041 case "ofType": 3042 return ec.fieldContext___Type_ofType(ctx, field) 3043 case "specifiedByURL": 3044 return ec.fieldContext___Type_specifiedByURL(ctx, field) 3045 } 3046 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 3047 }, 3048 } 3049 return fc, nil 3050 } 3051 3052 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 3053 fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) 3054 if err != nil { 3055 return graphql.Null 3056 } 3057 ctx = graphql.WithFieldContext(ctx, fc) 3058 defer func() { 3059 if r := recover(); r != nil { 3060 ec.Error(ctx, ec.Recover(ctx, r)) 3061 ret = graphql.Null 3062 } 3063 }() 3064 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3065 ctx = rctx // use context from middleware stack in children 3066 return obj.IsDeprecated(), nil 3067 }) 3068 if err != nil { 3069 ec.Error(ctx, err) 3070 return graphql.Null 3071 } 3072 if resTmp == nil { 3073 if !graphql.HasFieldError(ctx, fc) { 3074 ec.Errorf(ctx, "must not be null") 3075 } 3076 return graphql.Null 3077 } 3078 res := resTmp.(bool) 3079 fc.Result = res 3080 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 3081 } 3082 3083 func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3084 fc = &graphql.FieldContext{ 3085 Object: "__Field", 3086 Field: field, 3087 IsMethod: true, 3088 IsResolver: false, 3089 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3090 return nil, errors.New("field of type Boolean does not have child fields") 3091 }, 3092 } 3093 return fc, nil 3094 } 3095 3096 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 3097 fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) 3098 if err != nil { 3099 return graphql.Null 3100 } 3101 ctx = graphql.WithFieldContext(ctx, fc) 3102 defer func() { 3103 if r := recover(); r != nil { 3104 ec.Error(ctx, ec.Recover(ctx, r)) 3105 ret = graphql.Null 3106 } 3107 }() 3108 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3109 ctx = rctx // use context from middleware stack in children 3110 return obj.DeprecationReason(), nil 3111 }) 3112 if err != nil { 3113 ec.Error(ctx, err) 3114 return graphql.Null 3115 } 3116 if resTmp == nil { 3117 return graphql.Null 3118 } 3119 res := resTmp.(*string) 3120 fc.Result = res 3121 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3122 } 3123 3124 func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3125 fc = &graphql.FieldContext{ 3126 Object: "__Field", 3127 Field: field, 3128 IsMethod: true, 3129 IsResolver: false, 3130 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3131 return nil, errors.New("field of type String does not have child fields") 3132 }, 3133 } 3134 return fc, nil 3135 } 3136 3137 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 3138 fc, err := ec.fieldContext___InputValue_name(ctx, field) 3139 if err != nil { 3140 return graphql.Null 3141 } 3142 ctx = graphql.WithFieldContext(ctx, fc) 3143 defer func() { 3144 if r := recover(); r != nil { 3145 ec.Error(ctx, ec.Recover(ctx, r)) 3146 ret = graphql.Null 3147 } 3148 }() 3149 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3150 ctx = rctx // use context from middleware stack in children 3151 return obj.Name, nil 3152 }) 3153 if err != nil { 3154 ec.Error(ctx, err) 3155 return graphql.Null 3156 } 3157 if resTmp == nil { 3158 if !graphql.HasFieldError(ctx, fc) { 3159 ec.Errorf(ctx, "must not be null") 3160 } 3161 return graphql.Null 3162 } 3163 res := resTmp.(string) 3164 fc.Result = res 3165 return ec.marshalNString2string(ctx, field.Selections, res) 3166 } 3167 3168 func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3169 fc = &graphql.FieldContext{ 3170 Object: "__InputValue", 3171 Field: field, 3172 IsMethod: false, 3173 IsResolver: false, 3174 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3175 return nil, errors.New("field of type String does not have child fields") 3176 }, 3177 } 3178 return fc, nil 3179 } 3180 3181 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 3182 fc, err := ec.fieldContext___InputValue_description(ctx, field) 3183 if err != nil { 3184 return graphql.Null 3185 } 3186 ctx = graphql.WithFieldContext(ctx, fc) 3187 defer func() { 3188 if r := recover(); r != nil { 3189 ec.Error(ctx, ec.Recover(ctx, r)) 3190 ret = graphql.Null 3191 } 3192 }() 3193 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3194 ctx = rctx // use context from middleware stack in children 3195 return obj.Description(), nil 3196 }) 3197 if err != nil { 3198 ec.Error(ctx, err) 3199 return graphql.Null 3200 } 3201 if resTmp == nil { 3202 return graphql.Null 3203 } 3204 res := resTmp.(*string) 3205 fc.Result = res 3206 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3207 } 3208 3209 func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3210 fc = &graphql.FieldContext{ 3211 Object: "__InputValue", 3212 Field: field, 3213 IsMethod: true, 3214 IsResolver: false, 3215 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3216 return nil, errors.New("field of type String does not have child fields") 3217 }, 3218 } 3219 return fc, nil 3220 } 3221 3222 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 3223 fc, err := ec.fieldContext___InputValue_type(ctx, field) 3224 if err != nil { 3225 return graphql.Null 3226 } 3227 ctx = graphql.WithFieldContext(ctx, fc) 3228 defer func() { 3229 if r := recover(); r != nil { 3230 ec.Error(ctx, ec.Recover(ctx, r)) 3231 ret = graphql.Null 3232 } 3233 }() 3234 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3235 ctx = rctx // use context from middleware stack in children 3236 return obj.Type, nil 3237 }) 3238 if err != nil { 3239 ec.Error(ctx, err) 3240 return graphql.Null 3241 } 3242 if resTmp == nil { 3243 if !graphql.HasFieldError(ctx, fc) { 3244 ec.Errorf(ctx, "must not be null") 3245 } 3246 return graphql.Null 3247 } 3248 res := resTmp.(*introspection.Type) 3249 fc.Result = res 3250 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 3251 } 3252 3253 func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3254 fc = &graphql.FieldContext{ 3255 Object: "__InputValue", 3256 Field: field, 3257 IsMethod: false, 3258 IsResolver: false, 3259 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3260 switch field.Name { 3261 case "kind": 3262 return ec.fieldContext___Type_kind(ctx, field) 3263 case "name": 3264 return ec.fieldContext___Type_name(ctx, field) 3265 case "description": 3266 return ec.fieldContext___Type_description(ctx, field) 3267 case "fields": 3268 return ec.fieldContext___Type_fields(ctx, field) 3269 case "interfaces": 3270 return ec.fieldContext___Type_interfaces(ctx, field) 3271 case "possibleTypes": 3272 return ec.fieldContext___Type_possibleTypes(ctx, field) 3273 case "enumValues": 3274 return ec.fieldContext___Type_enumValues(ctx, field) 3275 case "inputFields": 3276 return ec.fieldContext___Type_inputFields(ctx, field) 3277 case "ofType": 3278 return ec.fieldContext___Type_ofType(ctx, field) 3279 case "specifiedByURL": 3280 return ec.fieldContext___Type_specifiedByURL(ctx, field) 3281 } 3282 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 3283 }, 3284 } 3285 return fc, nil 3286 } 3287 3288 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 3289 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) 3290 if err != nil { 3291 return graphql.Null 3292 } 3293 ctx = graphql.WithFieldContext(ctx, fc) 3294 defer func() { 3295 if r := recover(); r != nil { 3296 ec.Error(ctx, ec.Recover(ctx, r)) 3297 ret = graphql.Null 3298 } 3299 }() 3300 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3301 ctx = rctx // use context from middleware stack in children 3302 return obj.DefaultValue, nil 3303 }) 3304 if err != nil { 3305 ec.Error(ctx, err) 3306 return graphql.Null 3307 } 3308 if resTmp == nil { 3309 return graphql.Null 3310 } 3311 res := resTmp.(*string) 3312 fc.Result = res 3313 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3314 } 3315 3316 func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3317 fc = &graphql.FieldContext{ 3318 Object: "__InputValue", 3319 Field: field, 3320 IsMethod: false, 3321 IsResolver: false, 3322 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3323 return nil, errors.New("field of type String does not have child fields") 3324 }, 3325 } 3326 return fc, nil 3327 } 3328 3329 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 3330 fc, err := ec.fieldContext___Schema_description(ctx, field) 3331 if err != nil { 3332 return graphql.Null 3333 } 3334 ctx = graphql.WithFieldContext(ctx, fc) 3335 defer func() { 3336 if r := recover(); r != nil { 3337 ec.Error(ctx, ec.Recover(ctx, r)) 3338 ret = graphql.Null 3339 } 3340 }() 3341 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3342 ctx = rctx // use context from middleware stack in children 3343 return obj.Description(), nil 3344 }) 3345 if err != nil { 3346 ec.Error(ctx, err) 3347 return graphql.Null 3348 } 3349 if resTmp == nil { 3350 return graphql.Null 3351 } 3352 res := resTmp.(*string) 3353 fc.Result = res 3354 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3355 } 3356 3357 func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3358 fc = &graphql.FieldContext{ 3359 Object: "__Schema", 3360 Field: field, 3361 IsMethod: true, 3362 IsResolver: false, 3363 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3364 return nil, errors.New("field of type String does not have child fields") 3365 }, 3366 } 3367 return fc, nil 3368 } 3369 3370 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 3371 fc, err := ec.fieldContext___Schema_types(ctx, field) 3372 if err != nil { 3373 return graphql.Null 3374 } 3375 ctx = graphql.WithFieldContext(ctx, fc) 3376 defer func() { 3377 if r := recover(); r != nil { 3378 ec.Error(ctx, ec.Recover(ctx, r)) 3379 ret = graphql.Null 3380 } 3381 }() 3382 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3383 ctx = rctx // use context from middleware stack in children 3384 return obj.Types(), nil 3385 }) 3386 if err != nil { 3387 ec.Error(ctx, err) 3388 return graphql.Null 3389 } 3390 if resTmp == nil { 3391 if !graphql.HasFieldError(ctx, fc) { 3392 ec.Errorf(ctx, "must not be null") 3393 } 3394 return graphql.Null 3395 } 3396 res := resTmp.([]introspection.Type) 3397 fc.Result = res 3398 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 3399 } 3400 3401 func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3402 fc = &graphql.FieldContext{ 3403 Object: "__Schema", 3404 Field: field, 3405 IsMethod: true, 3406 IsResolver: false, 3407 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3408 switch field.Name { 3409 case "kind": 3410 return ec.fieldContext___Type_kind(ctx, field) 3411 case "name": 3412 return ec.fieldContext___Type_name(ctx, field) 3413 case "description": 3414 return ec.fieldContext___Type_description(ctx, field) 3415 case "fields": 3416 return ec.fieldContext___Type_fields(ctx, field) 3417 case "interfaces": 3418 return ec.fieldContext___Type_interfaces(ctx, field) 3419 case "possibleTypes": 3420 return ec.fieldContext___Type_possibleTypes(ctx, field) 3421 case "enumValues": 3422 return ec.fieldContext___Type_enumValues(ctx, field) 3423 case "inputFields": 3424 return ec.fieldContext___Type_inputFields(ctx, field) 3425 case "ofType": 3426 return ec.fieldContext___Type_ofType(ctx, field) 3427 case "specifiedByURL": 3428 return ec.fieldContext___Type_specifiedByURL(ctx, field) 3429 } 3430 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 3431 }, 3432 } 3433 return fc, nil 3434 } 3435 3436 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 3437 fc, err := ec.fieldContext___Schema_queryType(ctx, field) 3438 if err != nil { 3439 return graphql.Null 3440 } 3441 ctx = graphql.WithFieldContext(ctx, fc) 3442 defer func() { 3443 if r := recover(); r != nil { 3444 ec.Error(ctx, ec.Recover(ctx, r)) 3445 ret = graphql.Null 3446 } 3447 }() 3448 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3449 ctx = rctx // use context from middleware stack in children 3450 return obj.QueryType(), nil 3451 }) 3452 if err != nil { 3453 ec.Error(ctx, err) 3454 return graphql.Null 3455 } 3456 if resTmp == nil { 3457 if !graphql.HasFieldError(ctx, fc) { 3458 ec.Errorf(ctx, "must not be null") 3459 } 3460 return graphql.Null 3461 } 3462 res := resTmp.(*introspection.Type) 3463 fc.Result = res 3464 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 3465 } 3466 3467 func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3468 fc = &graphql.FieldContext{ 3469 Object: "__Schema", 3470 Field: field, 3471 IsMethod: true, 3472 IsResolver: false, 3473 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3474 switch field.Name { 3475 case "kind": 3476 return ec.fieldContext___Type_kind(ctx, field) 3477 case "name": 3478 return ec.fieldContext___Type_name(ctx, field) 3479 case "description": 3480 return ec.fieldContext___Type_description(ctx, field) 3481 case "fields": 3482 return ec.fieldContext___Type_fields(ctx, field) 3483 case "interfaces": 3484 return ec.fieldContext___Type_interfaces(ctx, field) 3485 case "possibleTypes": 3486 return ec.fieldContext___Type_possibleTypes(ctx, field) 3487 case "enumValues": 3488 return ec.fieldContext___Type_enumValues(ctx, field) 3489 case "inputFields": 3490 return ec.fieldContext___Type_inputFields(ctx, field) 3491 case "ofType": 3492 return ec.fieldContext___Type_ofType(ctx, field) 3493 case "specifiedByURL": 3494 return ec.fieldContext___Type_specifiedByURL(ctx, field) 3495 } 3496 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 3497 }, 3498 } 3499 return fc, nil 3500 } 3501 3502 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 3503 fc, err := ec.fieldContext___Schema_mutationType(ctx, field) 3504 if err != nil { 3505 return graphql.Null 3506 } 3507 ctx = graphql.WithFieldContext(ctx, fc) 3508 defer func() { 3509 if r := recover(); r != nil { 3510 ec.Error(ctx, ec.Recover(ctx, r)) 3511 ret = graphql.Null 3512 } 3513 }() 3514 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3515 ctx = rctx // use context from middleware stack in children 3516 return obj.MutationType(), nil 3517 }) 3518 if err != nil { 3519 ec.Error(ctx, err) 3520 return graphql.Null 3521 } 3522 if resTmp == nil { 3523 return graphql.Null 3524 } 3525 res := resTmp.(*introspection.Type) 3526 fc.Result = res 3527 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 3528 } 3529 3530 func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3531 fc = &graphql.FieldContext{ 3532 Object: "__Schema", 3533 Field: field, 3534 IsMethod: true, 3535 IsResolver: false, 3536 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3537 switch field.Name { 3538 case "kind": 3539 return ec.fieldContext___Type_kind(ctx, field) 3540 case "name": 3541 return ec.fieldContext___Type_name(ctx, field) 3542 case "description": 3543 return ec.fieldContext___Type_description(ctx, field) 3544 case "fields": 3545 return ec.fieldContext___Type_fields(ctx, field) 3546 case "interfaces": 3547 return ec.fieldContext___Type_interfaces(ctx, field) 3548 case "possibleTypes": 3549 return ec.fieldContext___Type_possibleTypes(ctx, field) 3550 case "enumValues": 3551 return ec.fieldContext___Type_enumValues(ctx, field) 3552 case "inputFields": 3553 return ec.fieldContext___Type_inputFields(ctx, field) 3554 case "ofType": 3555 return ec.fieldContext___Type_ofType(ctx, field) 3556 case "specifiedByURL": 3557 return ec.fieldContext___Type_specifiedByURL(ctx, field) 3558 } 3559 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 3560 }, 3561 } 3562 return fc, nil 3563 } 3564 3565 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 3566 fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) 3567 if err != nil { 3568 return graphql.Null 3569 } 3570 ctx = graphql.WithFieldContext(ctx, fc) 3571 defer func() { 3572 if r := recover(); r != nil { 3573 ec.Error(ctx, ec.Recover(ctx, r)) 3574 ret = graphql.Null 3575 } 3576 }() 3577 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3578 ctx = rctx // use context from middleware stack in children 3579 return obj.SubscriptionType(), nil 3580 }) 3581 if err != nil { 3582 ec.Error(ctx, err) 3583 return graphql.Null 3584 } 3585 if resTmp == nil { 3586 return graphql.Null 3587 } 3588 res := resTmp.(*introspection.Type) 3589 fc.Result = res 3590 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 3591 } 3592 3593 func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3594 fc = &graphql.FieldContext{ 3595 Object: "__Schema", 3596 Field: field, 3597 IsMethod: true, 3598 IsResolver: false, 3599 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3600 switch field.Name { 3601 case "kind": 3602 return ec.fieldContext___Type_kind(ctx, field) 3603 case "name": 3604 return ec.fieldContext___Type_name(ctx, field) 3605 case "description": 3606 return ec.fieldContext___Type_description(ctx, field) 3607 case "fields": 3608 return ec.fieldContext___Type_fields(ctx, field) 3609 case "interfaces": 3610 return ec.fieldContext___Type_interfaces(ctx, field) 3611 case "possibleTypes": 3612 return ec.fieldContext___Type_possibleTypes(ctx, field) 3613 case "enumValues": 3614 return ec.fieldContext___Type_enumValues(ctx, field) 3615 case "inputFields": 3616 return ec.fieldContext___Type_inputFields(ctx, field) 3617 case "ofType": 3618 return ec.fieldContext___Type_ofType(ctx, field) 3619 case "specifiedByURL": 3620 return ec.fieldContext___Type_specifiedByURL(ctx, field) 3621 } 3622 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 3623 }, 3624 } 3625 return fc, nil 3626 } 3627 3628 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 3629 fc, err := ec.fieldContext___Schema_directives(ctx, field) 3630 if err != nil { 3631 return graphql.Null 3632 } 3633 ctx = graphql.WithFieldContext(ctx, fc) 3634 defer func() { 3635 if r := recover(); r != nil { 3636 ec.Error(ctx, ec.Recover(ctx, r)) 3637 ret = graphql.Null 3638 } 3639 }() 3640 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3641 ctx = rctx // use context from middleware stack in children 3642 return obj.Directives(), nil 3643 }) 3644 if err != nil { 3645 ec.Error(ctx, err) 3646 return graphql.Null 3647 } 3648 if resTmp == nil { 3649 if !graphql.HasFieldError(ctx, fc) { 3650 ec.Errorf(ctx, "must not be null") 3651 } 3652 return graphql.Null 3653 } 3654 res := resTmp.([]introspection.Directive) 3655 fc.Result = res 3656 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) 3657 } 3658 3659 func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3660 fc = &graphql.FieldContext{ 3661 Object: "__Schema", 3662 Field: field, 3663 IsMethod: true, 3664 IsResolver: false, 3665 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3666 switch field.Name { 3667 case "name": 3668 return ec.fieldContext___Directive_name(ctx, field) 3669 case "description": 3670 return ec.fieldContext___Directive_description(ctx, field) 3671 case "locations": 3672 return ec.fieldContext___Directive_locations(ctx, field) 3673 case "args": 3674 return ec.fieldContext___Directive_args(ctx, field) 3675 case "isRepeatable": 3676 return ec.fieldContext___Directive_isRepeatable(ctx, field) 3677 } 3678 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) 3679 }, 3680 } 3681 return fc, nil 3682 } 3683 3684 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 3685 fc, err := ec.fieldContext___Type_kind(ctx, field) 3686 if err != nil { 3687 return graphql.Null 3688 } 3689 ctx = graphql.WithFieldContext(ctx, fc) 3690 defer func() { 3691 if r := recover(); r != nil { 3692 ec.Error(ctx, ec.Recover(ctx, r)) 3693 ret = graphql.Null 3694 } 3695 }() 3696 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3697 ctx = rctx // use context from middleware stack in children 3698 return obj.Kind(), nil 3699 }) 3700 if err != nil { 3701 ec.Error(ctx, err) 3702 return graphql.Null 3703 } 3704 if resTmp == nil { 3705 if !graphql.HasFieldError(ctx, fc) { 3706 ec.Errorf(ctx, "must not be null") 3707 } 3708 return graphql.Null 3709 } 3710 res := resTmp.(string) 3711 fc.Result = res 3712 return ec.marshalN__TypeKind2string(ctx, field.Selections, res) 3713 } 3714 3715 func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3716 fc = &graphql.FieldContext{ 3717 Object: "__Type", 3718 Field: field, 3719 IsMethod: true, 3720 IsResolver: false, 3721 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3722 return nil, errors.New("field of type __TypeKind does not have child fields") 3723 }, 3724 } 3725 return fc, nil 3726 } 3727 3728 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 3729 fc, err := ec.fieldContext___Type_name(ctx, field) 3730 if err != nil { 3731 return graphql.Null 3732 } 3733 ctx = graphql.WithFieldContext(ctx, fc) 3734 defer func() { 3735 if r := recover(); r != nil { 3736 ec.Error(ctx, ec.Recover(ctx, r)) 3737 ret = graphql.Null 3738 } 3739 }() 3740 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3741 ctx = rctx // use context from middleware stack in children 3742 return obj.Name(), nil 3743 }) 3744 if err != nil { 3745 ec.Error(ctx, err) 3746 return graphql.Null 3747 } 3748 if resTmp == nil { 3749 return graphql.Null 3750 } 3751 res := resTmp.(*string) 3752 fc.Result = res 3753 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3754 } 3755 3756 func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3757 fc = &graphql.FieldContext{ 3758 Object: "__Type", 3759 Field: field, 3760 IsMethod: true, 3761 IsResolver: false, 3762 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3763 return nil, errors.New("field of type String does not have child fields") 3764 }, 3765 } 3766 return fc, nil 3767 } 3768 3769 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 3770 fc, err := ec.fieldContext___Type_description(ctx, field) 3771 if err != nil { 3772 return graphql.Null 3773 } 3774 ctx = graphql.WithFieldContext(ctx, fc) 3775 defer func() { 3776 if r := recover(); r != nil { 3777 ec.Error(ctx, ec.Recover(ctx, r)) 3778 ret = graphql.Null 3779 } 3780 }() 3781 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3782 ctx = rctx // use context from middleware stack in children 3783 return obj.Description(), nil 3784 }) 3785 if err != nil { 3786 ec.Error(ctx, err) 3787 return graphql.Null 3788 } 3789 if resTmp == nil { 3790 return graphql.Null 3791 } 3792 res := resTmp.(*string) 3793 fc.Result = res 3794 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3795 } 3796 3797 func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3798 fc = &graphql.FieldContext{ 3799 Object: "__Type", 3800 Field: field, 3801 IsMethod: true, 3802 IsResolver: false, 3803 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3804 return nil, errors.New("field of type String does not have child fields") 3805 }, 3806 } 3807 return fc, nil 3808 } 3809 3810 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 3811 fc, err := ec.fieldContext___Type_fields(ctx, field) 3812 if err != nil { 3813 return graphql.Null 3814 } 3815 ctx = graphql.WithFieldContext(ctx, fc) 3816 defer func() { 3817 if r := recover(); r != nil { 3818 ec.Error(ctx, ec.Recover(ctx, r)) 3819 ret = graphql.Null 3820 } 3821 }() 3822 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3823 ctx = rctx // use context from middleware stack in children 3824 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil 3825 }) 3826 if err != nil { 3827 ec.Error(ctx, err) 3828 return graphql.Null 3829 } 3830 if resTmp == nil { 3831 return graphql.Null 3832 } 3833 res := resTmp.([]introspection.Field) 3834 fc.Result = res 3835 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) 3836 } 3837 3838 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3839 fc = &graphql.FieldContext{ 3840 Object: "__Type", 3841 Field: field, 3842 IsMethod: true, 3843 IsResolver: false, 3844 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3845 switch field.Name { 3846 case "name": 3847 return ec.fieldContext___Field_name(ctx, field) 3848 case "description": 3849 return ec.fieldContext___Field_description(ctx, field) 3850 case "args": 3851 return ec.fieldContext___Field_args(ctx, field) 3852 case "type": 3853 return ec.fieldContext___Field_type(ctx, field) 3854 case "isDeprecated": 3855 return ec.fieldContext___Field_isDeprecated(ctx, field) 3856 case "deprecationReason": 3857 return ec.fieldContext___Field_deprecationReason(ctx, field) 3858 } 3859 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) 3860 }, 3861 } 3862 defer func() { 3863 if r := recover(); r != nil { 3864 err = ec.Recover(ctx, r) 3865 ec.Error(ctx, err) 3866 } 3867 }() 3868 ctx = graphql.WithFieldContext(ctx, fc) 3869 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 3870 ec.Error(ctx, err) 3871 return 3872 } 3873 return fc, nil 3874 } 3875 3876 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 3877 fc, err := ec.fieldContext___Type_interfaces(ctx, field) 3878 if err != nil { 3879 return graphql.Null 3880 } 3881 ctx = graphql.WithFieldContext(ctx, fc) 3882 defer func() { 3883 if r := recover(); r != nil { 3884 ec.Error(ctx, ec.Recover(ctx, r)) 3885 ret = graphql.Null 3886 } 3887 }() 3888 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3889 ctx = rctx // use context from middleware stack in children 3890 return obj.Interfaces(), nil 3891 }) 3892 if err != nil { 3893 ec.Error(ctx, err) 3894 return graphql.Null 3895 } 3896 if resTmp == nil { 3897 return graphql.Null 3898 } 3899 res := resTmp.([]introspection.Type) 3900 fc.Result = res 3901 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 3902 } 3903 3904 func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3905 fc = &graphql.FieldContext{ 3906 Object: "__Type", 3907 Field: field, 3908 IsMethod: true, 3909 IsResolver: false, 3910 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3911 switch field.Name { 3912 case "kind": 3913 return ec.fieldContext___Type_kind(ctx, field) 3914 case "name": 3915 return ec.fieldContext___Type_name(ctx, field) 3916 case "description": 3917 return ec.fieldContext___Type_description(ctx, field) 3918 case "fields": 3919 return ec.fieldContext___Type_fields(ctx, field) 3920 case "interfaces": 3921 return ec.fieldContext___Type_interfaces(ctx, field) 3922 case "possibleTypes": 3923 return ec.fieldContext___Type_possibleTypes(ctx, field) 3924 case "enumValues": 3925 return ec.fieldContext___Type_enumValues(ctx, field) 3926 case "inputFields": 3927 return ec.fieldContext___Type_inputFields(ctx, field) 3928 case "ofType": 3929 return ec.fieldContext___Type_ofType(ctx, field) 3930 case "specifiedByURL": 3931 return ec.fieldContext___Type_specifiedByURL(ctx, field) 3932 } 3933 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 3934 }, 3935 } 3936 return fc, nil 3937 } 3938 3939 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 3940 fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) 3941 if err != nil { 3942 return graphql.Null 3943 } 3944 ctx = graphql.WithFieldContext(ctx, fc) 3945 defer func() { 3946 if r := recover(); r != nil { 3947 ec.Error(ctx, ec.Recover(ctx, r)) 3948 ret = graphql.Null 3949 } 3950 }() 3951 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3952 ctx = rctx // use context from middleware stack in children 3953 return obj.PossibleTypes(), nil 3954 }) 3955 if err != nil { 3956 ec.Error(ctx, err) 3957 return graphql.Null 3958 } 3959 if resTmp == nil { 3960 return graphql.Null 3961 } 3962 res := resTmp.([]introspection.Type) 3963 fc.Result = res 3964 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 3965 } 3966 3967 func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3968 fc = &graphql.FieldContext{ 3969 Object: "__Type", 3970 Field: field, 3971 IsMethod: true, 3972 IsResolver: false, 3973 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3974 switch field.Name { 3975 case "kind": 3976 return ec.fieldContext___Type_kind(ctx, field) 3977 case "name": 3978 return ec.fieldContext___Type_name(ctx, field) 3979 case "description": 3980 return ec.fieldContext___Type_description(ctx, field) 3981 case "fields": 3982 return ec.fieldContext___Type_fields(ctx, field) 3983 case "interfaces": 3984 return ec.fieldContext___Type_interfaces(ctx, field) 3985 case "possibleTypes": 3986 return ec.fieldContext___Type_possibleTypes(ctx, field) 3987 case "enumValues": 3988 return ec.fieldContext___Type_enumValues(ctx, field) 3989 case "inputFields": 3990 return ec.fieldContext___Type_inputFields(ctx, field) 3991 case "ofType": 3992 return ec.fieldContext___Type_ofType(ctx, field) 3993 case "specifiedByURL": 3994 return ec.fieldContext___Type_specifiedByURL(ctx, field) 3995 } 3996 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 3997 }, 3998 } 3999 return fc, nil 4000 } 4001 4002 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 4003 fc, err := ec.fieldContext___Type_enumValues(ctx, field) 4004 if err != nil { 4005 return graphql.Null 4006 } 4007 ctx = graphql.WithFieldContext(ctx, fc) 4008 defer func() { 4009 if r := recover(); r != nil { 4010 ec.Error(ctx, ec.Recover(ctx, r)) 4011 ret = graphql.Null 4012 } 4013 }() 4014 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4015 ctx = rctx // use context from middleware stack in children 4016 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil 4017 }) 4018 if err != nil { 4019 ec.Error(ctx, err) 4020 return graphql.Null 4021 } 4022 if resTmp == nil { 4023 return graphql.Null 4024 } 4025 res := resTmp.([]introspection.EnumValue) 4026 fc.Result = res 4027 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) 4028 } 4029 4030 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4031 fc = &graphql.FieldContext{ 4032 Object: "__Type", 4033 Field: field, 4034 IsMethod: true, 4035 IsResolver: false, 4036 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4037 switch field.Name { 4038 case "name": 4039 return ec.fieldContext___EnumValue_name(ctx, field) 4040 case "description": 4041 return ec.fieldContext___EnumValue_description(ctx, field) 4042 case "isDeprecated": 4043 return ec.fieldContext___EnumValue_isDeprecated(ctx, field) 4044 case "deprecationReason": 4045 return ec.fieldContext___EnumValue_deprecationReason(ctx, field) 4046 } 4047 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) 4048 }, 4049 } 4050 defer func() { 4051 if r := recover(); r != nil { 4052 err = ec.Recover(ctx, r) 4053 ec.Error(ctx, err) 4054 } 4055 }() 4056 ctx = graphql.WithFieldContext(ctx, fc) 4057 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 4058 ec.Error(ctx, err) 4059 return 4060 } 4061 return fc, nil 4062 } 4063 4064 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 4065 fc, err := ec.fieldContext___Type_inputFields(ctx, field) 4066 if err != nil { 4067 return graphql.Null 4068 } 4069 ctx = graphql.WithFieldContext(ctx, fc) 4070 defer func() { 4071 if r := recover(); r != nil { 4072 ec.Error(ctx, ec.Recover(ctx, r)) 4073 ret = graphql.Null 4074 } 4075 }() 4076 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4077 ctx = rctx // use context from middleware stack in children 4078 return obj.InputFields(), nil 4079 }) 4080 if err != nil { 4081 ec.Error(ctx, err) 4082 return graphql.Null 4083 } 4084 if resTmp == nil { 4085 return graphql.Null 4086 } 4087 res := resTmp.([]introspection.InputValue) 4088 fc.Result = res 4089 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 4090 } 4091 4092 func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4093 fc = &graphql.FieldContext{ 4094 Object: "__Type", 4095 Field: field, 4096 IsMethod: true, 4097 IsResolver: false, 4098 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4099 switch field.Name { 4100 case "name": 4101 return ec.fieldContext___InputValue_name(ctx, field) 4102 case "description": 4103 return ec.fieldContext___InputValue_description(ctx, field) 4104 case "type": 4105 return ec.fieldContext___InputValue_type(ctx, field) 4106 case "defaultValue": 4107 return ec.fieldContext___InputValue_defaultValue(ctx, field) 4108 } 4109 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 4110 }, 4111 } 4112 return fc, nil 4113 } 4114 4115 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 4116 fc, err := ec.fieldContext___Type_ofType(ctx, field) 4117 if err != nil { 4118 return graphql.Null 4119 } 4120 ctx = graphql.WithFieldContext(ctx, fc) 4121 defer func() { 4122 if r := recover(); r != nil { 4123 ec.Error(ctx, ec.Recover(ctx, r)) 4124 ret = graphql.Null 4125 } 4126 }() 4127 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4128 ctx = rctx // use context from middleware stack in children 4129 return obj.OfType(), nil 4130 }) 4131 if err != nil { 4132 ec.Error(ctx, err) 4133 return graphql.Null 4134 } 4135 if resTmp == nil { 4136 return graphql.Null 4137 } 4138 res := resTmp.(*introspection.Type) 4139 fc.Result = res 4140 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 4141 } 4142 4143 func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4144 fc = &graphql.FieldContext{ 4145 Object: "__Type", 4146 Field: field, 4147 IsMethod: true, 4148 IsResolver: false, 4149 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4150 switch field.Name { 4151 case "kind": 4152 return ec.fieldContext___Type_kind(ctx, field) 4153 case "name": 4154 return ec.fieldContext___Type_name(ctx, field) 4155 case "description": 4156 return ec.fieldContext___Type_description(ctx, field) 4157 case "fields": 4158 return ec.fieldContext___Type_fields(ctx, field) 4159 case "interfaces": 4160 return ec.fieldContext___Type_interfaces(ctx, field) 4161 case "possibleTypes": 4162 return ec.fieldContext___Type_possibleTypes(ctx, field) 4163 case "enumValues": 4164 return ec.fieldContext___Type_enumValues(ctx, field) 4165 case "inputFields": 4166 return ec.fieldContext___Type_inputFields(ctx, field) 4167 case "ofType": 4168 return ec.fieldContext___Type_ofType(ctx, field) 4169 case "specifiedByURL": 4170 return ec.fieldContext___Type_specifiedByURL(ctx, field) 4171 } 4172 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 4173 }, 4174 } 4175 return fc, nil 4176 } 4177 4178 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 4179 fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) 4180 if err != nil { 4181 return graphql.Null 4182 } 4183 ctx = graphql.WithFieldContext(ctx, fc) 4184 defer func() { 4185 if r := recover(); r != nil { 4186 ec.Error(ctx, ec.Recover(ctx, r)) 4187 ret = graphql.Null 4188 } 4189 }() 4190 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4191 ctx = rctx // use context from middleware stack in children 4192 return obj.SpecifiedByURL(), nil 4193 }) 4194 if err != nil { 4195 ec.Error(ctx, err) 4196 return graphql.Null 4197 } 4198 if resTmp == nil { 4199 return graphql.Null 4200 } 4201 res := resTmp.(*string) 4202 fc.Result = res 4203 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4204 } 4205 4206 func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4207 fc = &graphql.FieldContext{ 4208 Object: "__Type", 4209 Field: field, 4210 IsMethod: true, 4211 IsResolver: false, 4212 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4213 return nil, errors.New("field of type String does not have child fields") 4214 }, 4215 } 4216 return fc, nil 4217 } 4218 4219 // endregion **************************** field.gotpl ***************************** 4220 4221 // region **************************** input.gotpl ***************************** 4222 4223 // endregion **************************** input.gotpl ***************************** 4224 4225 // region ************************** interface.gotpl *************************** 4226 4227 // endregion ************************** interface.gotpl *************************** 4228 4229 // region **************************** object.gotpl **************************** 4230 4231 var analyticsEventResponseImplementors = []string{"AnalyticsEventResponse"} 4232 4233 func (ec *executionContext) _AnalyticsEventResponse(ctx context.Context, sel ast.SelectionSet, obj *graph.AnalyticsEventResponse) graphql.Marshaler { 4234 fields := graphql.CollectFields(ec.OperationContext, sel, analyticsEventResponseImplementors) 4235 out := graphql.NewFieldSet(fields) 4236 var invalids uint32 4237 for i, field := range fields { 4238 switch field.Name { 4239 case "__typename": 4240 out.Values[i] = graphql.MarshalString("AnalyticsEventResponse") 4241 case "sent": 4242 4243 out.Values[i] = ec._AnalyticsEventResponse_sent(ctx, field, obj) 4244 4245 if out.Values[i] == graphql.Null { 4246 invalids++ 4247 } 4248 default: 4249 panic("unknown field " + strconv.Quote(field.Name)) 4250 } 4251 } 4252 out.Dispatch() 4253 if invalids > 0 { 4254 return graphql.Null 4255 } 4256 return out 4257 } 4258 4259 var availableUpdateImplementors = []string{"AvailableUpdate"} 4260 4261 func (ec *executionContext) _AvailableUpdate(ctx context.Context, sel ast.SelectionSet, obj *graph.AvailableUpdate) graphql.Marshaler { 4262 fields := graphql.CollectFields(ec.OperationContext, sel, availableUpdateImplementors) 4263 out := graphql.NewFieldSet(fields) 4264 var invalids uint32 4265 for i, field := range fields { 4266 switch field.Name { 4267 case "__typename": 4268 out.Values[i] = graphql.MarshalString("AvailableUpdate") 4269 case "version": 4270 4271 out.Values[i] = ec._AvailableUpdate_version(ctx, field, obj) 4272 4273 if out.Values[i] == graphql.Null { 4274 invalids++ 4275 } 4276 case "channel": 4277 4278 out.Values[i] = ec._AvailableUpdate_channel(ctx, field, obj) 4279 4280 if out.Values[i] == graphql.Null { 4281 invalids++ 4282 } 4283 case "path": 4284 4285 out.Values[i] = ec._AvailableUpdate_path(ctx, field, obj) 4286 4287 if out.Values[i] == graphql.Null { 4288 invalids++ 4289 } 4290 case "platform": 4291 4292 out.Values[i] = ec._AvailableUpdate_platform(ctx, field, obj) 4293 4294 if out.Values[i] == graphql.Null { 4295 invalids++ 4296 } 4297 case "sha256": 4298 4299 out.Values[i] = ec._AvailableUpdate_sha256(ctx, field, obj) 4300 4301 if out.Values[i] == graphql.Null { 4302 invalids++ 4303 } 4304 default: 4305 panic("unknown field " + strconv.Quote(field.Name)) 4306 } 4307 } 4308 out.Dispatch() 4309 if invalids > 0 { 4310 return graphql.Null 4311 } 4312 return out 4313 } 4314 4315 var configChangedResponseImplementors = []string{"ConfigChangedResponse"} 4316 4317 func (ec *executionContext) _ConfigChangedResponse(ctx context.Context, sel ast.SelectionSet, obj *graph.ConfigChangedResponse) graphql.Marshaler { 4318 fields := graphql.CollectFields(ec.OperationContext, sel, configChangedResponseImplementors) 4319 out := graphql.NewFieldSet(fields) 4320 var invalids uint32 4321 for i, field := range fields { 4322 switch field.Name { 4323 case "__typename": 4324 out.Values[i] = graphql.MarshalString("ConfigChangedResponse") 4325 case "received": 4326 4327 out.Values[i] = ec._ConfigChangedResponse_received(ctx, field, obj) 4328 4329 if out.Values[i] == graphql.Null { 4330 invalids++ 4331 } 4332 default: 4333 panic("unknown field " + strconv.Quote(field.Name)) 4334 } 4335 } 4336 out.Dispatch() 4337 if invalids > 0 { 4338 return graphql.Null 4339 } 4340 return out 4341 } 4342 4343 var messageInfoImplementors = []string{"MessageInfo"} 4344 4345 func (ec *executionContext) _MessageInfo(ctx context.Context, sel ast.SelectionSet, obj *graph.MessageInfo) graphql.Marshaler { 4346 fields := graphql.CollectFields(ec.OperationContext, sel, messageInfoImplementors) 4347 out := graphql.NewFieldSet(fields) 4348 var invalids uint32 4349 for i, field := range fields { 4350 switch field.Name { 4351 case "__typename": 4352 out.Values[i] = graphql.MarshalString("MessageInfo") 4353 case "id": 4354 4355 out.Values[i] = ec._MessageInfo_id(ctx, field, obj) 4356 4357 if out.Values[i] == graphql.Null { 4358 invalids++ 4359 } 4360 case "message": 4361 4362 out.Values[i] = ec._MessageInfo_message(ctx, field, obj) 4363 4364 if out.Values[i] == graphql.Null { 4365 invalids++ 4366 } 4367 case "condition": 4368 4369 out.Values[i] = ec._MessageInfo_condition(ctx, field, obj) 4370 4371 if out.Values[i] == graphql.Null { 4372 invalids++ 4373 } 4374 case "repeat": 4375 4376 out.Values[i] = ec._MessageInfo_repeat(ctx, field, obj) 4377 4378 if out.Values[i] == graphql.Null { 4379 invalids++ 4380 } 4381 case "interrupt": 4382 4383 out.Values[i] = ec._MessageInfo_interrupt(ctx, field, obj) 4384 4385 if out.Values[i] == graphql.Null { 4386 invalids++ 4387 } 4388 case "placement": 4389 4390 out.Values[i] = ec._MessageInfo_placement(ctx, field, obj) 4391 4392 if out.Values[i] == graphql.Null { 4393 invalids++ 4394 } 4395 default: 4396 panic("unknown field " + strconv.Quote(field.Name)) 4397 } 4398 } 4399 out.Dispatch() 4400 if invalids > 0 { 4401 return graphql.Null 4402 } 4403 return out 4404 } 4405 4406 var processInfoImplementors = []string{"ProcessInfo"} 4407 4408 func (ec *executionContext) _ProcessInfo(ctx context.Context, sel ast.SelectionSet, obj *graph.ProcessInfo) graphql.Marshaler { 4409 fields := graphql.CollectFields(ec.OperationContext, sel, processInfoImplementors) 4410 out := graphql.NewFieldSet(fields) 4411 var invalids uint32 4412 for i, field := range fields { 4413 switch field.Name { 4414 case "__typename": 4415 out.Values[i] = graphql.MarshalString("ProcessInfo") 4416 case "exe": 4417 4418 out.Values[i] = ec._ProcessInfo_exe(ctx, field, obj) 4419 4420 if out.Values[i] == graphql.Null { 4421 invalids++ 4422 } 4423 case "pid": 4424 4425 out.Values[i] = ec._ProcessInfo_pid(ctx, field, obj) 4426 4427 if out.Values[i] == graphql.Null { 4428 invalids++ 4429 } 4430 default: 4431 panic("unknown field " + strconv.Quote(field.Name)) 4432 } 4433 } 4434 out.Dispatch() 4435 if invalids > 0 { 4436 return graphql.Null 4437 } 4438 return out 4439 } 4440 4441 var projectImplementors = []string{"Project"} 4442 4443 func (ec *executionContext) _Project(ctx context.Context, sel ast.SelectionSet, obj *graph.Project) graphql.Marshaler { 4444 fields := graphql.CollectFields(ec.OperationContext, sel, projectImplementors) 4445 out := graphql.NewFieldSet(fields) 4446 var invalids uint32 4447 for i, field := range fields { 4448 switch field.Name { 4449 case "__typename": 4450 out.Values[i] = graphql.MarshalString("Project") 4451 case "namespace": 4452 4453 out.Values[i] = ec._Project_namespace(ctx, field, obj) 4454 4455 if out.Values[i] == graphql.Null { 4456 invalids++ 4457 } 4458 case "locations": 4459 4460 out.Values[i] = ec._Project_locations(ctx, field, obj) 4461 4462 if out.Values[i] == graphql.Null { 4463 invalids++ 4464 } 4465 default: 4466 panic("unknown field " + strconv.Quote(field.Name)) 4467 } 4468 } 4469 out.Dispatch() 4470 if invalids > 0 { 4471 return graphql.Null 4472 } 4473 return out 4474 } 4475 4476 var queryImplementors = []string{"Query"} 4477 4478 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 4479 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) 4480 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 4481 Object: "Query", 4482 }) 4483 4484 out := graphql.NewFieldSet(fields) 4485 for i, field := range fields { 4486 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 4487 Object: field.Name, 4488 Field: field, 4489 }) 4490 4491 switch field.Name { 4492 case "__typename": 4493 out.Values[i] = graphql.MarshalString("Query") 4494 case "version": 4495 field := field 4496 4497 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4498 defer func() { 4499 if r := recover(); r != nil { 4500 ec.Error(ctx, ec.Recover(ctx, r)) 4501 } 4502 }() 4503 res = ec._Query_version(ctx, field) 4504 return res 4505 } 4506 4507 rrm := func(ctx context.Context) graphql.Marshaler { 4508 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4509 } 4510 4511 out.Concurrently(i, func() graphql.Marshaler { 4512 return rrm(innerCtx) 4513 }) 4514 case "availableUpdate": 4515 field := field 4516 4517 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4518 defer func() { 4519 if r := recover(); r != nil { 4520 ec.Error(ctx, ec.Recover(ctx, r)) 4521 } 4522 }() 4523 res = ec._Query_availableUpdate(ctx, field) 4524 return res 4525 } 4526 4527 rrm := func(ctx context.Context) graphql.Marshaler { 4528 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4529 } 4530 4531 out.Concurrently(i, func() graphql.Marshaler { 4532 return rrm(innerCtx) 4533 }) 4534 case "projects": 4535 field := field 4536 4537 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4538 defer func() { 4539 if r := recover(); r != nil { 4540 ec.Error(ctx, ec.Recover(ctx, r)) 4541 } 4542 }() 4543 res = ec._Query_projects(ctx, field) 4544 return res 4545 } 4546 4547 rrm := func(ctx context.Context) graphql.Marshaler { 4548 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4549 } 4550 4551 out.Concurrently(i, func() graphql.Marshaler { 4552 return rrm(innerCtx) 4553 }) 4554 case "analyticsEvent": 4555 field := field 4556 4557 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4558 defer func() { 4559 if r := recover(); r != nil { 4560 ec.Error(ctx, ec.Recover(ctx, r)) 4561 } 4562 }() 4563 res = ec._Query_analyticsEvent(ctx, field) 4564 return res 4565 } 4566 4567 rrm := func(ctx context.Context) graphql.Marshaler { 4568 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4569 } 4570 4571 out.Concurrently(i, func() graphql.Marshaler { 4572 return rrm(innerCtx) 4573 }) 4574 case "reportRuntimeUsage": 4575 field := field 4576 4577 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4578 defer func() { 4579 if r := recover(); r != nil { 4580 ec.Error(ctx, ec.Recover(ctx, r)) 4581 } 4582 }() 4583 res = ec._Query_reportRuntimeUsage(ctx, field) 4584 return res 4585 } 4586 4587 rrm := func(ctx context.Context) graphql.Marshaler { 4588 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4589 } 4590 4591 out.Concurrently(i, func() graphql.Marshaler { 4592 return rrm(innerCtx) 4593 }) 4594 case "checkMessages": 4595 field := field 4596 4597 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4598 defer func() { 4599 if r := recover(); r != nil { 4600 ec.Error(ctx, ec.Recover(ctx, r)) 4601 } 4602 }() 4603 res = ec._Query_checkMessages(ctx, field) 4604 return res 4605 } 4606 4607 rrm := func(ctx context.Context) graphql.Marshaler { 4608 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4609 } 4610 4611 out.Concurrently(i, func() graphql.Marshaler { 4612 return rrm(innerCtx) 4613 }) 4614 case "configChanged": 4615 field := field 4616 4617 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4618 defer func() { 4619 if r := recover(); r != nil { 4620 ec.Error(ctx, ec.Recover(ctx, r)) 4621 } 4622 }() 4623 res = ec._Query_configChanged(ctx, field) 4624 return res 4625 } 4626 4627 rrm := func(ctx context.Context) graphql.Marshaler { 4628 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4629 } 4630 4631 out.Concurrently(i, func() graphql.Marshaler { 4632 return rrm(innerCtx) 4633 }) 4634 case "fetchLogTail": 4635 field := field 4636 4637 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4638 defer func() { 4639 if r := recover(); r != nil { 4640 ec.Error(ctx, ec.Recover(ctx, r)) 4641 } 4642 }() 4643 res = ec._Query_fetchLogTail(ctx, field) 4644 return res 4645 } 4646 4647 rrm := func(ctx context.Context) graphql.Marshaler { 4648 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4649 } 4650 4651 out.Concurrently(i, func() graphql.Marshaler { 4652 return rrm(innerCtx) 4653 }) 4654 case "getProcessesInUse": 4655 field := field 4656 4657 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 4658 defer func() { 4659 if r := recover(); r != nil { 4660 ec.Error(ctx, ec.Recover(ctx, r)) 4661 } 4662 }() 4663 res = ec._Query_getProcessesInUse(ctx, field) 4664 return res 4665 } 4666 4667 rrm := func(ctx context.Context) graphql.Marshaler { 4668 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 4669 } 4670 4671 out.Concurrently(i, func() graphql.Marshaler { 4672 return rrm(innerCtx) 4673 }) 4674 case "__type": 4675 4676 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 4677 return ec._Query___type(ctx, field) 4678 }) 4679 4680 case "__schema": 4681 4682 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 4683 return ec._Query___schema(ctx, field) 4684 }) 4685 4686 default: 4687 panic("unknown field " + strconv.Quote(field.Name)) 4688 } 4689 } 4690 out.Dispatch() 4691 return out 4692 } 4693 4694 var reportRuntimeUsageResponseImplementors = []string{"ReportRuntimeUsageResponse"} 4695 4696 func (ec *executionContext) _ReportRuntimeUsageResponse(ctx context.Context, sel ast.SelectionSet, obj *graph.ReportRuntimeUsageResponse) graphql.Marshaler { 4697 fields := graphql.CollectFields(ec.OperationContext, sel, reportRuntimeUsageResponseImplementors) 4698 out := graphql.NewFieldSet(fields) 4699 var invalids uint32 4700 for i, field := range fields { 4701 switch field.Name { 4702 case "__typename": 4703 out.Values[i] = graphql.MarshalString("ReportRuntimeUsageResponse") 4704 case "received": 4705 4706 out.Values[i] = ec._ReportRuntimeUsageResponse_received(ctx, field, obj) 4707 4708 if out.Values[i] == graphql.Null { 4709 invalids++ 4710 } 4711 default: 4712 panic("unknown field " + strconv.Quote(field.Name)) 4713 } 4714 } 4715 out.Dispatch() 4716 if invalids > 0 { 4717 return graphql.Null 4718 } 4719 return out 4720 } 4721 4722 var stateVersionImplementors = []string{"StateVersion"} 4723 4724 func (ec *executionContext) _StateVersion(ctx context.Context, sel ast.SelectionSet, obj *graph.StateVersion) graphql.Marshaler { 4725 fields := graphql.CollectFields(ec.OperationContext, sel, stateVersionImplementors) 4726 out := graphql.NewFieldSet(fields) 4727 var invalids uint32 4728 for i, field := range fields { 4729 switch field.Name { 4730 case "__typename": 4731 out.Values[i] = graphql.MarshalString("StateVersion") 4732 case "license": 4733 4734 out.Values[i] = ec._StateVersion_license(ctx, field, obj) 4735 4736 if out.Values[i] == graphql.Null { 4737 invalids++ 4738 } 4739 case "version": 4740 4741 out.Values[i] = ec._StateVersion_version(ctx, field, obj) 4742 4743 if out.Values[i] == graphql.Null { 4744 invalids++ 4745 } 4746 case "channel": 4747 4748 out.Values[i] = ec._StateVersion_channel(ctx, field, obj) 4749 4750 if out.Values[i] == graphql.Null { 4751 invalids++ 4752 } 4753 case "revision": 4754 4755 out.Values[i] = ec._StateVersion_revision(ctx, field, obj) 4756 4757 if out.Values[i] == graphql.Null { 4758 invalids++ 4759 } 4760 case "date": 4761 4762 out.Values[i] = ec._StateVersion_date(ctx, field, obj) 4763 4764 if out.Values[i] == graphql.Null { 4765 invalids++ 4766 } 4767 default: 4768 panic("unknown field " + strconv.Quote(field.Name)) 4769 } 4770 } 4771 out.Dispatch() 4772 if invalids > 0 { 4773 return graphql.Null 4774 } 4775 return out 4776 } 4777 4778 var versionImplementors = []string{"Version"} 4779 4780 func (ec *executionContext) _Version(ctx context.Context, sel ast.SelectionSet, obj *graph.Version) graphql.Marshaler { 4781 fields := graphql.CollectFields(ec.OperationContext, sel, versionImplementors) 4782 out := graphql.NewFieldSet(fields) 4783 var invalids uint32 4784 for i, field := range fields { 4785 switch field.Name { 4786 case "__typename": 4787 out.Values[i] = graphql.MarshalString("Version") 4788 case "state": 4789 4790 out.Values[i] = ec._Version_state(ctx, field, obj) 4791 4792 if out.Values[i] == graphql.Null { 4793 invalids++ 4794 } 4795 default: 4796 panic("unknown field " + strconv.Quote(field.Name)) 4797 } 4798 } 4799 out.Dispatch() 4800 if invalids > 0 { 4801 return graphql.Null 4802 } 4803 return out 4804 } 4805 4806 var __DirectiveImplementors = []string{"__Directive"} 4807 4808 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { 4809 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) 4810 out := graphql.NewFieldSet(fields) 4811 var invalids uint32 4812 for i, field := range fields { 4813 switch field.Name { 4814 case "__typename": 4815 out.Values[i] = graphql.MarshalString("__Directive") 4816 case "name": 4817 4818 out.Values[i] = ec.___Directive_name(ctx, field, obj) 4819 4820 if out.Values[i] == graphql.Null { 4821 invalids++ 4822 } 4823 case "description": 4824 4825 out.Values[i] = ec.___Directive_description(ctx, field, obj) 4826 4827 case "locations": 4828 4829 out.Values[i] = ec.___Directive_locations(ctx, field, obj) 4830 4831 if out.Values[i] == graphql.Null { 4832 invalids++ 4833 } 4834 case "args": 4835 4836 out.Values[i] = ec.___Directive_args(ctx, field, obj) 4837 4838 if out.Values[i] == graphql.Null { 4839 invalids++ 4840 } 4841 case "isRepeatable": 4842 4843 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) 4844 4845 if out.Values[i] == graphql.Null { 4846 invalids++ 4847 } 4848 default: 4849 panic("unknown field " + strconv.Quote(field.Name)) 4850 } 4851 } 4852 out.Dispatch() 4853 if invalids > 0 { 4854 return graphql.Null 4855 } 4856 return out 4857 } 4858 4859 var __EnumValueImplementors = []string{"__EnumValue"} 4860 4861 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { 4862 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) 4863 out := graphql.NewFieldSet(fields) 4864 var invalids uint32 4865 for i, field := range fields { 4866 switch field.Name { 4867 case "__typename": 4868 out.Values[i] = graphql.MarshalString("__EnumValue") 4869 case "name": 4870 4871 out.Values[i] = ec.___EnumValue_name(ctx, field, obj) 4872 4873 if out.Values[i] == graphql.Null { 4874 invalids++ 4875 } 4876 case "description": 4877 4878 out.Values[i] = ec.___EnumValue_description(ctx, field, obj) 4879 4880 case "isDeprecated": 4881 4882 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) 4883 4884 if out.Values[i] == graphql.Null { 4885 invalids++ 4886 } 4887 case "deprecationReason": 4888 4889 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) 4890 4891 default: 4892 panic("unknown field " + strconv.Quote(field.Name)) 4893 } 4894 } 4895 out.Dispatch() 4896 if invalids > 0 { 4897 return graphql.Null 4898 } 4899 return out 4900 } 4901 4902 var __FieldImplementors = []string{"__Field"} 4903 4904 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { 4905 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) 4906 out := graphql.NewFieldSet(fields) 4907 var invalids uint32 4908 for i, field := range fields { 4909 switch field.Name { 4910 case "__typename": 4911 out.Values[i] = graphql.MarshalString("__Field") 4912 case "name": 4913 4914 out.Values[i] = ec.___Field_name(ctx, field, obj) 4915 4916 if out.Values[i] == graphql.Null { 4917 invalids++ 4918 } 4919 case "description": 4920 4921 out.Values[i] = ec.___Field_description(ctx, field, obj) 4922 4923 case "args": 4924 4925 out.Values[i] = ec.___Field_args(ctx, field, obj) 4926 4927 if out.Values[i] == graphql.Null { 4928 invalids++ 4929 } 4930 case "type": 4931 4932 out.Values[i] = ec.___Field_type(ctx, field, obj) 4933 4934 if out.Values[i] == graphql.Null { 4935 invalids++ 4936 } 4937 case "isDeprecated": 4938 4939 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) 4940 4941 if out.Values[i] == graphql.Null { 4942 invalids++ 4943 } 4944 case "deprecationReason": 4945 4946 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) 4947 4948 default: 4949 panic("unknown field " + strconv.Quote(field.Name)) 4950 } 4951 } 4952 out.Dispatch() 4953 if invalids > 0 { 4954 return graphql.Null 4955 } 4956 return out 4957 } 4958 4959 var __InputValueImplementors = []string{"__InputValue"} 4960 4961 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { 4962 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) 4963 out := graphql.NewFieldSet(fields) 4964 var invalids uint32 4965 for i, field := range fields { 4966 switch field.Name { 4967 case "__typename": 4968 out.Values[i] = graphql.MarshalString("__InputValue") 4969 case "name": 4970 4971 out.Values[i] = ec.___InputValue_name(ctx, field, obj) 4972 4973 if out.Values[i] == graphql.Null { 4974 invalids++ 4975 } 4976 case "description": 4977 4978 out.Values[i] = ec.___InputValue_description(ctx, field, obj) 4979 4980 case "type": 4981 4982 out.Values[i] = ec.___InputValue_type(ctx, field, obj) 4983 4984 if out.Values[i] == graphql.Null { 4985 invalids++ 4986 } 4987 case "defaultValue": 4988 4989 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) 4990 4991 default: 4992 panic("unknown field " + strconv.Quote(field.Name)) 4993 } 4994 } 4995 out.Dispatch() 4996 if invalids > 0 { 4997 return graphql.Null 4998 } 4999 return out 5000 } 5001 5002 var __SchemaImplementors = []string{"__Schema"} 5003 5004 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { 5005 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) 5006 out := graphql.NewFieldSet(fields) 5007 var invalids uint32 5008 for i, field := range fields { 5009 switch field.Name { 5010 case "__typename": 5011 out.Values[i] = graphql.MarshalString("__Schema") 5012 case "description": 5013 5014 out.Values[i] = ec.___Schema_description(ctx, field, obj) 5015 5016 case "types": 5017 5018 out.Values[i] = ec.___Schema_types(ctx, field, obj) 5019 5020 if out.Values[i] == graphql.Null { 5021 invalids++ 5022 } 5023 case "queryType": 5024 5025 out.Values[i] = ec.___Schema_queryType(ctx, field, obj) 5026 5027 if out.Values[i] == graphql.Null { 5028 invalids++ 5029 } 5030 case "mutationType": 5031 5032 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) 5033 5034 case "subscriptionType": 5035 5036 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) 5037 5038 case "directives": 5039 5040 out.Values[i] = ec.___Schema_directives(ctx, field, obj) 5041 5042 if out.Values[i] == graphql.Null { 5043 invalids++ 5044 } 5045 default: 5046 panic("unknown field " + strconv.Quote(field.Name)) 5047 } 5048 } 5049 out.Dispatch() 5050 if invalids > 0 { 5051 return graphql.Null 5052 } 5053 return out 5054 } 5055 5056 var __TypeImplementors = []string{"__Type"} 5057 5058 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { 5059 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) 5060 out := graphql.NewFieldSet(fields) 5061 var invalids uint32 5062 for i, field := range fields { 5063 switch field.Name { 5064 case "__typename": 5065 out.Values[i] = graphql.MarshalString("__Type") 5066 case "kind": 5067 5068 out.Values[i] = ec.___Type_kind(ctx, field, obj) 5069 5070 if out.Values[i] == graphql.Null { 5071 invalids++ 5072 } 5073 case "name": 5074 5075 out.Values[i] = ec.___Type_name(ctx, field, obj) 5076 5077 case "description": 5078 5079 out.Values[i] = ec.___Type_description(ctx, field, obj) 5080 5081 case "fields": 5082 5083 out.Values[i] = ec.___Type_fields(ctx, field, obj) 5084 5085 case "interfaces": 5086 5087 out.Values[i] = ec.___Type_interfaces(ctx, field, obj) 5088 5089 case "possibleTypes": 5090 5091 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) 5092 5093 case "enumValues": 5094 5095 out.Values[i] = ec.___Type_enumValues(ctx, field, obj) 5096 5097 case "inputFields": 5098 5099 out.Values[i] = ec.___Type_inputFields(ctx, field, obj) 5100 5101 case "ofType": 5102 5103 out.Values[i] = ec.___Type_ofType(ctx, field, obj) 5104 5105 case "specifiedByURL": 5106 5107 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) 5108 5109 default: 5110 panic("unknown field " + strconv.Quote(field.Name)) 5111 } 5112 } 5113 out.Dispatch() 5114 if invalids > 0 { 5115 return graphql.Null 5116 } 5117 return out 5118 } 5119 5120 // endregion **************************** object.gotpl **************************** 5121 5122 // region ***************************** type.gotpl ***************************** 5123 5124 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 5125 res, err := graphql.UnmarshalBoolean(v) 5126 return res, graphql.ErrorOnPath(ctx, err) 5127 } 5128 5129 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 5130 res := graphql.MarshalBoolean(v) 5131 if res == graphql.Null { 5132 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5133 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5134 } 5135 } 5136 return res 5137 } 5138 5139 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { 5140 res, err := graphql.UnmarshalInt(v) 5141 return res, graphql.ErrorOnPath(ctx, err) 5142 } 5143 5144 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 5145 res := graphql.MarshalInt(v) 5146 if res == graphql.Null { 5147 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5148 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5149 } 5150 } 5151 return res 5152 } 5153 5154 func (ec *executionContext) marshalNMessageInfo2ᚕᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []*graph.MessageInfo) graphql.Marshaler { 5155 ret := make(graphql.Array, len(v)) 5156 var wg sync.WaitGroup 5157 isLen1 := len(v) == 1 5158 if !isLen1 { 5159 wg.Add(len(v)) 5160 } 5161 for i := range v { 5162 i := i 5163 fc := &graphql.FieldContext{ 5164 Index: &i, 5165 Result: &v[i], 5166 } 5167 ctx := graphql.WithFieldContext(ctx, fc) 5168 f := func(i int) { 5169 defer func() { 5170 if r := recover(); r != nil { 5171 ec.Error(ctx, ec.Recover(ctx, r)) 5172 ret = nil 5173 } 5174 }() 5175 if !isLen1 { 5176 defer wg.Done() 5177 } 5178 ret[i] = ec.marshalNMessageInfo2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageInfo(ctx, sel, v[i]) 5179 } 5180 if isLen1 { 5181 f(i) 5182 } else { 5183 go f(i) 5184 } 5185 5186 } 5187 wg.Wait() 5188 5189 for _, e := range ret { 5190 if e == graphql.Null { 5191 return graphql.Null 5192 } 5193 } 5194 5195 return ret 5196 } 5197 5198 func (ec *executionContext) marshalNMessageInfo2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageInfo(ctx context.Context, sel ast.SelectionSet, v *graph.MessageInfo) graphql.Marshaler { 5199 if v == nil { 5200 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5201 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5202 } 5203 return graphql.Null 5204 } 5205 return ec._MessageInfo(ctx, sel, v) 5206 } 5207 5208 func (ec *executionContext) unmarshalNMessageInterruptType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageInterruptType(ctx context.Context, v interface{}) (graph.MessageInterruptType, error) { 5209 var res graph.MessageInterruptType 5210 err := res.UnmarshalGQL(v) 5211 return res, graphql.ErrorOnPath(ctx, err) 5212 } 5213 5214 func (ec *executionContext) marshalNMessageInterruptType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageInterruptType(ctx context.Context, sel ast.SelectionSet, v graph.MessageInterruptType) graphql.Marshaler { 5215 return v 5216 } 5217 5218 func (ec *executionContext) unmarshalNMessagePlacementType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessagePlacementType(ctx context.Context, v interface{}) (graph.MessagePlacementType, error) { 5219 var res graph.MessagePlacementType 5220 err := res.UnmarshalGQL(v) 5221 return res, graphql.ErrorOnPath(ctx, err) 5222 } 5223 5224 func (ec *executionContext) marshalNMessagePlacementType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessagePlacementType(ctx context.Context, sel ast.SelectionSet, v graph.MessagePlacementType) graphql.Marshaler { 5225 return v 5226 } 5227 5228 func (ec *executionContext) unmarshalNMessageRepeatType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageRepeatType(ctx context.Context, v interface{}) (graph.MessageRepeatType, error) { 5229 var res graph.MessageRepeatType 5230 err := res.UnmarshalGQL(v) 5231 return res, graphql.ErrorOnPath(ctx, err) 5232 } 5233 5234 func (ec *executionContext) marshalNMessageRepeatType2githubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐMessageRepeatType(ctx context.Context, sel ast.SelectionSet, v graph.MessageRepeatType) graphql.Marshaler { 5235 return v 5236 } 5237 5238 func (ec *executionContext) marshalNProcessInfo2ᚕᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐProcessInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []*graph.ProcessInfo) graphql.Marshaler { 5239 ret := make(graphql.Array, len(v)) 5240 var wg sync.WaitGroup 5241 isLen1 := len(v) == 1 5242 if !isLen1 { 5243 wg.Add(len(v)) 5244 } 5245 for i := range v { 5246 i := i 5247 fc := &graphql.FieldContext{ 5248 Index: &i, 5249 Result: &v[i], 5250 } 5251 ctx := graphql.WithFieldContext(ctx, fc) 5252 f := func(i int) { 5253 defer func() { 5254 if r := recover(); r != nil { 5255 ec.Error(ctx, ec.Recover(ctx, r)) 5256 ret = nil 5257 } 5258 }() 5259 if !isLen1 { 5260 defer wg.Done() 5261 } 5262 ret[i] = ec.marshalNProcessInfo2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐProcessInfo(ctx, sel, v[i]) 5263 } 5264 if isLen1 { 5265 f(i) 5266 } else { 5267 go f(i) 5268 } 5269 5270 } 5271 wg.Wait() 5272 5273 for _, e := range ret { 5274 if e == graphql.Null { 5275 return graphql.Null 5276 } 5277 } 5278 5279 return ret 5280 } 5281 5282 func (ec *executionContext) marshalNProcessInfo2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐProcessInfo(ctx context.Context, sel ast.SelectionSet, v *graph.ProcessInfo) graphql.Marshaler { 5283 if v == nil { 5284 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5285 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5286 } 5287 return graphql.Null 5288 } 5289 return ec._ProcessInfo(ctx, sel, v) 5290 } 5291 5292 func (ec *executionContext) marshalNProject2ᚕᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐProject(ctx context.Context, sel ast.SelectionSet, v []*graph.Project) graphql.Marshaler { 5293 ret := make(graphql.Array, len(v)) 5294 var wg sync.WaitGroup 5295 isLen1 := len(v) == 1 5296 if !isLen1 { 5297 wg.Add(len(v)) 5298 } 5299 for i := range v { 5300 i := i 5301 fc := &graphql.FieldContext{ 5302 Index: &i, 5303 Result: &v[i], 5304 } 5305 ctx := graphql.WithFieldContext(ctx, fc) 5306 f := func(i int) { 5307 defer func() { 5308 if r := recover(); r != nil { 5309 ec.Error(ctx, ec.Recover(ctx, r)) 5310 ret = nil 5311 } 5312 }() 5313 if !isLen1 { 5314 defer wg.Done() 5315 } 5316 ret[i] = ec.marshalOProject2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐProject(ctx, sel, v[i]) 5317 } 5318 if isLen1 { 5319 f(i) 5320 } else { 5321 go f(i) 5322 } 5323 5324 } 5325 wg.Wait() 5326 5327 return ret 5328 } 5329 5330 func (ec *executionContext) marshalNStateVersion2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐStateVersion(ctx context.Context, sel ast.SelectionSet, v *graph.StateVersion) graphql.Marshaler { 5331 if v == nil { 5332 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5333 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5334 } 5335 return graphql.Null 5336 } 5337 return ec._StateVersion(ctx, sel, v) 5338 } 5339 5340 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { 5341 res, err := graphql.UnmarshalString(v) 5342 return res, graphql.ErrorOnPath(ctx, err) 5343 } 5344 5345 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 5346 res := graphql.MarshalString(v) 5347 if res == graphql.Null { 5348 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5349 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5350 } 5351 } 5352 return res 5353 } 5354 5355 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 5356 var vSlice []interface{} 5357 if v != nil { 5358 vSlice = graphql.CoerceList(v) 5359 } 5360 var err error 5361 res := make([]string, len(vSlice)) 5362 for i := range vSlice { 5363 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 5364 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 5365 if err != nil { 5366 return nil, err 5367 } 5368 } 5369 return res, nil 5370 } 5371 5372 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 5373 ret := make(graphql.Array, len(v)) 5374 for i := range v { 5375 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 5376 } 5377 5378 for _, e := range ret { 5379 if e == graphql.Null { 5380 return graphql.Null 5381 } 5382 } 5383 5384 return ret 5385 } 5386 5387 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { 5388 return ec.___Directive(ctx, sel, &v) 5389 } 5390 5391 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { 5392 ret := make(graphql.Array, len(v)) 5393 var wg sync.WaitGroup 5394 isLen1 := len(v) == 1 5395 if !isLen1 { 5396 wg.Add(len(v)) 5397 } 5398 for i := range v { 5399 i := i 5400 fc := &graphql.FieldContext{ 5401 Index: &i, 5402 Result: &v[i], 5403 } 5404 ctx := graphql.WithFieldContext(ctx, fc) 5405 f := func(i int) { 5406 defer func() { 5407 if r := recover(); r != nil { 5408 ec.Error(ctx, ec.Recover(ctx, r)) 5409 ret = nil 5410 } 5411 }() 5412 if !isLen1 { 5413 defer wg.Done() 5414 } 5415 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) 5416 } 5417 if isLen1 { 5418 f(i) 5419 } else { 5420 go f(i) 5421 } 5422 5423 } 5424 wg.Wait() 5425 5426 for _, e := range ret { 5427 if e == graphql.Null { 5428 return graphql.Null 5429 } 5430 } 5431 5432 return ret 5433 } 5434 5435 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { 5436 res, err := graphql.UnmarshalString(v) 5437 return res, graphql.ErrorOnPath(ctx, err) 5438 } 5439 5440 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 5441 res := graphql.MarshalString(v) 5442 if res == graphql.Null { 5443 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5444 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5445 } 5446 } 5447 return res 5448 } 5449 5450 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 5451 var vSlice []interface{} 5452 if v != nil { 5453 vSlice = graphql.CoerceList(v) 5454 } 5455 var err error 5456 res := make([]string, len(vSlice)) 5457 for i := range vSlice { 5458 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 5459 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) 5460 if err != nil { 5461 return nil, err 5462 } 5463 } 5464 return res, nil 5465 } 5466 5467 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 5468 ret := make(graphql.Array, len(v)) 5469 var wg sync.WaitGroup 5470 isLen1 := len(v) == 1 5471 if !isLen1 { 5472 wg.Add(len(v)) 5473 } 5474 for i := range v { 5475 i := i 5476 fc := &graphql.FieldContext{ 5477 Index: &i, 5478 Result: &v[i], 5479 } 5480 ctx := graphql.WithFieldContext(ctx, fc) 5481 f := func(i int) { 5482 defer func() { 5483 if r := recover(); r != nil { 5484 ec.Error(ctx, ec.Recover(ctx, r)) 5485 ret = nil 5486 } 5487 }() 5488 if !isLen1 { 5489 defer wg.Done() 5490 } 5491 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) 5492 } 5493 if isLen1 { 5494 f(i) 5495 } else { 5496 go f(i) 5497 } 5498 5499 } 5500 wg.Wait() 5501 5502 for _, e := range ret { 5503 if e == graphql.Null { 5504 return graphql.Null 5505 } 5506 } 5507 5508 return ret 5509 } 5510 5511 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { 5512 return ec.___EnumValue(ctx, sel, &v) 5513 } 5514 5515 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { 5516 return ec.___Field(ctx, sel, &v) 5517 } 5518 5519 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { 5520 return ec.___InputValue(ctx, sel, &v) 5521 } 5522 5523 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 5524 ret := make(graphql.Array, len(v)) 5525 var wg sync.WaitGroup 5526 isLen1 := len(v) == 1 5527 if !isLen1 { 5528 wg.Add(len(v)) 5529 } 5530 for i := range v { 5531 i := i 5532 fc := &graphql.FieldContext{ 5533 Index: &i, 5534 Result: &v[i], 5535 } 5536 ctx := graphql.WithFieldContext(ctx, fc) 5537 f := func(i int) { 5538 defer func() { 5539 if r := recover(); r != nil { 5540 ec.Error(ctx, ec.Recover(ctx, r)) 5541 ret = nil 5542 } 5543 }() 5544 if !isLen1 { 5545 defer wg.Done() 5546 } 5547 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 5548 } 5549 if isLen1 { 5550 f(i) 5551 } else { 5552 go f(i) 5553 } 5554 5555 } 5556 wg.Wait() 5557 5558 for _, e := range ret { 5559 if e == graphql.Null { 5560 return graphql.Null 5561 } 5562 } 5563 5564 return ret 5565 } 5566 5567 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { 5568 return ec.___Type(ctx, sel, &v) 5569 } 5570 5571 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 5572 ret := make(graphql.Array, len(v)) 5573 var wg sync.WaitGroup 5574 isLen1 := len(v) == 1 5575 if !isLen1 { 5576 wg.Add(len(v)) 5577 } 5578 for i := range v { 5579 i := i 5580 fc := &graphql.FieldContext{ 5581 Index: &i, 5582 Result: &v[i], 5583 } 5584 ctx := graphql.WithFieldContext(ctx, fc) 5585 f := func(i int) { 5586 defer func() { 5587 if r := recover(); r != nil { 5588 ec.Error(ctx, ec.Recover(ctx, r)) 5589 ret = nil 5590 } 5591 }() 5592 if !isLen1 { 5593 defer wg.Done() 5594 } 5595 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 5596 } 5597 if isLen1 { 5598 f(i) 5599 } else { 5600 go f(i) 5601 } 5602 5603 } 5604 wg.Wait() 5605 5606 for _, e := range ret { 5607 if e == graphql.Null { 5608 return graphql.Null 5609 } 5610 } 5611 5612 return ret 5613 } 5614 5615 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 5616 if v == nil { 5617 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5618 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5619 } 5620 return graphql.Null 5621 } 5622 return ec.___Type(ctx, sel, v) 5623 } 5624 5625 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { 5626 res, err := graphql.UnmarshalString(v) 5627 return res, graphql.ErrorOnPath(ctx, err) 5628 } 5629 5630 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 5631 res := graphql.MarshalString(v) 5632 if res == graphql.Null { 5633 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 5634 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 5635 } 5636 } 5637 return res 5638 } 5639 5640 func (ec *executionContext) marshalOAnalyticsEventResponse2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐAnalyticsEventResponse(ctx context.Context, sel ast.SelectionSet, v *graph.AnalyticsEventResponse) graphql.Marshaler { 5641 if v == nil { 5642 return graphql.Null 5643 } 5644 return ec._AnalyticsEventResponse(ctx, sel, v) 5645 } 5646 5647 func (ec *executionContext) marshalOAvailableUpdate2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐAvailableUpdate(ctx context.Context, sel ast.SelectionSet, v *graph.AvailableUpdate) graphql.Marshaler { 5648 if v == nil { 5649 return graphql.Null 5650 } 5651 return ec._AvailableUpdate(ctx, sel, v) 5652 } 5653 5654 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 5655 res, err := graphql.UnmarshalBoolean(v) 5656 return res, graphql.ErrorOnPath(ctx, err) 5657 } 5658 5659 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 5660 res := graphql.MarshalBoolean(v) 5661 return res 5662 } 5663 5664 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { 5665 if v == nil { 5666 return nil, nil 5667 } 5668 res, err := graphql.UnmarshalBoolean(v) 5669 return &res, graphql.ErrorOnPath(ctx, err) 5670 } 5671 5672 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { 5673 if v == nil { 5674 return graphql.Null 5675 } 5676 res := graphql.MarshalBoolean(*v) 5677 return res 5678 } 5679 5680 func (ec *executionContext) marshalOConfigChangedResponse2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐConfigChangedResponse(ctx context.Context, sel ast.SelectionSet, v *graph.ConfigChangedResponse) graphql.Marshaler { 5681 if v == nil { 5682 return graphql.Null 5683 } 5684 return ec._ConfigChangedResponse(ctx, sel, v) 5685 } 5686 5687 func (ec *executionContext) marshalOProject2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐProject(ctx context.Context, sel ast.SelectionSet, v *graph.Project) graphql.Marshaler { 5688 if v == nil { 5689 return graphql.Null 5690 } 5691 return ec._Project(ctx, sel, v) 5692 } 5693 5694 func (ec *executionContext) marshalOReportRuntimeUsageResponse2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐReportRuntimeUsageResponse(ctx context.Context, sel ast.SelectionSet, v *graph.ReportRuntimeUsageResponse) graphql.Marshaler { 5695 if v == nil { 5696 return graphql.Null 5697 } 5698 return ec._ReportRuntimeUsageResponse(ctx, sel, v) 5699 } 5700 5701 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 5702 if v == nil { 5703 return nil, nil 5704 } 5705 res, err := graphql.UnmarshalString(v) 5706 return &res, graphql.ErrorOnPath(ctx, err) 5707 } 5708 5709 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 5710 if v == nil { 5711 return graphql.Null 5712 } 5713 res := graphql.MarshalString(*v) 5714 return res 5715 } 5716 5717 func (ec *executionContext) marshalOVersion2ᚖgithubᚗcomᚋActiveStateᚋcliᚋinternalᚋgraphᚐVersion(ctx context.Context, sel ast.SelectionSet, v *graph.Version) graphql.Marshaler { 5718 if v == nil { 5719 return graphql.Null 5720 } 5721 return ec._Version(ctx, sel, v) 5722 } 5723 5724 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { 5725 if v == nil { 5726 return graphql.Null 5727 } 5728 ret := make(graphql.Array, len(v)) 5729 var wg sync.WaitGroup 5730 isLen1 := len(v) == 1 5731 if !isLen1 { 5732 wg.Add(len(v)) 5733 } 5734 for i := range v { 5735 i := i 5736 fc := &graphql.FieldContext{ 5737 Index: &i, 5738 Result: &v[i], 5739 } 5740 ctx := graphql.WithFieldContext(ctx, fc) 5741 f := func(i int) { 5742 defer func() { 5743 if r := recover(); r != nil { 5744 ec.Error(ctx, ec.Recover(ctx, r)) 5745 ret = nil 5746 } 5747 }() 5748 if !isLen1 { 5749 defer wg.Done() 5750 } 5751 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) 5752 } 5753 if isLen1 { 5754 f(i) 5755 } else { 5756 go f(i) 5757 } 5758 5759 } 5760 wg.Wait() 5761 5762 for _, e := range ret { 5763 if e == graphql.Null { 5764 return graphql.Null 5765 } 5766 } 5767 5768 return ret 5769 } 5770 5771 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { 5772 if v == nil { 5773 return graphql.Null 5774 } 5775 ret := make(graphql.Array, len(v)) 5776 var wg sync.WaitGroup 5777 isLen1 := len(v) == 1 5778 if !isLen1 { 5779 wg.Add(len(v)) 5780 } 5781 for i := range v { 5782 i := i 5783 fc := &graphql.FieldContext{ 5784 Index: &i, 5785 Result: &v[i], 5786 } 5787 ctx := graphql.WithFieldContext(ctx, fc) 5788 f := func(i int) { 5789 defer func() { 5790 if r := recover(); r != nil { 5791 ec.Error(ctx, ec.Recover(ctx, r)) 5792 ret = nil 5793 } 5794 }() 5795 if !isLen1 { 5796 defer wg.Done() 5797 } 5798 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) 5799 } 5800 if isLen1 { 5801 f(i) 5802 } else { 5803 go f(i) 5804 } 5805 5806 } 5807 wg.Wait() 5808 5809 for _, e := range ret { 5810 if e == graphql.Null { 5811 return graphql.Null 5812 } 5813 } 5814 5815 return ret 5816 } 5817 5818 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 5819 if v == nil { 5820 return graphql.Null 5821 } 5822 ret := make(graphql.Array, len(v)) 5823 var wg sync.WaitGroup 5824 isLen1 := len(v) == 1 5825 if !isLen1 { 5826 wg.Add(len(v)) 5827 } 5828 for i := range v { 5829 i := i 5830 fc := &graphql.FieldContext{ 5831 Index: &i, 5832 Result: &v[i], 5833 } 5834 ctx := graphql.WithFieldContext(ctx, fc) 5835 f := func(i int) { 5836 defer func() { 5837 if r := recover(); r != nil { 5838 ec.Error(ctx, ec.Recover(ctx, r)) 5839 ret = nil 5840 } 5841 }() 5842 if !isLen1 { 5843 defer wg.Done() 5844 } 5845 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 5846 } 5847 if isLen1 { 5848 f(i) 5849 } else { 5850 go f(i) 5851 } 5852 5853 } 5854 wg.Wait() 5855 5856 for _, e := range ret { 5857 if e == graphql.Null { 5858 return graphql.Null 5859 } 5860 } 5861 5862 return ret 5863 } 5864 5865 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { 5866 if v == nil { 5867 return graphql.Null 5868 } 5869 return ec.___Schema(ctx, sel, v) 5870 } 5871 5872 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 5873 if v == nil { 5874 return graphql.Null 5875 } 5876 ret := make(graphql.Array, len(v)) 5877 var wg sync.WaitGroup 5878 isLen1 := len(v) == 1 5879 if !isLen1 { 5880 wg.Add(len(v)) 5881 } 5882 for i := range v { 5883 i := i 5884 fc := &graphql.FieldContext{ 5885 Index: &i, 5886 Result: &v[i], 5887 } 5888 ctx := graphql.WithFieldContext(ctx, fc) 5889 f := func(i int) { 5890 defer func() { 5891 if r := recover(); r != nil { 5892 ec.Error(ctx, ec.Recover(ctx, r)) 5893 ret = nil 5894 } 5895 }() 5896 if !isLen1 { 5897 defer wg.Done() 5898 } 5899 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 5900 } 5901 if isLen1 { 5902 f(i) 5903 } else { 5904 go f(i) 5905 } 5906 5907 } 5908 wg.Wait() 5909 5910 for _, e := range ret { 5911 if e == graphql.Null { 5912 return graphql.Null 5913 } 5914 } 5915 5916 return ret 5917 } 5918 5919 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 5920 if v == nil { 5921 return graphql.Null 5922 } 5923 return ec.___Type(ctx, sel, v) 5924 } 5925 5926 // endregion ***************************** type.gotpl *****************************