github.com/geneva/gqlgen@v0.17.7-0.20230801155730-7b9317164836/codegen/testserver/singlefile/generated.go (about) 1 // Code generated by github.com/geneva/gqlgen, DO NOT EDIT. 2 3 package singlefile 4 5 import ( 6 "bytes" 7 "context" 8 "embed" 9 "errors" 10 "fmt" 11 "io" 12 "strconv" 13 "sync" 14 "sync/atomic" 15 "time" 16 17 introspection1 "github.com/geneva/gqlgen/codegen/testserver/singlefile/introspection" 18 invalid_packagename "github.com/geneva/gqlgen/codegen/testserver/singlefile/invalid-packagename" 19 "github.com/geneva/gqlgen/codegen/testserver/singlefile/otherpkg" 20 "github.com/geneva/gqlgen/graphql" 21 "github.com/geneva/gqlgen/graphql/introspection" 22 gqlparser "github.com/vektah/gqlparser/v2" 23 "github.com/vektah/gqlparser/v2/ast" 24 ) 25 26 // region ************************** generated!.gotpl ************************** 27 28 // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. 29 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { 30 return &executableSchema{ 31 resolvers: cfg.Resolvers, 32 directives: cfg.Directives, 33 complexity: cfg.Complexity, 34 } 35 } 36 37 type Config struct { 38 Resolvers ResolverRoot 39 Directives DirectiveRoot 40 Complexity ComplexityRoot 41 } 42 43 type ResolverRoot interface { 44 BackedByInterface() BackedByInterfaceResolver 45 DeferModel() DeferModelResolver 46 Errors() ErrorsResolver 47 ForcedResolver() ForcedResolverResolver 48 ModelMethods() ModelMethodsResolver 49 Mutation() MutationResolver 50 OverlappingFields() OverlappingFieldsResolver 51 Panics() PanicsResolver 52 Pet() PetResolver 53 Primitive() PrimitiveResolver 54 PrimitiveString() PrimitiveStringResolver 55 Query() QueryResolver 56 Subscription() SubscriptionResolver 57 User() UserResolver 58 WrappedMap() WrappedMapResolver 59 WrappedSlice() WrappedSliceResolver 60 FieldsOrderInput() FieldsOrderInputResolver 61 } 62 63 type DirectiveRoot struct { 64 Custom func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 65 Defer func(ctx context.Context, obj interface{}, next graphql.Resolver, ifArg *bool, label *string) (res interface{}, err error) 66 Directive1 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 67 Directive2 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 68 Directive3 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 69 Length func(ctx context.Context, obj interface{}, next graphql.Resolver, min int, max *int, message *string) (res interface{}, err error) 70 Logged func(ctx context.Context, obj interface{}, next graphql.Resolver, id string) (res interface{}, err error) 71 MakeNil func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 72 MakeTypedNil func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 73 Order1 func(ctx context.Context, obj interface{}, next graphql.Resolver, location string) (res interface{}, err error) 74 Order2 func(ctx context.Context, obj interface{}, next graphql.Resolver, location string) (res interface{}, err error) 75 Range func(ctx context.Context, obj interface{}, next graphql.Resolver, min *int, max *int) (res interface{}, err error) 76 ToNull func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 77 Unimplemented func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 78 } 79 80 type ComplexityRoot struct { 81 A struct { 82 ID func(childComplexity int) int 83 } 84 85 AIt struct { 86 ID func(childComplexity int) int 87 } 88 89 AbIt struct { 90 ID func(childComplexity int) int 91 } 92 93 Autobind struct { 94 IdInt func(childComplexity int) int 95 IdStr func(childComplexity int) int 96 Int func(childComplexity int) int 97 Int32 func(childComplexity int) int 98 Int64 func(childComplexity int) int 99 } 100 101 B struct { 102 ID func(childComplexity int) int 103 } 104 105 BackedByInterface struct { 106 ID func(childComplexity int) int 107 ThisShouldBind func(childComplexity int) int 108 ThisShouldBindWithError func(childComplexity int) int 109 } 110 111 Cat struct { 112 CatBreed func(childComplexity int) int 113 Size func(childComplexity int) int 114 Species func(childComplexity int) int 115 } 116 117 CheckIssue896 struct { 118 ID func(childComplexity int) int 119 } 120 121 Circle struct { 122 Area func(childComplexity int) int 123 Coordinates func(childComplexity int) int 124 Radius func(childComplexity int) int 125 } 126 127 ConcreteNodeA struct { 128 Child func(childComplexity int) int 129 ID func(childComplexity int) int 130 Name func(childComplexity int) int 131 } 132 133 ConcreteNodeInterface struct { 134 Child func(childComplexity int) int 135 ID func(childComplexity int) int 136 } 137 138 Content_Post struct { 139 Foo func(childComplexity int) int 140 } 141 142 Content_User struct { 143 Foo func(childComplexity int) int 144 } 145 146 Coordinates struct { 147 X func(childComplexity int) int 148 Y func(childComplexity int) int 149 } 150 151 DefaultParametersMirror struct { 152 FalsyBoolean func(childComplexity int) int 153 TruthyBoolean func(childComplexity int) int 154 } 155 156 DeferModel struct { 157 ID func(childComplexity int) int 158 Name func(childComplexity int) int 159 Values func(childComplexity int) int 160 } 161 162 Dog struct { 163 DogBreed func(childComplexity int) int 164 Size func(childComplexity int) int 165 Species func(childComplexity int) int 166 } 167 168 EmbeddedCase1 struct { 169 ExportedEmbeddedPointerExportedMethod func(childComplexity int) int 170 } 171 172 EmbeddedCase2 struct { 173 UnexportedEmbeddedPointerExportedMethod func(childComplexity int) int 174 } 175 176 EmbeddedCase3 struct { 177 UnexportedEmbeddedInterfaceExportedMethod func(childComplexity int) int 178 } 179 180 EmbeddedDefaultScalar struct { 181 Value func(childComplexity int) int 182 } 183 184 EmbeddedPointer struct { 185 ID func(childComplexity int) int 186 Title func(childComplexity int) int 187 } 188 189 Error struct { 190 ErrorOnNonRequiredField func(childComplexity int) int 191 ErrorOnRequiredField func(childComplexity int) int 192 ID func(childComplexity int) int 193 NilOnRequiredField func(childComplexity int) int 194 } 195 196 Errors struct { 197 A func(childComplexity int) int 198 B func(childComplexity int) int 199 C func(childComplexity int) int 200 D func(childComplexity int) int 201 E func(childComplexity int) int 202 } 203 204 FieldsOrderPayload struct { 205 FirstFieldValue func(childComplexity int) int 206 } 207 208 ForcedResolver struct { 209 Field func(childComplexity int) int 210 } 211 212 InnerObject struct { 213 ID func(childComplexity int) int 214 } 215 216 InvalidIdentifier struct { 217 ID func(childComplexity int) int 218 } 219 220 It struct { 221 ID func(childComplexity int) int 222 } 223 224 LoopA struct { 225 B func(childComplexity int) int 226 } 227 228 LoopB struct { 229 A func(childComplexity int) int 230 } 231 232 Map struct { 233 ID func(childComplexity int) int 234 } 235 236 MapStringInterfaceType struct { 237 A func(childComplexity int) int 238 B func(childComplexity int) int 239 } 240 241 ModelMethods struct { 242 NoContext func(childComplexity int) int 243 ResolverField func(childComplexity int) int 244 WithContext func(childComplexity int) int 245 } 246 247 Mutation struct { 248 DefaultInput func(childComplexity int, input DefaultInput) int 249 OverrideValueViaInput func(childComplexity int, input FieldsOrderInput) int 250 UpdatePtrToPtr func(childComplexity int, input UpdatePtrToPtrOuter) int 251 UpdateSomething func(childComplexity int, input SpecialInput) int 252 } 253 254 ObjectDirectives struct { 255 NullableText func(childComplexity int) int 256 Order func(childComplexity int) int 257 Text func(childComplexity int) int 258 } 259 260 ObjectDirectivesWithCustomGoModel struct { 261 NullableText func(childComplexity int) int 262 } 263 264 OuterObject struct { 265 Inner func(childComplexity int) int 266 } 267 268 OverlappingFields struct { 269 Foo func(childComplexity int) int 270 NewFoo func(childComplexity int) int 271 OldFoo func(childComplexity int) int 272 } 273 274 Panics struct { 275 ArgUnmarshal func(childComplexity int, u []MarshalPanic) int 276 FieldFuncMarshal func(childComplexity int, u []MarshalPanic) int 277 FieldScalarMarshal func(childComplexity int) int 278 } 279 280 Pet struct { 281 Friends func(childComplexity int, limit *int) int 282 ID func(childComplexity int) int 283 } 284 285 Primitive struct { 286 Squared func(childComplexity int) int 287 Value func(childComplexity int) int 288 } 289 290 PrimitiveString struct { 291 Doubled func(childComplexity int) int 292 Len func(childComplexity int) int 293 Value func(childComplexity int) int 294 } 295 296 PtrToAnyContainer struct { 297 Binding func(childComplexity int) int 298 PtrToAny func(childComplexity int) int 299 } 300 301 PtrToPtrInner struct { 302 Key func(childComplexity int) int 303 Value func(childComplexity int) int 304 } 305 306 PtrToPtrOuter struct { 307 Inner func(childComplexity int) int 308 Name func(childComplexity int) int 309 StupidInner func(childComplexity int) int 310 } 311 312 PtrToSliceContainer struct { 313 PtrToSlice func(childComplexity int) int 314 } 315 316 Query struct { 317 Animal func(childComplexity int) int 318 Autobind func(childComplexity int) int 319 Collision func(childComplexity int) int 320 DefaultParameters func(childComplexity int, falsyBoolean *bool, truthyBoolean *bool) int 321 DefaultScalar func(childComplexity int, arg string) int 322 DeferCase1 func(childComplexity int) int 323 DeferCase2 func(childComplexity int) int 324 DeprecatedField func(childComplexity int) int 325 DirectiveArg func(childComplexity int, arg string) int 326 DirectiveDouble func(childComplexity int) int 327 DirectiveField func(childComplexity int) int 328 DirectiveFieldDef func(childComplexity int, ret string) int 329 DirectiveInput func(childComplexity int, arg InputDirectives) int 330 DirectiveInputNullable func(childComplexity int, arg *InputDirectives) int 331 DirectiveInputType func(childComplexity int, arg InnerInput) int 332 DirectiveNullableArg func(childComplexity int, arg *int, arg2 *int, arg3 *string) int 333 DirectiveObject func(childComplexity int) int 334 DirectiveObjectWithCustomGoModel func(childComplexity int) int 335 DirectiveUnimplemented func(childComplexity int) int 336 Dog func(childComplexity int) int 337 EmbeddedCase1 func(childComplexity int) int 338 EmbeddedCase2 func(childComplexity int) int 339 EmbeddedCase3 func(childComplexity int) int 340 EnumInInput func(childComplexity int, input *InputWithEnumValue) int 341 ErrorBubble func(childComplexity int) int 342 ErrorBubbleList func(childComplexity int) int 343 ErrorList func(childComplexity int) int 344 Errors func(childComplexity int) int 345 Fallback func(childComplexity int, arg FallbackToStringEncoding) int 346 Infinity func(childComplexity int) int 347 InputNullableSlice func(childComplexity int, arg []string) int 348 InputOmittable func(childComplexity int, arg OmittableInput) int 349 InputSlice func(childComplexity int, arg []string) int 350 Invalid func(childComplexity int) int 351 InvalidIdentifier func(childComplexity int) int 352 Issue896a func(childComplexity int) int 353 MapInput func(childComplexity int, input map[string]interface{}) int 354 MapNestedStringInterface func(childComplexity int, in *NestedMapInput) int 355 MapStringInterface func(childComplexity int, in map[string]interface{}) int 356 ModelMethods func(childComplexity int) int 357 NestedInputs func(childComplexity int, input [][]*OuterInput) int 358 NestedOutputs func(childComplexity int) int 359 NoShape func(childComplexity int) int 360 NoShapeTypedNil func(childComplexity int) int 361 Node func(childComplexity int) int 362 NotAnInterface func(childComplexity int) int 363 NullableArg func(childComplexity int, arg *int) int 364 OptionalUnion func(childComplexity int) int 365 Overlapping func(childComplexity int) int 366 Panics func(childComplexity int) int 367 PrimitiveObject func(childComplexity int) int 368 PrimitiveStringObject func(childComplexity int) int 369 PtrToAnyContainer func(childComplexity int) int 370 PtrToSliceContainer func(childComplexity int) int 371 Recursive func(childComplexity int, input *RecursiveInputSlice) int 372 ScalarSlice func(childComplexity int) int 373 ShapeUnion func(childComplexity int) int 374 Shapes func(childComplexity int) int 375 Slices func(childComplexity int) int 376 StringFromContextFunction func(childComplexity int) int 377 StringFromContextInterface func(childComplexity int) int 378 User func(childComplexity int, id int) int 379 VOkCaseNil func(childComplexity int) int 380 VOkCaseValue func(childComplexity int) int 381 Valid func(childComplexity int) int 382 ValidType func(childComplexity int) int 383 VariadicModel func(childComplexity int) int 384 WrappedMap func(childComplexity int) int 385 WrappedScalar func(childComplexity int) int 386 WrappedSlice func(childComplexity int) int 387 WrappedStruct func(childComplexity int) int 388 } 389 390 Rectangle struct { 391 Area func(childComplexity int) int 392 Coordinates func(childComplexity int) int 393 Length func(childComplexity int) int 394 Width func(childComplexity int) int 395 } 396 397 Size struct { 398 Height func(childComplexity int) int 399 Weight func(childComplexity int) int 400 } 401 402 Slices struct { 403 Test1 func(childComplexity int) int 404 Test2 func(childComplexity int) int 405 Test3 func(childComplexity int) int 406 Test4 func(childComplexity int) int 407 } 408 409 Subscription struct { 410 DirectiveArg func(childComplexity int, arg string) int 411 DirectiveDouble func(childComplexity int) int 412 DirectiveNullableArg func(childComplexity int, arg *int, arg2 *int, arg3 *string) int 413 DirectiveUnimplemented func(childComplexity int) int 414 ErrorRequired func(childComplexity int) int 415 InitPayload func(childComplexity int) int 416 Issue896b func(childComplexity int) int 417 Updated func(childComplexity int) int 418 } 419 420 User struct { 421 Created func(childComplexity int) int 422 Friends func(childComplexity int) int 423 ID func(childComplexity int) int 424 Pets func(childComplexity int, limit *int) int 425 Updated func(childComplexity int) int 426 } 427 428 VOkCaseNil struct { 429 Value func(childComplexity int) int 430 } 431 432 VOkCaseValue struct { 433 Value func(childComplexity int) int 434 } 435 436 ValidType struct { 437 DifferentCase func(childComplexity int) int 438 DifferentCaseOld func(childComplexity int) int 439 ValidArgs func(childComplexity int, breakArg string, defaultArg string, funcArg string, interfaceArg string, selectArg string, caseArg string, deferArg string, goArg string, mapArg string, structArg string, chanArg string, elseArg string, gotoArg string, packageArg string, switchArg string, constArg string, fallthroughArg string, ifArg string, rangeArg string, typeArg string, continueArg string, forArg string, importArg string, returnArg string, varArg string, _ string) int 440 ValidInputKeywords func(childComplexity int, input *ValidInput) int 441 } 442 443 VariadicModel struct { 444 Value func(childComplexity int, rank int) int 445 } 446 447 WrappedMap struct { 448 Get func(childComplexity int, key string) int 449 } 450 451 WrappedSlice struct { 452 Get func(childComplexity int, idx int) int 453 } 454 455 WrappedStruct struct { 456 Desc func(childComplexity int) int 457 Name func(childComplexity int) int 458 } 459 460 XXIt struct { 461 ID func(childComplexity int) int 462 } 463 464 XxIt struct { 465 ID func(childComplexity int) int 466 } 467 468 AsdfIt struct { 469 ID func(childComplexity int) int 470 } 471 472 IIt struct { 473 ID func(childComplexity int) int 474 } 475 } 476 477 type BackedByInterfaceResolver interface { 478 ID(ctx context.Context, obj BackedByInterface) (string, error) 479 } 480 type DeferModelResolver interface { 481 Values(ctx context.Context, obj *DeferModel) ([]string, error) 482 } 483 type ErrorsResolver interface { 484 A(ctx context.Context, obj *Errors) (*Error, error) 485 B(ctx context.Context, obj *Errors) (*Error, error) 486 C(ctx context.Context, obj *Errors) (*Error, error) 487 D(ctx context.Context, obj *Errors) (*Error, error) 488 E(ctx context.Context, obj *Errors) (*Error, error) 489 } 490 type ForcedResolverResolver interface { 491 Field(ctx context.Context, obj *ForcedResolver) (*Circle, error) 492 } 493 type ModelMethodsResolver interface { 494 ResolverField(ctx context.Context, obj *ModelMethods) (bool, error) 495 } 496 type MutationResolver interface { 497 DefaultInput(ctx context.Context, input DefaultInput) (*DefaultParametersMirror, error) 498 OverrideValueViaInput(ctx context.Context, input FieldsOrderInput) (*FieldsOrderPayload, error) 499 UpdateSomething(ctx context.Context, input SpecialInput) (string, error) 500 UpdatePtrToPtr(ctx context.Context, input UpdatePtrToPtrOuter) (*PtrToPtrOuter, error) 501 } 502 type OverlappingFieldsResolver interface { 503 OldFoo(ctx context.Context, obj *OverlappingFields) (int, error) 504 } 505 type PanicsResolver interface { 506 FieldScalarMarshal(ctx context.Context, obj *Panics) ([]MarshalPanic, error) 507 508 ArgUnmarshal(ctx context.Context, obj *Panics, u []MarshalPanic) (bool, error) 509 } 510 type PetResolver interface { 511 Friends(ctx context.Context, obj *Pet, limit *int) ([]*Pet, error) 512 } 513 type PrimitiveResolver interface { 514 Value(ctx context.Context, obj *Primitive) (int, error) 515 } 516 type PrimitiveStringResolver interface { 517 Value(ctx context.Context, obj *PrimitiveString) (string, error) 518 519 Len(ctx context.Context, obj *PrimitiveString) (int, error) 520 } 521 type QueryResolver interface { 522 InvalidIdentifier(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) 523 Collision(ctx context.Context) (*introspection1.It, error) 524 MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) 525 Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) 526 NestedInputs(ctx context.Context, input [][]*OuterInput) (*bool, error) 527 NestedOutputs(ctx context.Context) ([][]*OuterObject, error) 528 ModelMethods(ctx context.Context) (*ModelMethods, error) 529 User(ctx context.Context, id int) (*User, error) 530 NullableArg(ctx context.Context, arg *int) (*string, error) 531 InputSlice(ctx context.Context, arg []string) (bool, error) 532 InputNullableSlice(ctx context.Context, arg []string) (bool, error) 533 InputOmittable(ctx context.Context, arg OmittableInput) (string, error) 534 ShapeUnion(ctx context.Context) (ShapeUnion, error) 535 Autobind(ctx context.Context) (*Autobind, error) 536 DeprecatedField(ctx context.Context) (string, error) 537 Overlapping(ctx context.Context) (*OverlappingFields, error) 538 DefaultParameters(ctx context.Context, falsyBoolean *bool, truthyBoolean *bool) (*DefaultParametersMirror, error) 539 DeferCase1(ctx context.Context) (*DeferModel, error) 540 DeferCase2(ctx context.Context) ([]*DeferModel, error) 541 DirectiveArg(ctx context.Context, arg string) (*string, error) 542 DirectiveNullableArg(ctx context.Context, arg *int, arg2 *int, arg3 *string) (*string, error) 543 DirectiveInputNullable(ctx context.Context, arg *InputDirectives) (*string, error) 544 DirectiveInput(ctx context.Context, arg InputDirectives) (*string, error) 545 DirectiveInputType(ctx context.Context, arg InnerInput) (*string, error) 546 DirectiveObject(ctx context.Context) (*ObjectDirectives, error) 547 DirectiveObjectWithCustomGoModel(ctx context.Context) (*ObjectDirectivesWithCustomGoModel, error) 548 DirectiveFieldDef(ctx context.Context, ret string) (string, error) 549 DirectiveField(ctx context.Context) (*string, error) 550 DirectiveDouble(ctx context.Context) (*string, error) 551 DirectiveUnimplemented(ctx context.Context) (*string, error) 552 EmbeddedCase1(ctx context.Context) (*EmbeddedCase1, error) 553 EmbeddedCase2(ctx context.Context) (*EmbeddedCase2, error) 554 EmbeddedCase3(ctx context.Context) (*EmbeddedCase3, error) 555 EnumInInput(ctx context.Context, input *InputWithEnumValue) (EnumTest, error) 556 Shapes(ctx context.Context) ([]Shape, error) 557 NoShape(ctx context.Context) (Shape, error) 558 Node(ctx context.Context) (Node, error) 559 NoShapeTypedNil(ctx context.Context) (Shape, error) 560 Animal(ctx context.Context) (Animal, error) 561 NotAnInterface(ctx context.Context) (BackedByInterface, error) 562 Dog(ctx context.Context) (*Dog, error) 563 Issue896a(ctx context.Context) ([]*CheckIssue896, error) 564 MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) 565 MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) 566 ErrorBubble(ctx context.Context) (*Error, error) 567 ErrorBubbleList(ctx context.Context) ([]*Error, error) 568 ErrorList(ctx context.Context) ([]*Error, error) 569 Errors(ctx context.Context) (*Errors, error) 570 Valid(ctx context.Context) (string, error) 571 Invalid(ctx context.Context) (string, error) 572 Panics(ctx context.Context) (*Panics, error) 573 PrimitiveObject(ctx context.Context) ([]Primitive, error) 574 PrimitiveStringObject(ctx context.Context) ([]PrimitiveString, error) 575 PtrToAnyContainer(ctx context.Context) (*PtrToAnyContainer, error) 576 PtrToSliceContainer(ctx context.Context) (*PtrToSliceContainer, error) 577 Infinity(ctx context.Context) (float64, error) 578 StringFromContextInterface(ctx context.Context) (*StringFromContextInterface, error) 579 StringFromContextFunction(ctx context.Context) (string, error) 580 DefaultScalar(ctx context.Context, arg string) (string, error) 581 Slices(ctx context.Context) (*Slices, error) 582 ScalarSlice(ctx context.Context) ([]byte, error) 583 Fallback(ctx context.Context, arg FallbackToStringEncoding) (FallbackToStringEncoding, error) 584 OptionalUnion(ctx context.Context) (TestUnion, error) 585 VOkCaseValue(ctx context.Context) (*VOkCaseValue, error) 586 VOkCaseNil(ctx context.Context) (*VOkCaseNil, error) 587 ValidType(ctx context.Context) (*ValidType, error) 588 VariadicModel(ctx context.Context) (*VariadicModel, error) 589 WrappedStruct(ctx context.Context) (*WrappedStruct, error) 590 WrappedScalar(ctx context.Context) (otherpkg.Scalar, error) 591 WrappedMap(ctx context.Context) (WrappedMap, error) 592 WrappedSlice(ctx context.Context) (WrappedSlice, error) 593 } 594 type SubscriptionResolver interface { 595 Updated(ctx context.Context) (<-chan string, error) 596 InitPayload(ctx context.Context) (<-chan string, error) 597 DirectiveArg(ctx context.Context, arg string) (<-chan *string, error) 598 DirectiveNullableArg(ctx context.Context, arg *int, arg2 *int, arg3 *string) (<-chan *string, error) 599 DirectiveDouble(ctx context.Context) (<-chan *string, error) 600 DirectiveUnimplemented(ctx context.Context) (<-chan *string, error) 601 Issue896b(ctx context.Context) (<-chan []*CheckIssue896, error) 602 ErrorRequired(ctx context.Context) (<-chan *Error, error) 603 } 604 type UserResolver interface { 605 Friends(ctx context.Context, obj *User) ([]*User, error) 606 607 Pets(ctx context.Context, obj *User, limit *int) ([]*Pet, error) 608 } 609 type WrappedMapResolver interface { 610 Get(ctx context.Context, obj WrappedMap, key string) (string, error) 611 } 612 type WrappedSliceResolver interface { 613 Get(ctx context.Context, obj WrappedSlice, idx int) (string, error) 614 } 615 616 type FieldsOrderInputResolver interface { 617 OverrideFirstField(ctx context.Context, obj *FieldsOrderInput, data *string) error 618 } 619 620 type executableSchema struct { 621 resolvers ResolverRoot 622 directives DirectiveRoot 623 complexity ComplexityRoot 624 } 625 626 func (e *executableSchema) Schema() *ast.Schema { 627 return parsedSchema 628 } 629 630 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { 631 ec := executionContext{nil, e, 0, 0, nil} 632 _ = ec 633 switch typeName + "." + field { 634 635 case "A.id": 636 if e.complexity.A.ID == nil { 637 break 638 } 639 640 return e.complexity.A.ID(childComplexity), true 641 642 case "AIt.id": 643 if e.complexity.AIt.ID == nil { 644 break 645 } 646 647 return e.complexity.AIt.ID(childComplexity), true 648 649 case "AbIt.id": 650 if e.complexity.AbIt.ID == nil { 651 break 652 } 653 654 return e.complexity.AbIt.ID(childComplexity), true 655 656 case "Autobind.idInt": 657 if e.complexity.Autobind.IdInt == nil { 658 break 659 } 660 661 return e.complexity.Autobind.IdInt(childComplexity), true 662 663 case "Autobind.idStr": 664 if e.complexity.Autobind.IdStr == nil { 665 break 666 } 667 668 return e.complexity.Autobind.IdStr(childComplexity), true 669 670 case "Autobind.int": 671 if e.complexity.Autobind.Int == nil { 672 break 673 } 674 675 return e.complexity.Autobind.Int(childComplexity), true 676 677 case "Autobind.int32": 678 if e.complexity.Autobind.Int32 == nil { 679 break 680 } 681 682 return e.complexity.Autobind.Int32(childComplexity), true 683 684 case "Autobind.int64": 685 if e.complexity.Autobind.Int64 == nil { 686 break 687 } 688 689 return e.complexity.Autobind.Int64(childComplexity), true 690 691 case "B.id": 692 if e.complexity.B.ID == nil { 693 break 694 } 695 696 return e.complexity.B.ID(childComplexity), true 697 698 case "BackedByInterface.id": 699 if e.complexity.BackedByInterface.ID == nil { 700 break 701 } 702 703 return e.complexity.BackedByInterface.ID(childComplexity), true 704 705 case "BackedByInterface.thisShouldBind": 706 if e.complexity.BackedByInterface.ThisShouldBind == nil { 707 break 708 } 709 710 return e.complexity.BackedByInterface.ThisShouldBind(childComplexity), true 711 712 case "BackedByInterface.thisShouldBindWithError": 713 if e.complexity.BackedByInterface.ThisShouldBindWithError == nil { 714 break 715 } 716 717 return e.complexity.BackedByInterface.ThisShouldBindWithError(childComplexity), true 718 719 case "Cat.catBreed": 720 if e.complexity.Cat.CatBreed == nil { 721 break 722 } 723 724 return e.complexity.Cat.CatBreed(childComplexity), true 725 726 case "Cat.size": 727 if e.complexity.Cat.Size == nil { 728 break 729 } 730 731 return e.complexity.Cat.Size(childComplexity), true 732 733 case "Cat.species": 734 if e.complexity.Cat.Species == nil { 735 break 736 } 737 738 return e.complexity.Cat.Species(childComplexity), true 739 740 case "CheckIssue896.id": 741 if e.complexity.CheckIssue896.ID == nil { 742 break 743 } 744 745 return e.complexity.CheckIssue896.ID(childComplexity), true 746 747 case "Circle.area": 748 if e.complexity.Circle.Area == nil { 749 break 750 } 751 752 return e.complexity.Circle.Area(childComplexity), true 753 754 case "Circle.coordinates": 755 if e.complexity.Circle.Coordinates == nil { 756 break 757 } 758 759 return e.complexity.Circle.Coordinates(childComplexity), true 760 761 case "Circle.radius": 762 if e.complexity.Circle.Radius == nil { 763 break 764 } 765 766 return e.complexity.Circle.Radius(childComplexity), true 767 768 case "ConcreteNodeA.child": 769 if e.complexity.ConcreteNodeA.Child == nil { 770 break 771 } 772 773 return e.complexity.ConcreteNodeA.Child(childComplexity), true 774 775 case "ConcreteNodeA.id": 776 if e.complexity.ConcreteNodeA.ID == nil { 777 break 778 } 779 780 return e.complexity.ConcreteNodeA.ID(childComplexity), true 781 782 case "ConcreteNodeA.name": 783 if e.complexity.ConcreteNodeA.Name == nil { 784 break 785 } 786 787 return e.complexity.ConcreteNodeA.Name(childComplexity), true 788 789 case "ConcreteNodeInterface.child": 790 if e.complexity.ConcreteNodeInterface.Child == nil { 791 break 792 } 793 794 return e.complexity.ConcreteNodeInterface.Child(childComplexity), true 795 796 case "ConcreteNodeInterface.id": 797 if e.complexity.ConcreteNodeInterface.ID == nil { 798 break 799 } 800 801 return e.complexity.ConcreteNodeInterface.ID(childComplexity), true 802 803 case "Content_Post.foo": 804 if e.complexity.Content_Post.Foo == nil { 805 break 806 } 807 808 return e.complexity.Content_Post.Foo(childComplexity), true 809 810 case "Content_User.foo": 811 if e.complexity.Content_User.Foo == nil { 812 break 813 } 814 815 return e.complexity.Content_User.Foo(childComplexity), true 816 817 case "Coordinates.x": 818 if e.complexity.Coordinates.X == nil { 819 break 820 } 821 822 return e.complexity.Coordinates.X(childComplexity), true 823 824 case "Coordinates.y": 825 if e.complexity.Coordinates.Y == nil { 826 break 827 } 828 829 return e.complexity.Coordinates.Y(childComplexity), true 830 831 case "DefaultParametersMirror.falsyBoolean": 832 if e.complexity.DefaultParametersMirror.FalsyBoolean == nil { 833 break 834 } 835 836 return e.complexity.DefaultParametersMirror.FalsyBoolean(childComplexity), true 837 838 case "DefaultParametersMirror.truthyBoolean": 839 if e.complexity.DefaultParametersMirror.TruthyBoolean == nil { 840 break 841 } 842 843 return e.complexity.DefaultParametersMirror.TruthyBoolean(childComplexity), true 844 845 case "DeferModel.id": 846 if e.complexity.DeferModel.ID == nil { 847 break 848 } 849 850 return e.complexity.DeferModel.ID(childComplexity), true 851 852 case "DeferModel.name": 853 if e.complexity.DeferModel.Name == nil { 854 break 855 } 856 857 return e.complexity.DeferModel.Name(childComplexity), true 858 859 case "DeferModel.values": 860 if e.complexity.DeferModel.Values == nil { 861 break 862 } 863 864 return e.complexity.DeferModel.Values(childComplexity), true 865 866 case "Dog.dogBreed": 867 if e.complexity.Dog.DogBreed == nil { 868 break 869 } 870 871 return e.complexity.Dog.DogBreed(childComplexity), true 872 873 case "Dog.size": 874 if e.complexity.Dog.Size == nil { 875 break 876 } 877 878 return e.complexity.Dog.Size(childComplexity), true 879 880 case "Dog.species": 881 if e.complexity.Dog.Species == nil { 882 break 883 } 884 885 return e.complexity.Dog.Species(childComplexity), true 886 887 case "EmbeddedCase1.exportedEmbeddedPointerExportedMethod": 888 if e.complexity.EmbeddedCase1.ExportedEmbeddedPointerExportedMethod == nil { 889 break 890 } 891 892 return e.complexity.EmbeddedCase1.ExportedEmbeddedPointerExportedMethod(childComplexity), true 893 894 case "EmbeddedCase2.unexportedEmbeddedPointerExportedMethod": 895 if e.complexity.EmbeddedCase2.UnexportedEmbeddedPointerExportedMethod == nil { 896 break 897 } 898 899 return e.complexity.EmbeddedCase2.UnexportedEmbeddedPointerExportedMethod(childComplexity), true 900 901 case "EmbeddedCase3.unexportedEmbeddedInterfaceExportedMethod": 902 if e.complexity.EmbeddedCase3.UnexportedEmbeddedInterfaceExportedMethod == nil { 903 break 904 } 905 906 return e.complexity.EmbeddedCase3.UnexportedEmbeddedInterfaceExportedMethod(childComplexity), true 907 908 case "EmbeddedDefaultScalar.value": 909 if e.complexity.EmbeddedDefaultScalar.Value == nil { 910 break 911 } 912 913 return e.complexity.EmbeddedDefaultScalar.Value(childComplexity), true 914 915 case "EmbeddedPointer.ID": 916 if e.complexity.EmbeddedPointer.ID == nil { 917 break 918 } 919 920 return e.complexity.EmbeddedPointer.ID(childComplexity), true 921 922 case "EmbeddedPointer.Title": 923 if e.complexity.EmbeddedPointer.Title == nil { 924 break 925 } 926 927 return e.complexity.EmbeddedPointer.Title(childComplexity), true 928 929 case "Error.errorOnNonRequiredField": 930 if e.complexity.Error.ErrorOnNonRequiredField == nil { 931 break 932 } 933 934 return e.complexity.Error.ErrorOnNonRequiredField(childComplexity), true 935 936 case "Error.errorOnRequiredField": 937 if e.complexity.Error.ErrorOnRequiredField == nil { 938 break 939 } 940 941 return e.complexity.Error.ErrorOnRequiredField(childComplexity), true 942 943 case "Error.id": 944 if e.complexity.Error.ID == nil { 945 break 946 } 947 948 return e.complexity.Error.ID(childComplexity), true 949 950 case "Error.nilOnRequiredField": 951 if e.complexity.Error.NilOnRequiredField == nil { 952 break 953 } 954 955 return e.complexity.Error.NilOnRequiredField(childComplexity), true 956 957 case "Errors.a": 958 if e.complexity.Errors.A == nil { 959 break 960 } 961 962 return e.complexity.Errors.A(childComplexity), true 963 964 case "Errors.b": 965 if e.complexity.Errors.B == nil { 966 break 967 } 968 969 return e.complexity.Errors.B(childComplexity), true 970 971 case "Errors.c": 972 if e.complexity.Errors.C == nil { 973 break 974 } 975 976 return e.complexity.Errors.C(childComplexity), true 977 978 case "Errors.d": 979 if e.complexity.Errors.D == nil { 980 break 981 } 982 983 return e.complexity.Errors.D(childComplexity), true 984 985 case "Errors.e": 986 if e.complexity.Errors.E == nil { 987 break 988 } 989 990 return e.complexity.Errors.E(childComplexity), true 991 992 case "FieldsOrderPayload.firstFieldValue": 993 if e.complexity.FieldsOrderPayload.FirstFieldValue == nil { 994 break 995 } 996 997 return e.complexity.FieldsOrderPayload.FirstFieldValue(childComplexity), true 998 999 case "ForcedResolver.field": 1000 if e.complexity.ForcedResolver.Field == nil { 1001 break 1002 } 1003 1004 return e.complexity.ForcedResolver.Field(childComplexity), true 1005 1006 case "InnerObject.id": 1007 if e.complexity.InnerObject.ID == nil { 1008 break 1009 } 1010 1011 return e.complexity.InnerObject.ID(childComplexity), true 1012 1013 case "InvalidIdentifier.id": 1014 if e.complexity.InvalidIdentifier.ID == nil { 1015 break 1016 } 1017 1018 return e.complexity.InvalidIdentifier.ID(childComplexity), true 1019 1020 case "It.id": 1021 if e.complexity.It.ID == nil { 1022 break 1023 } 1024 1025 return e.complexity.It.ID(childComplexity), true 1026 1027 case "LoopA.b": 1028 if e.complexity.LoopA.B == nil { 1029 break 1030 } 1031 1032 return e.complexity.LoopA.B(childComplexity), true 1033 1034 case "LoopB.a": 1035 if e.complexity.LoopB.A == nil { 1036 break 1037 } 1038 1039 return e.complexity.LoopB.A(childComplexity), true 1040 1041 case "Map.id": 1042 if e.complexity.Map.ID == nil { 1043 break 1044 } 1045 1046 return e.complexity.Map.ID(childComplexity), true 1047 1048 case "MapStringInterfaceType.a": 1049 if e.complexity.MapStringInterfaceType.A == nil { 1050 break 1051 } 1052 1053 return e.complexity.MapStringInterfaceType.A(childComplexity), true 1054 1055 case "MapStringInterfaceType.b": 1056 if e.complexity.MapStringInterfaceType.B == nil { 1057 break 1058 } 1059 1060 return e.complexity.MapStringInterfaceType.B(childComplexity), true 1061 1062 case "ModelMethods.noContext": 1063 if e.complexity.ModelMethods.NoContext == nil { 1064 break 1065 } 1066 1067 return e.complexity.ModelMethods.NoContext(childComplexity), true 1068 1069 case "ModelMethods.resolverField": 1070 if e.complexity.ModelMethods.ResolverField == nil { 1071 break 1072 } 1073 1074 return e.complexity.ModelMethods.ResolverField(childComplexity), true 1075 1076 case "ModelMethods.withContext": 1077 if e.complexity.ModelMethods.WithContext == nil { 1078 break 1079 } 1080 1081 return e.complexity.ModelMethods.WithContext(childComplexity), true 1082 1083 case "Mutation.defaultInput": 1084 if e.complexity.Mutation.DefaultInput == nil { 1085 break 1086 } 1087 1088 args, err := ec.field_Mutation_defaultInput_args(context.TODO(), rawArgs) 1089 if err != nil { 1090 return 0, false 1091 } 1092 1093 return e.complexity.Mutation.DefaultInput(childComplexity, args["input"].(DefaultInput)), true 1094 1095 case "Mutation.overrideValueViaInput": 1096 if e.complexity.Mutation.OverrideValueViaInput == nil { 1097 break 1098 } 1099 1100 args, err := ec.field_Mutation_overrideValueViaInput_args(context.TODO(), rawArgs) 1101 if err != nil { 1102 return 0, false 1103 } 1104 1105 return e.complexity.Mutation.OverrideValueViaInput(childComplexity, args["input"].(FieldsOrderInput)), true 1106 1107 case "Mutation.updatePtrToPtr": 1108 if e.complexity.Mutation.UpdatePtrToPtr == nil { 1109 break 1110 } 1111 1112 args, err := ec.field_Mutation_updatePtrToPtr_args(context.TODO(), rawArgs) 1113 if err != nil { 1114 return 0, false 1115 } 1116 1117 return e.complexity.Mutation.UpdatePtrToPtr(childComplexity, args["input"].(UpdatePtrToPtrOuter)), true 1118 1119 case "Mutation.updateSomething": 1120 if e.complexity.Mutation.UpdateSomething == nil { 1121 break 1122 } 1123 1124 args, err := ec.field_Mutation_updateSomething_args(context.TODO(), rawArgs) 1125 if err != nil { 1126 return 0, false 1127 } 1128 1129 return e.complexity.Mutation.UpdateSomething(childComplexity, args["input"].(SpecialInput)), true 1130 1131 case "ObjectDirectives.nullableText": 1132 if e.complexity.ObjectDirectives.NullableText == nil { 1133 break 1134 } 1135 1136 return e.complexity.ObjectDirectives.NullableText(childComplexity), true 1137 1138 case "ObjectDirectives.order": 1139 if e.complexity.ObjectDirectives.Order == nil { 1140 break 1141 } 1142 1143 return e.complexity.ObjectDirectives.Order(childComplexity), true 1144 1145 case "ObjectDirectives.text": 1146 if e.complexity.ObjectDirectives.Text == nil { 1147 break 1148 } 1149 1150 return e.complexity.ObjectDirectives.Text(childComplexity), true 1151 1152 case "ObjectDirectivesWithCustomGoModel.nullableText": 1153 if e.complexity.ObjectDirectivesWithCustomGoModel.NullableText == nil { 1154 break 1155 } 1156 1157 return e.complexity.ObjectDirectivesWithCustomGoModel.NullableText(childComplexity), true 1158 1159 case "OuterObject.inner": 1160 if e.complexity.OuterObject.Inner == nil { 1161 break 1162 } 1163 1164 return e.complexity.OuterObject.Inner(childComplexity), true 1165 1166 case "OverlappingFields.oneFoo", "OverlappingFields.twoFoo": 1167 if e.complexity.OverlappingFields.Foo == nil { 1168 break 1169 } 1170 1171 return e.complexity.OverlappingFields.Foo(childComplexity), true 1172 1173 case "OverlappingFields.newFoo", "OverlappingFields.new_foo": 1174 if e.complexity.OverlappingFields.NewFoo == nil { 1175 break 1176 } 1177 1178 return e.complexity.OverlappingFields.NewFoo(childComplexity), true 1179 1180 case "OverlappingFields.oldFoo": 1181 if e.complexity.OverlappingFields.OldFoo == nil { 1182 break 1183 } 1184 1185 return e.complexity.OverlappingFields.OldFoo(childComplexity), true 1186 1187 case "Panics.argUnmarshal": 1188 if e.complexity.Panics.ArgUnmarshal == nil { 1189 break 1190 } 1191 1192 args, err := ec.field_Panics_argUnmarshal_args(context.TODO(), rawArgs) 1193 if err != nil { 1194 return 0, false 1195 } 1196 1197 return e.complexity.Panics.ArgUnmarshal(childComplexity, args["u"].([]MarshalPanic)), true 1198 1199 case "Panics.fieldFuncMarshal": 1200 if e.complexity.Panics.FieldFuncMarshal == nil { 1201 break 1202 } 1203 1204 args, err := ec.field_Panics_fieldFuncMarshal_args(context.TODO(), rawArgs) 1205 if err != nil { 1206 return 0, false 1207 } 1208 1209 return e.complexity.Panics.FieldFuncMarshal(childComplexity, args["u"].([]MarshalPanic)), true 1210 1211 case "Panics.fieldScalarMarshal": 1212 if e.complexity.Panics.FieldScalarMarshal == nil { 1213 break 1214 } 1215 1216 return e.complexity.Panics.FieldScalarMarshal(childComplexity), true 1217 1218 case "Pet.friends": 1219 if e.complexity.Pet.Friends == nil { 1220 break 1221 } 1222 1223 args, err := ec.field_Pet_friends_args(context.TODO(), rawArgs) 1224 if err != nil { 1225 return 0, false 1226 } 1227 1228 return e.complexity.Pet.Friends(childComplexity, args["limit"].(*int)), true 1229 1230 case "Pet.id": 1231 if e.complexity.Pet.ID == nil { 1232 break 1233 } 1234 1235 return e.complexity.Pet.ID(childComplexity), true 1236 1237 case "Primitive.squared": 1238 if e.complexity.Primitive.Squared == nil { 1239 break 1240 } 1241 1242 return e.complexity.Primitive.Squared(childComplexity), true 1243 1244 case "Primitive.value": 1245 if e.complexity.Primitive.Value == nil { 1246 break 1247 } 1248 1249 return e.complexity.Primitive.Value(childComplexity), true 1250 1251 case "PrimitiveString.doubled": 1252 if e.complexity.PrimitiveString.Doubled == nil { 1253 break 1254 } 1255 1256 return e.complexity.PrimitiveString.Doubled(childComplexity), true 1257 1258 case "PrimitiveString.len": 1259 if e.complexity.PrimitiveString.Len == nil { 1260 break 1261 } 1262 1263 return e.complexity.PrimitiveString.Len(childComplexity), true 1264 1265 case "PrimitiveString.value": 1266 if e.complexity.PrimitiveString.Value == nil { 1267 break 1268 } 1269 1270 return e.complexity.PrimitiveString.Value(childComplexity), true 1271 1272 case "PtrToAnyContainer.binding": 1273 if e.complexity.PtrToAnyContainer.Binding == nil { 1274 break 1275 } 1276 1277 return e.complexity.PtrToAnyContainer.Binding(childComplexity), true 1278 1279 case "PtrToAnyContainer.ptrToAny": 1280 if e.complexity.PtrToAnyContainer.PtrToAny == nil { 1281 break 1282 } 1283 1284 return e.complexity.PtrToAnyContainer.PtrToAny(childComplexity), true 1285 1286 case "PtrToPtrInner.key": 1287 if e.complexity.PtrToPtrInner.Key == nil { 1288 break 1289 } 1290 1291 return e.complexity.PtrToPtrInner.Key(childComplexity), true 1292 1293 case "PtrToPtrInner.value": 1294 if e.complexity.PtrToPtrInner.Value == nil { 1295 break 1296 } 1297 1298 return e.complexity.PtrToPtrInner.Value(childComplexity), true 1299 1300 case "PtrToPtrOuter.inner": 1301 if e.complexity.PtrToPtrOuter.Inner == nil { 1302 break 1303 } 1304 1305 return e.complexity.PtrToPtrOuter.Inner(childComplexity), true 1306 1307 case "PtrToPtrOuter.name": 1308 if e.complexity.PtrToPtrOuter.Name == nil { 1309 break 1310 } 1311 1312 return e.complexity.PtrToPtrOuter.Name(childComplexity), true 1313 1314 case "PtrToPtrOuter.stupidInner": 1315 if e.complexity.PtrToPtrOuter.StupidInner == nil { 1316 break 1317 } 1318 1319 return e.complexity.PtrToPtrOuter.StupidInner(childComplexity), true 1320 1321 case "PtrToSliceContainer.ptrToSlice": 1322 if e.complexity.PtrToSliceContainer.PtrToSlice == nil { 1323 break 1324 } 1325 1326 return e.complexity.PtrToSliceContainer.PtrToSlice(childComplexity), true 1327 1328 case "Query.animal": 1329 if e.complexity.Query.Animal == nil { 1330 break 1331 } 1332 1333 return e.complexity.Query.Animal(childComplexity), true 1334 1335 case "Query.autobind": 1336 if e.complexity.Query.Autobind == nil { 1337 break 1338 } 1339 1340 return e.complexity.Query.Autobind(childComplexity), true 1341 1342 case "Query.collision": 1343 if e.complexity.Query.Collision == nil { 1344 break 1345 } 1346 1347 return e.complexity.Query.Collision(childComplexity), true 1348 1349 case "Query.defaultParameters": 1350 if e.complexity.Query.DefaultParameters == nil { 1351 break 1352 } 1353 1354 args, err := ec.field_Query_defaultParameters_args(context.TODO(), rawArgs) 1355 if err != nil { 1356 return 0, false 1357 } 1358 1359 return e.complexity.Query.DefaultParameters(childComplexity, args["falsyBoolean"].(*bool), args["truthyBoolean"].(*bool)), true 1360 1361 case "Query.defaultScalar": 1362 if e.complexity.Query.DefaultScalar == nil { 1363 break 1364 } 1365 1366 args, err := ec.field_Query_defaultScalar_args(context.TODO(), rawArgs) 1367 if err != nil { 1368 return 0, false 1369 } 1370 1371 return e.complexity.Query.DefaultScalar(childComplexity, args["arg"].(string)), true 1372 1373 case "Query.deferCase1": 1374 if e.complexity.Query.DeferCase1 == nil { 1375 break 1376 } 1377 1378 return e.complexity.Query.DeferCase1(childComplexity), true 1379 1380 case "Query.deferCase2": 1381 if e.complexity.Query.DeferCase2 == nil { 1382 break 1383 } 1384 1385 return e.complexity.Query.DeferCase2(childComplexity), true 1386 1387 case "Query.deprecatedField": 1388 if e.complexity.Query.DeprecatedField == nil { 1389 break 1390 } 1391 1392 return e.complexity.Query.DeprecatedField(childComplexity), true 1393 1394 case "Query.directiveArg": 1395 if e.complexity.Query.DirectiveArg == nil { 1396 break 1397 } 1398 1399 args, err := ec.field_Query_directiveArg_args(context.TODO(), rawArgs) 1400 if err != nil { 1401 return 0, false 1402 } 1403 1404 return e.complexity.Query.DirectiveArg(childComplexity, args["arg"].(string)), true 1405 1406 case "Query.directiveDouble": 1407 if e.complexity.Query.DirectiveDouble == nil { 1408 break 1409 } 1410 1411 return e.complexity.Query.DirectiveDouble(childComplexity), true 1412 1413 case "Query.directiveField": 1414 if e.complexity.Query.DirectiveField == nil { 1415 break 1416 } 1417 1418 return e.complexity.Query.DirectiveField(childComplexity), true 1419 1420 case "Query.directiveFieldDef": 1421 if e.complexity.Query.DirectiveFieldDef == nil { 1422 break 1423 } 1424 1425 args, err := ec.field_Query_directiveFieldDef_args(context.TODO(), rawArgs) 1426 if err != nil { 1427 return 0, false 1428 } 1429 1430 return e.complexity.Query.DirectiveFieldDef(childComplexity, args["ret"].(string)), true 1431 1432 case "Query.directiveInput": 1433 if e.complexity.Query.DirectiveInput == nil { 1434 break 1435 } 1436 1437 args, err := ec.field_Query_directiveInput_args(context.TODO(), rawArgs) 1438 if err != nil { 1439 return 0, false 1440 } 1441 1442 return e.complexity.Query.DirectiveInput(childComplexity, args["arg"].(InputDirectives)), true 1443 1444 case "Query.directiveInputNullable": 1445 if e.complexity.Query.DirectiveInputNullable == nil { 1446 break 1447 } 1448 1449 args, err := ec.field_Query_directiveInputNullable_args(context.TODO(), rawArgs) 1450 if err != nil { 1451 return 0, false 1452 } 1453 1454 return e.complexity.Query.DirectiveInputNullable(childComplexity, args["arg"].(*InputDirectives)), true 1455 1456 case "Query.directiveInputType": 1457 if e.complexity.Query.DirectiveInputType == nil { 1458 break 1459 } 1460 1461 args, err := ec.field_Query_directiveInputType_args(context.TODO(), rawArgs) 1462 if err != nil { 1463 return 0, false 1464 } 1465 1466 return e.complexity.Query.DirectiveInputType(childComplexity, args["arg"].(InnerInput)), true 1467 1468 case "Query.directiveNullableArg": 1469 if e.complexity.Query.DirectiveNullableArg == nil { 1470 break 1471 } 1472 1473 args, err := ec.field_Query_directiveNullableArg_args(context.TODO(), rawArgs) 1474 if err != nil { 1475 return 0, false 1476 } 1477 1478 return e.complexity.Query.DirectiveNullableArg(childComplexity, args["arg"].(*int), args["arg2"].(*int), args["arg3"].(*string)), true 1479 1480 case "Query.directiveObject": 1481 if e.complexity.Query.DirectiveObject == nil { 1482 break 1483 } 1484 1485 return e.complexity.Query.DirectiveObject(childComplexity), true 1486 1487 case "Query.directiveObjectWithCustomGoModel": 1488 if e.complexity.Query.DirectiveObjectWithCustomGoModel == nil { 1489 break 1490 } 1491 1492 return e.complexity.Query.DirectiveObjectWithCustomGoModel(childComplexity), true 1493 1494 case "Query.directiveUnimplemented": 1495 if e.complexity.Query.DirectiveUnimplemented == nil { 1496 break 1497 } 1498 1499 return e.complexity.Query.DirectiveUnimplemented(childComplexity), true 1500 1501 case "Query.dog": 1502 if e.complexity.Query.Dog == nil { 1503 break 1504 } 1505 1506 return e.complexity.Query.Dog(childComplexity), true 1507 1508 case "Query.embeddedCase1": 1509 if e.complexity.Query.EmbeddedCase1 == nil { 1510 break 1511 } 1512 1513 return e.complexity.Query.EmbeddedCase1(childComplexity), true 1514 1515 case "Query.embeddedCase2": 1516 if e.complexity.Query.EmbeddedCase2 == nil { 1517 break 1518 } 1519 1520 return e.complexity.Query.EmbeddedCase2(childComplexity), true 1521 1522 case "Query.embeddedCase3": 1523 if e.complexity.Query.EmbeddedCase3 == nil { 1524 break 1525 } 1526 1527 return e.complexity.Query.EmbeddedCase3(childComplexity), true 1528 1529 case "Query.enumInInput": 1530 if e.complexity.Query.EnumInInput == nil { 1531 break 1532 } 1533 1534 args, err := ec.field_Query_enumInInput_args(context.TODO(), rawArgs) 1535 if err != nil { 1536 return 0, false 1537 } 1538 1539 return e.complexity.Query.EnumInInput(childComplexity, args["input"].(*InputWithEnumValue)), true 1540 1541 case "Query.errorBubble": 1542 if e.complexity.Query.ErrorBubble == nil { 1543 break 1544 } 1545 1546 return e.complexity.Query.ErrorBubble(childComplexity), true 1547 1548 case "Query.errorBubbleList": 1549 if e.complexity.Query.ErrorBubbleList == nil { 1550 break 1551 } 1552 1553 return e.complexity.Query.ErrorBubbleList(childComplexity), true 1554 1555 case "Query.errorList": 1556 if e.complexity.Query.ErrorList == nil { 1557 break 1558 } 1559 1560 return e.complexity.Query.ErrorList(childComplexity), true 1561 1562 case "Query.errors": 1563 if e.complexity.Query.Errors == nil { 1564 break 1565 } 1566 1567 return e.complexity.Query.Errors(childComplexity), true 1568 1569 case "Query.fallback": 1570 if e.complexity.Query.Fallback == nil { 1571 break 1572 } 1573 1574 args, err := ec.field_Query_fallback_args(context.TODO(), rawArgs) 1575 if err != nil { 1576 return 0, false 1577 } 1578 1579 return e.complexity.Query.Fallback(childComplexity, args["arg"].(FallbackToStringEncoding)), true 1580 1581 case "Query.infinity": 1582 if e.complexity.Query.Infinity == nil { 1583 break 1584 } 1585 1586 return e.complexity.Query.Infinity(childComplexity), true 1587 1588 case "Query.inputNullableSlice": 1589 if e.complexity.Query.InputNullableSlice == nil { 1590 break 1591 } 1592 1593 args, err := ec.field_Query_inputNullableSlice_args(context.TODO(), rawArgs) 1594 if err != nil { 1595 return 0, false 1596 } 1597 1598 return e.complexity.Query.InputNullableSlice(childComplexity, args["arg"].([]string)), true 1599 1600 case "Query.inputOmittable": 1601 if e.complexity.Query.InputOmittable == nil { 1602 break 1603 } 1604 1605 args, err := ec.field_Query_inputOmittable_args(context.TODO(), rawArgs) 1606 if err != nil { 1607 return 0, false 1608 } 1609 1610 return e.complexity.Query.InputOmittable(childComplexity, args["arg"].(OmittableInput)), true 1611 1612 case "Query.inputSlice": 1613 if e.complexity.Query.InputSlice == nil { 1614 break 1615 } 1616 1617 args, err := ec.field_Query_inputSlice_args(context.TODO(), rawArgs) 1618 if err != nil { 1619 return 0, false 1620 } 1621 1622 return e.complexity.Query.InputSlice(childComplexity, args["arg"].([]string)), true 1623 1624 case "Query.invalid": 1625 if e.complexity.Query.Invalid == nil { 1626 break 1627 } 1628 1629 return e.complexity.Query.Invalid(childComplexity), true 1630 1631 case "Query.invalidIdentifier": 1632 if e.complexity.Query.InvalidIdentifier == nil { 1633 break 1634 } 1635 1636 return e.complexity.Query.InvalidIdentifier(childComplexity), true 1637 1638 case "Query.issue896a": 1639 if e.complexity.Query.Issue896a == nil { 1640 break 1641 } 1642 1643 return e.complexity.Query.Issue896a(childComplexity), true 1644 1645 case "Query.mapInput": 1646 if e.complexity.Query.MapInput == nil { 1647 break 1648 } 1649 1650 args, err := ec.field_Query_mapInput_args(context.TODO(), rawArgs) 1651 if err != nil { 1652 return 0, false 1653 } 1654 1655 return e.complexity.Query.MapInput(childComplexity, args["input"].(map[string]interface{})), true 1656 1657 case "Query.mapNestedStringInterface": 1658 if e.complexity.Query.MapNestedStringInterface == nil { 1659 break 1660 } 1661 1662 args, err := ec.field_Query_mapNestedStringInterface_args(context.TODO(), rawArgs) 1663 if err != nil { 1664 return 0, false 1665 } 1666 1667 return e.complexity.Query.MapNestedStringInterface(childComplexity, args["in"].(*NestedMapInput)), true 1668 1669 case "Query.mapStringInterface": 1670 if e.complexity.Query.MapStringInterface == nil { 1671 break 1672 } 1673 1674 args, err := ec.field_Query_mapStringInterface_args(context.TODO(), rawArgs) 1675 if err != nil { 1676 return 0, false 1677 } 1678 1679 return e.complexity.Query.MapStringInterface(childComplexity, args["in"].(map[string]interface{})), true 1680 1681 case "Query.modelMethods": 1682 if e.complexity.Query.ModelMethods == nil { 1683 break 1684 } 1685 1686 return e.complexity.Query.ModelMethods(childComplexity), true 1687 1688 case "Query.nestedInputs": 1689 if e.complexity.Query.NestedInputs == nil { 1690 break 1691 } 1692 1693 args, err := ec.field_Query_nestedInputs_args(context.TODO(), rawArgs) 1694 if err != nil { 1695 return 0, false 1696 } 1697 1698 return e.complexity.Query.NestedInputs(childComplexity, args["input"].([][]*OuterInput)), true 1699 1700 case "Query.nestedOutputs": 1701 if e.complexity.Query.NestedOutputs == nil { 1702 break 1703 } 1704 1705 return e.complexity.Query.NestedOutputs(childComplexity), true 1706 1707 case "Query.noShape": 1708 if e.complexity.Query.NoShape == nil { 1709 break 1710 } 1711 1712 return e.complexity.Query.NoShape(childComplexity), true 1713 1714 case "Query.noShapeTypedNil": 1715 if e.complexity.Query.NoShapeTypedNil == nil { 1716 break 1717 } 1718 1719 return e.complexity.Query.NoShapeTypedNil(childComplexity), true 1720 1721 case "Query.node": 1722 if e.complexity.Query.Node == nil { 1723 break 1724 } 1725 1726 return e.complexity.Query.Node(childComplexity), true 1727 1728 case "Query.notAnInterface": 1729 if e.complexity.Query.NotAnInterface == nil { 1730 break 1731 } 1732 1733 return e.complexity.Query.NotAnInterface(childComplexity), true 1734 1735 case "Query.nullableArg": 1736 if e.complexity.Query.NullableArg == nil { 1737 break 1738 } 1739 1740 args, err := ec.field_Query_nullableArg_args(context.TODO(), rawArgs) 1741 if err != nil { 1742 return 0, false 1743 } 1744 1745 return e.complexity.Query.NullableArg(childComplexity, args["arg"].(*int)), true 1746 1747 case "Query.optionalUnion": 1748 if e.complexity.Query.OptionalUnion == nil { 1749 break 1750 } 1751 1752 return e.complexity.Query.OptionalUnion(childComplexity), true 1753 1754 case "Query.overlapping": 1755 if e.complexity.Query.Overlapping == nil { 1756 break 1757 } 1758 1759 return e.complexity.Query.Overlapping(childComplexity), true 1760 1761 case "Query.panics": 1762 if e.complexity.Query.Panics == nil { 1763 break 1764 } 1765 1766 return e.complexity.Query.Panics(childComplexity), true 1767 1768 case "Query.primitiveObject": 1769 if e.complexity.Query.PrimitiveObject == nil { 1770 break 1771 } 1772 1773 return e.complexity.Query.PrimitiveObject(childComplexity), true 1774 1775 case "Query.primitiveStringObject": 1776 if e.complexity.Query.PrimitiveStringObject == nil { 1777 break 1778 } 1779 1780 return e.complexity.Query.PrimitiveStringObject(childComplexity), true 1781 1782 case "Query.ptrToAnyContainer": 1783 if e.complexity.Query.PtrToAnyContainer == nil { 1784 break 1785 } 1786 1787 return e.complexity.Query.PtrToAnyContainer(childComplexity), true 1788 1789 case "Query.ptrToSliceContainer": 1790 if e.complexity.Query.PtrToSliceContainer == nil { 1791 break 1792 } 1793 1794 return e.complexity.Query.PtrToSliceContainer(childComplexity), true 1795 1796 case "Query.recursive": 1797 if e.complexity.Query.Recursive == nil { 1798 break 1799 } 1800 1801 args, err := ec.field_Query_recursive_args(context.TODO(), rawArgs) 1802 if err != nil { 1803 return 0, false 1804 } 1805 1806 return e.complexity.Query.Recursive(childComplexity, args["input"].(*RecursiveInputSlice)), true 1807 1808 case "Query.scalarSlice": 1809 if e.complexity.Query.ScalarSlice == nil { 1810 break 1811 } 1812 1813 return e.complexity.Query.ScalarSlice(childComplexity), true 1814 1815 case "Query.shapeUnion": 1816 if e.complexity.Query.ShapeUnion == nil { 1817 break 1818 } 1819 1820 return e.complexity.Query.ShapeUnion(childComplexity), true 1821 1822 case "Query.shapes": 1823 if e.complexity.Query.Shapes == nil { 1824 break 1825 } 1826 1827 return e.complexity.Query.Shapes(childComplexity), true 1828 1829 case "Query.slices": 1830 if e.complexity.Query.Slices == nil { 1831 break 1832 } 1833 1834 return e.complexity.Query.Slices(childComplexity), true 1835 1836 case "Query.stringFromContextFunction": 1837 if e.complexity.Query.StringFromContextFunction == nil { 1838 break 1839 } 1840 1841 return e.complexity.Query.StringFromContextFunction(childComplexity), true 1842 1843 case "Query.stringFromContextInterface": 1844 if e.complexity.Query.StringFromContextInterface == nil { 1845 break 1846 } 1847 1848 return e.complexity.Query.StringFromContextInterface(childComplexity), true 1849 1850 case "Query.user": 1851 if e.complexity.Query.User == nil { 1852 break 1853 } 1854 1855 args, err := ec.field_Query_user_args(context.TODO(), rawArgs) 1856 if err != nil { 1857 return 0, false 1858 } 1859 1860 return e.complexity.Query.User(childComplexity, args["id"].(int)), true 1861 1862 case "Query.vOkCaseNil": 1863 if e.complexity.Query.VOkCaseNil == nil { 1864 break 1865 } 1866 1867 return e.complexity.Query.VOkCaseNil(childComplexity), true 1868 1869 case "Query.vOkCaseValue": 1870 if e.complexity.Query.VOkCaseValue == nil { 1871 break 1872 } 1873 1874 return e.complexity.Query.VOkCaseValue(childComplexity), true 1875 1876 case "Query.valid": 1877 if e.complexity.Query.Valid == nil { 1878 break 1879 } 1880 1881 return e.complexity.Query.Valid(childComplexity), true 1882 1883 case "Query.validType": 1884 if e.complexity.Query.ValidType == nil { 1885 break 1886 } 1887 1888 return e.complexity.Query.ValidType(childComplexity), true 1889 1890 case "Query.variadicModel": 1891 if e.complexity.Query.VariadicModel == nil { 1892 break 1893 } 1894 1895 return e.complexity.Query.VariadicModel(childComplexity), true 1896 1897 case "Query.wrappedMap": 1898 if e.complexity.Query.WrappedMap == nil { 1899 break 1900 } 1901 1902 return e.complexity.Query.WrappedMap(childComplexity), true 1903 1904 case "Query.wrappedScalar": 1905 if e.complexity.Query.WrappedScalar == nil { 1906 break 1907 } 1908 1909 return e.complexity.Query.WrappedScalar(childComplexity), true 1910 1911 case "Query.wrappedSlice": 1912 if e.complexity.Query.WrappedSlice == nil { 1913 break 1914 } 1915 1916 return e.complexity.Query.WrappedSlice(childComplexity), true 1917 1918 case "Query.wrappedStruct": 1919 if e.complexity.Query.WrappedStruct == nil { 1920 break 1921 } 1922 1923 return e.complexity.Query.WrappedStruct(childComplexity), true 1924 1925 case "Rectangle.area": 1926 if e.complexity.Rectangle.Area == nil { 1927 break 1928 } 1929 1930 return e.complexity.Rectangle.Area(childComplexity), true 1931 1932 case "Rectangle.coordinates": 1933 if e.complexity.Rectangle.Coordinates == nil { 1934 break 1935 } 1936 1937 return e.complexity.Rectangle.Coordinates(childComplexity), true 1938 1939 case "Rectangle.length": 1940 if e.complexity.Rectangle.Length == nil { 1941 break 1942 } 1943 1944 return e.complexity.Rectangle.Length(childComplexity), true 1945 1946 case "Rectangle.width": 1947 if e.complexity.Rectangle.Width == nil { 1948 break 1949 } 1950 1951 return e.complexity.Rectangle.Width(childComplexity), true 1952 1953 case "Size.height": 1954 if e.complexity.Size.Height == nil { 1955 break 1956 } 1957 1958 return e.complexity.Size.Height(childComplexity), true 1959 1960 case "Size.weight": 1961 if e.complexity.Size.Weight == nil { 1962 break 1963 } 1964 1965 return e.complexity.Size.Weight(childComplexity), true 1966 1967 case "Slices.test1": 1968 if e.complexity.Slices.Test1 == nil { 1969 break 1970 } 1971 1972 return e.complexity.Slices.Test1(childComplexity), true 1973 1974 case "Slices.test2": 1975 if e.complexity.Slices.Test2 == nil { 1976 break 1977 } 1978 1979 return e.complexity.Slices.Test2(childComplexity), true 1980 1981 case "Slices.test3": 1982 if e.complexity.Slices.Test3 == nil { 1983 break 1984 } 1985 1986 return e.complexity.Slices.Test3(childComplexity), true 1987 1988 case "Slices.test4": 1989 if e.complexity.Slices.Test4 == nil { 1990 break 1991 } 1992 1993 return e.complexity.Slices.Test4(childComplexity), true 1994 1995 case "Subscription.directiveArg": 1996 if e.complexity.Subscription.DirectiveArg == nil { 1997 break 1998 } 1999 2000 args, err := ec.field_Subscription_directiveArg_args(context.TODO(), rawArgs) 2001 if err != nil { 2002 return 0, false 2003 } 2004 2005 return e.complexity.Subscription.DirectiveArg(childComplexity, args["arg"].(string)), true 2006 2007 case "Subscription.directiveDouble": 2008 if e.complexity.Subscription.DirectiveDouble == nil { 2009 break 2010 } 2011 2012 return e.complexity.Subscription.DirectiveDouble(childComplexity), true 2013 2014 case "Subscription.directiveNullableArg": 2015 if e.complexity.Subscription.DirectiveNullableArg == nil { 2016 break 2017 } 2018 2019 args, err := ec.field_Subscription_directiveNullableArg_args(context.TODO(), rawArgs) 2020 if err != nil { 2021 return 0, false 2022 } 2023 2024 return e.complexity.Subscription.DirectiveNullableArg(childComplexity, args["arg"].(*int), args["arg2"].(*int), args["arg3"].(*string)), true 2025 2026 case "Subscription.directiveUnimplemented": 2027 if e.complexity.Subscription.DirectiveUnimplemented == nil { 2028 break 2029 } 2030 2031 return e.complexity.Subscription.DirectiveUnimplemented(childComplexity), true 2032 2033 case "Subscription.errorRequired": 2034 if e.complexity.Subscription.ErrorRequired == nil { 2035 break 2036 } 2037 2038 return e.complexity.Subscription.ErrorRequired(childComplexity), true 2039 2040 case "Subscription.initPayload": 2041 if e.complexity.Subscription.InitPayload == nil { 2042 break 2043 } 2044 2045 return e.complexity.Subscription.InitPayload(childComplexity), true 2046 2047 case "Subscription.issue896b": 2048 if e.complexity.Subscription.Issue896b == nil { 2049 break 2050 } 2051 2052 return e.complexity.Subscription.Issue896b(childComplexity), true 2053 2054 case "Subscription.updated": 2055 if e.complexity.Subscription.Updated == nil { 2056 break 2057 } 2058 2059 return e.complexity.Subscription.Updated(childComplexity), true 2060 2061 case "User.created": 2062 if e.complexity.User.Created == nil { 2063 break 2064 } 2065 2066 return e.complexity.User.Created(childComplexity), true 2067 2068 case "User.friends": 2069 if e.complexity.User.Friends == nil { 2070 break 2071 } 2072 2073 return e.complexity.User.Friends(childComplexity), true 2074 2075 case "User.id": 2076 if e.complexity.User.ID == nil { 2077 break 2078 } 2079 2080 return e.complexity.User.ID(childComplexity), true 2081 2082 case "User.pets": 2083 if e.complexity.User.Pets == nil { 2084 break 2085 } 2086 2087 args, err := ec.field_User_pets_args(context.TODO(), rawArgs) 2088 if err != nil { 2089 return 0, false 2090 } 2091 2092 return e.complexity.User.Pets(childComplexity, args["limit"].(*int)), true 2093 2094 case "User.updated": 2095 if e.complexity.User.Updated == nil { 2096 break 2097 } 2098 2099 return e.complexity.User.Updated(childComplexity), true 2100 2101 case "VOkCaseNil.value": 2102 if e.complexity.VOkCaseNil.Value == nil { 2103 break 2104 } 2105 2106 return e.complexity.VOkCaseNil.Value(childComplexity), true 2107 2108 case "VOkCaseValue.value": 2109 if e.complexity.VOkCaseValue.Value == nil { 2110 break 2111 } 2112 2113 return e.complexity.VOkCaseValue.Value(childComplexity), true 2114 2115 case "ValidType.differentCase": 2116 if e.complexity.ValidType.DifferentCase == nil { 2117 break 2118 } 2119 2120 return e.complexity.ValidType.DifferentCase(childComplexity), true 2121 2122 case "ValidType.different_case": 2123 if e.complexity.ValidType.DifferentCaseOld == nil { 2124 break 2125 } 2126 2127 return e.complexity.ValidType.DifferentCaseOld(childComplexity), true 2128 2129 case "ValidType.validArgs": 2130 if e.complexity.ValidType.ValidArgs == nil { 2131 break 2132 } 2133 2134 args, err := ec.field_ValidType_validArgs_args(context.TODO(), rawArgs) 2135 if err != nil { 2136 return 0, false 2137 } 2138 2139 return e.complexity.ValidType.ValidArgs(childComplexity, args["break"].(string), args["default"].(string), args["func"].(string), args["interface"].(string), args["select"].(string), args["case"].(string), args["defer"].(string), args["go"].(string), args["map"].(string), args["struct"].(string), args["chan"].(string), args["else"].(string), args["goto"].(string), args["package"].(string), args["switch"].(string), args["const"].(string), args["fallthrough"].(string), args["if"].(string), args["range"].(string), args["type"].(string), args["continue"].(string), args["for"].(string), args["import"].(string), args["return"].(string), args["var"].(string), args["_"].(string)), true 2140 2141 case "ValidType.validInputKeywords": 2142 if e.complexity.ValidType.ValidInputKeywords == nil { 2143 break 2144 } 2145 2146 args, err := ec.field_ValidType_validInputKeywords_args(context.TODO(), rawArgs) 2147 if err != nil { 2148 return 0, false 2149 } 2150 2151 return e.complexity.ValidType.ValidInputKeywords(childComplexity, args["input"].(*ValidInput)), true 2152 2153 case "VariadicModel.value": 2154 if e.complexity.VariadicModel.Value == nil { 2155 break 2156 } 2157 2158 args, err := ec.field_VariadicModel_value_args(context.TODO(), rawArgs) 2159 if err != nil { 2160 return 0, false 2161 } 2162 2163 return e.complexity.VariadicModel.Value(childComplexity, args["rank"].(int)), true 2164 2165 case "WrappedMap.get": 2166 if e.complexity.WrappedMap.Get == nil { 2167 break 2168 } 2169 2170 args, err := ec.field_WrappedMap_get_args(context.TODO(), rawArgs) 2171 if err != nil { 2172 return 0, false 2173 } 2174 2175 return e.complexity.WrappedMap.Get(childComplexity, args["key"].(string)), true 2176 2177 case "WrappedSlice.get": 2178 if e.complexity.WrappedSlice.Get == nil { 2179 break 2180 } 2181 2182 args, err := ec.field_WrappedSlice_get_args(context.TODO(), rawArgs) 2183 if err != nil { 2184 return 0, false 2185 } 2186 2187 return e.complexity.WrappedSlice.Get(childComplexity, args["idx"].(int)), true 2188 2189 case "WrappedStruct.desc": 2190 if e.complexity.WrappedStruct.Desc == nil { 2191 break 2192 } 2193 2194 return e.complexity.WrappedStruct.Desc(childComplexity), true 2195 2196 case "WrappedStruct.name": 2197 if e.complexity.WrappedStruct.Name == nil { 2198 break 2199 } 2200 2201 return e.complexity.WrappedStruct.Name(childComplexity), true 2202 2203 case "XXIt.id": 2204 if e.complexity.XXIt.ID == nil { 2205 break 2206 } 2207 2208 return e.complexity.XXIt.ID(childComplexity), true 2209 2210 case "XxIt.id": 2211 if e.complexity.XxIt.ID == nil { 2212 break 2213 } 2214 2215 return e.complexity.XxIt.ID(childComplexity), true 2216 2217 case "asdfIt.id": 2218 if e.complexity.AsdfIt.ID == nil { 2219 break 2220 } 2221 2222 return e.complexity.AsdfIt.ID(childComplexity), true 2223 2224 case "iIt.id": 2225 if e.complexity.IIt.ID == nil { 2226 break 2227 } 2228 2229 return e.complexity.IIt.ID(childComplexity), true 2230 2231 } 2232 return 0, false 2233 } 2234 2235 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { 2236 rc := graphql.GetOperationContext(ctx) 2237 ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} 2238 inputUnmarshalMap := graphql.BuildUnmarshalerMap( 2239 ec.unmarshalInputDefaultInput, 2240 ec.unmarshalInputFieldsOrderInput, 2241 ec.unmarshalInputInnerDirectives, 2242 ec.unmarshalInputInnerInput, 2243 ec.unmarshalInputInputDirectives, 2244 ec.unmarshalInputInputWithEnumValue, 2245 ec.unmarshalInputNestedInput, 2246 ec.unmarshalInputNestedMapInput, 2247 ec.unmarshalInputOmittableInput, 2248 ec.unmarshalInputOuterInput, 2249 ec.unmarshalInputRecursiveInputSlice, 2250 ec.unmarshalInputSpecialInput, 2251 ec.unmarshalInputUpdatePtrToPtrInner, 2252 ec.unmarshalInputUpdatePtrToPtrOuter, 2253 ec.unmarshalInputValidInput, 2254 ) 2255 first := true 2256 2257 switch rc.Operation.Operation { 2258 case ast.Query: 2259 return func(ctx context.Context) *graphql.Response { 2260 var response graphql.Response 2261 var data graphql.Marshaler 2262 if first { 2263 first = false 2264 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 2265 data = ec._Query(ctx, rc.Operation.SelectionSet) 2266 } else { 2267 if atomic.LoadInt32(&ec.pendingDeferred) > 0 { 2268 result := <-ec.deferredResults 2269 atomic.AddInt32(&ec.pendingDeferred, -1) 2270 data = result.Result 2271 response.Path = result.Path 2272 response.Label = result.Label 2273 response.Errors = result.Errors 2274 } else { 2275 return nil 2276 } 2277 } 2278 var buf bytes.Buffer 2279 data.MarshalGQL(&buf) 2280 response.Data = buf.Bytes() 2281 if atomic.LoadInt32(&ec.deferred) > 0 { 2282 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 2283 response.HasNext = &hasNext 2284 } 2285 2286 return &response 2287 } 2288 case ast.Mutation: 2289 return func(ctx context.Context) *graphql.Response { 2290 if !first { 2291 return nil 2292 } 2293 first = false 2294 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 2295 data := ec._Mutation(ctx, rc.Operation.SelectionSet) 2296 var buf bytes.Buffer 2297 data.MarshalGQL(&buf) 2298 2299 return &graphql.Response{ 2300 Data: buf.Bytes(), 2301 } 2302 } 2303 case ast.Subscription: 2304 next := ec._Subscription(ctx, rc.Operation.SelectionSet) 2305 2306 var buf bytes.Buffer 2307 return func(ctx context.Context) *graphql.Response { 2308 buf.Reset() 2309 data := next(ctx) 2310 2311 if data == nil { 2312 return nil 2313 } 2314 data.MarshalGQL(&buf) 2315 2316 return &graphql.Response{ 2317 Data: buf.Bytes(), 2318 } 2319 } 2320 2321 default: 2322 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) 2323 } 2324 } 2325 2326 type executionContext struct { 2327 *graphql.OperationContext 2328 *executableSchema 2329 deferred int32 2330 pendingDeferred int32 2331 deferredResults chan graphql.DeferredResult 2332 } 2333 2334 func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { 2335 atomic.AddInt32(&ec.pendingDeferred, 1) 2336 go func() { 2337 ctx := graphql.WithFreshResponseContext(dg.Context) 2338 dg.FieldSet.Dispatch(ctx) 2339 ds := graphql.DeferredResult{ 2340 Path: dg.Path, 2341 Label: dg.Label, 2342 Result: dg.FieldSet, 2343 Errors: graphql.GetErrors(ctx), 2344 } 2345 // null fields should bubble up 2346 if dg.FieldSet.Invalids > 0 { 2347 ds.Result = graphql.Null 2348 } 2349 ec.deferredResults <- ds 2350 }() 2351 } 2352 2353 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { 2354 if ec.DisableIntrospection { 2355 return nil, errors.New("introspection disabled") 2356 } 2357 return introspection.WrapSchema(parsedSchema), nil 2358 } 2359 2360 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { 2361 if ec.DisableIntrospection { 2362 return nil, errors.New("introspection disabled") 2363 } 2364 return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil 2365 } 2366 2367 //go:embed "builtinscalar.graphql" "complexity.graphql" "defaults.graphql" "defer.graphql" "directive.graphql" "embedded.graphql" "enum.graphql" "fields_order.graphql" "interfaces.graphql" "issue896.graphql" "loops.graphql" "maps.graphql" "mutation_with_custom_scalar.graphql" "nulls.graphql" "panics.graphql" "primitive_objects.graphql" "ptr_to_any.graphql" "ptr_to_ptr_input.graphql" "ptr_to_slice.graphql" "scalar_context.graphql" "scalar_default.graphql" "schema.graphql" "slices.graphql" "typefallback.graphql" "useptr.graphql" "v-ok.graphql" "validtypes.graphql" "variadic.graphql" "weird_type_cases.graphql" "wrapped_type.graphql" 2368 var sourcesFS embed.FS 2369 2370 func sourceData(filename string) string { 2371 data, err := sourcesFS.ReadFile(filename) 2372 if err != nil { 2373 panic(fmt.Sprintf("codegen problem: %s not available", filename)) 2374 } 2375 return string(data) 2376 } 2377 2378 var sources = []*ast.Source{ 2379 {Name: "builtinscalar.graphql", Input: sourceData("builtinscalar.graphql"), BuiltIn: false}, 2380 {Name: "complexity.graphql", Input: sourceData("complexity.graphql"), BuiltIn: false}, 2381 {Name: "defaults.graphql", Input: sourceData("defaults.graphql"), BuiltIn: false}, 2382 {Name: "defer.graphql", Input: sourceData("defer.graphql"), BuiltIn: false}, 2383 {Name: "directive.graphql", Input: sourceData("directive.graphql"), BuiltIn: false}, 2384 {Name: "embedded.graphql", Input: sourceData("embedded.graphql"), BuiltIn: false}, 2385 {Name: "enum.graphql", Input: sourceData("enum.graphql"), BuiltIn: false}, 2386 {Name: "fields_order.graphql", Input: sourceData("fields_order.graphql"), BuiltIn: false}, 2387 {Name: "interfaces.graphql", Input: sourceData("interfaces.graphql"), BuiltIn: false}, 2388 {Name: "issue896.graphql", Input: sourceData("issue896.graphql"), BuiltIn: false}, 2389 {Name: "loops.graphql", Input: sourceData("loops.graphql"), BuiltIn: false}, 2390 {Name: "maps.graphql", Input: sourceData("maps.graphql"), BuiltIn: false}, 2391 {Name: "mutation_with_custom_scalar.graphql", Input: sourceData("mutation_with_custom_scalar.graphql"), BuiltIn: false}, 2392 {Name: "nulls.graphql", Input: sourceData("nulls.graphql"), BuiltIn: false}, 2393 {Name: "panics.graphql", Input: sourceData("panics.graphql"), BuiltIn: false}, 2394 {Name: "primitive_objects.graphql", Input: sourceData("primitive_objects.graphql"), BuiltIn: false}, 2395 {Name: "ptr_to_any.graphql", Input: sourceData("ptr_to_any.graphql"), BuiltIn: false}, 2396 {Name: "ptr_to_ptr_input.graphql", Input: sourceData("ptr_to_ptr_input.graphql"), BuiltIn: false}, 2397 {Name: "ptr_to_slice.graphql", Input: sourceData("ptr_to_slice.graphql"), BuiltIn: false}, 2398 {Name: "scalar_context.graphql", Input: sourceData("scalar_context.graphql"), BuiltIn: false}, 2399 {Name: "scalar_default.graphql", Input: sourceData("scalar_default.graphql"), BuiltIn: false}, 2400 {Name: "schema.graphql", Input: sourceData("schema.graphql"), BuiltIn: false}, 2401 {Name: "slices.graphql", Input: sourceData("slices.graphql"), BuiltIn: false}, 2402 {Name: "typefallback.graphql", Input: sourceData("typefallback.graphql"), BuiltIn: false}, 2403 {Name: "useptr.graphql", Input: sourceData("useptr.graphql"), BuiltIn: false}, 2404 {Name: "v-ok.graphql", Input: sourceData("v-ok.graphql"), BuiltIn: false}, 2405 {Name: "validtypes.graphql", Input: sourceData("validtypes.graphql"), BuiltIn: false}, 2406 {Name: "variadic.graphql", Input: sourceData("variadic.graphql"), BuiltIn: false}, 2407 {Name: "weird_type_cases.graphql", Input: sourceData("weird_type_cases.graphql"), BuiltIn: false}, 2408 {Name: "wrapped_type.graphql", Input: sourceData("wrapped_type.graphql"), BuiltIn: false}, 2409 } 2410 var parsedSchema = gqlparser.MustLoadSchema(sources...) 2411 2412 // endregion ************************** generated!.gotpl ************************** 2413 2414 // region ***************************** args.gotpl ***************************** 2415 2416 func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2417 var err error 2418 args := map[string]interface{}{} 2419 var arg0 *bool 2420 if tmp, ok := rawArgs["if"]; ok { 2421 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("if")) 2422 arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) 2423 if err != nil { 2424 return nil, err 2425 } 2426 } 2427 args["if"] = arg0 2428 var arg1 *string 2429 if tmp, ok := rawArgs["label"]; ok { 2430 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("label")) 2431 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2432 if err != nil { 2433 return nil, err 2434 } 2435 } 2436 args["label"] = arg1 2437 return args, nil 2438 } 2439 2440 func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2441 var err error 2442 args := map[string]interface{}{} 2443 var arg0 int 2444 if tmp, ok := rawArgs["min"]; ok { 2445 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min")) 2446 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 2447 if err != nil { 2448 return nil, err 2449 } 2450 } 2451 args["min"] = arg0 2452 var arg1 *int 2453 if tmp, ok := rawArgs["max"]; ok { 2454 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max")) 2455 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2456 if err != nil { 2457 return nil, err 2458 } 2459 } 2460 args["max"] = arg1 2461 var arg2 *string 2462 if tmp, ok := rawArgs["message"]; ok { 2463 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) 2464 arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2465 if err != nil { 2466 return nil, err 2467 } 2468 } 2469 args["message"] = arg2 2470 return args, nil 2471 } 2472 2473 func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2474 var err error 2475 args := map[string]interface{}{} 2476 var arg0 string 2477 if tmp, ok := rawArgs["id"]; ok { 2478 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2479 arg0, err = ec.unmarshalNUUID2string(ctx, tmp) 2480 if err != nil { 2481 return nil, err 2482 } 2483 } 2484 args["id"] = arg0 2485 return args, nil 2486 } 2487 2488 func (ec *executionContext) dir_order1_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2489 var err error 2490 args := map[string]interface{}{} 2491 var arg0 string 2492 if tmp, ok := rawArgs["location"]; ok { 2493 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location")) 2494 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2495 if err != nil { 2496 return nil, err 2497 } 2498 } 2499 args["location"] = arg0 2500 return args, nil 2501 } 2502 2503 func (ec *executionContext) dir_order2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2504 var err error 2505 args := map[string]interface{}{} 2506 var arg0 string 2507 if tmp, ok := rawArgs["location"]; ok { 2508 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location")) 2509 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2510 if err != nil { 2511 return nil, err 2512 } 2513 } 2514 args["location"] = arg0 2515 return args, nil 2516 } 2517 2518 func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2519 var err error 2520 args := map[string]interface{}{} 2521 var arg0 *int 2522 if tmp, ok := rawArgs["min"]; ok { 2523 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min")) 2524 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2525 if err != nil { 2526 return nil, err 2527 } 2528 } 2529 args["min"] = arg0 2530 var arg1 *int 2531 if tmp, ok := rawArgs["max"]; ok { 2532 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max")) 2533 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2534 if err != nil { 2535 return nil, err 2536 } 2537 } 2538 args["max"] = arg1 2539 return args, nil 2540 } 2541 2542 func (ec *executionContext) field_Mutation_defaultInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2543 var err error 2544 args := map[string]interface{}{} 2545 var arg0 DefaultInput 2546 if tmp, ok := rawArgs["input"]; ok { 2547 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2548 arg0, err = ec.unmarshalNDefaultInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultInput(ctx, tmp) 2549 if err != nil { 2550 return nil, err 2551 } 2552 } 2553 args["input"] = arg0 2554 return args, nil 2555 } 2556 2557 func (ec *executionContext) field_Mutation_overrideValueViaInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2558 var err error 2559 args := map[string]interface{}{} 2560 var arg0 FieldsOrderInput 2561 if tmp, ok := rawArgs["input"]; ok { 2562 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2563 arg0, err = ec.unmarshalNFieldsOrderInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFieldsOrderInput(ctx, tmp) 2564 if err != nil { 2565 return nil, err 2566 } 2567 } 2568 args["input"] = arg0 2569 return args, nil 2570 } 2571 2572 func (ec *executionContext) field_Mutation_updatePtrToPtr_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2573 var err error 2574 args := map[string]interface{}{} 2575 var arg0 UpdatePtrToPtrOuter 2576 if tmp, ok := rawArgs["input"]; ok { 2577 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2578 arg0, err = ec.unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrOuter(ctx, tmp) 2579 if err != nil { 2580 return nil, err 2581 } 2582 } 2583 args["input"] = arg0 2584 return args, nil 2585 } 2586 2587 func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2588 var err error 2589 args := map[string]interface{}{} 2590 var arg0 SpecialInput 2591 if tmp, ok := rawArgs["input"]; ok { 2592 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2593 arg0, err = ec.unmarshalNSpecialInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSpecialInput(ctx, tmp) 2594 if err != nil { 2595 return nil, err 2596 } 2597 } 2598 args["input"] = arg0 2599 return args, nil 2600 } 2601 2602 func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2603 var err error 2604 args := map[string]interface{}{} 2605 var arg0 []MarshalPanic 2606 if tmp, ok := rawArgs["u"]; ok { 2607 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("u")) 2608 arg0, err = ec.unmarshalNMarshalPanic2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx, tmp) 2609 if err != nil { 2610 return nil, err 2611 } 2612 } 2613 args["u"] = arg0 2614 return args, nil 2615 } 2616 2617 func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2618 var err error 2619 args := map[string]interface{}{} 2620 var arg0 []MarshalPanic 2621 if tmp, ok := rawArgs["u"]; ok { 2622 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("u")) 2623 arg0, err = ec.unmarshalNMarshalPanic2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx, tmp) 2624 if err != nil { 2625 return nil, err 2626 } 2627 } 2628 args["u"] = arg0 2629 return args, nil 2630 } 2631 2632 func (ec *executionContext) field_Pet_friends_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2633 var err error 2634 args := map[string]interface{}{} 2635 var arg0 *int 2636 if tmp, ok := rawArgs["limit"]; ok { 2637 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) 2638 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2639 if err != nil { 2640 return nil, err 2641 } 2642 } 2643 args["limit"] = arg0 2644 return args, nil 2645 } 2646 2647 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2648 var err error 2649 args := map[string]interface{}{} 2650 var arg0 string 2651 if tmp, ok := rawArgs["name"]; ok { 2652 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 2653 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2654 if err != nil { 2655 return nil, err 2656 } 2657 } 2658 args["name"] = arg0 2659 return args, nil 2660 } 2661 2662 func (ec *executionContext) field_Query_defaultParameters_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2663 var err error 2664 args := map[string]interface{}{} 2665 var arg0 *bool 2666 if tmp, ok := rawArgs["falsyBoolean"]; ok { 2667 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("falsyBoolean")) 2668 arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) 2669 if err != nil { 2670 return nil, err 2671 } 2672 } 2673 args["falsyBoolean"] = arg0 2674 var arg1 *bool 2675 if tmp, ok := rawArgs["truthyBoolean"]; ok { 2676 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("truthyBoolean")) 2677 arg1, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) 2678 if err != nil { 2679 return nil, err 2680 } 2681 } 2682 args["truthyBoolean"] = arg1 2683 return args, nil 2684 } 2685 2686 func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2687 var err error 2688 args := map[string]interface{}{} 2689 var arg0 string 2690 if tmp, ok := rawArgs["arg"]; ok { 2691 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2692 arg0, err = ec.unmarshalNDefaultScalarImplementation2string(ctx, tmp) 2693 if err != nil { 2694 return nil, err 2695 } 2696 } 2697 args["arg"] = arg0 2698 return args, nil 2699 } 2700 2701 func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2702 var err error 2703 args := map[string]interface{}{} 2704 var arg0 string 2705 if tmp, ok := rawArgs["arg"]; ok { 2706 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2707 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, tmp) } 2708 directive1 := func(ctx context.Context) (interface{}, error) { 2709 min, err := ec.unmarshalNInt2int(ctx, 1) 2710 if err != nil { 2711 return nil, err 2712 } 2713 max, err := ec.unmarshalOInt2ᚖint(ctx, 255) 2714 if err != nil { 2715 return nil, err 2716 } 2717 message, err := ec.unmarshalOString2ᚖstring(ctx, "invalid length") 2718 if err != nil { 2719 return nil, err 2720 } 2721 if ec.directives.Length == nil { 2722 return nil, errors.New("directive length is not implemented") 2723 } 2724 return ec.directives.Length(ctx, rawArgs, directive0, min, max, message) 2725 } 2726 2727 tmp, err = directive1(ctx) 2728 if err != nil { 2729 return nil, graphql.ErrorOnPath(ctx, err) 2730 } 2731 if data, ok := tmp.(string); ok { 2732 arg0 = data 2733 } else { 2734 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp)) 2735 } 2736 } 2737 args["arg"] = arg0 2738 return args, nil 2739 } 2740 2741 func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2742 var err error 2743 args := map[string]interface{}{} 2744 var arg0 string 2745 if tmp, ok := rawArgs["ret"]; ok { 2746 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ret")) 2747 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2748 if err != nil { 2749 return nil, err 2750 } 2751 } 2752 args["ret"] = arg0 2753 return args, nil 2754 } 2755 2756 func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2757 var err error 2758 args := map[string]interface{}{} 2759 var arg0 *InputDirectives 2760 if tmp, ok := rawArgs["arg"]; ok { 2761 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2762 arg0, err = ec.unmarshalOInputDirectives2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx, tmp) 2763 if err != nil { 2764 return nil, err 2765 } 2766 } 2767 args["arg"] = arg0 2768 return args, nil 2769 } 2770 2771 func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2772 var err error 2773 args := map[string]interface{}{} 2774 var arg0 InnerInput 2775 if tmp, ok := rawArgs["arg"]; ok { 2776 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2777 directive0 := func(ctx context.Context) (interface{}, error) { 2778 return ec.unmarshalNInnerInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx, tmp) 2779 } 2780 directive1 := func(ctx context.Context) (interface{}, error) { 2781 if ec.directives.Custom == nil { 2782 return nil, errors.New("directive custom is not implemented") 2783 } 2784 return ec.directives.Custom(ctx, rawArgs, directive0) 2785 } 2786 2787 tmp, err = directive1(ctx) 2788 if err != nil { 2789 return nil, graphql.ErrorOnPath(ctx, err) 2790 } 2791 if data, ok := tmp.(InnerInput); ok { 2792 arg0 = data 2793 } else { 2794 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be github.com/geneva/gqlgen/codegen/testserver/singlefile.InnerInput`, tmp)) 2795 } 2796 } 2797 args["arg"] = arg0 2798 return args, nil 2799 } 2800 2801 func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2802 var err error 2803 args := map[string]interface{}{} 2804 var arg0 InputDirectives 2805 if tmp, ok := rawArgs["arg"]; ok { 2806 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2807 arg0, err = ec.unmarshalNInputDirectives2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx, tmp) 2808 if err != nil { 2809 return nil, err 2810 } 2811 } 2812 args["arg"] = arg0 2813 return args, nil 2814 } 2815 2816 func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2817 var err error 2818 args := map[string]interface{}{} 2819 var arg0 *int 2820 if tmp, ok := rawArgs["arg"]; ok { 2821 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2822 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } 2823 directive1 := func(ctx context.Context) (interface{}, error) { 2824 min, err := ec.unmarshalOInt2ᚖint(ctx, 0) 2825 if err != nil { 2826 return nil, err 2827 } 2828 if ec.directives.Range == nil { 2829 return nil, errors.New("directive range is not implemented") 2830 } 2831 return ec.directives.Range(ctx, rawArgs, directive0, min, nil) 2832 } 2833 2834 tmp, err = directive1(ctx) 2835 if err != nil { 2836 return nil, graphql.ErrorOnPath(ctx, err) 2837 } 2838 if data, ok := tmp.(*int); ok { 2839 arg0 = data 2840 } else if tmp == nil { 2841 arg0 = nil 2842 } else { 2843 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *int`, tmp)) 2844 } 2845 } 2846 args["arg"] = arg0 2847 var arg1 *int 2848 if tmp, ok := rawArgs["arg2"]; ok { 2849 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg2")) 2850 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } 2851 directive1 := func(ctx context.Context) (interface{}, error) { 2852 min, err := ec.unmarshalOInt2ᚖint(ctx, 0) 2853 if err != nil { 2854 return nil, err 2855 } 2856 if ec.directives.Range == nil { 2857 return nil, errors.New("directive range is not implemented") 2858 } 2859 return ec.directives.Range(ctx, rawArgs, directive0, min, nil) 2860 } 2861 2862 tmp, err = directive1(ctx) 2863 if err != nil { 2864 return nil, graphql.ErrorOnPath(ctx, err) 2865 } 2866 if data, ok := tmp.(*int); ok { 2867 arg1 = data 2868 } else if tmp == nil { 2869 arg1 = nil 2870 } else { 2871 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *int`, tmp)) 2872 } 2873 } 2874 args["arg2"] = arg1 2875 var arg2 *string 2876 if tmp, ok := rawArgs["arg3"]; ok { 2877 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg3")) 2878 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, tmp) } 2879 directive1 := func(ctx context.Context) (interface{}, error) { 2880 if ec.directives.ToNull == nil { 2881 return nil, errors.New("directive toNull is not implemented") 2882 } 2883 return ec.directives.ToNull(ctx, rawArgs, directive0) 2884 } 2885 2886 tmp, err = directive1(ctx) 2887 if err != nil { 2888 return nil, graphql.ErrorOnPath(ctx, err) 2889 } 2890 if data, ok := tmp.(*string); ok { 2891 arg2 = data 2892 } else if tmp == nil { 2893 arg2 = nil 2894 } else { 2895 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp)) 2896 } 2897 } 2898 args["arg3"] = arg2 2899 return args, nil 2900 } 2901 2902 func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2903 var err error 2904 args := map[string]interface{}{} 2905 var arg0 *InputWithEnumValue 2906 if tmp, ok := rawArgs["input"]; ok { 2907 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2908 arg0, err = ec.unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputWithEnumValue(ctx, tmp) 2909 if err != nil { 2910 return nil, err 2911 } 2912 } 2913 args["input"] = arg0 2914 return args, nil 2915 } 2916 2917 func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2918 var err error 2919 args := map[string]interface{}{} 2920 var arg0 FallbackToStringEncoding 2921 if tmp, ok := rawArgs["arg"]; ok { 2922 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2923 arg0, err = ec.unmarshalNFallbackToStringEncoding2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx, tmp) 2924 if err != nil { 2925 return nil, err 2926 } 2927 } 2928 args["arg"] = arg0 2929 return args, nil 2930 } 2931 2932 func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2933 var err error 2934 args := map[string]interface{}{} 2935 var arg0 []string 2936 if tmp, ok := rawArgs["arg"]; ok { 2937 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2938 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) 2939 if err != nil { 2940 return nil, err 2941 } 2942 } 2943 args["arg"] = arg0 2944 return args, nil 2945 } 2946 2947 func (ec *executionContext) field_Query_inputOmittable_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2948 var err error 2949 args := map[string]interface{}{} 2950 var arg0 OmittableInput 2951 if tmp, ok := rawArgs["arg"]; ok { 2952 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2953 arg0, err = ec.unmarshalNOmittableInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOmittableInput(ctx, tmp) 2954 if err != nil { 2955 return nil, err 2956 } 2957 } 2958 args["arg"] = arg0 2959 return args, nil 2960 } 2961 2962 func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2963 var err error 2964 args := map[string]interface{}{} 2965 var arg0 []string 2966 if tmp, ok := rawArgs["arg"]; ok { 2967 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2968 arg0, err = ec.unmarshalNString2ᚕstringᚄ(ctx, tmp) 2969 if err != nil { 2970 return nil, err 2971 } 2972 } 2973 args["arg"] = arg0 2974 return args, nil 2975 } 2976 2977 func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2978 var err error 2979 args := map[string]interface{}{} 2980 var arg0 map[string]interface{} 2981 if tmp, ok := rawArgs["input"]; ok { 2982 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2983 arg0, err = ec.unmarshalOChanges2map(ctx, tmp) 2984 if err != nil { 2985 return nil, err 2986 } 2987 } 2988 args["input"] = arg0 2989 return args, nil 2990 } 2991 2992 func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2993 var err error 2994 args := map[string]interface{}{} 2995 var arg0 *NestedMapInput 2996 if tmp, ok := rawArgs["in"]; ok { 2997 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("in")) 2998 arg0, err = ec.unmarshalONestedMapInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedMapInput(ctx, tmp) 2999 if err != nil { 3000 return nil, err 3001 } 3002 } 3003 args["in"] = arg0 3004 return args, nil 3005 } 3006 3007 func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3008 var err error 3009 args := map[string]interface{}{} 3010 var arg0 map[string]interface{} 3011 if tmp, ok := rawArgs["in"]; ok { 3012 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("in")) 3013 arg0, err = ec.unmarshalOMapStringInterfaceInput2map(ctx, tmp) 3014 if err != nil { 3015 return nil, err 3016 } 3017 } 3018 args["in"] = arg0 3019 return args, nil 3020 } 3021 3022 func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3023 var err error 3024 args := map[string]interface{}{} 3025 var arg0 [][]*OuterInput 3026 if tmp, ok := rawArgs["input"]; ok { 3027 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 3028 arg0, err = ec.unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx, tmp) 3029 if err != nil { 3030 return nil, err 3031 } 3032 } 3033 args["input"] = arg0 3034 return args, nil 3035 } 3036 3037 func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3038 var err error 3039 args := map[string]interface{}{} 3040 var arg0 *int 3041 if tmp, ok := rawArgs["arg"]; ok { 3042 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 3043 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 3044 if err != nil { 3045 return nil, err 3046 } 3047 } 3048 args["arg"] = arg0 3049 return args, nil 3050 } 3051 3052 func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3053 var err error 3054 args := map[string]interface{}{} 3055 var arg0 *RecursiveInputSlice 3056 if tmp, ok := rawArgs["input"]; ok { 3057 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 3058 arg0, err = ec.unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx, tmp) 3059 if err != nil { 3060 return nil, err 3061 } 3062 } 3063 args["input"] = arg0 3064 return args, nil 3065 } 3066 3067 func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3068 var err error 3069 args := map[string]interface{}{} 3070 var arg0 int 3071 if tmp, ok := rawArgs["id"]; ok { 3072 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 3073 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 3074 if err != nil { 3075 return nil, err 3076 } 3077 } 3078 args["id"] = arg0 3079 return args, nil 3080 } 3081 3082 func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3083 var err error 3084 args := map[string]interface{}{} 3085 var arg0 string 3086 if tmp, ok := rawArgs["arg"]; ok { 3087 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 3088 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, tmp) } 3089 directive1 := func(ctx context.Context) (interface{}, error) { 3090 min, err := ec.unmarshalNInt2int(ctx, 1) 3091 if err != nil { 3092 return nil, err 3093 } 3094 max, err := ec.unmarshalOInt2ᚖint(ctx, 255) 3095 if err != nil { 3096 return nil, err 3097 } 3098 message, err := ec.unmarshalOString2ᚖstring(ctx, "invalid length") 3099 if err != nil { 3100 return nil, err 3101 } 3102 if ec.directives.Length == nil { 3103 return nil, errors.New("directive length is not implemented") 3104 } 3105 return ec.directives.Length(ctx, rawArgs, directive0, min, max, message) 3106 } 3107 3108 tmp, err = directive1(ctx) 3109 if err != nil { 3110 return nil, graphql.ErrorOnPath(ctx, err) 3111 } 3112 if data, ok := tmp.(string); ok { 3113 arg0 = data 3114 } else { 3115 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp)) 3116 } 3117 } 3118 args["arg"] = arg0 3119 return args, nil 3120 } 3121 3122 func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3123 var err error 3124 args := map[string]interface{}{} 3125 var arg0 *int 3126 if tmp, ok := rawArgs["arg"]; ok { 3127 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 3128 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } 3129 directive1 := func(ctx context.Context) (interface{}, error) { 3130 min, err := ec.unmarshalOInt2ᚖint(ctx, 0) 3131 if err != nil { 3132 return nil, err 3133 } 3134 if ec.directives.Range == nil { 3135 return nil, errors.New("directive range is not implemented") 3136 } 3137 return ec.directives.Range(ctx, rawArgs, directive0, min, nil) 3138 } 3139 3140 tmp, err = directive1(ctx) 3141 if err != nil { 3142 return nil, graphql.ErrorOnPath(ctx, err) 3143 } 3144 if data, ok := tmp.(*int); ok { 3145 arg0 = data 3146 } else if tmp == nil { 3147 arg0 = nil 3148 } else { 3149 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *int`, tmp)) 3150 } 3151 } 3152 args["arg"] = arg0 3153 var arg1 *int 3154 if tmp, ok := rawArgs["arg2"]; ok { 3155 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg2")) 3156 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } 3157 directive1 := func(ctx context.Context) (interface{}, error) { 3158 min, err := ec.unmarshalOInt2ᚖint(ctx, 0) 3159 if err != nil { 3160 return nil, err 3161 } 3162 if ec.directives.Range == nil { 3163 return nil, errors.New("directive range is not implemented") 3164 } 3165 return ec.directives.Range(ctx, rawArgs, directive0, min, nil) 3166 } 3167 3168 tmp, err = directive1(ctx) 3169 if err != nil { 3170 return nil, graphql.ErrorOnPath(ctx, err) 3171 } 3172 if data, ok := tmp.(*int); ok { 3173 arg1 = data 3174 } else if tmp == nil { 3175 arg1 = nil 3176 } else { 3177 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *int`, tmp)) 3178 } 3179 } 3180 args["arg2"] = arg1 3181 var arg2 *string 3182 if tmp, ok := rawArgs["arg3"]; ok { 3183 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg3")) 3184 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, tmp) } 3185 directive1 := func(ctx context.Context) (interface{}, error) { 3186 if ec.directives.ToNull == nil { 3187 return nil, errors.New("directive toNull is not implemented") 3188 } 3189 return ec.directives.ToNull(ctx, rawArgs, directive0) 3190 } 3191 3192 tmp, err = directive1(ctx) 3193 if err != nil { 3194 return nil, graphql.ErrorOnPath(ctx, err) 3195 } 3196 if data, ok := tmp.(*string); ok { 3197 arg2 = data 3198 } else if tmp == nil { 3199 arg2 = nil 3200 } else { 3201 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp)) 3202 } 3203 } 3204 args["arg3"] = arg2 3205 return args, nil 3206 } 3207 3208 func (ec *executionContext) field_User_pets_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3209 var err error 3210 args := map[string]interface{}{} 3211 var arg0 *int 3212 if tmp, ok := rawArgs["limit"]; ok { 3213 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) 3214 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 3215 if err != nil { 3216 return nil, err 3217 } 3218 } 3219 args["limit"] = arg0 3220 return args, nil 3221 } 3222 3223 func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3224 var err error 3225 args := map[string]interface{}{} 3226 var arg0 string 3227 if tmp, ok := rawArgs["break"]; ok { 3228 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("break")) 3229 arg0, err = ec.unmarshalNString2string(ctx, tmp) 3230 if err != nil { 3231 return nil, err 3232 } 3233 } 3234 args["break"] = arg0 3235 var arg1 string 3236 if tmp, ok := rawArgs["default"]; ok { 3237 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) 3238 arg1, err = ec.unmarshalNString2string(ctx, tmp) 3239 if err != nil { 3240 return nil, err 3241 } 3242 } 3243 args["default"] = arg1 3244 var arg2 string 3245 if tmp, ok := rawArgs["func"]; ok { 3246 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("func")) 3247 arg2, err = ec.unmarshalNString2string(ctx, tmp) 3248 if err != nil { 3249 return nil, err 3250 } 3251 } 3252 args["func"] = arg2 3253 var arg3 string 3254 if tmp, ok := rawArgs["interface"]; ok { 3255 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interface")) 3256 arg3, err = ec.unmarshalNString2string(ctx, tmp) 3257 if err != nil { 3258 return nil, err 3259 } 3260 } 3261 args["interface"] = arg3 3262 var arg4 string 3263 if tmp, ok := rawArgs["select"]; ok { 3264 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("select")) 3265 arg4, err = ec.unmarshalNString2string(ctx, tmp) 3266 if err != nil { 3267 return nil, err 3268 } 3269 } 3270 args["select"] = arg4 3271 var arg5 string 3272 if tmp, ok := rawArgs["case"]; ok { 3273 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("case")) 3274 arg5, err = ec.unmarshalNString2string(ctx, tmp) 3275 if err != nil { 3276 return nil, err 3277 } 3278 } 3279 args["case"] = arg5 3280 var arg6 string 3281 if tmp, ok := rawArgs["defer"]; ok { 3282 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defer")) 3283 arg6, err = ec.unmarshalNString2string(ctx, tmp) 3284 if err != nil { 3285 return nil, err 3286 } 3287 } 3288 args["defer"] = arg6 3289 var arg7 string 3290 if tmp, ok := rawArgs["go"]; ok { 3291 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("go")) 3292 arg7, err = ec.unmarshalNString2string(ctx, tmp) 3293 if err != nil { 3294 return nil, err 3295 } 3296 } 3297 args["go"] = arg7 3298 var arg8 string 3299 if tmp, ok := rawArgs["map"]; ok { 3300 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) 3301 arg8, err = ec.unmarshalNString2string(ctx, tmp) 3302 if err != nil { 3303 return nil, err 3304 } 3305 } 3306 args["map"] = arg8 3307 var arg9 string 3308 if tmp, ok := rawArgs["struct"]; ok { 3309 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("struct")) 3310 arg9, err = ec.unmarshalNString2string(ctx, tmp) 3311 if err != nil { 3312 return nil, err 3313 } 3314 } 3315 args["struct"] = arg9 3316 var arg10 string 3317 if tmp, ok := rawArgs["chan"]; ok { 3318 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chan")) 3319 arg10, err = ec.unmarshalNString2string(ctx, tmp) 3320 if err != nil { 3321 return nil, err 3322 } 3323 } 3324 args["chan"] = arg10 3325 var arg11 string 3326 if tmp, ok := rawArgs["else"]; ok { 3327 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("else")) 3328 arg11, err = ec.unmarshalNString2string(ctx, tmp) 3329 if err != nil { 3330 return nil, err 3331 } 3332 } 3333 args["else"] = arg11 3334 var arg12 string 3335 if tmp, ok := rawArgs["goto"]; ok { 3336 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("goto")) 3337 arg12, err = ec.unmarshalNString2string(ctx, tmp) 3338 if err != nil { 3339 return nil, err 3340 } 3341 } 3342 args["goto"] = arg12 3343 var arg13 string 3344 if tmp, ok := rawArgs["package"]; ok { 3345 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("package")) 3346 arg13, err = ec.unmarshalNString2string(ctx, tmp) 3347 if err != nil { 3348 return nil, err 3349 } 3350 } 3351 args["package"] = arg13 3352 var arg14 string 3353 if tmp, ok := rawArgs["switch"]; ok { 3354 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("switch")) 3355 arg14, err = ec.unmarshalNString2string(ctx, tmp) 3356 if err != nil { 3357 return nil, err 3358 } 3359 } 3360 args["switch"] = arg14 3361 var arg15 string 3362 if tmp, ok := rawArgs["const"]; ok { 3363 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("const")) 3364 arg15, err = ec.unmarshalNString2string(ctx, tmp) 3365 if err != nil { 3366 return nil, err 3367 } 3368 } 3369 args["const"] = arg15 3370 var arg16 string 3371 if tmp, ok := rawArgs["fallthrough"]; ok { 3372 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fallthrough")) 3373 arg16, err = ec.unmarshalNString2string(ctx, tmp) 3374 if err != nil { 3375 return nil, err 3376 } 3377 } 3378 args["fallthrough"] = arg16 3379 var arg17 string 3380 if tmp, ok := rawArgs["if"]; ok { 3381 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("if")) 3382 arg17, err = ec.unmarshalNString2string(ctx, tmp) 3383 if err != nil { 3384 return nil, err 3385 } 3386 } 3387 args["if"] = arg17 3388 var arg18 string 3389 if tmp, ok := rawArgs["range"]; ok { 3390 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("range")) 3391 arg18, err = ec.unmarshalNString2string(ctx, tmp) 3392 if err != nil { 3393 return nil, err 3394 } 3395 } 3396 args["range"] = arg18 3397 var arg19 string 3398 if tmp, ok := rawArgs["type"]; ok { 3399 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) 3400 arg19, err = ec.unmarshalNString2string(ctx, tmp) 3401 if err != nil { 3402 return nil, err 3403 } 3404 } 3405 args["type"] = arg19 3406 var arg20 string 3407 if tmp, ok := rawArgs["continue"]; ok { 3408 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue")) 3409 arg20, err = ec.unmarshalNString2string(ctx, tmp) 3410 if err != nil { 3411 return nil, err 3412 } 3413 } 3414 args["continue"] = arg20 3415 var arg21 string 3416 if tmp, ok := rawArgs["for"]; ok { 3417 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("for")) 3418 arg21, err = ec.unmarshalNString2string(ctx, tmp) 3419 if err != nil { 3420 return nil, err 3421 } 3422 } 3423 args["for"] = arg21 3424 var arg22 string 3425 if tmp, ok := rawArgs["import"]; ok { 3426 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import")) 3427 arg22, err = ec.unmarshalNString2string(ctx, tmp) 3428 if err != nil { 3429 return nil, err 3430 } 3431 } 3432 args["import"] = arg22 3433 var arg23 string 3434 if tmp, ok := rawArgs["return"]; ok { 3435 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("return")) 3436 arg23, err = ec.unmarshalNString2string(ctx, tmp) 3437 if err != nil { 3438 return nil, err 3439 } 3440 } 3441 args["return"] = arg23 3442 var arg24 string 3443 if tmp, ok := rawArgs["var"]; ok { 3444 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("var")) 3445 arg24, err = ec.unmarshalNString2string(ctx, tmp) 3446 if err != nil { 3447 return nil, err 3448 } 3449 } 3450 args["var"] = arg24 3451 var arg25 string 3452 if tmp, ok := rawArgs["_"]; ok { 3453 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_")) 3454 arg25, err = ec.unmarshalNString2string(ctx, tmp) 3455 if err != nil { 3456 return nil, err 3457 } 3458 } 3459 args["_"] = arg25 3460 return args, nil 3461 } 3462 3463 func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3464 var err error 3465 args := map[string]interface{}{} 3466 var arg0 *ValidInput 3467 if tmp, ok := rawArgs["input"]; ok { 3468 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 3469 arg0, err = ec.unmarshalOValidInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidInput(ctx, tmp) 3470 if err != nil { 3471 return nil, err 3472 } 3473 } 3474 args["input"] = arg0 3475 return args, nil 3476 } 3477 3478 func (ec *executionContext) field_VariadicModel_value_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3479 var err error 3480 args := map[string]interface{}{} 3481 var arg0 int 3482 if tmp, ok := rawArgs["rank"]; ok { 3483 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rank")) 3484 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 3485 if err != nil { 3486 return nil, err 3487 } 3488 } 3489 args["rank"] = arg0 3490 return args, nil 3491 } 3492 3493 func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3494 var err error 3495 args := map[string]interface{}{} 3496 var arg0 string 3497 if tmp, ok := rawArgs["key"]; ok { 3498 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 3499 arg0, err = ec.unmarshalNString2string(ctx, tmp) 3500 if err != nil { 3501 return nil, err 3502 } 3503 } 3504 args["key"] = arg0 3505 return args, nil 3506 } 3507 3508 func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3509 var err error 3510 args := map[string]interface{}{} 3511 var arg0 int 3512 if tmp, ok := rawArgs["idx"]; ok { 3513 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idx")) 3514 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 3515 if err != nil { 3516 return nil, err 3517 } 3518 } 3519 args["idx"] = arg0 3520 return args, nil 3521 } 3522 3523 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3524 var err error 3525 args := map[string]interface{}{} 3526 var arg0 bool 3527 if tmp, ok := rawArgs["includeDeprecated"]; ok { 3528 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 3529 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 3530 if err != nil { 3531 return nil, err 3532 } 3533 } 3534 args["includeDeprecated"] = arg0 3535 return args, nil 3536 } 3537 3538 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3539 var err error 3540 args := map[string]interface{}{} 3541 var arg0 bool 3542 if tmp, ok := rawArgs["includeDeprecated"]; ok { 3543 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 3544 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 3545 if err != nil { 3546 return nil, err 3547 } 3548 } 3549 args["includeDeprecated"] = arg0 3550 return args, nil 3551 } 3552 3553 // endregion ***************************** args.gotpl ***************************** 3554 3555 // region ************************** directives.gotpl ************************** 3556 3557 func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) interface{} { 3558 fc := graphql.GetFieldContext(ctx) 3559 for _, d := range fc.Field.Directives { 3560 switch d.Name { 3561 case "logged": 3562 rawArgs := d.ArgumentMap(ec.Variables) 3563 args, err := ec.dir_logged_args(ctx, rawArgs) 3564 if err != nil { 3565 ec.Error(ctx, err) 3566 return nil 3567 } 3568 n := next 3569 next = func(ctx context.Context) (interface{}, error) { 3570 if ec.directives.Logged == nil { 3571 return nil, errors.New("directive logged is not implemented") 3572 } 3573 return ec.directives.Logged(ctx, obj, n, args["id"].(string)) 3574 } 3575 } 3576 } 3577 res, err := ec.ResolverMiddleware(ctx, next) 3578 if err != nil { 3579 ec.Error(ctx, err) 3580 return nil 3581 } 3582 return res 3583 } 3584 3585 // endregion ************************** directives.gotpl ************************** 3586 3587 // region **************************** field.gotpl ***************************** 3588 3589 func (ec *executionContext) _A_id(ctx context.Context, field graphql.CollectedField, obj *A) (ret graphql.Marshaler) { 3590 fc, err := ec.fieldContext_A_id(ctx, field) 3591 if err != nil { 3592 return graphql.Null 3593 } 3594 ctx = graphql.WithFieldContext(ctx, fc) 3595 defer func() { 3596 if r := recover(); r != nil { 3597 ec.Error(ctx, ec.Recover(ctx, r)) 3598 ret = graphql.Null 3599 } 3600 }() 3601 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3602 ctx = rctx // use context from middleware stack in children 3603 return obj.ID, nil 3604 }) 3605 3606 if resTmp == nil { 3607 if !graphql.HasFieldError(ctx, fc) { 3608 ec.Errorf(ctx, "must not be null") 3609 } 3610 return graphql.Null 3611 } 3612 res := resTmp.(string) 3613 fc.Result = res 3614 return ec.marshalNID2string(ctx, field.Selections, res) 3615 } 3616 3617 func (ec *executionContext) fieldContext_A_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3618 fc = &graphql.FieldContext{ 3619 Object: "A", 3620 Field: field, 3621 IsMethod: false, 3622 IsResolver: false, 3623 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3624 return nil, errors.New("field of type ID does not have child fields") 3625 }, 3626 } 3627 return fc, nil 3628 } 3629 3630 func (ec *executionContext) _AIt_id(ctx context.Context, field graphql.CollectedField, obj *AIt) (ret graphql.Marshaler) { 3631 fc, err := ec.fieldContext_AIt_id(ctx, field) 3632 if err != nil { 3633 return graphql.Null 3634 } 3635 ctx = graphql.WithFieldContext(ctx, fc) 3636 defer func() { 3637 if r := recover(); r != nil { 3638 ec.Error(ctx, ec.Recover(ctx, r)) 3639 ret = graphql.Null 3640 } 3641 }() 3642 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3643 ctx = rctx // use context from middleware stack in children 3644 return obj.ID, nil 3645 }) 3646 3647 if resTmp == nil { 3648 if !graphql.HasFieldError(ctx, fc) { 3649 ec.Errorf(ctx, "must not be null") 3650 } 3651 return graphql.Null 3652 } 3653 res := resTmp.(string) 3654 fc.Result = res 3655 return ec.marshalNID2string(ctx, field.Selections, res) 3656 } 3657 3658 func (ec *executionContext) fieldContext_AIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3659 fc = &graphql.FieldContext{ 3660 Object: "AIt", 3661 Field: field, 3662 IsMethod: false, 3663 IsResolver: false, 3664 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3665 return nil, errors.New("field of type ID does not have child fields") 3666 }, 3667 } 3668 return fc, nil 3669 } 3670 3671 func (ec *executionContext) _AbIt_id(ctx context.Context, field graphql.CollectedField, obj *AbIt) (ret graphql.Marshaler) { 3672 fc, err := ec.fieldContext_AbIt_id(ctx, field) 3673 if err != nil { 3674 return graphql.Null 3675 } 3676 ctx = graphql.WithFieldContext(ctx, fc) 3677 defer func() { 3678 if r := recover(); r != nil { 3679 ec.Error(ctx, ec.Recover(ctx, r)) 3680 ret = graphql.Null 3681 } 3682 }() 3683 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3684 ctx = rctx // use context from middleware stack in children 3685 return obj.ID, nil 3686 }) 3687 3688 if resTmp == nil { 3689 if !graphql.HasFieldError(ctx, fc) { 3690 ec.Errorf(ctx, "must not be null") 3691 } 3692 return graphql.Null 3693 } 3694 res := resTmp.(string) 3695 fc.Result = res 3696 return ec.marshalNID2string(ctx, field.Selections, res) 3697 } 3698 3699 func (ec *executionContext) fieldContext_AbIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3700 fc = &graphql.FieldContext{ 3701 Object: "AbIt", 3702 Field: field, 3703 IsMethod: false, 3704 IsResolver: false, 3705 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3706 return nil, errors.New("field of type ID does not have child fields") 3707 }, 3708 } 3709 return fc, nil 3710 } 3711 3712 func (ec *executionContext) _Autobind_int(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3713 fc, err := ec.fieldContext_Autobind_int(ctx, field) 3714 if err != nil { 3715 return graphql.Null 3716 } 3717 ctx = graphql.WithFieldContext(ctx, fc) 3718 defer func() { 3719 if r := recover(); r != nil { 3720 ec.Error(ctx, ec.Recover(ctx, r)) 3721 ret = graphql.Null 3722 } 3723 }() 3724 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3725 ctx = rctx // use context from middleware stack in children 3726 return obj.Int, nil 3727 }) 3728 3729 if resTmp == nil { 3730 if !graphql.HasFieldError(ctx, fc) { 3731 ec.Errorf(ctx, "must not be null") 3732 } 3733 return graphql.Null 3734 } 3735 res := resTmp.(int) 3736 fc.Result = res 3737 return ec.marshalNInt2int(ctx, field.Selections, res) 3738 } 3739 3740 func (ec *executionContext) fieldContext_Autobind_int(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3741 fc = &graphql.FieldContext{ 3742 Object: "Autobind", 3743 Field: field, 3744 IsMethod: false, 3745 IsResolver: false, 3746 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3747 return nil, errors.New("field of type Int does not have child fields") 3748 }, 3749 } 3750 return fc, nil 3751 } 3752 3753 func (ec *executionContext) _Autobind_int32(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3754 fc, err := ec.fieldContext_Autobind_int32(ctx, field) 3755 if err != nil { 3756 return graphql.Null 3757 } 3758 ctx = graphql.WithFieldContext(ctx, fc) 3759 defer func() { 3760 if r := recover(); r != nil { 3761 ec.Error(ctx, ec.Recover(ctx, r)) 3762 ret = graphql.Null 3763 } 3764 }() 3765 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3766 ctx = rctx // use context from middleware stack in children 3767 return obj.Int32, nil 3768 }) 3769 3770 if resTmp == nil { 3771 if !graphql.HasFieldError(ctx, fc) { 3772 ec.Errorf(ctx, "must not be null") 3773 } 3774 return graphql.Null 3775 } 3776 res := resTmp.(int32) 3777 fc.Result = res 3778 return ec.marshalNInt2int32(ctx, field.Selections, res) 3779 } 3780 3781 func (ec *executionContext) fieldContext_Autobind_int32(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3782 fc = &graphql.FieldContext{ 3783 Object: "Autobind", 3784 Field: field, 3785 IsMethod: false, 3786 IsResolver: false, 3787 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3788 return nil, errors.New("field of type Int does not have child fields") 3789 }, 3790 } 3791 return fc, nil 3792 } 3793 3794 func (ec *executionContext) _Autobind_int64(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3795 fc, err := ec.fieldContext_Autobind_int64(ctx, field) 3796 if err != nil { 3797 return graphql.Null 3798 } 3799 ctx = graphql.WithFieldContext(ctx, fc) 3800 defer func() { 3801 if r := recover(); r != nil { 3802 ec.Error(ctx, ec.Recover(ctx, r)) 3803 ret = graphql.Null 3804 } 3805 }() 3806 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3807 ctx = rctx // use context from middleware stack in children 3808 return obj.Int64, nil 3809 }) 3810 3811 if resTmp == nil { 3812 if !graphql.HasFieldError(ctx, fc) { 3813 ec.Errorf(ctx, "must not be null") 3814 } 3815 return graphql.Null 3816 } 3817 res := resTmp.(int64) 3818 fc.Result = res 3819 return ec.marshalNInt2int64(ctx, field.Selections, res) 3820 } 3821 3822 func (ec *executionContext) fieldContext_Autobind_int64(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3823 fc = &graphql.FieldContext{ 3824 Object: "Autobind", 3825 Field: field, 3826 IsMethod: false, 3827 IsResolver: false, 3828 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3829 return nil, errors.New("field of type Int does not have child fields") 3830 }, 3831 } 3832 return fc, nil 3833 } 3834 3835 func (ec *executionContext) _Autobind_idStr(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3836 fc, err := ec.fieldContext_Autobind_idStr(ctx, field) 3837 if err != nil { 3838 return graphql.Null 3839 } 3840 ctx = graphql.WithFieldContext(ctx, fc) 3841 defer func() { 3842 if r := recover(); r != nil { 3843 ec.Error(ctx, ec.Recover(ctx, r)) 3844 ret = graphql.Null 3845 } 3846 }() 3847 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3848 ctx = rctx // use context from middleware stack in children 3849 return obj.IdStr, nil 3850 }) 3851 3852 if resTmp == nil { 3853 if !graphql.HasFieldError(ctx, fc) { 3854 ec.Errorf(ctx, "must not be null") 3855 } 3856 return graphql.Null 3857 } 3858 res := resTmp.(string) 3859 fc.Result = res 3860 return ec.marshalNID2string(ctx, field.Selections, res) 3861 } 3862 3863 func (ec *executionContext) fieldContext_Autobind_idStr(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3864 fc = &graphql.FieldContext{ 3865 Object: "Autobind", 3866 Field: field, 3867 IsMethod: false, 3868 IsResolver: false, 3869 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3870 return nil, errors.New("field of type ID does not have child fields") 3871 }, 3872 } 3873 return fc, nil 3874 } 3875 3876 func (ec *executionContext) _Autobind_idInt(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3877 fc, err := ec.fieldContext_Autobind_idInt(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 := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3889 ctx = rctx // use context from middleware stack in children 3890 return obj.IdInt, nil 3891 }) 3892 3893 if resTmp == nil { 3894 if !graphql.HasFieldError(ctx, fc) { 3895 ec.Errorf(ctx, "must not be null") 3896 } 3897 return graphql.Null 3898 } 3899 res := resTmp.(int) 3900 fc.Result = res 3901 return ec.marshalNID2int(ctx, field.Selections, res) 3902 } 3903 3904 func (ec *executionContext) fieldContext_Autobind_idInt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3905 fc = &graphql.FieldContext{ 3906 Object: "Autobind", 3907 Field: field, 3908 IsMethod: false, 3909 IsResolver: false, 3910 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3911 return nil, errors.New("field of type ID does not have child fields") 3912 }, 3913 } 3914 return fc, nil 3915 } 3916 3917 func (ec *executionContext) _B_id(ctx context.Context, field graphql.CollectedField, obj *B) (ret graphql.Marshaler) { 3918 fc, err := ec.fieldContext_B_id(ctx, field) 3919 if err != nil { 3920 return graphql.Null 3921 } 3922 ctx = graphql.WithFieldContext(ctx, fc) 3923 defer func() { 3924 if r := recover(); r != nil { 3925 ec.Error(ctx, ec.Recover(ctx, r)) 3926 ret = graphql.Null 3927 } 3928 }() 3929 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3930 ctx = rctx // use context from middleware stack in children 3931 return obj.ID, nil 3932 }) 3933 3934 if resTmp == nil { 3935 if !graphql.HasFieldError(ctx, fc) { 3936 ec.Errorf(ctx, "must not be null") 3937 } 3938 return graphql.Null 3939 } 3940 res := resTmp.(string) 3941 fc.Result = res 3942 return ec.marshalNID2string(ctx, field.Selections, res) 3943 } 3944 3945 func (ec *executionContext) fieldContext_B_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3946 fc = &graphql.FieldContext{ 3947 Object: "B", 3948 Field: field, 3949 IsMethod: false, 3950 IsResolver: false, 3951 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3952 return nil, errors.New("field of type ID does not have child fields") 3953 }, 3954 } 3955 return fc, nil 3956 } 3957 3958 func (ec *executionContext) _BackedByInterface_id(ctx context.Context, field graphql.CollectedField, obj BackedByInterface) (ret graphql.Marshaler) { 3959 fc, err := ec.fieldContext_BackedByInterface_id(ctx, field) 3960 if err != nil { 3961 return graphql.Null 3962 } 3963 ctx = graphql.WithFieldContext(ctx, fc) 3964 defer func() { 3965 if r := recover(); r != nil { 3966 ec.Error(ctx, ec.Recover(ctx, r)) 3967 ret = graphql.Null 3968 } 3969 }() 3970 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3971 ctx = rctx // use context from middleware stack in children 3972 return ec.resolvers.BackedByInterface().ID(rctx, obj) 3973 }) 3974 3975 if resTmp == nil { 3976 if !graphql.HasFieldError(ctx, fc) { 3977 ec.Errorf(ctx, "must not be null") 3978 } 3979 return graphql.Null 3980 } 3981 res := resTmp.(string) 3982 fc.Result = res 3983 return ec.marshalNString2string(ctx, field.Selections, res) 3984 } 3985 3986 func (ec *executionContext) fieldContext_BackedByInterface_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3987 fc = &graphql.FieldContext{ 3988 Object: "BackedByInterface", 3989 Field: field, 3990 IsMethod: true, 3991 IsResolver: true, 3992 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3993 return nil, errors.New("field of type String does not have child fields") 3994 }, 3995 } 3996 return fc, nil 3997 } 3998 3999 func (ec *executionContext) _BackedByInterface_thisShouldBind(ctx context.Context, field graphql.CollectedField, obj BackedByInterface) (ret graphql.Marshaler) { 4000 fc, err := ec.fieldContext_BackedByInterface_thisShouldBind(ctx, field) 4001 if err != nil { 4002 return graphql.Null 4003 } 4004 ctx = graphql.WithFieldContext(ctx, fc) 4005 defer func() { 4006 if r := recover(); r != nil { 4007 ec.Error(ctx, ec.Recover(ctx, r)) 4008 ret = graphql.Null 4009 } 4010 }() 4011 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4012 ctx = rctx // use context from middleware stack in children 4013 return obj.ThisShouldBind(), nil 4014 }) 4015 4016 if resTmp == nil { 4017 if !graphql.HasFieldError(ctx, fc) { 4018 ec.Errorf(ctx, "must not be null") 4019 } 4020 return graphql.Null 4021 } 4022 res := resTmp.(string) 4023 fc.Result = res 4024 return ec.marshalNString2string(ctx, field.Selections, res) 4025 } 4026 4027 func (ec *executionContext) fieldContext_BackedByInterface_thisShouldBind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4028 fc = &graphql.FieldContext{ 4029 Object: "BackedByInterface", 4030 Field: field, 4031 IsMethod: true, 4032 IsResolver: false, 4033 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4034 return nil, errors.New("field of type String does not have child fields") 4035 }, 4036 } 4037 return fc, nil 4038 } 4039 4040 func (ec *executionContext) _BackedByInterface_thisShouldBindWithError(ctx context.Context, field graphql.CollectedField, obj BackedByInterface) (ret graphql.Marshaler) { 4041 fc, err := ec.fieldContext_BackedByInterface_thisShouldBindWithError(ctx, field) 4042 if err != nil { 4043 return graphql.Null 4044 } 4045 ctx = graphql.WithFieldContext(ctx, fc) 4046 defer func() { 4047 if r := recover(); r != nil { 4048 ec.Error(ctx, ec.Recover(ctx, r)) 4049 ret = graphql.Null 4050 } 4051 }() 4052 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4053 ctx = rctx // use context from middleware stack in children 4054 return obj.ThisShouldBindWithError() 4055 }) 4056 4057 if resTmp == nil { 4058 if !graphql.HasFieldError(ctx, fc) { 4059 ec.Errorf(ctx, "must not be null") 4060 } 4061 return graphql.Null 4062 } 4063 res := resTmp.(string) 4064 fc.Result = res 4065 return ec.marshalNString2string(ctx, field.Selections, res) 4066 } 4067 4068 func (ec *executionContext) fieldContext_BackedByInterface_thisShouldBindWithError(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4069 fc = &graphql.FieldContext{ 4070 Object: "BackedByInterface", 4071 Field: field, 4072 IsMethod: true, 4073 IsResolver: false, 4074 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4075 return nil, errors.New("field of type String does not have child fields") 4076 }, 4077 } 4078 return fc, nil 4079 } 4080 4081 func (ec *executionContext) _Cat_species(ctx context.Context, field graphql.CollectedField, obj *Cat) (ret graphql.Marshaler) { 4082 fc, err := ec.fieldContext_Cat_species(ctx, field) 4083 if err != nil { 4084 return graphql.Null 4085 } 4086 ctx = graphql.WithFieldContext(ctx, fc) 4087 defer func() { 4088 if r := recover(); r != nil { 4089 ec.Error(ctx, ec.Recover(ctx, r)) 4090 ret = graphql.Null 4091 } 4092 }() 4093 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4094 ctx = rctx // use context from middleware stack in children 4095 return obj.Species, nil 4096 }) 4097 4098 if resTmp == nil { 4099 if !graphql.HasFieldError(ctx, fc) { 4100 ec.Errorf(ctx, "must not be null") 4101 } 4102 return graphql.Null 4103 } 4104 res := resTmp.(string) 4105 fc.Result = res 4106 return ec.marshalNString2string(ctx, field.Selections, res) 4107 } 4108 4109 func (ec *executionContext) fieldContext_Cat_species(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4110 fc = &graphql.FieldContext{ 4111 Object: "Cat", 4112 Field: field, 4113 IsMethod: false, 4114 IsResolver: false, 4115 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4116 return nil, errors.New("field of type String does not have child fields") 4117 }, 4118 } 4119 return fc, nil 4120 } 4121 4122 func (ec *executionContext) _Cat_size(ctx context.Context, field graphql.CollectedField, obj *Cat) (ret graphql.Marshaler) { 4123 fc, err := ec.fieldContext_Cat_size(ctx, field) 4124 if err != nil { 4125 return graphql.Null 4126 } 4127 ctx = graphql.WithFieldContext(ctx, fc) 4128 defer func() { 4129 if r := recover(); r != nil { 4130 ec.Error(ctx, ec.Recover(ctx, r)) 4131 ret = graphql.Null 4132 } 4133 }() 4134 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4135 ctx = rctx // use context from middleware stack in children 4136 return obj.Size, nil 4137 }) 4138 4139 if resTmp == nil { 4140 if !graphql.HasFieldError(ctx, fc) { 4141 ec.Errorf(ctx, "must not be null") 4142 } 4143 return graphql.Null 4144 } 4145 res := resTmp.(*Size) 4146 fc.Result = res 4147 return ec.marshalNSize2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSize(ctx, field.Selections, res) 4148 } 4149 4150 func (ec *executionContext) fieldContext_Cat_size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4151 fc = &graphql.FieldContext{ 4152 Object: "Cat", 4153 Field: field, 4154 IsMethod: false, 4155 IsResolver: false, 4156 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4157 switch field.Name { 4158 case "height": 4159 return ec.fieldContext_Size_height(ctx, field) 4160 case "weight": 4161 return ec.fieldContext_Size_weight(ctx, field) 4162 } 4163 return nil, fmt.Errorf("no field named %q was found under type Size", field.Name) 4164 }, 4165 } 4166 return fc, nil 4167 } 4168 4169 func (ec *executionContext) _Cat_catBreed(ctx context.Context, field graphql.CollectedField, obj *Cat) (ret graphql.Marshaler) { 4170 fc, err := ec.fieldContext_Cat_catBreed(ctx, field) 4171 if err != nil { 4172 return graphql.Null 4173 } 4174 ctx = graphql.WithFieldContext(ctx, fc) 4175 defer func() { 4176 if r := recover(); r != nil { 4177 ec.Error(ctx, ec.Recover(ctx, r)) 4178 ret = graphql.Null 4179 } 4180 }() 4181 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4182 ctx = rctx // use context from middleware stack in children 4183 return obj.CatBreed, nil 4184 }) 4185 4186 if resTmp == nil { 4187 if !graphql.HasFieldError(ctx, fc) { 4188 ec.Errorf(ctx, "must not be null") 4189 } 4190 return graphql.Null 4191 } 4192 res := resTmp.(string) 4193 fc.Result = res 4194 return ec.marshalNString2string(ctx, field.Selections, res) 4195 } 4196 4197 func (ec *executionContext) fieldContext_Cat_catBreed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4198 fc = &graphql.FieldContext{ 4199 Object: "Cat", 4200 Field: field, 4201 IsMethod: false, 4202 IsResolver: false, 4203 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4204 return nil, errors.New("field of type String does not have child fields") 4205 }, 4206 } 4207 return fc, nil 4208 } 4209 4210 func (ec *executionContext) _CheckIssue896_id(ctx context.Context, field graphql.CollectedField, obj *CheckIssue896) (ret graphql.Marshaler) { 4211 fc, err := ec.fieldContext_CheckIssue896_id(ctx, field) 4212 if err != nil { 4213 return graphql.Null 4214 } 4215 ctx = graphql.WithFieldContext(ctx, fc) 4216 defer func() { 4217 if r := recover(); r != nil { 4218 ec.Error(ctx, ec.Recover(ctx, r)) 4219 ret = graphql.Null 4220 } 4221 }() 4222 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4223 ctx = rctx // use context from middleware stack in children 4224 return obj.ID, nil 4225 }) 4226 4227 if resTmp == nil { 4228 return graphql.Null 4229 } 4230 res := resTmp.(*int) 4231 fc.Result = res 4232 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 4233 } 4234 4235 func (ec *executionContext) fieldContext_CheckIssue896_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4236 fc = &graphql.FieldContext{ 4237 Object: "CheckIssue896", 4238 Field: field, 4239 IsMethod: false, 4240 IsResolver: false, 4241 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4242 return nil, errors.New("field of type Int does not have child fields") 4243 }, 4244 } 4245 return fc, nil 4246 } 4247 4248 func (ec *executionContext) _Circle_radius(ctx context.Context, field graphql.CollectedField, obj *Circle) (ret graphql.Marshaler) { 4249 fc, err := ec.fieldContext_Circle_radius(ctx, field) 4250 if err != nil { 4251 return graphql.Null 4252 } 4253 ctx = graphql.WithFieldContext(ctx, fc) 4254 defer func() { 4255 if r := recover(); r != nil { 4256 ec.Error(ctx, ec.Recover(ctx, r)) 4257 ret = graphql.Null 4258 } 4259 }() 4260 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4261 ctx = rctx // use context from middleware stack in children 4262 return obj.Radius, nil 4263 }) 4264 4265 if resTmp == nil { 4266 return graphql.Null 4267 } 4268 res := resTmp.(float64) 4269 fc.Result = res 4270 return ec.marshalOFloat2float64(ctx, field.Selections, res) 4271 } 4272 4273 func (ec *executionContext) fieldContext_Circle_radius(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4274 fc = &graphql.FieldContext{ 4275 Object: "Circle", 4276 Field: field, 4277 IsMethod: false, 4278 IsResolver: false, 4279 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4280 return nil, errors.New("field of type Float does not have child fields") 4281 }, 4282 } 4283 return fc, nil 4284 } 4285 4286 func (ec *executionContext) _Circle_area(ctx context.Context, field graphql.CollectedField, obj *Circle) (ret graphql.Marshaler) { 4287 fc, err := ec.fieldContext_Circle_area(ctx, field) 4288 if err != nil { 4289 return graphql.Null 4290 } 4291 ctx = graphql.WithFieldContext(ctx, fc) 4292 defer func() { 4293 if r := recover(); r != nil { 4294 ec.Error(ctx, ec.Recover(ctx, r)) 4295 ret = graphql.Null 4296 } 4297 }() 4298 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4299 ctx = rctx // use context from middleware stack in children 4300 return obj.Area(), nil 4301 }) 4302 4303 if resTmp == nil { 4304 return graphql.Null 4305 } 4306 res := resTmp.(float64) 4307 fc.Result = res 4308 return ec.marshalOFloat2float64(ctx, field.Selections, res) 4309 } 4310 4311 func (ec *executionContext) fieldContext_Circle_area(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4312 fc = &graphql.FieldContext{ 4313 Object: "Circle", 4314 Field: field, 4315 IsMethod: true, 4316 IsResolver: false, 4317 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4318 return nil, errors.New("field of type Float does not have child fields") 4319 }, 4320 } 4321 return fc, nil 4322 } 4323 4324 func (ec *executionContext) _Circle_coordinates(ctx context.Context, field graphql.CollectedField, obj *Circle) (ret graphql.Marshaler) { 4325 fc, err := ec.fieldContext_Circle_coordinates(ctx, field) 4326 if err != nil { 4327 return graphql.Null 4328 } 4329 ctx = graphql.WithFieldContext(ctx, fc) 4330 defer func() { 4331 if r := recover(); r != nil { 4332 ec.Error(ctx, ec.Recover(ctx, r)) 4333 ret = graphql.Null 4334 } 4335 }() 4336 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4337 ctx = rctx // use context from middleware stack in children 4338 return obj.Coordinates, nil 4339 }) 4340 4341 if resTmp == nil { 4342 return graphql.Null 4343 } 4344 res := resTmp.(Coordinates) 4345 fc.Result = res 4346 return ec.marshalOCoordinates2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCoordinates(ctx, field.Selections, res) 4347 } 4348 4349 func (ec *executionContext) fieldContext_Circle_coordinates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4350 fc = &graphql.FieldContext{ 4351 Object: "Circle", 4352 Field: field, 4353 IsMethod: false, 4354 IsResolver: false, 4355 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4356 switch field.Name { 4357 case "x": 4358 return ec.fieldContext_Coordinates_x(ctx, field) 4359 case "y": 4360 return ec.fieldContext_Coordinates_y(ctx, field) 4361 } 4362 return nil, fmt.Errorf("no field named %q was found under type Coordinates", field.Name) 4363 }, 4364 } 4365 return fc, nil 4366 } 4367 4368 func (ec *executionContext) _ConcreteNodeA_id(ctx context.Context, field graphql.CollectedField, obj *ConcreteNodeA) (ret graphql.Marshaler) { 4369 fc, err := ec.fieldContext_ConcreteNodeA_id(ctx, field) 4370 if err != nil { 4371 return graphql.Null 4372 } 4373 ctx = graphql.WithFieldContext(ctx, fc) 4374 defer func() { 4375 if r := recover(); r != nil { 4376 ec.Error(ctx, ec.Recover(ctx, r)) 4377 ret = graphql.Null 4378 } 4379 }() 4380 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4381 ctx = rctx // use context from middleware stack in children 4382 return obj.ID, nil 4383 }) 4384 4385 if resTmp == nil { 4386 if !graphql.HasFieldError(ctx, fc) { 4387 ec.Errorf(ctx, "must not be null") 4388 } 4389 return graphql.Null 4390 } 4391 res := resTmp.(string) 4392 fc.Result = res 4393 return ec.marshalNID2string(ctx, field.Selections, res) 4394 } 4395 4396 func (ec *executionContext) fieldContext_ConcreteNodeA_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4397 fc = &graphql.FieldContext{ 4398 Object: "ConcreteNodeA", 4399 Field: field, 4400 IsMethod: false, 4401 IsResolver: false, 4402 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4403 return nil, errors.New("field of type ID does not have child fields") 4404 }, 4405 } 4406 return fc, nil 4407 } 4408 4409 func (ec *executionContext) _ConcreteNodeA_child(ctx context.Context, field graphql.CollectedField, obj *ConcreteNodeA) (ret graphql.Marshaler) { 4410 fc, err := ec.fieldContext_ConcreteNodeA_child(ctx, field) 4411 if err != nil { 4412 return graphql.Null 4413 } 4414 ctx = graphql.WithFieldContext(ctx, fc) 4415 defer func() { 4416 if r := recover(); r != nil { 4417 ec.Error(ctx, ec.Recover(ctx, r)) 4418 ret = graphql.Null 4419 } 4420 }() 4421 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4422 ctx = rctx // use context from middleware stack in children 4423 return obj.Child() 4424 }) 4425 4426 if resTmp == nil { 4427 if !graphql.HasFieldError(ctx, fc) { 4428 ec.Errorf(ctx, "must not be null") 4429 } 4430 return graphql.Null 4431 } 4432 res := resTmp.(Node) 4433 fc.Result = res 4434 return ec.marshalNNode2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNode(ctx, field.Selections, res) 4435 } 4436 4437 func (ec *executionContext) fieldContext_ConcreteNodeA_child(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4438 fc = &graphql.FieldContext{ 4439 Object: "ConcreteNodeA", 4440 Field: field, 4441 IsMethod: true, 4442 IsResolver: false, 4443 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4444 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 4445 }, 4446 } 4447 return fc, nil 4448 } 4449 4450 func (ec *executionContext) _ConcreteNodeA_name(ctx context.Context, field graphql.CollectedField, obj *ConcreteNodeA) (ret graphql.Marshaler) { 4451 fc, err := ec.fieldContext_ConcreteNodeA_name(ctx, field) 4452 if err != nil { 4453 return graphql.Null 4454 } 4455 ctx = graphql.WithFieldContext(ctx, fc) 4456 defer func() { 4457 if r := recover(); r != nil { 4458 ec.Error(ctx, ec.Recover(ctx, r)) 4459 ret = graphql.Null 4460 } 4461 }() 4462 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4463 ctx = rctx // use context from middleware stack in children 4464 return obj.Name, nil 4465 }) 4466 4467 if resTmp == nil { 4468 if !graphql.HasFieldError(ctx, fc) { 4469 ec.Errorf(ctx, "must not be null") 4470 } 4471 return graphql.Null 4472 } 4473 res := resTmp.(string) 4474 fc.Result = res 4475 return ec.marshalNString2string(ctx, field.Selections, res) 4476 } 4477 4478 func (ec *executionContext) fieldContext_ConcreteNodeA_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4479 fc = &graphql.FieldContext{ 4480 Object: "ConcreteNodeA", 4481 Field: field, 4482 IsMethod: false, 4483 IsResolver: false, 4484 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4485 return nil, errors.New("field of type String does not have child fields") 4486 }, 4487 } 4488 return fc, nil 4489 } 4490 4491 func (ec *executionContext) _ConcreteNodeInterface_id(ctx context.Context, field graphql.CollectedField, obj ConcreteNodeInterface) (ret graphql.Marshaler) { 4492 fc, err := ec.fieldContext_ConcreteNodeInterface_id(ctx, field) 4493 if err != nil { 4494 return graphql.Null 4495 } 4496 ctx = graphql.WithFieldContext(ctx, fc) 4497 defer func() { 4498 if r := recover(); r != nil { 4499 ec.Error(ctx, ec.Recover(ctx, r)) 4500 ret = graphql.Null 4501 } 4502 }() 4503 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4504 ctx = rctx // use context from middleware stack in children 4505 return obj.ID(), nil 4506 }) 4507 4508 if resTmp == nil { 4509 if !graphql.HasFieldError(ctx, fc) { 4510 ec.Errorf(ctx, "must not be null") 4511 } 4512 return graphql.Null 4513 } 4514 res := resTmp.(string) 4515 fc.Result = res 4516 return ec.marshalNID2string(ctx, field.Selections, res) 4517 } 4518 4519 func (ec *executionContext) fieldContext_ConcreteNodeInterface_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4520 fc = &graphql.FieldContext{ 4521 Object: "ConcreteNodeInterface", 4522 Field: field, 4523 IsMethod: true, 4524 IsResolver: false, 4525 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4526 return nil, errors.New("field of type ID does not have child fields") 4527 }, 4528 } 4529 return fc, nil 4530 } 4531 4532 func (ec *executionContext) _ConcreteNodeInterface_child(ctx context.Context, field graphql.CollectedField, obj ConcreteNodeInterface) (ret graphql.Marshaler) { 4533 fc, err := ec.fieldContext_ConcreteNodeInterface_child(ctx, field) 4534 if err != nil { 4535 return graphql.Null 4536 } 4537 ctx = graphql.WithFieldContext(ctx, fc) 4538 defer func() { 4539 if r := recover(); r != nil { 4540 ec.Error(ctx, ec.Recover(ctx, r)) 4541 ret = graphql.Null 4542 } 4543 }() 4544 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4545 ctx = rctx // use context from middleware stack in children 4546 return obj.Child() 4547 }) 4548 4549 if resTmp == nil { 4550 if !graphql.HasFieldError(ctx, fc) { 4551 ec.Errorf(ctx, "must not be null") 4552 } 4553 return graphql.Null 4554 } 4555 res := resTmp.(Node) 4556 fc.Result = res 4557 return ec.marshalNNode2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNode(ctx, field.Selections, res) 4558 } 4559 4560 func (ec *executionContext) fieldContext_ConcreteNodeInterface_child(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4561 fc = &graphql.FieldContext{ 4562 Object: "ConcreteNodeInterface", 4563 Field: field, 4564 IsMethod: true, 4565 IsResolver: false, 4566 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4567 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 4568 }, 4569 } 4570 return fc, nil 4571 } 4572 4573 func (ec *executionContext) _Content_Post_foo(ctx context.Context, field graphql.CollectedField, obj *ContentPost) (ret graphql.Marshaler) { 4574 fc, err := ec.fieldContext_Content_Post_foo(ctx, field) 4575 if err != nil { 4576 return graphql.Null 4577 } 4578 ctx = graphql.WithFieldContext(ctx, fc) 4579 defer func() { 4580 if r := recover(); r != nil { 4581 ec.Error(ctx, ec.Recover(ctx, r)) 4582 ret = graphql.Null 4583 } 4584 }() 4585 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4586 ctx = rctx // use context from middleware stack in children 4587 return obj.Foo, nil 4588 }) 4589 4590 if resTmp == nil { 4591 return graphql.Null 4592 } 4593 res := resTmp.(*string) 4594 fc.Result = res 4595 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4596 } 4597 4598 func (ec *executionContext) fieldContext_Content_Post_foo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4599 fc = &graphql.FieldContext{ 4600 Object: "Content_Post", 4601 Field: field, 4602 IsMethod: false, 4603 IsResolver: false, 4604 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4605 return nil, errors.New("field of type String does not have child fields") 4606 }, 4607 } 4608 return fc, nil 4609 } 4610 4611 func (ec *executionContext) _Content_User_foo(ctx context.Context, field graphql.CollectedField, obj *ContentUser) (ret graphql.Marshaler) { 4612 fc, err := ec.fieldContext_Content_User_foo(ctx, field) 4613 if err != nil { 4614 return graphql.Null 4615 } 4616 ctx = graphql.WithFieldContext(ctx, fc) 4617 defer func() { 4618 if r := recover(); r != nil { 4619 ec.Error(ctx, ec.Recover(ctx, r)) 4620 ret = graphql.Null 4621 } 4622 }() 4623 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4624 ctx = rctx // use context from middleware stack in children 4625 return obj.Foo, nil 4626 }) 4627 4628 if resTmp == nil { 4629 return graphql.Null 4630 } 4631 res := resTmp.(*string) 4632 fc.Result = res 4633 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4634 } 4635 4636 func (ec *executionContext) fieldContext_Content_User_foo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4637 fc = &graphql.FieldContext{ 4638 Object: "Content_User", 4639 Field: field, 4640 IsMethod: false, 4641 IsResolver: false, 4642 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4643 return nil, errors.New("field of type String does not have child fields") 4644 }, 4645 } 4646 return fc, nil 4647 } 4648 4649 func (ec *executionContext) _Coordinates_x(ctx context.Context, field graphql.CollectedField, obj *Coordinates) (ret graphql.Marshaler) { 4650 fc, err := ec.fieldContext_Coordinates_x(ctx, field) 4651 if err != nil { 4652 return graphql.Null 4653 } 4654 ctx = graphql.WithFieldContext(ctx, fc) 4655 defer func() { 4656 if r := recover(); r != nil { 4657 ec.Error(ctx, ec.Recover(ctx, r)) 4658 ret = graphql.Null 4659 } 4660 }() 4661 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4662 ctx = rctx // use context from middleware stack in children 4663 return obj.X, nil 4664 }) 4665 4666 if resTmp == nil { 4667 if !graphql.HasFieldError(ctx, fc) { 4668 ec.Errorf(ctx, "must not be null") 4669 } 4670 return graphql.Null 4671 } 4672 res := resTmp.(float64) 4673 fc.Result = res 4674 return ec.marshalNFloat2float64(ctx, field.Selections, res) 4675 } 4676 4677 func (ec *executionContext) fieldContext_Coordinates_x(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4678 fc = &graphql.FieldContext{ 4679 Object: "Coordinates", 4680 Field: field, 4681 IsMethod: false, 4682 IsResolver: false, 4683 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4684 return nil, errors.New("field of type Float does not have child fields") 4685 }, 4686 } 4687 return fc, nil 4688 } 4689 4690 func (ec *executionContext) _Coordinates_y(ctx context.Context, field graphql.CollectedField, obj *Coordinates) (ret graphql.Marshaler) { 4691 fc, err := ec.fieldContext_Coordinates_y(ctx, field) 4692 if err != nil { 4693 return graphql.Null 4694 } 4695 ctx = graphql.WithFieldContext(ctx, fc) 4696 defer func() { 4697 if r := recover(); r != nil { 4698 ec.Error(ctx, ec.Recover(ctx, r)) 4699 ret = graphql.Null 4700 } 4701 }() 4702 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4703 ctx = rctx // use context from middleware stack in children 4704 return obj.Y, nil 4705 }) 4706 4707 if resTmp == nil { 4708 if !graphql.HasFieldError(ctx, fc) { 4709 ec.Errorf(ctx, "must not be null") 4710 } 4711 return graphql.Null 4712 } 4713 res := resTmp.(float64) 4714 fc.Result = res 4715 return ec.marshalNFloat2float64(ctx, field.Selections, res) 4716 } 4717 4718 func (ec *executionContext) fieldContext_Coordinates_y(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4719 fc = &graphql.FieldContext{ 4720 Object: "Coordinates", 4721 Field: field, 4722 IsMethod: false, 4723 IsResolver: false, 4724 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4725 return nil, errors.New("field of type Float does not have child fields") 4726 }, 4727 } 4728 return fc, nil 4729 } 4730 4731 func (ec *executionContext) _DefaultParametersMirror_falsyBoolean(ctx context.Context, field graphql.CollectedField, obj *DefaultParametersMirror) (ret graphql.Marshaler) { 4732 fc, err := ec.fieldContext_DefaultParametersMirror_falsyBoolean(ctx, field) 4733 if err != nil { 4734 return graphql.Null 4735 } 4736 ctx = graphql.WithFieldContext(ctx, fc) 4737 defer func() { 4738 if r := recover(); r != nil { 4739 ec.Error(ctx, ec.Recover(ctx, r)) 4740 ret = graphql.Null 4741 } 4742 }() 4743 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4744 ctx = rctx // use context from middleware stack in children 4745 return obj.FalsyBoolean, nil 4746 }) 4747 4748 if resTmp == nil { 4749 return graphql.Null 4750 } 4751 res := resTmp.(*bool) 4752 fc.Result = res 4753 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 4754 } 4755 4756 func (ec *executionContext) fieldContext_DefaultParametersMirror_falsyBoolean(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4757 fc = &graphql.FieldContext{ 4758 Object: "DefaultParametersMirror", 4759 Field: field, 4760 IsMethod: false, 4761 IsResolver: false, 4762 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4763 return nil, errors.New("field of type Boolean does not have child fields") 4764 }, 4765 } 4766 return fc, nil 4767 } 4768 4769 func (ec *executionContext) _DefaultParametersMirror_truthyBoolean(ctx context.Context, field graphql.CollectedField, obj *DefaultParametersMirror) (ret graphql.Marshaler) { 4770 fc, err := ec.fieldContext_DefaultParametersMirror_truthyBoolean(ctx, field) 4771 if err != nil { 4772 return graphql.Null 4773 } 4774 ctx = graphql.WithFieldContext(ctx, fc) 4775 defer func() { 4776 if r := recover(); r != nil { 4777 ec.Error(ctx, ec.Recover(ctx, r)) 4778 ret = graphql.Null 4779 } 4780 }() 4781 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4782 ctx = rctx // use context from middleware stack in children 4783 return obj.TruthyBoolean, nil 4784 }) 4785 4786 if resTmp == nil { 4787 return graphql.Null 4788 } 4789 res := resTmp.(*bool) 4790 fc.Result = res 4791 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 4792 } 4793 4794 func (ec *executionContext) fieldContext_DefaultParametersMirror_truthyBoolean(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4795 fc = &graphql.FieldContext{ 4796 Object: "DefaultParametersMirror", 4797 Field: field, 4798 IsMethod: false, 4799 IsResolver: false, 4800 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4801 return nil, errors.New("field of type Boolean does not have child fields") 4802 }, 4803 } 4804 return fc, nil 4805 } 4806 4807 func (ec *executionContext) _DeferModel_id(ctx context.Context, field graphql.CollectedField, obj *DeferModel) (ret graphql.Marshaler) { 4808 fc, err := ec.fieldContext_DeferModel_id(ctx, field) 4809 if err != nil { 4810 return graphql.Null 4811 } 4812 ctx = graphql.WithFieldContext(ctx, fc) 4813 defer func() { 4814 if r := recover(); r != nil { 4815 ec.Error(ctx, ec.Recover(ctx, r)) 4816 ret = graphql.Null 4817 } 4818 }() 4819 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4820 ctx = rctx // use context from middleware stack in children 4821 return obj.ID, nil 4822 }) 4823 4824 if resTmp == nil { 4825 if !graphql.HasFieldError(ctx, fc) { 4826 ec.Errorf(ctx, "must not be null") 4827 } 4828 return graphql.Null 4829 } 4830 res := resTmp.(string) 4831 fc.Result = res 4832 return ec.marshalNID2string(ctx, field.Selections, res) 4833 } 4834 4835 func (ec *executionContext) fieldContext_DeferModel_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4836 fc = &graphql.FieldContext{ 4837 Object: "DeferModel", 4838 Field: field, 4839 IsMethod: false, 4840 IsResolver: false, 4841 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4842 return nil, errors.New("field of type ID does not have child fields") 4843 }, 4844 } 4845 return fc, nil 4846 } 4847 4848 func (ec *executionContext) _DeferModel_name(ctx context.Context, field graphql.CollectedField, obj *DeferModel) (ret graphql.Marshaler) { 4849 fc, err := ec.fieldContext_DeferModel_name(ctx, field) 4850 if err != nil { 4851 return graphql.Null 4852 } 4853 ctx = graphql.WithFieldContext(ctx, fc) 4854 defer func() { 4855 if r := recover(); r != nil { 4856 ec.Error(ctx, ec.Recover(ctx, r)) 4857 ret = graphql.Null 4858 } 4859 }() 4860 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4861 ctx = rctx // use context from middleware stack in children 4862 return obj.Name, nil 4863 }) 4864 4865 if resTmp == nil { 4866 if !graphql.HasFieldError(ctx, fc) { 4867 ec.Errorf(ctx, "must not be null") 4868 } 4869 return graphql.Null 4870 } 4871 res := resTmp.(string) 4872 fc.Result = res 4873 return ec.marshalNString2string(ctx, field.Selections, res) 4874 } 4875 4876 func (ec *executionContext) fieldContext_DeferModel_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4877 fc = &graphql.FieldContext{ 4878 Object: "DeferModel", 4879 Field: field, 4880 IsMethod: false, 4881 IsResolver: false, 4882 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4883 return nil, errors.New("field of type String does not have child fields") 4884 }, 4885 } 4886 return fc, nil 4887 } 4888 4889 func (ec *executionContext) _DeferModel_values(ctx context.Context, field graphql.CollectedField, obj *DeferModel) (ret graphql.Marshaler) { 4890 fc, err := ec.fieldContext_DeferModel_values(ctx, field) 4891 if err != nil { 4892 return graphql.Null 4893 } 4894 ctx = graphql.WithFieldContext(ctx, fc) 4895 defer func() { 4896 if r := recover(); r != nil { 4897 ec.Error(ctx, ec.Recover(ctx, r)) 4898 ret = graphql.Null 4899 } 4900 }() 4901 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4902 ctx = rctx // use context from middleware stack in children 4903 return ec.resolvers.DeferModel().Values(rctx, obj) 4904 }) 4905 4906 if resTmp == nil { 4907 if !graphql.HasFieldError(ctx, fc) { 4908 ec.Errorf(ctx, "must not be null") 4909 } 4910 return graphql.Null 4911 } 4912 res := resTmp.([]string) 4913 fc.Result = res 4914 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 4915 } 4916 4917 func (ec *executionContext) fieldContext_DeferModel_values(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4918 fc = &graphql.FieldContext{ 4919 Object: "DeferModel", 4920 Field: field, 4921 IsMethod: true, 4922 IsResolver: true, 4923 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4924 return nil, errors.New("field of type String does not have child fields") 4925 }, 4926 } 4927 return fc, nil 4928 } 4929 4930 func (ec *executionContext) _Dog_species(ctx context.Context, field graphql.CollectedField, obj *Dog) (ret graphql.Marshaler) { 4931 fc, err := ec.fieldContext_Dog_species(ctx, field) 4932 if err != nil { 4933 return graphql.Null 4934 } 4935 ctx = graphql.WithFieldContext(ctx, fc) 4936 defer func() { 4937 if r := recover(); r != nil { 4938 ec.Error(ctx, ec.Recover(ctx, r)) 4939 ret = graphql.Null 4940 } 4941 }() 4942 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4943 ctx = rctx // use context from middleware stack in children 4944 return obj.Species, nil 4945 }) 4946 4947 if resTmp == nil { 4948 if !graphql.HasFieldError(ctx, fc) { 4949 ec.Errorf(ctx, "must not be null") 4950 } 4951 return graphql.Null 4952 } 4953 res := resTmp.(string) 4954 fc.Result = res 4955 return ec.marshalNString2string(ctx, field.Selections, res) 4956 } 4957 4958 func (ec *executionContext) fieldContext_Dog_species(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4959 fc = &graphql.FieldContext{ 4960 Object: "Dog", 4961 Field: field, 4962 IsMethod: false, 4963 IsResolver: false, 4964 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4965 return nil, errors.New("field of type String does not have child fields") 4966 }, 4967 } 4968 return fc, nil 4969 } 4970 4971 func (ec *executionContext) _Dog_size(ctx context.Context, field graphql.CollectedField, obj *Dog) (ret graphql.Marshaler) { 4972 fc, err := ec.fieldContext_Dog_size(ctx, field) 4973 if err != nil { 4974 return graphql.Null 4975 } 4976 ctx = graphql.WithFieldContext(ctx, fc) 4977 defer func() { 4978 if r := recover(); r != nil { 4979 ec.Error(ctx, ec.Recover(ctx, r)) 4980 ret = graphql.Null 4981 } 4982 }() 4983 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4984 ctx = rctx // use context from middleware stack in children 4985 return obj.Size, nil 4986 }) 4987 4988 if resTmp == nil { 4989 if !graphql.HasFieldError(ctx, fc) { 4990 ec.Errorf(ctx, "must not be null") 4991 } 4992 return graphql.Null 4993 } 4994 res := resTmp.(*Size) 4995 fc.Result = res 4996 return ec.marshalNSize2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSize(ctx, field.Selections, res) 4997 } 4998 4999 func (ec *executionContext) fieldContext_Dog_size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5000 fc = &graphql.FieldContext{ 5001 Object: "Dog", 5002 Field: field, 5003 IsMethod: false, 5004 IsResolver: false, 5005 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5006 switch field.Name { 5007 case "height": 5008 return ec.fieldContext_Size_height(ctx, field) 5009 case "weight": 5010 return ec.fieldContext_Size_weight(ctx, field) 5011 } 5012 return nil, fmt.Errorf("no field named %q was found under type Size", field.Name) 5013 }, 5014 } 5015 return fc, nil 5016 } 5017 5018 func (ec *executionContext) _Dog_dogBreed(ctx context.Context, field graphql.CollectedField, obj *Dog) (ret graphql.Marshaler) { 5019 fc, err := ec.fieldContext_Dog_dogBreed(ctx, field) 5020 if err != nil { 5021 return graphql.Null 5022 } 5023 ctx = graphql.WithFieldContext(ctx, fc) 5024 defer func() { 5025 if r := recover(); r != nil { 5026 ec.Error(ctx, ec.Recover(ctx, r)) 5027 ret = graphql.Null 5028 } 5029 }() 5030 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5031 ctx = rctx // use context from middleware stack in children 5032 return obj.DogBreed, nil 5033 }) 5034 5035 if resTmp == nil { 5036 if !graphql.HasFieldError(ctx, fc) { 5037 ec.Errorf(ctx, "must not be null") 5038 } 5039 return graphql.Null 5040 } 5041 res := resTmp.(string) 5042 fc.Result = res 5043 return ec.marshalNString2string(ctx, field.Selections, res) 5044 } 5045 5046 func (ec *executionContext) fieldContext_Dog_dogBreed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5047 fc = &graphql.FieldContext{ 5048 Object: "Dog", 5049 Field: field, 5050 IsMethod: false, 5051 IsResolver: false, 5052 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5053 return nil, errors.New("field of type String does not have child fields") 5054 }, 5055 } 5056 return fc, nil 5057 } 5058 5059 func (ec *executionContext) _EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx context.Context, field graphql.CollectedField, obj *EmbeddedCase1) (ret graphql.Marshaler) { 5060 fc, err := ec.fieldContext_EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx, field) 5061 if err != nil { 5062 return graphql.Null 5063 } 5064 ctx = graphql.WithFieldContext(ctx, fc) 5065 defer func() { 5066 if r := recover(); r != nil { 5067 ec.Error(ctx, ec.Recover(ctx, r)) 5068 ret = graphql.Null 5069 } 5070 }() 5071 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5072 ctx = rctx // use context from middleware stack in children 5073 return obj.ExportedEmbeddedPointerExportedMethod(), nil 5074 }) 5075 5076 if resTmp == nil { 5077 if !graphql.HasFieldError(ctx, fc) { 5078 ec.Errorf(ctx, "must not be null") 5079 } 5080 return graphql.Null 5081 } 5082 res := resTmp.(string) 5083 fc.Result = res 5084 return ec.marshalNString2string(ctx, field.Selections, res) 5085 } 5086 5087 func (ec *executionContext) fieldContext_EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5088 fc = &graphql.FieldContext{ 5089 Object: "EmbeddedCase1", 5090 Field: field, 5091 IsMethod: true, 5092 IsResolver: false, 5093 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5094 return nil, errors.New("field of type String does not have child fields") 5095 }, 5096 } 5097 return fc, nil 5098 } 5099 5100 func (ec *executionContext) _EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx context.Context, field graphql.CollectedField, obj *EmbeddedCase2) (ret graphql.Marshaler) { 5101 fc, err := ec.fieldContext_EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx, field) 5102 if err != nil { 5103 return graphql.Null 5104 } 5105 ctx = graphql.WithFieldContext(ctx, fc) 5106 defer func() { 5107 if r := recover(); r != nil { 5108 ec.Error(ctx, ec.Recover(ctx, r)) 5109 ret = graphql.Null 5110 } 5111 }() 5112 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5113 ctx = rctx // use context from middleware stack in children 5114 return obj.UnexportedEmbeddedPointerExportedMethod(), nil 5115 }) 5116 5117 if resTmp == nil { 5118 if !graphql.HasFieldError(ctx, fc) { 5119 ec.Errorf(ctx, "must not be null") 5120 } 5121 return graphql.Null 5122 } 5123 res := resTmp.(string) 5124 fc.Result = res 5125 return ec.marshalNString2string(ctx, field.Selections, res) 5126 } 5127 5128 func (ec *executionContext) fieldContext_EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5129 fc = &graphql.FieldContext{ 5130 Object: "EmbeddedCase2", 5131 Field: field, 5132 IsMethod: true, 5133 IsResolver: false, 5134 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5135 return nil, errors.New("field of type String does not have child fields") 5136 }, 5137 } 5138 return fc, nil 5139 } 5140 5141 func (ec *executionContext) _EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx context.Context, field graphql.CollectedField, obj *EmbeddedCase3) (ret graphql.Marshaler) { 5142 fc, err := ec.fieldContext_EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx, field) 5143 if err != nil { 5144 return graphql.Null 5145 } 5146 ctx = graphql.WithFieldContext(ctx, fc) 5147 defer func() { 5148 if r := recover(); r != nil { 5149 ec.Error(ctx, ec.Recover(ctx, r)) 5150 ret = graphql.Null 5151 } 5152 }() 5153 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5154 ctx = rctx // use context from middleware stack in children 5155 return obj.UnexportedEmbeddedInterfaceExportedMethod(), nil 5156 }) 5157 5158 if resTmp == nil { 5159 if !graphql.HasFieldError(ctx, fc) { 5160 ec.Errorf(ctx, "must not be null") 5161 } 5162 return graphql.Null 5163 } 5164 res := resTmp.(string) 5165 fc.Result = res 5166 return ec.marshalNString2string(ctx, field.Selections, res) 5167 } 5168 5169 func (ec *executionContext) fieldContext_EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5170 fc = &graphql.FieldContext{ 5171 Object: "EmbeddedCase3", 5172 Field: field, 5173 IsMethod: true, 5174 IsResolver: false, 5175 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5176 return nil, errors.New("field of type String does not have child fields") 5177 }, 5178 } 5179 return fc, nil 5180 } 5181 5182 func (ec *executionContext) _EmbeddedDefaultScalar_value(ctx context.Context, field graphql.CollectedField, obj *EmbeddedDefaultScalar) (ret graphql.Marshaler) { 5183 fc, err := ec.fieldContext_EmbeddedDefaultScalar_value(ctx, field) 5184 if err != nil { 5185 return graphql.Null 5186 } 5187 ctx = graphql.WithFieldContext(ctx, fc) 5188 defer func() { 5189 if r := recover(); r != nil { 5190 ec.Error(ctx, ec.Recover(ctx, r)) 5191 ret = graphql.Null 5192 } 5193 }() 5194 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5195 ctx = rctx // use context from middleware stack in children 5196 return obj.Value, nil 5197 }) 5198 5199 if resTmp == nil { 5200 return graphql.Null 5201 } 5202 res := resTmp.(*string) 5203 fc.Result = res 5204 return ec.marshalODefaultScalarImplementation2ᚖstring(ctx, field.Selections, res) 5205 } 5206 5207 func (ec *executionContext) fieldContext_EmbeddedDefaultScalar_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5208 fc = &graphql.FieldContext{ 5209 Object: "EmbeddedDefaultScalar", 5210 Field: field, 5211 IsMethod: false, 5212 IsResolver: false, 5213 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5214 return nil, errors.New("field of type DefaultScalarImplementation does not have child fields") 5215 }, 5216 } 5217 return fc, nil 5218 } 5219 5220 func (ec *executionContext) _EmbeddedPointer_ID(ctx context.Context, field graphql.CollectedField, obj *EmbeddedPointerModel) (ret graphql.Marshaler) { 5221 fc, err := ec.fieldContext_EmbeddedPointer_ID(ctx, field) 5222 if err != nil { 5223 return graphql.Null 5224 } 5225 ctx = graphql.WithFieldContext(ctx, fc) 5226 defer func() { 5227 if r := recover(); r != nil { 5228 ec.Error(ctx, ec.Recover(ctx, r)) 5229 ret = graphql.Null 5230 } 5231 }() 5232 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5233 ctx = rctx // use context from middleware stack in children 5234 return obj.ID, nil 5235 }) 5236 5237 if resTmp == nil { 5238 return graphql.Null 5239 } 5240 res := resTmp.(string) 5241 fc.Result = res 5242 return ec.marshalOString2string(ctx, field.Selections, res) 5243 } 5244 5245 func (ec *executionContext) fieldContext_EmbeddedPointer_ID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5246 fc = &graphql.FieldContext{ 5247 Object: "EmbeddedPointer", 5248 Field: field, 5249 IsMethod: false, 5250 IsResolver: false, 5251 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5252 return nil, errors.New("field of type String does not have child fields") 5253 }, 5254 } 5255 return fc, nil 5256 } 5257 5258 func (ec *executionContext) _EmbeddedPointer_Title(ctx context.Context, field graphql.CollectedField, obj *EmbeddedPointerModel) (ret graphql.Marshaler) { 5259 fc, err := ec.fieldContext_EmbeddedPointer_Title(ctx, field) 5260 if err != nil { 5261 return graphql.Null 5262 } 5263 ctx = graphql.WithFieldContext(ctx, fc) 5264 defer func() { 5265 if r := recover(); r != nil { 5266 ec.Error(ctx, ec.Recover(ctx, r)) 5267 ret = graphql.Null 5268 } 5269 }() 5270 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5271 ctx = rctx // use context from middleware stack in children 5272 return obj.Title, nil 5273 }) 5274 5275 if resTmp == nil { 5276 return graphql.Null 5277 } 5278 res := resTmp.(string) 5279 fc.Result = res 5280 return ec.marshalOString2string(ctx, field.Selections, res) 5281 } 5282 5283 func (ec *executionContext) fieldContext_EmbeddedPointer_Title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5284 fc = &graphql.FieldContext{ 5285 Object: "EmbeddedPointer", 5286 Field: field, 5287 IsMethod: false, 5288 IsResolver: false, 5289 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5290 return nil, errors.New("field of type String does not have child fields") 5291 }, 5292 } 5293 return fc, nil 5294 } 5295 5296 func (ec *executionContext) _Error_id(ctx context.Context, field graphql.CollectedField, obj *Error) (ret graphql.Marshaler) { 5297 fc, err := ec.fieldContext_Error_id(ctx, field) 5298 if err != nil { 5299 return graphql.Null 5300 } 5301 ctx = graphql.WithFieldContext(ctx, fc) 5302 defer func() { 5303 if r := recover(); r != nil { 5304 ec.Error(ctx, ec.Recover(ctx, r)) 5305 ret = graphql.Null 5306 } 5307 }() 5308 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5309 ctx = rctx // use context from middleware stack in children 5310 return obj.ID, nil 5311 }) 5312 5313 if resTmp == nil { 5314 if !graphql.HasFieldError(ctx, fc) { 5315 ec.Errorf(ctx, "must not be null") 5316 } 5317 return graphql.Null 5318 } 5319 res := resTmp.(string) 5320 fc.Result = res 5321 return ec.marshalNID2string(ctx, field.Selections, res) 5322 } 5323 5324 func (ec *executionContext) fieldContext_Error_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5325 fc = &graphql.FieldContext{ 5326 Object: "Error", 5327 Field: field, 5328 IsMethod: false, 5329 IsResolver: false, 5330 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5331 return nil, errors.New("field of type ID does not have child fields") 5332 }, 5333 } 5334 return fc, nil 5335 } 5336 5337 func (ec *executionContext) _Error_errorOnNonRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) (ret graphql.Marshaler) { 5338 fc, err := ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5339 if err != nil { 5340 return graphql.Null 5341 } 5342 ctx = graphql.WithFieldContext(ctx, fc) 5343 defer func() { 5344 if r := recover(); r != nil { 5345 ec.Error(ctx, ec.Recover(ctx, r)) 5346 ret = graphql.Null 5347 } 5348 }() 5349 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5350 ctx = rctx // use context from middleware stack in children 5351 return obj.ErrorOnNonRequiredField() 5352 }) 5353 5354 if resTmp == nil { 5355 return graphql.Null 5356 } 5357 res := resTmp.(string) 5358 fc.Result = res 5359 return ec.marshalOString2string(ctx, field.Selections, res) 5360 } 5361 5362 func (ec *executionContext) fieldContext_Error_errorOnNonRequiredField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5363 fc = &graphql.FieldContext{ 5364 Object: "Error", 5365 Field: field, 5366 IsMethod: true, 5367 IsResolver: false, 5368 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5369 return nil, errors.New("field of type String does not have child fields") 5370 }, 5371 } 5372 return fc, nil 5373 } 5374 5375 func (ec *executionContext) _Error_errorOnRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) (ret graphql.Marshaler) { 5376 fc, err := ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5377 if err != nil { 5378 return graphql.Null 5379 } 5380 ctx = graphql.WithFieldContext(ctx, fc) 5381 defer func() { 5382 if r := recover(); r != nil { 5383 ec.Error(ctx, ec.Recover(ctx, r)) 5384 ret = graphql.Null 5385 } 5386 }() 5387 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5388 ctx = rctx // use context from middleware stack in children 5389 return obj.ErrorOnRequiredField() 5390 }) 5391 5392 if resTmp == nil { 5393 if !graphql.HasFieldError(ctx, fc) { 5394 ec.Errorf(ctx, "must not be null") 5395 } 5396 return graphql.Null 5397 } 5398 res := resTmp.(string) 5399 fc.Result = res 5400 return ec.marshalNString2string(ctx, field.Selections, res) 5401 } 5402 5403 func (ec *executionContext) fieldContext_Error_errorOnRequiredField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5404 fc = &graphql.FieldContext{ 5405 Object: "Error", 5406 Field: field, 5407 IsMethod: true, 5408 IsResolver: false, 5409 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5410 return nil, errors.New("field of type String does not have child fields") 5411 }, 5412 } 5413 return fc, nil 5414 } 5415 5416 func (ec *executionContext) _Error_nilOnRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) (ret graphql.Marshaler) { 5417 fc, err := ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5418 if err != nil { 5419 return graphql.Null 5420 } 5421 ctx = graphql.WithFieldContext(ctx, fc) 5422 defer func() { 5423 if r := recover(); r != nil { 5424 ec.Error(ctx, ec.Recover(ctx, r)) 5425 ret = graphql.Null 5426 } 5427 }() 5428 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5429 ctx = rctx // use context from middleware stack in children 5430 return obj.NilOnRequiredField(), nil 5431 }) 5432 5433 if resTmp == nil { 5434 if !graphql.HasFieldError(ctx, fc) { 5435 ec.Errorf(ctx, "must not be null") 5436 } 5437 return graphql.Null 5438 } 5439 res := resTmp.(*string) 5440 fc.Result = res 5441 return ec.marshalNString2ᚖstring(ctx, field.Selections, res) 5442 } 5443 5444 func (ec *executionContext) fieldContext_Error_nilOnRequiredField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5445 fc = &graphql.FieldContext{ 5446 Object: "Error", 5447 Field: field, 5448 IsMethod: true, 5449 IsResolver: false, 5450 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5451 return nil, errors.New("field of type String does not have child fields") 5452 }, 5453 } 5454 return fc, nil 5455 } 5456 5457 func (ec *executionContext) _Errors_a(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5458 fc, err := ec.fieldContext_Errors_a(ctx, field) 5459 if err != nil { 5460 return graphql.Null 5461 } 5462 ctx = graphql.WithFieldContext(ctx, fc) 5463 defer func() { 5464 if r := recover(); r != nil { 5465 ec.Error(ctx, ec.Recover(ctx, r)) 5466 ret = graphql.Null 5467 } 5468 }() 5469 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5470 ctx = rctx // use context from middleware stack in children 5471 return ec.resolvers.Errors().A(rctx, obj) 5472 }) 5473 5474 if resTmp == nil { 5475 if !graphql.HasFieldError(ctx, fc) { 5476 ec.Errorf(ctx, "must not be null") 5477 } 5478 return graphql.Null 5479 } 5480 res := resTmp.(*Error) 5481 fc.Result = res 5482 return ec.marshalNError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5483 } 5484 5485 func (ec *executionContext) fieldContext_Errors_a(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5486 fc = &graphql.FieldContext{ 5487 Object: "Errors", 5488 Field: field, 5489 IsMethod: true, 5490 IsResolver: true, 5491 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5492 switch field.Name { 5493 case "id": 5494 return ec.fieldContext_Error_id(ctx, field) 5495 case "errorOnNonRequiredField": 5496 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5497 case "errorOnRequiredField": 5498 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5499 case "nilOnRequiredField": 5500 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5501 } 5502 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5503 }, 5504 } 5505 return fc, nil 5506 } 5507 5508 func (ec *executionContext) _Errors_b(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5509 fc, err := ec.fieldContext_Errors_b(ctx, field) 5510 if err != nil { 5511 return graphql.Null 5512 } 5513 ctx = graphql.WithFieldContext(ctx, fc) 5514 defer func() { 5515 if r := recover(); r != nil { 5516 ec.Error(ctx, ec.Recover(ctx, r)) 5517 ret = graphql.Null 5518 } 5519 }() 5520 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5521 ctx = rctx // use context from middleware stack in children 5522 return ec.resolvers.Errors().B(rctx, obj) 5523 }) 5524 5525 if resTmp == nil { 5526 if !graphql.HasFieldError(ctx, fc) { 5527 ec.Errorf(ctx, "must not be null") 5528 } 5529 return graphql.Null 5530 } 5531 res := resTmp.(*Error) 5532 fc.Result = res 5533 return ec.marshalNError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5534 } 5535 5536 func (ec *executionContext) fieldContext_Errors_b(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5537 fc = &graphql.FieldContext{ 5538 Object: "Errors", 5539 Field: field, 5540 IsMethod: true, 5541 IsResolver: true, 5542 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5543 switch field.Name { 5544 case "id": 5545 return ec.fieldContext_Error_id(ctx, field) 5546 case "errorOnNonRequiredField": 5547 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5548 case "errorOnRequiredField": 5549 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5550 case "nilOnRequiredField": 5551 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5552 } 5553 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5554 }, 5555 } 5556 return fc, nil 5557 } 5558 5559 func (ec *executionContext) _Errors_c(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5560 fc, err := ec.fieldContext_Errors_c(ctx, field) 5561 if err != nil { 5562 return graphql.Null 5563 } 5564 ctx = graphql.WithFieldContext(ctx, fc) 5565 defer func() { 5566 if r := recover(); r != nil { 5567 ec.Error(ctx, ec.Recover(ctx, r)) 5568 ret = graphql.Null 5569 } 5570 }() 5571 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5572 ctx = rctx // use context from middleware stack in children 5573 return ec.resolvers.Errors().C(rctx, obj) 5574 }) 5575 5576 if resTmp == nil { 5577 if !graphql.HasFieldError(ctx, fc) { 5578 ec.Errorf(ctx, "must not be null") 5579 } 5580 return graphql.Null 5581 } 5582 res := resTmp.(*Error) 5583 fc.Result = res 5584 return ec.marshalNError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5585 } 5586 5587 func (ec *executionContext) fieldContext_Errors_c(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5588 fc = &graphql.FieldContext{ 5589 Object: "Errors", 5590 Field: field, 5591 IsMethod: true, 5592 IsResolver: true, 5593 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5594 switch field.Name { 5595 case "id": 5596 return ec.fieldContext_Error_id(ctx, field) 5597 case "errorOnNonRequiredField": 5598 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5599 case "errorOnRequiredField": 5600 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5601 case "nilOnRequiredField": 5602 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5603 } 5604 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5605 }, 5606 } 5607 return fc, nil 5608 } 5609 5610 func (ec *executionContext) _Errors_d(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5611 fc, err := ec.fieldContext_Errors_d(ctx, field) 5612 if err != nil { 5613 return graphql.Null 5614 } 5615 ctx = graphql.WithFieldContext(ctx, fc) 5616 defer func() { 5617 if r := recover(); r != nil { 5618 ec.Error(ctx, ec.Recover(ctx, r)) 5619 ret = graphql.Null 5620 } 5621 }() 5622 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5623 ctx = rctx // use context from middleware stack in children 5624 return ec.resolvers.Errors().D(rctx, obj) 5625 }) 5626 5627 if resTmp == nil { 5628 if !graphql.HasFieldError(ctx, fc) { 5629 ec.Errorf(ctx, "must not be null") 5630 } 5631 return graphql.Null 5632 } 5633 res := resTmp.(*Error) 5634 fc.Result = res 5635 return ec.marshalNError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5636 } 5637 5638 func (ec *executionContext) fieldContext_Errors_d(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5639 fc = &graphql.FieldContext{ 5640 Object: "Errors", 5641 Field: field, 5642 IsMethod: true, 5643 IsResolver: true, 5644 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5645 switch field.Name { 5646 case "id": 5647 return ec.fieldContext_Error_id(ctx, field) 5648 case "errorOnNonRequiredField": 5649 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5650 case "errorOnRequiredField": 5651 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5652 case "nilOnRequiredField": 5653 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5654 } 5655 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5656 }, 5657 } 5658 return fc, nil 5659 } 5660 5661 func (ec *executionContext) _Errors_e(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5662 fc, err := ec.fieldContext_Errors_e(ctx, field) 5663 if err != nil { 5664 return graphql.Null 5665 } 5666 ctx = graphql.WithFieldContext(ctx, fc) 5667 defer func() { 5668 if r := recover(); r != nil { 5669 ec.Error(ctx, ec.Recover(ctx, r)) 5670 ret = graphql.Null 5671 } 5672 }() 5673 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5674 ctx = rctx // use context from middleware stack in children 5675 return ec.resolvers.Errors().E(rctx, obj) 5676 }) 5677 5678 if resTmp == nil { 5679 if !graphql.HasFieldError(ctx, fc) { 5680 ec.Errorf(ctx, "must not be null") 5681 } 5682 return graphql.Null 5683 } 5684 res := resTmp.(*Error) 5685 fc.Result = res 5686 return ec.marshalNError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5687 } 5688 5689 func (ec *executionContext) fieldContext_Errors_e(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5690 fc = &graphql.FieldContext{ 5691 Object: "Errors", 5692 Field: field, 5693 IsMethod: true, 5694 IsResolver: true, 5695 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5696 switch field.Name { 5697 case "id": 5698 return ec.fieldContext_Error_id(ctx, field) 5699 case "errorOnNonRequiredField": 5700 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5701 case "errorOnRequiredField": 5702 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5703 case "nilOnRequiredField": 5704 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5705 } 5706 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5707 }, 5708 } 5709 return fc, nil 5710 } 5711 5712 func (ec *executionContext) _FieldsOrderPayload_firstFieldValue(ctx context.Context, field graphql.CollectedField, obj *FieldsOrderPayload) (ret graphql.Marshaler) { 5713 fc, err := ec.fieldContext_FieldsOrderPayload_firstFieldValue(ctx, field) 5714 if err != nil { 5715 return graphql.Null 5716 } 5717 ctx = graphql.WithFieldContext(ctx, fc) 5718 defer func() { 5719 if r := recover(); r != nil { 5720 ec.Error(ctx, ec.Recover(ctx, r)) 5721 ret = graphql.Null 5722 } 5723 }() 5724 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5725 ctx = rctx // use context from middleware stack in children 5726 return obj.FirstFieldValue, nil 5727 }) 5728 5729 if resTmp == nil { 5730 return graphql.Null 5731 } 5732 res := resTmp.(*string) 5733 fc.Result = res 5734 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5735 } 5736 5737 func (ec *executionContext) fieldContext_FieldsOrderPayload_firstFieldValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5738 fc = &graphql.FieldContext{ 5739 Object: "FieldsOrderPayload", 5740 Field: field, 5741 IsMethod: false, 5742 IsResolver: false, 5743 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5744 return nil, errors.New("field of type String does not have child fields") 5745 }, 5746 } 5747 return fc, nil 5748 } 5749 5750 func (ec *executionContext) _ForcedResolver_field(ctx context.Context, field graphql.CollectedField, obj *ForcedResolver) (ret graphql.Marshaler) { 5751 fc, err := ec.fieldContext_ForcedResolver_field(ctx, field) 5752 if err != nil { 5753 return graphql.Null 5754 } 5755 ctx = graphql.WithFieldContext(ctx, fc) 5756 defer func() { 5757 if r := recover(); r != nil { 5758 ec.Error(ctx, ec.Recover(ctx, r)) 5759 ret = graphql.Null 5760 } 5761 }() 5762 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5763 ctx = rctx // use context from middleware stack in children 5764 return ec.resolvers.ForcedResolver().Field(rctx, obj) 5765 }) 5766 5767 if resTmp == nil { 5768 return graphql.Null 5769 } 5770 res := resTmp.(*Circle) 5771 fc.Result = res 5772 return ec.marshalOCircle2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCircle(ctx, field.Selections, res) 5773 } 5774 5775 func (ec *executionContext) fieldContext_ForcedResolver_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5776 fc = &graphql.FieldContext{ 5777 Object: "ForcedResolver", 5778 Field: field, 5779 IsMethod: true, 5780 IsResolver: true, 5781 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5782 switch field.Name { 5783 case "radius": 5784 return ec.fieldContext_Circle_radius(ctx, field) 5785 case "area": 5786 return ec.fieldContext_Circle_area(ctx, field) 5787 case "coordinates": 5788 return ec.fieldContext_Circle_coordinates(ctx, field) 5789 } 5790 return nil, fmt.Errorf("no field named %q was found under type Circle", field.Name) 5791 }, 5792 } 5793 return fc, nil 5794 } 5795 5796 func (ec *executionContext) _InnerObject_id(ctx context.Context, field graphql.CollectedField, obj *InnerObject) (ret graphql.Marshaler) { 5797 fc, err := ec.fieldContext_InnerObject_id(ctx, field) 5798 if err != nil { 5799 return graphql.Null 5800 } 5801 ctx = graphql.WithFieldContext(ctx, fc) 5802 defer func() { 5803 if r := recover(); r != nil { 5804 ec.Error(ctx, ec.Recover(ctx, r)) 5805 ret = graphql.Null 5806 } 5807 }() 5808 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5809 ctx = rctx // use context from middleware stack in children 5810 return obj.ID, nil 5811 }) 5812 5813 if resTmp == nil { 5814 if !graphql.HasFieldError(ctx, fc) { 5815 ec.Errorf(ctx, "must not be null") 5816 } 5817 return graphql.Null 5818 } 5819 res := resTmp.(int) 5820 fc.Result = res 5821 return ec.marshalNInt2int(ctx, field.Selections, res) 5822 } 5823 5824 func (ec *executionContext) fieldContext_InnerObject_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5825 fc = &graphql.FieldContext{ 5826 Object: "InnerObject", 5827 Field: field, 5828 IsMethod: false, 5829 IsResolver: false, 5830 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5831 return nil, errors.New("field of type Int does not have child fields") 5832 }, 5833 } 5834 return fc, nil 5835 } 5836 5837 func (ec *executionContext) _InvalidIdentifier_id(ctx context.Context, field graphql.CollectedField, obj *invalid_packagename.InvalidIdentifier) (ret graphql.Marshaler) { 5838 fc, err := ec.fieldContext_InvalidIdentifier_id(ctx, field) 5839 if err != nil { 5840 return graphql.Null 5841 } 5842 ctx = graphql.WithFieldContext(ctx, fc) 5843 defer func() { 5844 if r := recover(); r != nil { 5845 ec.Error(ctx, ec.Recover(ctx, r)) 5846 ret = graphql.Null 5847 } 5848 }() 5849 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5850 ctx = rctx // use context from middleware stack in children 5851 return obj.ID, nil 5852 }) 5853 5854 if resTmp == nil { 5855 if !graphql.HasFieldError(ctx, fc) { 5856 ec.Errorf(ctx, "must not be null") 5857 } 5858 return graphql.Null 5859 } 5860 res := resTmp.(int) 5861 fc.Result = res 5862 return ec.marshalNInt2int(ctx, field.Selections, res) 5863 } 5864 5865 func (ec *executionContext) fieldContext_InvalidIdentifier_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5866 fc = &graphql.FieldContext{ 5867 Object: "InvalidIdentifier", 5868 Field: field, 5869 IsMethod: false, 5870 IsResolver: false, 5871 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5872 return nil, errors.New("field of type Int does not have child fields") 5873 }, 5874 } 5875 return fc, nil 5876 } 5877 5878 func (ec *executionContext) _It_id(ctx context.Context, field graphql.CollectedField, obj *introspection1.It) (ret graphql.Marshaler) { 5879 fc, err := ec.fieldContext_It_id(ctx, field) 5880 if err != nil { 5881 return graphql.Null 5882 } 5883 ctx = graphql.WithFieldContext(ctx, fc) 5884 defer func() { 5885 if r := recover(); r != nil { 5886 ec.Error(ctx, ec.Recover(ctx, r)) 5887 ret = graphql.Null 5888 } 5889 }() 5890 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5891 ctx = rctx // use context from middleware stack in children 5892 return obj.ID, nil 5893 }) 5894 5895 if resTmp == nil { 5896 if !graphql.HasFieldError(ctx, fc) { 5897 ec.Errorf(ctx, "must not be null") 5898 } 5899 return graphql.Null 5900 } 5901 res := resTmp.(string) 5902 fc.Result = res 5903 return ec.marshalNID2string(ctx, field.Selections, res) 5904 } 5905 5906 func (ec *executionContext) fieldContext_It_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5907 fc = &graphql.FieldContext{ 5908 Object: "It", 5909 Field: field, 5910 IsMethod: false, 5911 IsResolver: false, 5912 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5913 return nil, errors.New("field of type ID does not have child fields") 5914 }, 5915 } 5916 return fc, nil 5917 } 5918 5919 func (ec *executionContext) _LoopA_b(ctx context.Context, field graphql.CollectedField, obj *LoopA) (ret graphql.Marshaler) { 5920 fc, err := ec.fieldContext_LoopA_b(ctx, field) 5921 if err != nil { 5922 return graphql.Null 5923 } 5924 ctx = graphql.WithFieldContext(ctx, fc) 5925 defer func() { 5926 if r := recover(); r != nil { 5927 ec.Error(ctx, ec.Recover(ctx, r)) 5928 ret = graphql.Null 5929 } 5930 }() 5931 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5932 ctx = rctx // use context from middleware stack in children 5933 return obj.B, nil 5934 }) 5935 5936 if resTmp == nil { 5937 if !graphql.HasFieldError(ctx, fc) { 5938 ec.Errorf(ctx, "must not be null") 5939 } 5940 return graphql.Null 5941 } 5942 res := resTmp.(*LoopB) 5943 fc.Result = res 5944 return ec.marshalNLoopB2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐLoopB(ctx, field.Selections, res) 5945 } 5946 5947 func (ec *executionContext) fieldContext_LoopA_b(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5948 fc = &graphql.FieldContext{ 5949 Object: "LoopA", 5950 Field: field, 5951 IsMethod: false, 5952 IsResolver: false, 5953 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5954 switch field.Name { 5955 case "a": 5956 return ec.fieldContext_LoopB_a(ctx, field) 5957 } 5958 return nil, fmt.Errorf("no field named %q was found under type LoopB", field.Name) 5959 }, 5960 } 5961 return fc, nil 5962 } 5963 5964 func (ec *executionContext) _LoopB_a(ctx context.Context, field graphql.CollectedField, obj *LoopB) (ret graphql.Marshaler) { 5965 fc, err := ec.fieldContext_LoopB_a(ctx, field) 5966 if err != nil { 5967 return graphql.Null 5968 } 5969 ctx = graphql.WithFieldContext(ctx, fc) 5970 defer func() { 5971 if r := recover(); r != nil { 5972 ec.Error(ctx, ec.Recover(ctx, r)) 5973 ret = graphql.Null 5974 } 5975 }() 5976 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5977 ctx = rctx // use context from middleware stack in children 5978 return obj.A, nil 5979 }) 5980 5981 if resTmp == nil { 5982 if !graphql.HasFieldError(ctx, fc) { 5983 ec.Errorf(ctx, "must not be null") 5984 } 5985 return graphql.Null 5986 } 5987 res := resTmp.(*LoopA) 5988 fc.Result = res 5989 return ec.marshalNLoopA2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐLoopA(ctx, field.Selections, res) 5990 } 5991 5992 func (ec *executionContext) fieldContext_LoopB_a(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5993 fc = &graphql.FieldContext{ 5994 Object: "LoopB", 5995 Field: field, 5996 IsMethod: false, 5997 IsResolver: false, 5998 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5999 switch field.Name { 6000 case "b": 6001 return ec.fieldContext_LoopA_b(ctx, field) 6002 } 6003 return nil, fmt.Errorf("no field named %q was found under type LoopA", field.Name) 6004 }, 6005 } 6006 return fc, nil 6007 } 6008 6009 func (ec *executionContext) _Map_id(ctx context.Context, field graphql.CollectedField, obj *Map) (ret graphql.Marshaler) { 6010 fc, err := ec.fieldContext_Map_id(ctx, field) 6011 if err != nil { 6012 return graphql.Null 6013 } 6014 ctx = graphql.WithFieldContext(ctx, fc) 6015 defer func() { 6016 if r := recover(); r != nil { 6017 ec.Error(ctx, ec.Recover(ctx, r)) 6018 ret = graphql.Null 6019 } 6020 }() 6021 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6022 ctx = rctx // use context from middleware stack in children 6023 return obj.ID, nil 6024 }) 6025 6026 if resTmp == nil { 6027 if !graphql.HasFieldError(ctx, fc) { 6028 ec.Errorf(ctx, "must not be null") 6029 } 6030 return graphql.Null 6031 } 6032 res := resTmp.(string) 6033 fc.Result = res 6034 return ec.marshalNID2string(ctx, field.Selections, res) 6035 } 6036 6037 func (ec *executionContext) fieldContext_Map_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6038 fc = &graphql.FieldContext{ 6039 Object: "Map", 6040 Field: field, 6041 IsMethod: false, 6042 IsResolver: false, 6043 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6044 return nil, errors.New("field of type ID does not have child fields") 6045 }, 6046 } 6047 return fc, nil 6048 } 6049 6050 func (ec *executionContext) _MapStringInterfaceType_a(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { 6051 fc, err := ec.fieldContext_MapStringInterfaceType_a(ctx, field) 6052 if err != nil { 6053 return graphql.Null 6054 } 6055 ctx = graphql.WithFieldContext(ctx, fc) 6056 defer func() { 6057 if r := recover(); r != nil { 6058 ec.Error(ctx, ec.Recover(ctx, r)) 6059 ret = graphql.Null 6060 } 6061 }() 6062 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6063 ctx = rctx // use context from middleware stack in children 6064 switch v := obj["a"].(type) { 6065 case *string: 6066 return v, nil 6067 case string: 6068 return &v, nil 6069 case nil: 6070 return (*string)(nil), nil 6071 default: 6072 return nil, fmt.Errorf("unexpected type %T for field %s", v, "a") 6073 } 6074 }) 6075 6076 if resTmp == nil { 6077 return graphql.Null 6078 } 6079 res := resTmp.(*string) 6080 fc.Result = res 6081 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6082 } 6083 6084 func (ec *executionContext) fieldContext_MapStringInterfaceType_a(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6085 fc = &graphql.FieldContext{ 6086 Object: "MapStringInterfaceType", 6087 Field: field, 6088 IsMethod: false, 6089 IsResolver: false, 6090 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6091 return nil, errors.New("field of type String does not have child fields") 6092 }, 6093 } 6094 return fc, nil 6095 } 6096 6097 func (ec *executionContext) _MapStringInterfaceType_b(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { 6098 fc, err := ec.fieldContext_MapStringInterfaceType_b(ctx, field) 6099 if err != nil { 6100 return graphql.Null 6101 } 6102 ctx = graphql.WithFieldContext(ctx, fc) 6103 defer func() { 6104 if r := recover(); r != nil { 6105 ec.Error(ctx, ec.Recover(ctx, r)) 6106 ret = graphql.Null 6107 } 6108 }() 6109 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6110 ctx = rctx // use context from middleware stack in children 6111 switch v := obj["b"].(type) { 6112 case *int: 6113 return v, nil 6114 case int: 6115 return &v, nil 6116 case nil: 6117 return (*int)(nil), nil 6118 default: 6119 return nil, fmt.Errorf("unexpected type %T for field %s", v, "b") 6120 } 6121 }) 6122 6123 if resTmp == nil { 6124 return graphql.Null 6125 } 6126 res := resTmp.(*int) 6127 fc.Result = res 6128 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 6129 } 6130 6131 func (ec *executionContext) fieldContext_MapStringInterfaceType_b(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6132 fc = &graphql.FieldContext{ 6133 Object: "MapStringInterfaceType", 6134 Field: field, 6135 IsMethod: false, 6136 IsResolver: false, 6137 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6138 return nil, errors.New("field of type Int does not have child fields") 6139 }, 6140 } 6141 return fc, nil 6142 } 6143 6144 func (ec *executionContext) _ModelMethods_resolverField(ctx context.Context, field graphql.CollectedField, obj *ModelMethods) (ret graphql.Marshaler) { 6145 fc, err := ec.fieldContext_ModelMethods_resolverField(ctx, field) 6146 if err != nil { 6147 return graphql.Null 6148 } 6149 ctx = graphql.WithFieldContext(ctx, fc) 6150 defer func() { 6151 if r := recover(); r != nil { 6152 ec.Error(ctx, ec.Recover(ctx, r)) 6153 ret = graphql.Null 6154 } 6155 }() 6156 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6157 ctx = rctx // use context from middleware stack in children 6158 return ec.resolvers.ModelMethods().ResolverField(rctx, obj) 6159 }) 6160 6161 if resTmp == nil { 6162 if !graphql.HasFieldError(ctx, fc) { 6163 ec.Errorf(ctx, "must not be null") 6164 } 6165 return graphql.Null 6166 } 6167 res := resTmp.(bool) 6168 fc.Result = res 6169 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 6170 } 6171 6172 func (ec *executionContext) fieldContext_ModelMethods_resolverField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6173 fc = &graphql.FieldContext{ 6174 Object: "ModelMethods", 6175 Field: field, 6176 IsMethod: true, 6177 IsResolver: true, 6178 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6179 return nil, errors.New("field of type Boolean does not have child fields") 6180 }, 6181 } 6182 return fc, nil 6183 } 6184 6185 func (ec *executionContext) _ModelMethods_noContext(ctx context.Context, field graphql.CollectedField, obj *ModelMethods) (ret graphql.Marshaler) { 6186 fc, err := ec.fieldContext_ModelMethods_noContext(ctx, field) 6187 if err != nil { 6188 return graphql.Null 6189 } 6190 ctx = graphql.WithFieldContext(ctx, fc) 6191 defer func() { 6192 if r := recover(); r != nil { 6193 ec.Error(ctx, ec.Recover(ctx, r)) 6194 ret = graphql.Null 6195 } 6196 }() 6197 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6198 ctx = rctx // use context from middleware stack in children 6199 return obj.NoContext(), nil 6200 }) 6201 6202 if resTmp == nil { 6203 if !graphql.HasFieldError(ctx, fc) { 6204 ec.Errorf(ctx, "must not be null") 6205 } 6206 return graphql.Null 6207 } 6208 res := resTmp.(bool) 6209 fc.Result = res 6210 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 6211 } 6212 6213 func (ec *executionContext) fieldContext_ModelMethods_noContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6214 fc = &graphql.FieldContext{ 6215 Object: "ModelMethods", 6216 Field: field, 6217 IsMethod: true, 6218 IsResolver: false, 6219 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6220 return nil, errors.New("field of type Boolean does not have child fields") 6221 }, 6222 } 6223 return fc, nil 6224 } 6225 6226 func (ec *executionContext) _ModelMethods_withContext(ctx context.Context, field graphql.CollectedField, obj *ModelMethods) (ret graphql.Marshaler) { 6227 fc, err := ec.fieldContext_ModelMethods_withContext(ctx, field) 6228 if err != nil { 6229 return graphql.Null 6230 } 6231 ctx = graphql.WithFieldContext(ctx, fc) 6232 defer func() { 6233 if r := recover(); r != nil { 6234 ec.Error(ctx, ec.Recover(ctx, r)) 6235 ret = graphql.Null 6236 } 6237 }() 6238 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6239 ctx = rctx // use context from middleware stack in children 6240 return obj.WithContext(ctx), nil 6241 }) 6242 6243 if resTmp == nil { 6244 if !graphql.HasFieldError(ctx, fc) { 6245 ec.Errorf(ctx, "must not be null") 6246 } 6247 return graphql.Null 6248 } 6249 res := resTmp.(bool) 6250 fc.Result = res 6251 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 6252 } 6253 6254 func (ec *executionContext) fieldContext_ModelMethods_withContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6255 fc = &graphql.FieldContext{ 6256 Object: "ModelMethods", 6257 Field: field, 6258 IsMethod: true, 6259 IsResolver: false, 6260 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6261 return nil, errors.New("field of type Boolean does not have child fields") 6262 }, 6263 } 6264 return fc, nil 6265 } 6266 6267 func (ec *executionContext) _Mutation_defaultInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6268 fc, err := ec.fieldContext_Mutation_defaultInput(ctx, field) 6269 if err != nil { 6270 return graphql.Null 6271 } 6272 ctx = graphql.WithFieldContext(ctx, fc) 6273 defer func() { 6274 if r := recover(); r != nil { 6275 ec.Error(ctx, ec.Recover(ctx, r)) 6276 ret = graphql.Null 6277 } 6278 }() 6279 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 6280 ctx = rctx // use context from middleware stack in children 6281 return ec.resolvers.Mutation().DefaultInput(rctx, fc.Args["input"].(DefaultInput)) 6282 }) 6283 6284 if resTmp == nil { 6285 if !graphql.HasFieldError(ctx, fc) { 6286 ec.Errorf(ctx, "must not be null") 6287 } 6288 return graphql.Null 6289 } 6290 res := resTmp.(*DefaultParametersMirror) 6291 fc.Result = res 6292 return ec.marshalNDefaultParametersMirror2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultParametersMirror(ctx, field.Selections, res) 6293 } 6294 6295 func (ec *executionContext) fieldContext_Mutation_defaultInput(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6296 fc = &graphql.FieldContext{ 6297 Object: "Mutation", 6298 Field: field, 6299 IsMethod: true, 6300 IsResolver: true, 6301 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6302 switch field.Name { 6303 case "falsyBoolean": 6304 return ec.fieldContext_DefaultParametersMirror_falsyBoolean(ctx, field) 6305 case "truthyBoolean": 6306 return ec.fieldContext_DefaultParametersMirror_truthyBoolean(ctx, field) 6307 } 6308 return nil, fmt.Errorf("no field named %q was found under type DefaultParametersMirror", field.Name) 6309 }, 6310 } 6311 defer func() { 6312 if r := recover(); r != nil { 6313 err = ec.Recover(ctx, r) 6314 ec.Error(ctx, err) 6315 } 6316 }() 6317 ctx = graphql.WithFieldContext(ctx, fc) 6318 if fc.Args, err = ec.field_Mutation_defaultInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6319 ec.Error(ctx, err) 6320 return fc, err 6321 } 6322 return fc, nil 6323 } 6324 6325 func (ec *executionContext) _Mutation_overrideValueViaInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6326 fc, err := ec.fieldContext_Mutation_overrideValueViaInput(ctx, field) 6327 if err != nil { 6328 return graphql.Null 6329 } 6330 ctx = graphql.WithFieldContext(ctx, fc) 6331 defer func() { 6332 if r := recover(); r != nil { 6333 ec.Error(ctx, ec.Recover(ctx, r)) 6334 ret = graphql.Null 6335 } 6336 }() 6337 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 6338 ctx = rctx // use context from middleware stack in children 6339 return ec.resolvers.Mutation().OverrideValueViaInput(rctx, fc.Args["input"].(FieldsOrderInput)) 6340 }) 6341 6342 if resTmp == nil { 6343 if !graphql.HasFieldError(ctx, fc) { 6344 ec.Errorf(ctx, "must not be null") 6345 } 6346 return graphql.Null 6347 } 6348 res := resTmp.(*FieldsOrderPayload) 6349 fc.Result = res 6350 return ec.marshalNFieldsOrderPayload2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFieldsOrderPayload(ctx, field.Selections, res) 6351 } 6352 6353 func (ec *executionContext) fieldContext_Mutation_overrideValueViaInput(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6354 fc = &graphql.FieldContext{ 6355 Object: "Mutation", 6356 Field: field, 6357 IsMethod: true, 6358 IsResolver: true, 6359 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6360 switch field.Name { 6361 case "firstFieldValue": 6362 return ec.fieldContext_FieldsOrderPayload_firstFieldValue(ctx, field) 6363 } 6364 return nil, fmt.Errorf("no field named %q was found under type FieldsOrderPayload", field.Name) 6365 }, 6366 } 6367 defer func() { 6368 if r := recover(); r != nil { 6369 err = ec.Recover(ctx, r) 6370 ec.Error(ctx, err) 6371 } 6372 }() 6373 ctx = graphql.WithFieldContext(ctx, fc) 6374 if fc.Args, err = ec.field_Mutation_overrideValueViaInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6375 ec.Error(ctx, err) 6376 return fc, err 6377 } 6378 return fc, nil 6379 } 6380 6381 func (ec *executionContext) _Mutation_updateSomething(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6382 fc, err := ec.fieldContext_Mutation_updateSomething(ctx, field) 6383 if err != nil { 6384 return graphql.Null 6385 } 6386 ctx = graphql.WithFieldContext(ctx, fc) 6387 defer func() { 6388 if r := recover(); r != nil { 6389 ec.Error(ctx, ec.Recover(ctx, r)) 6390 ret = graphql.Null 6391 } 6392 }() 6393 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 6394 ctx = rctx // use context from middleware stack in children 6395 return ec.resolvers.Mutation().UpdateSomething(rctx, fc.Args["input"].(SpecialInput)) 6396 }) 6397 6398 if resTmp == nil { 6399 if !graphql.HasFieldError(ctx, fc) { 6400 ec.Errorf(ctx, "must not be null") 6401 } 6402 return graphql.Null 6403 } 6404 res := resTmp.(string) 6405 fc.Result = res 6406 return ec.marshalNString2string(ctx, field.Selections, res) 6407 } 6408 6409 func (ec *executionContext) fieldContext_Mutation_updateSomething(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6410 fc = &graphql.FieldContext{ 6411 Object: "Mutation", 6412 Field: field, 6413 IsMethod: true, 6414 IsResolver: true, 6415 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6416 return nil, errors.New("field of type String does not have child fields") 6417 }, 6418 } 6419 defer func() { 6420 if r := recover(); r != nil { 6421 err = ec.Recover(ctx, r) 6422 ec.Error(ctx, err) 6423 } 6424 }() 6425 ctx = graphql.WithFieldContext(ctx, fc) 6426 if fc.Args, err = ec.field_Mutation_updateSomething_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6427 ec.Error(ctx, err) 6428 return fc, err 6429 } 6430 return fc, nil 6431 } 6432 6433 func (ec *executionContext) _Mutation_updatePtrToPtr(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6434 fc, err := ec.fieldContext_Mutation_updatePtrToPtr(ctx, field) 6435 if err != nil { 6436 return graphql.Null 6437 } 6438 ctx = graphql.WithFieldContext(ctx, fc) 6439 defer func() { 6440 if r := recover(); r != nil { 6441 ec.Error(ctx, ec.Recover(ctx, r)) 6442 ret = graphql.Null 6443 } 6444 }() 6445 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 6446 ctx = rctx // use context from middleware stack in children 6447 return ec.resolvers.Mutation().UpdatePtrToPtr(rctx, fc.Args["input"].(UpdatePtrToPtrOuter)) 6448 }) 6449 6450 if resTmp == nil { 6451 if !graphql.HasFieldError(ctx, fc) { 6452 ec.Errorf(ctx, "must not be null") 6453 } 6454 return graphql.Null 6455 } 6456 res := resTmp.(*PtrToPtrOuter) 6457 fc.Result = res 6458 return ec.marshalNPtrToPtrOuter2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrOuter(ctx, field.Selections, res) 6459 } 6460 6461 func (ec *executionContext) fieldContext_Mutation_updatePtrToPtr(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6462 fc = &graphql.FieldContext{ 6463 Object: "Mutation", 6464 Field: field, 6465 IsMethod: true, 6466 IsResolver: true, 6467 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6468 switch field.Name { 6469 case "name": 6470 return ec.fieldContext_PtrToPtrOuter_name(ctx, field) 6471 case "inner": 6472 return ec.fieldContext_PtrToPtrOuter_inner(ctx, field) 6473 case "stupidInner": 6474 return ec.fieldContext_PtrToPtrOuter_stupidInner(ctx, field) 6475 } 6476 return nil, fmt.Errorf("no field named %q was found under type PtrToPtrOuter", field.Name) 6477 }, 6478 } 6479 defer func() { 6480 if r := recover(); r != nil { 6481 err = ec.Recover(ctx, r) 6482 ec.Error(ctx, err) 6483 } 6484 }() 6485 ctx = graphql.WithFieldContext(ctx, fc) 6486 if fc.Args, err = ec.field_Mutation_updatePtrToPtr_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6487 ec.Error(ctx, err) 6488 return fc, err 6489 } 6490 return fc, nil 6491 } 6492 6493 func (ec *executionContext) _ObjectDirectives_text(ctx context.Context, field graphql.CollectedField, obj *ObjectDirectives) (ret graphql.Marshaler) { 6494 fc, err := ec.fieldContext_ObjectDirectives_text(ctx, field) 6495 if err != nil { 6496 return graphql.Null 6497 } 6498 ctx = graphql.WithFieldContext(ctx, fc) 6499 defer func() { 6500 if r := recover(); r != nil { 6501 ec.Error(ctx, ec.Recover(ctx, r)) 6502 ret = graphql.Null 6503 } 6504 }() 6505 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6506 directive0 := func(rctx context.Context) (interface{}, error) { 6507 ctx = rctx // use context from middleware stack in children 6508 return obj.Text, nil 6509 } 6510 directive1 := func(ctx context.Context) (interface{}, error) { 6511 min, err := ec.unmarshalNInt2int(ctx, 0) 6512 if err != nil { 6513 return nil, err 6514 } 6515 max, err := ec.unmarshalOInt2ᚖint(ctx, 7) 6516 if err != nil { 6517 return nil, err 6518 } 6519 message, err := ec.unmarshalOString2ᚖstring(ctx, "not valid") 6520 if err != nil { 6521 return nil, err 6522 } 6523 if ec.directives.Length == nil { 6524 return nil, errors.New("directive length is not implemented") 6525 } 6526 return ec.directives.Length(ctx, obj, directive0, min, max, message) 6527 } 6528 6529 tmp, err := directive1(rctx) 6530 if err != nil { 6531 return nil, graphql.ErrorOnPath(ctx, err) 6532 } 6533 if tmp == nil { 6534 return nil, nil 6535 } 6536 if data, ok := tmp.(string); ok { 6537 return data, nil 6538 } 6539 return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 6540 }) 6541 6542 if resTmp == nil { 6543 if !graphql.HasFieldError(ctx, fc) { 6544 ec.Errorf(ctx, "must not be null") 6545 } 6546 return graphql.Null 6547 } 6548 res := resTmp.(string) 6549 fc.Result = res 6550 return ec.marshalNString2string(ctx, field.Selections, res) 6551 } 6552 6553 func (ec *executionContext) fieldContext_ObjectDirectives_text(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6554 fc = &graphql.FieldContext{ 6555 Object: "ObjectDirectives", 6556 Field: field, 6557 IsMethod: false, 6558 IsResolver: false, 6559 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6560 return nil, errors.New("field of type String does not have child fields") 6561 }, 6562 } 6563 return fc, nil 6564 } 6565 6566 func (ec *executionContext) _ObjectDirectives_nullableText(ctx context.Context, field graphql.CollectedField, obj *ObjectDirectives) (ret graphql.Marshaler) { 6567 fc, err := ec.fieldContext_ObjectDirectives_nullableText(ctx, field) 6568 if err != nil { 6569 return graphql.Null 6570 } 6571 ctx = graphql.WithFieldContext(ctx, fc) 6572 defer func() { 6573 if r := recover(); r != nil { 6574 ec.Error(ctx, ec.Recover(ctx, r)) 6575 ret = graphql.Null 6576 } 6577 }() 6578 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6579 directive0 := func(rctx context.Context) (interface{}, error) { 6580 ctx = rctx // use context from middleware stack in children 6581 return obj.NullableText, nil 6582 } 6583 directive1 := func(ctx context.Context) (interface{}, error) { 6584 if ec.directives.ToNull == nil { 6585 return nil, errors.New("directive toNull is not implemented") 6586 } 6587 return ec.directives.ToNull(ctx, obj, directive0) 6588 } 6589 6590 tmp, err := directive1(rctx) 6591 if err != nil { 6592 return nil, graphql.ErrorOnPath(ctx, err) 6593 } 6594 if tmp == nil { 6595 return nil, nil 6596 } 6597 if data, ok := tmp.(*string); ok { 6598 return data, nil 6599 } 6600 return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 6601 }) 6602 6603 if resTmp == nil { 6604 return graphql.Null 6605 } 6606 res := resTmp.(*string) 6607 fc.Result = res 6608 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6609 } 6610 6611 func (ec *executionContext) fieldContext_ObjectDirectives_nullableText(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6612 fc = &graphql.FieldContext{ 6613 Object: "ObjectDirectives", 6614 Field: field, 6615 IsMethod: false, 6616 IsResolver: false, 6617 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6618 return nil, errors.New("field of type String does not have child fields") 6619 }, 6620 } 6621 return fc, nil 6622 } 6623 6624 func (ec *executionContext) _ObjectDirectives_order(ctx context.Context, field graphql.CollectedField, obj *ObjectDirectives) (ret graphql.Marshaler) { 6625 fc, err := ec.fieldContext_ObjectDirectives_order(ctx, field) 6626 if err != nil { 6627 return graphql.Null 6628 } 6629 ctx = graphql.WithFieldContext(ctx, fc) 6630 defer func() { 6631 if r := recover(); r != nil { 6632 ec.Error(ctx, ec.Recover(ctx, r)) 6633 ret = graphql.Null 6634 } 6635 }() 6636 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6637 ctx = rctx // use context from middleware stack in children 6638 return obj.Order, nil 6639 }) 6640 6641 if resTmp == nil { 6642 if !graphql.HasFieldError(ctx, fc) { 6643 ec.Errorf(ctx, "must not be null") 6644 } 6645 return graphql.Null 6646 } 6647 res := resTmp.([]string) 6648 fc.Result = res 6649 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 6650 } 6651 6652 func (ec *executionContext) fieldContext_ObjectDirectives_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6653 fc = &graphql.FieldContext{ 6654 Object: "ObjectDirectives", 6655 Field: field, 6656 IsMethod: false, 6657 IsResolver: false, 6658 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6659 return nil, errors.New("field of type String does not have child fields") 6660 }, 6661 } 6662 return fc, nil 6663 } 6664 6665 func (ec *executionContext) _ObjectDirectivesWithCustomGoModel_nullableText(ctx context.Context, field graphql.CollectedField, obj *ObjectDirectivesWithCustomGoModel) (ret graphql.Marshaler) { 6666 fc, err := ec.fieldContext_ObjectDirectivesWithCustomGoModel_nullableText(ctx, field) 6667 if err != nil { 6668 return graphql.Null 6669 } 6670 ctx = graphql.WithFieldContext(ctx, fc) 6671 defer func() { 6672 if r := recover(); r != nil { 6673 ec.Error(ctx, ec.Recover(ctx, r)) 6674 ret = graphql.Null 6675 } 6676 }() 6677 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6678 directive0 := func(rctx context.Context) (interface{}, error) { 6679 ctx = rctx // use context from middleware stack in children 6680 return obj.NullableText, nil 6681 } 6682 directive1 := func(ctx context.Context) (interface{}, error) { 6683 if ec.directives.ToNull == nil { 6684 return nil, errors.New("directive toNull is not implemented") 6685 } 6686 return ec.directives.ToNull(ctx, obj, directive0) 6687 } 6688 6689 tmp, err := directive1(rctx) 6690 if err != nil { 6691 return nil, graphql.ErrorOnPath(ctx, err) 6692 } 6693 if tmp == nil { 6694 return nil, nil 6695 } 6696 if data, ok := tmp.(string); ok { 6697 return data, nil 6698 } 6699 return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 6700 }) 6701 6702 if resTmp == nil { 6703 return graphql.Null 6704 } 6705 res := resTmp.(string) 6706 fc.Result = res 6707 return ec.marshalOString2string(ctx, field.Selections, res) 6708 } 6709 6710 func (ec *executionContext) fieldContext_ObjectDirectivesWithCustomGoModel_nullableText(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6711 fc = &graphql.FieldContext{ 6712 Object: "ObjectDirectivesWithCustomGoModel", 6713 Field: field, 6714 IsMethod: false, 6715 IsResolver: false, 6716 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6717 return nil, errors.New("field of type String does not have child fields") 6718 }, 6719 } 6720 return fc, nil 6721 } 6722 6723 func (ec *executionContext) _OuterObject_inner(ctx context.Context, field graphql.CollectedField, obj *OuterObject) (ret graphql.Marshaler) { 6724 fc, err := ec.fieldContext_OuterObject_inner(ctx, field) 6725 if err != nil { 6726 return graphql.Null 6727 } 6728 ctx = graphql.WithFieldContext(ctx, fc) 6729 defer func() { 6730 if r := recover(); r != nil { 6731 ec.Error(ctx, ec.Recover(ctx, r)) 6732 ret = graphql.Null 6733 } 6734 }() 6735 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6736 ctx = rctx // use context from middleware stack in children 6737 return obj.Inner, nil 6738 }) 6739 6740 if resTmp == nil { 6741 if !graphql.HasFieldError(ctx, fc) { 6742 ec.Errorf(ctx, "must not be null") 6743 } 6744 return graphql.Null 6745 } 6746 res := resTmp.(*InnerObject) 6747 fc.Result = res 6748 return ec.marshalNInnerObject2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerObject(ctx, field.Selections, res) 6749 } 6750 6751 func (ec *executionContext) fieldContext_OuterObject_inner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6752 fc = &graphql.FieldContext{ 6753 Object: "OuterObject", 6754 Field: field, 6755 IsMethod: false, 6756 IsResolver: false, 6757 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6758 switch field.Name { 6759 case "id": 6760 return ec.fieldContext_InnerObject_id(ctx, field) 6761 } 6762 return nil, fmt.Errorf("no field named %q was found under type InnerObject", field.Name) 6763 }, 6764 } 6765 return fc, nil 6766 } 6767 6768 func (ec *executionContext) _OverlappingFields_oneFoo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6769 fc, err := ec.fieldContext_OverlappingFields_oneFoo(ctx, field) 6770 if err != nil { 6771 return graphql.Null 6772 } 6773 ctx = graphql.WithFieldContext(ctx, fc) 6774 defer func() { 6775 if r := recover(); r != nil { 6776 ec.Error(ctx, ec.Recover(ctx, r)) 6777 ret = graphql.Null 6778 } 6779 }() 6780 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6781 ctx = rctx // use context from middleware stack in children 6782 return obj.Foo, nil 6783 }) 6784 6785 if resTmp == nil { 6786 if !graphql.HasFieldError(ctx, fc) { 6787 ec.Errorf(ctx, "must not be null") 6788 } 6789 return graphql.Null 6790 } 6791 res := resTmp.(int) 6792 fc.Result = res 6793 return ec.marshalNInt2int(ctx, field.Selections, res) 6794 } 6795 6796 func (ec *executionContext) fieldContext_OverlappingFields_oneFoo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6797 fc = &graphql.FieldContext{ 6798 Object: "OverlappingFields", 6799 Field: field, 6800 IsMethod: false, 6801 IsResolver: false, 6802 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6803 return nil, errors.New("field of type Int does not have child fields") 6804 }, 6805 } 6806 return fc, nil 6807 } 6808 6809 func (ec *executionContext) _OverlappingFields_twoFoo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6810 fc, err := ec.fieldContext_OverlappingFields_twoFoo(ctx, field) 6811 if err != nil { 6812 return graphql.Null 6813 } 6814 ctx = graphql.WithFieldContext(ctx, fc) 6815 defer func() { 6816 if r := recover(); r != nil { 6817 ec.Error(ctx, ec.Recover(ctx, r)) 6818 ret = graphql.Null 6819 } 6820 }() 6821 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6822 ctx = rctx // use context from middleware stack in children 6823 return obj.Foo, nil 6824 }) 6825 6826 if resTmp == nil { 6827 if !graphql.HasFieldError(ctx, fc) { 6828 ec.Errorf(ctx, "must not be null") 6829 } 6830 return graphql.Null 6831 } 6832 res := resTmp.(int) 6833 fc.Result = res 6834 return ec.marshalNInt2int(ctx, field.Selections, res) 6835 } 6836 6837 func (ec *executionContext) fieldContext_OverlappingFields_twoFoo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6838 fc = &graphql.FieldContext{ 6839 Object: "OverlappingFields", 6840 Field: field, 6841 IsMethod: false, 6842 IsResolver: false, 6843 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6844 return nil, errors.New("field of type Int does not have child fields") 6845 }, 6846 } 6847 return fc, nil 6848 } 6849 6850 func (ec *executionContext) _OverlappingFields_oldFoo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6851 fc, err := ec.fieldContext_OverlappingFields_oldFoo(ctx, field) 6852 if err != nil { 6853 return graphql.Null 6854 } 6855 ctx = graphql.WithFieldContext(ctx, fc) 6856 defer func() { 6857 if r := recover(); r != nil { 6858 ec.Error(ctx, ec.Recover(ctx, r)) 6859 ret = graphql.Null 6860 } 6861 }() 6862 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6863 ctx = rctx // use context from middleware stack in children 6864 return ec.resolvers.OverlappingFields().OldFoo(rctx, obj) 6865 }) 6866 6867 if resTmp == nil { 6868 if !graphql.HasFieldError(ctx, fc) { 6869 ec.Errorf(ctx, "must not be null") 6870 } 6871 return graphql.Null 6872 } 6873 res := resTmp.(int) 6874 fc.Result = res 6875 return ec.marshalNInt2int(ctx, field.Selections, res) 6876 } 6877 6878 func (ec *executionContext) fieldContext_OverlappingFields_oldFoo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6879 fc = &graphql.FieldContext{ 6880 Object: "OverlappingFields", 6881 Field: field, 6882 IsMethod: true, 6883 IsResolver: true, 6884 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6885 return nil, errors.New("field of type Int does not have child fields") 6886 }, 6887 } 6888 return fc, nil 6889 } 6890 6891 func (ec *executionContext) _OverlappingFields_newFoo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6892 fc, err := ec.fieldContext_OverlappingFields_newFoo(ctx, field) 6893 if err != nil { 6894 return graphql.Null 6895 } 6896 ctx = graphql.WithFieldContext(ctx, fc) 6897 defer func() { 6898 if r := recover(); r != nil { 6899 ec.Error(ctx, ec.Recover(ctx, r)) 6900 ret = graphql.Null 6901 } 6902 }() 6903 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6904 ctx = rctx // use context from middleware stack in children 6905 return obj.NewFoo, nil 6906 }) 6907 6908 if resTmp == nil { 6909 if !graphql.HasFieldError(ctx, fc) { 6910 ec.Errorf(ctx, "must not be null") 6911 } 6912 return graphql.Null 6913 } 6914 res := resTmp.(int) 6915 fc.Result = res 6916 return ec.marshalNInt2int(ctx, field.Selections, res) 6917 } 6918 6919 func (ec *executionContext) fieldContext_OverlappingFields_newFoo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6920 fc = &graphql.FieldContext{ 6921 Object: "OverlappingFields", 6922 Field: field, 6923 IsMethod: false, 6924 IsResolver: false, 6925 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6926 return nil, errors.New("field of type Int does not have child fields") 6927 }, 6928 } 6929 return fc, nil 6930 } 6931 6932 func (ec *executionContext) _OverlappingFields_new_foo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6933 fc, err := ec.fieldContext_OverlappingFields_new_foo(ctx, field) 6934 if err != nil { 6935 return graphql.Null 6936 } 6937 ctx = graphql.WithFieldContext(ctx, fc) 6938 defer func() { 6939 if r := recover(); r != nil { 6940 ec.Error(ctx, ec.Recover(ctx, r)) 6941 ret = graphql.Null 6942 } 6943 }() 6944 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6945 ctx = rctx // use context from middleware stack in children 6946 return obj.NewFoo, nil 6947 }) 6948 6949 if resTmp == nil { 6950 if !graphql.HasFieldError(ctx, fc) { 6951 ec.Errorf(ctx, "must not be null") 6952 } 6953 return graphql.Null 6954 } 6955 res := resTmp.(int) 6956 fc.Result = res 6957 return ec.marshalNInt2int(ctx, field.Selections, res) 6958 } 6959 6960 func (ec *executionContext) fieldContext_OverlappingFields_new_foo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6961 fc = &graphql.FieldContext{ 6962 Object: "OverlappingFields", 6963 Field: field, 6964 IsMethod: false, 6965 IsResolver: false, 6966 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6967 return nil, errors.New("field of type Int does not have child fields") 6968 }, 6969 } 6970 return fc, nil 6971 } 6972 6973 func (ec *executionContext) _Panics_fieldScalarMarshal(ctx context.Context, field graphql.CollectedField, obj *Panics) (ret graphql.Marshaler) { 6974 fc, err := ec.fieldContext_Panics_fieldScalarMarshal(ctx, field) 6975 if err != nil { 6976 return graphql.Null 6977 } 6978 ctx = graphql.WithFieldContext(ctx, fc) 6979 defer func() { 6980 if r := recover(); r != nil { 6981 ec.Error(ctx, ec.Recover(ctx, r)) 6982 ret = graphql.Null 6983 } 6984 }() 6985 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6986 ctx = rctx // use context from middleware stack in children 6987 return ec.resolvers.Panics().FieldScalarMarshal(rctx, obj) 6988 }) 6989 6990 if resTmp == nil { 6991 if !graphql.HasFieldError(ctx, fc) { 6992 ec.Errorf(ctx, "must not be null") 6993 } 6994 return graphql.Null 6995 } 6996 res := resTmp.([]MarshalPanic) 6997 fc.Result = res 6998 return ec.marshalNMarshalPanic2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx, field.Selections, res) 6999 } 7000 7001 func (ec *executionContext) fieldContext_Panics_fieldScalarMarshal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7002 fc = &graphql.FieldContext{ 7003 Object: "Panics", 7004 Field: field, 7005 IsMethod: true, 7006 IsResolver: true, 7007 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7008 return nil, errors.New("field of type MarshalPanic does not have child fields") 7009 }, 7010 } 7011 return fc, nil 7012 } 7013 7014 func (ec *executionContext) _Panics_fieldFuncMarshal(ctx context.Context, field graphql.CollectedField, obj *Panics) (ret graphql.Marshaler) { 7015 fc, err := ec.fieldContext_Panics_fieldFuncMarshal(ctx, field) 7016 if err != nil { 7017 return graphql.Null 7018 } 7019 ctx = graphql.WithFieldContext(ctx, fc) 7020 defer func() { 7021 if r := recover(); r != nil { 7022 ec.Error(ctx, ec.Recover(ctx, r)) 7023 ret = graphql.Null 7024 } 7025 }() 7026 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7027 ctx = rctx // use context from middleware stack in children 7028 return obj.FieldFuncMarshal(ctx, fc.Args["u"].([]MarshalPanic)), nil 7029 }) 7030 7031 if resTmp == nil { 7032 if !graphql.HasFieldError(ctx, fc) { 7033 ec.Errorf(ctx, "must not be null") 7034 } 7035 return graphql.Null 7036 } 7037 res := resTmp.([]MarshalPanic) 7038 fc.Result = res 7039 return ec.marshalNMarshalPanic2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx, field.Selections, res) 7040 } 7041 7042 func (ec *executionContext) fieldContext_Panics_fieldFuncMarshal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7043 fc = &graphql.FieldContext{ 7044 Object: "Panics", 7045 Field: field, 7046 IsMethod: true, 7047 IsResolver: false, 7048 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7049 return nil, errors.New("field of type MarshalPanic does not have child fields") 7050 }, 7051 } 7052 defer func() { 7053 if r := recover(); r != nil { 7054 err = ec.Recover(ctx, r) 7055 ec.Error(ctx, err) 7056 } 7057 }() 7058 ctx = graphql.WithFieldContext(ctx, fc) 7059 if fc.Args, err = ec.field_Panics_fieldFuncMarshal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7060 ec.Error(ctx, err) 7061 return fc, err 7062 } 7063 return fc, nil 7064 } 7065 7066 func (ec *executionContext) _Panics_argUnmarshal(ctx context.Context, field graphql.CollectedField, obj *Panics) (ret graphql.Marshaler) { 7067 fc, err := ec.fieldContext_Panics_argUnmarshal(ctx, field) 7068 if err != nil { 7069 return graphql.Null 7070 } 7071 ctx = graphql.WithFieldContext(ctx, fc) 7072 defer func() { 7073 if r := recover(); r != nil { 7074 ec.Error(ctx, ec.Recover(ctx, r)) 7075 ret = graphql.Null 7076 } 7077 }() 7078 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7079 ctx = rctx // use context from middleware stack in children 7080 return ec.resolvers.Panics().ArgUnmarshal(rctx, obj, fc.Args["u"].([]MarshalPanic)) 7081 }) 7082 7083 if resTmp == nil { 7084 if !graphql.HasFieldError(ctx, fc) { 7085 ec.Errorf(ctx, "must not be null") 7086 } 7087 return graphql.Null 7088 } 7089 res := resTmp.(bool) 7090 fc.Result = res 7091 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 7092 } 7093 7094 func (ec *executionContext) fieldContext_Panics_argUnmarshal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7095 fc = &graphql.FieldContext{ 7096 Object: "Panics", 7097 Field: field, 7098 IsMethod: true, 7099 IsResolver: true, 7100 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7101 return nil, errors.New("field of type Boolean does not have child fields") 7102 }, 7103 } 7104 defer func() { 7105 if r := recover(); r != nil { 7106 err = ec.Recover(ctx, r) 7107 ec.Error(ctx, err) 7108 } 7109 }() 7110 ctx = graphql.WithFieldContext(ctx, fc) 7111 if fc.Args, err = ec.field_Panics_argUnmarshal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7112 ec.Error(ctx, err) 7113 return fc, err 7114 } 7115 return fc, nil 7116 } 7117 7118 func (ec *executionContext) _Pet_id(ctx context.Context, field graphql.CollectedField, obj *Pet) (ret graphql.Marshaler) { 7119 fc, err := ec.fieldContext_Pet_id(ctx, field) 7120 if err != nil { 7121 return graphql.Null 7122 } 7123 ctx = graphql.WithFieldContext(ctx, fc) 7124 defer func() { 7125 if r := recover(); r != nil { 7126 ec.Error(ctx, ec.Recover(ctx, r)) 7127 ret = graphql.Null 7128 } 7129 }() 7130 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7131 ctx = rctx // use context from middleware stack in children 7132 return obj.ID, nil 7133 }) 7134 7135 if resTmp == nil { 7136 if !graphql.HasFieldError(ctx, fc) { 7137 ec.Errorf(ctx, "must not be null") 7138 } 7139 return graphql.Null 7140 } 7141 res := resTmp.(int) 7142 fc.Result = res 7143 return ec.marshalNInt2int(ctx, field.Selections, res) 7144 } 7145 7146 func (ec *executionContext) fieldContext_Pet_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7147 fc = &graphql.FieldContext{ 7148 Object: "Pet", 7149 Field: field, 7150 IsMethod: false, 7151 IsResolver: false, 7152 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7153 return nil, errors.New("field of type Int does not have child fields") 7154 }, 7155 } 7156 return fc, nil 7157 } 7158 7159 func (ec *executionContext) _Pet_friends(ctx context.Context, field graphql.CollectedField, obj *Pet) (ret graphql.Marshaler) { 7160 fc, err := ec.fieldContext_Pet_friends(ctx, field) 7161 if err != nil { 7162 return graphql.Null 7163 } 7164 ctx = graphql.WithFieldContext(ctx, fc) 7165 defer func() { 7166 if r := recover(); r != nil { 7167 ec.Error(ctx, ec.Recover(ctx, r)) 7168 ret = graphql.Null 7169 } 7170 }() 7171 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7172 ctx = rctx // use context from middleware stack in children 7173 return ec.resolvers.Pet().Friends(rctx, obj, fc.Args["limit"].(*int)) 7174 }) 7175 7176 if resTmp == nil { 7177 return graphql.Null 7178 } 7179 res := resTmp.([]*Pet) 7180 fc.Result = res 7181 return ec.marshalOPet2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPetᚄ(ctx, field.Selections, res) 7182 } 7183 7184 func (ec *executionContext) fieldContext_Pet_friends(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7185 fc = &graphql.FieldContext{ 7186 Object: "Pet", 7187 Field: field, 7188 IsMethod: true, 7189 IsResolver: true, 7190 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7191 switch field.Name { 7192 case "id": 7193 return ec.fieldContext_Pet_id(ctx, field) 7194 case "friends": 7195 return ec.fieldContext_Pet_friends(ctx, field) 7196 } 7197 return nil, fmt.Errorf("no field named %q was found under type Pet", field.Name) 7198 }, 7199 } 7200 defer func() { 7201 if r := recover(); r != nil { 7202 err = ec.Recover(ctx, r) 7203 ec.Error(ctx, err) 7204 } 7205 }() 7206 ctx = graphql.WithFieldContext(ctx, fc) 7207 if fc.Args, err = ec.field_Pet_friends_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7208 ec.Error(ctx, err) 7209 return fc, err 7210 } 7211 return fc, nil 7212 } 7213 7214 func (ec *executionContext) _Primitive_value(ctx context.Context, field graphql.CollectedField, obj *Primitive) (ret graphql.Marshaler) { 7215 fc, err := ec.fieldContext_Primitive_value(ctx, field) 7216 if err != nil { 7217 return graphql.Null 7218 } 7219 ctx = graphql.WithFieldContext(ctx, fc) 7220 defer func() { 7221 if r := recover(); r != nil { 7222 ec.Error(ctx, ec.Recover(ctx, r)) 7223 ret = graphql.Null 7224 } 7225 }() 7226 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7227 ctx = rctx // use context from middleware stack in children 7228 return ec.resolvers.Primitive().Value(rctx, obj) 7229 }) 7230 7231 if resTmp == nil { 7232 if !graphql.HasFieldError(ctx, fc) { 7233 ec.Errorf(ctx, "must not be null") 7234 } 7235 return graphql.Null 7236 } 7237 res := resTmp.(int) 7238 fc.Result = res 7239 return ec.marshalNInt2int(ctx, field.Selections, res) 7240 } 7241 7242 func (ec *executionContext) fieldContext_Primitive_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7243 fc = &graphql.FieldContext{ 7244 Object: "Primitive", 7245 Field: field, 7246 IsMethod: true, 7247 IsResolver: true, 7248 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7249 return nil, errors.New("field of type Int does not have child fields") 7250 }, 7251 } 7252 return fc, nil 7253 } 7254 7255 func (ec *executionContext) _Primitive_squared(ctx context.Context, field graphql.CollectedField, obj *Primitive) (ret graphql.Marshaler) { 7256 fc, err := ec.fieldContext_Primitive_squared(ctx, field) 7257 if err != nil { 7258 return graphql.Null 7259 } 7260 ctx = graphql.WithFieldContext(ctx, fc) 7261 defer func() { 7262 if r := recover(); r != nil { 7263 ec.Error(ctx, ec.Recover(ctx, r)) 7264 ret = graphql.Null 7265 } 7266 }() 7267 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7268 ctx = rctx // use context from middleware stack in children 7269 return obj.Squared(), nil 7270 }) 7271 7272 if resTmp == nil { 7273 if !graphql.HasFieldError(ctx, fc) { 7274 ec.Errorf(ctx, "must not be null") 7275 } 7276 return graphql.Null 7277 } 7278 res := resTmp.(int) 7279 fc.Result = res 7280 return ec.marshalNInt2int(ctx, field.Selections, res) 7281 } 7282 7283 func (ec *executionContext) fieldContext_Primitive_squared(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7284 fc = &graphql.FieldContext{ 7285 Object: "Primitive", 7286 Field: field, 7287 IsMethod: true, 7288 IsResolver: false, 7289 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7290 return nil, errors.New("field of type Int does not have child fields") 7291 }, 7292 } 7293 return fc, nil 7294 } 7295 7296 func (ec *executionContext) _PrimitiveString_value(ctx context.Context, field graphql.CollectedField, obj *PrimitiveString) (ret graphql.Marshaler) { 7297 fc, err := ec.fieldContext_PrimitiveString_value(ctx, field) 7298 if err != nil { 7299 return graphql.Null 7300 } 7301 ctx = graphql.WithFieldContext(ctx, fc) 7302 defer func() { 7303 if r := recover(); r != nil { 7304 ec.Error(ctx, ec.Recover(ctx, r)) 7305 ret = graphql.Null 7306 } 7307 }() 7308 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7309 ctx = rctx // use context from middleware stack in children 7310 return ec.resolvers.PrimitiveString().Value(rctx, obj) 7311 }) 7312 7313 if resTmp == nil { 7314 if !graphql.HasFieldError(ctx, fc) { 7315 ec.Errorf(ctx, "must not be null") 7316 } 7317 return graphql.Null 7318 } 7319 res := resTmp.(string) 7320 fc.Result = res 7321 return ec.marshalNString2string(ctx, field.Selections, res) 7322 } 7323 7324 func (ec *executionContext) fieldContext_PrimitiveString_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7325 fc = &graphql.FieldContext{ 7326 Object: "PrimitiveString", 7327 Field: field, 7328 IsMethod: true, 7329 IsResolver: true, 7330 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7331 return nil, errors.New("field of type String does not have child fields") 7332 }, 7333 } 7334 return fc, nil 7335 } 7336 7337 func (ec *executionContext) _PrimitiveString_doubled(ctx context.Context, field graphql.CollectedField, obj *PrimitiveString) (ret graphql.Marshaler) { 7338 fc, err := ec.fieldContext_PrimitiveString_doubled(ctx, field) 7339 if err != nil { 7340 return graphql.Null 7341 } 7342 ctx = graphql.WithFieldContext(ctx, fc) 7343 defer func() { 7344 if r := recover(); r != nil { 7345 ec.Error(ctx, ec.Recover(ctx, r)) 7346 ret = graphql.Null 7347 } 7348 }() 7349 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7350 ctx = rctx // use context from middleware stack in children 7351 return obj.Doubled(), nil 7352 }) 7353 7354 if resTmp == nil { 7355 if !graphql.HasFieldError(ctx, fc) { 7356 ec.Errorf(ctx, "must not be null") 7357 } 7358 return graphql.Null 7359 } 7360 res := resTmp.(string) 7361 fc.Result = res 7362 return ec.marshalNString2string(ctx, field.Selections, res) 7363 } 7364 7365 func (ec *executionContext) fieldContext_PrimitiveString_doubled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7366 fc = &graphql.FieldContext{ 7367 Object: "PrimitiveString", 7368 Field: field, 7369 IsMethod: true, 7370 IsResolver: false, 7371 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7372 return nil, errors.New("field of type String does not have child fields") 7373 }, 7374 } 7375 return fc, nil 7376 } 7377 7378 func (ec *executionContext) _PrimitiveString_len(ctx context.Context, field graphql.CollectedField, obj *PrimitiveString) (ret graphql.Marshaler) { 7379 fc, err := ec.fieldContext_PrimitiveString_len(ctx, field) 7380 if err != nil { 7381 return graphql.Null 7382 } 7383 ctx = graphql.WithFieldContext(ctx, fc) 7384 defer func() { 7385 if r := recover(); r != nil { 7386 ec.Error(ctx, ec.Recover(ctx, r)) 7387 ret = graphql.Null 7388 } 7389 }() 7390 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7391 ctx = rctx // use context from middleware stack in children 7392 return ec.resolvers.PrimitiveString().Len(rctx, obj) 7393 }) 7394 7395 if resTmp == nil { 7396 if !graphql.HasFieldError(ctx, fc) { 7397 ec.Errorf(ctx, "must not be null") 7398 } 7399 return graphql.Null 7400 } 7401 res := resTmp.(int) 7402 fc.Result = res 7403 return ec.marshalNInt2int(ctx, field.Selections, res) 7404 } 7405 7406 func (ec *executionContext) fieldContext_PrimitiveString_len(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7407 fc = &graphql.FieldContext{ 7408 Object: "PrimitiveString", 7409 Field: field, 7410 IsMethod: true, 7411 IsResolver: true, 7412 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7413 return nil, errors.New("field of type Int does not have child fields") 7414 }, 7415 } 7416 return fc, nil 7417 } 7418 7419 func (ec *executionContext) _PtrToAnyContainer_ptrToAny(ctx context.Context, field graphql.CollectedField, obj *PtrToAnyContainer) (ret graphql.Marshaler) { 7420 fc, err := ec.fieldContext_PtrToAnyContainer_ptrToAny(ctx, field) 7421 if err != nil { 7422 return graphql.Null 7423 } 7424 ctx = graphql.WithFieldContext(ctx, fc) 7425 defer func() { 7426 if r := recover(); r != nil { 7427 ec.Error(ctx, ec.Recover(ctx, r)) 7428 ret = graphql.Null 7429 } 7430 }() 7431 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7432 ctx = rctx // use context from middleware stack in children 7433 return obj.PtrToAny, nil 7434 }) 7435 7436 if resTmp == nil { 7437 return graphql.Null 7438 } 7439 res := resTmp.(*any) 7440 fc.Result = res 7441 return ec.marshalOAny2ᚖinterface(ctx, field.Selections, res) 7442 } 7443 7444 func (ec *executionContext) fieldContext_PtrToAnyContainer_ptrToAny(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7445 fc = &graphql.FieldContext{ 7446 Object: "PtrToAnyContainer", 7447 Field: field, 7448 IsMethod: false, 7449 IsResolver: false, 7450 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7451 return nil, errors.New("field of type Any does not have child fields") 7452 }, 7453 } 7454 return fc, nil 7455 } 7456 7457 func (ec *executionContext) _PtrToAnyContainer_binding(ctx context.Context, field graphql.CollectedField, obj *PtrToAnyContainer) (ret graphql.Marshaler) { 7458 fc, err := ec.fieldContext_PtrToAnyContainer_binding(ctx, field) 7459 if err != nil { 7460 return graphql.Null 7461 } 7462 ctx = graphql.WithFieldContext(ctx, fc) 7463 defer func() { 7464 if r := recover(); r != nil { 7465 ec.Error(ctx, ec.Recover(ctx, r)) 7466 ret = graphql.Null 7467 } 7468 }() 7469 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7470 ctx = rctx // use context from middleware stack in children 7471 return obj.Binding(), nil 7472 }) 7473 7474 if resTmp == nil { 7475 return graphql.Null 7476 } 7477 res := resTmp.(*any) 7478 fc.Result = res 7479 return ec.marshalOAny2ᚖinterface(ctx, field.Selections, res) 7480 } 7481 7482 func (ec *executionContext) fieldContext_PtrToAnyContainer_binding(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7483 fc = &graphql.FieldContext{ 7484 Object: "PtrToAnyContainer", 7485 Field: field, 7486 IsMethod: true, 7487 IsResolver: false, 7488 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7489 return nil, errors.New("field of type Any does not have child fields") 7490 }, 7491 } 7492 return fc, nil 7493 } 7494 7495 func (ec *executionContext) _PtrToPtrInner_key(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrInner) (ret graphql.Marshaler) { 7496 fc, err := ec.fieldContext_PtrToPtrInner_key(ctx, field) 7497 if err != nil { 7498 return graphql.Null 7499 } 7500 ctx = graphql.WithFieldContext(ctx, fc) 7501 defer func() { 7502 if r := recover(); r != nil { 7503 ec.Error(ctx, ec.Recover(ctx, r)) 7504 ret = graphql.Null 7505 } 7506 }() 7507 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7508 ctx = rctx // use context from middleware stack in children 7509 return obj.Key, nil 7510 }) 7511 7512 if resTmp == nil { 7513 if !graphql.HasFieldError(ctx, fc) { 7514 ec.Errorf(ctx, "must not be null") 7515 } 7516 return graphql.Null 7517 } 7518 res := resTmp.(string) 7519 fc.Result = res 7520 return ec.marshalNString2string(ctx, field.Selections, res) 7521 } 7522 7523 func (ec *executionContext) fieldContext_PtrToPtrInner_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7524 fc = &graphql.FieldContext{ 7525 Object: "PtrToPtrInner", 7526 Field: field, 7527 IsMethod: false, 7528 IsResolver: false, 7529 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7530 return nil, errors.New("field of type String does not have child fields") 7531 }, 7532 } 7533 return fc, nil 7534 } 7535 7536 func (ec *executionContext) _PtrToPtrInner_value(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrInner) (ret graphql.Marshaler) { 7537 fc, err := ec.fieldContext_PtrToPtrInner_value(ctx, field) 7538 if err != nil { 7539 return graphql.Null 7540 } 7541 ctx = graphql.WithFieldContext(ctx, fc) 7542 defer func() { 7543 if r := recover(); r != nil { 7544 ec.Error(ctx, ec.Recover(ctx, r)) 7545 ret = graphql.Null 7546 } 7547 }() 7548 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7549 ctx = rctx // use context from middleware stack in children 7550 return obj.Value, nil 7551 }) 7552 7553 if resTmp == nil { 7554 if !graphql.HasFieldError(ctx, fc) { 7555 ec.Errorf(ctx, "must not be null") 7556 } 7557 return graphql.Null 7558 } 7559 res := resTmp.(string) 7560 fc.Result = res 7561 return ec.marshalNString2string(ctx, field.Selections, res) 7562 } 7563 7564 func (ec *executionContext) fieldContext_PtrToPtrInner_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7565 fc = &graphql.FieldContext{ 7566 Object: "PtrToPtrInner", 7567 Field: field, 7568 IsMethod: false, 7569 IsResolver: false, 7570 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7571 return nil, errors.New("field of type String does not have child fields") 7572 }, 7573 } 7574 return fc, nil 7575 } 7576 7577 func (ec *executionContext) _PtrToPtrOuter_name(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) { 7578 fc, err := ec.fieldContext_PtrToPtrOuter_name(ctx, field) 7579 if err != nil { 7580 return graphql.Null 7581 } 7582 ctx = graphql.WithFieldContext(ctx, fc) 7583 defer func() { 7584 if r := recover(); r != nil { 7585 ec.Error(ctx, ec.Recover(ctx, r)) 7586 ret = graphql.Null 7587 } 7588 }() 7589 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7590 ctx = rctx // use context from middleware stack in children 7591 return obj.Name, nil 7592 }) 7593 7594 if resTmp == nil { 7595 if !graphql.HasFieldError(ctx, fc) { 7596 ec.Errorf(ctx, "must not be null") 7597 } 7598 return graphql.Null 7599 } 7600 res := resTmp.(string) 7601 fc.Result = res 7602 return ec.marshalNString2string(ctx, field.Selections, res) 7603 } 7604 7605 func (ec *executionContext) fieldContext_PtrToPtrOuter_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7606 fc = &graphql.FieldContext{ 7607 Object: "PtrToPtrOuter", 7608 Field: field, 7609 IsMethod: false, 7610 IsResolver: false, 7611 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7612 return nil, errors.New("field of type String does not have child fields") 7613 }, 7614 } 7615 return fc, nil 7616 } 7617 7618 func (ec *executionContext) _PtrToPtrOuter_inner(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) { 7619 fc, err := ec.fieldContext_PtrToPtrOuter_inner(ctx, field) 7620 if err != nil { 7621 return graphql.Null 7622 } 7623 ctx = graphql.WithFieldContext(ctx, fc) 7624 defer func() { 7625 if r := recover(); r != nil { 7626 ec.Error(ctx, ec.Recover(ctx, r)) 7627 ret = graphql.Null 7628 } 7629 }() 7630 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7631 ctx = rctx // use context from middleware stack in children 7632 return obj.Inner, nil 7633 }) 7634 7635 if resTmp == nil { 7636 return graphql.Null 7637 } 7638 res := resTmp.(*PtrToPtrInner) 7639 fc.Result = res 7640 return ec.marshalOPtrToPtrInner2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, field.Selections, res) 7641 } 7642 7643 func (ec *executionContext) fieldContext_PtrToPtrOuter_inner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7644 fc = &graphql.FieldContext{ 7645 Object: "PtrToPtrOuter", 7646 Field: field, 7647 IsMethod: false, 7648 IsResolver: false, 7649 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7650 switch field.Name { 7651 case "key": 7652 return ec.fieldContext_PtrToPtrInner_key(ctx, field) 7653 case "value": 7654 return ec.fieldContext_PtrToPtrInner_value(ctx, field) 7655 } 7656 return nil, fmt.Errorf("no field named %q was found under type PtrToPtrInner", field.Name) 7657 }, 7658 } 7659 return fc, nil 7660 } 7661 7662 func (ec *executionContext) _PtrToPtrOuter_stupidInner(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) { 7663 fc, err := ec.fieldContext_PtrToPtrOuter_stupidInner(ctx, field) 7664 if err != nil { 7665 return graphql.Null 7666 } 7667 ctx = graphql.WithFieldContext(ctx, fc) 7668 defer func() { 7669 if r := recover(); r != nil { 7670 ec.Error(ctx, ec.Recover(ctx, r)) 7671 ret = graphql.Null 7672 } 7673 }() 7674 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7675 ctx = rctx // use context from middleware stack in children 7676 return obj.StupidInner, nil 7677 }) 7678 7679 if resTmp == nil { 7680 return graphql.Null 7681 } 7682 res := resTmp.(*******PtrToPtrInner) 7683 fc.Result = res 7684 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, field.Selections, res) 7685 } 7686 7687 func (ec *executionContext) fieldContext_PtrToPtrOuter_stupidInner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7688 fc = &graphql.FieldContext{ 7689 Object: "PtrToPtrOuter", 7690 Field: field, 7691 IsMethod: false, 7692 IsResolver: false, 7693 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7694 switch field.Name { 7695 case "key": 7696 return ec.fieldContext_PtrToPtrInner_key(ctx, field) 7697 case "value": 7698 return ec.fieldContext_PtrToPtrInner_value(ctx, field) 7699 } 7700 return nil, fmt.Errorf("no field named %q was found under type PtrToPtrInner", field.Name) 7701 }, 7702 } 7703 return fc, nil 7704 } 7705 7706 func (ec *executionContext) _PtrToSliceContainer_ptrToSlice(ctx context.Context, field graphql.CollectedField, obj *PtrToSliceContainer) (ret graphql.Marshaler) { 7707 fc, err := ec.fieldContext_PtrToSliceContainer_ptrToSlice(ctx, field) 7708 if err != nil { 7709 return graphql.Null 7710 } 7711 ctx = graphql.WithFieldContext(ctx, fc) 7712 defer func() { 7713 if r := recover(); r != nil { 7714 ec.Error(ctx, ec.Recover(ctx, r)) 7715 ret = graphql.Null 7716 } 7717 }() 7718 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7719 ctx = rctx // use context from middleware stack in children 7720 return obj.PtrToSlice, nil 7721 }) 7722 7723 if resTmp == nil { 7724 return graphql.Null 7725 } 7726 res := resTmp.(*[]string) 7727 fc.Result = res 7728 return ec.marshalOString2ᚖᚕstringᚄ(ctx, field.Selections, res) 7729 } 7730 7731 func (ec *executionContext) fieldContext_PtrToSliceContainer_ptrToSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7732 fc = &graphql.FieldContext{ 7733 Object: "PtrToSliceContainer", 7734 Field: field, 7735 IsMethod: false, 7736 IsResolver: false, 7737 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7738 return nil, errors.New("field of type String does not have child fields") 7739 }, 7740 } 7741 return fc, nil 7742 } 7743 7744 func (ec *executionContext) _Query_invalidIdentifier(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7745 fc, err := ec.fieldContext_Query_invalidIdentifier(ctx, field) 7746 if err != nil { 7747 return graphql.Null 7748 } 7749 ctx = graphql.WithFieldContext(ctx, fc) 7750 defer func() { 7751 if r := recover(); r != nil { 7752 ec.Error(ctx, ec.Recover(ctx, r)) 7753 ret = graphql.Null 7754 } 7755 }() 7756 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7757 ctx = rctx // use context from middleware stack in children 7758 return ec.resolvers.Query().InvalidIdentifier(rctx) 7759 }) 7760 7761 if resTmp == nil { 7762 return graphql.Null 7763 } 7764 res := resTmp.(*invalid_packagename.InvalidIdentifier) 7765 fc.Result = res 7766 return ec.marshalOInvalidIdentifier2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋinvalidᚑpackagenameᚐInvalidIdentifier(ctx, field.Selections, res) 7767 } 7768 7769 func (ec *executionContext) fieldContext_Query_invalidIdentifier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7770 fc = &graphql.FieldContext{ 7771 Object: "Query", 7772 Field: field, 7773 IsMethod: true, 7774 IsResolver: true, 7775 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7776 switch field.Name { 7777 case "id": 7778 return ec.fieldContext_InvalidIdentifier_id(ctx, field) 7779 } 7780 return nil, fmt.Errorf("no field named %q was found under type InvalidIdentifier", field.Name) 7781 }, 7782 } 7783 return fc, nil 7784 } 7785 7786 func (ec *executionContext) _Query_collision(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7787 fc, err := ec.fieldContext_Query_collision(ctx, field) 7788 if err != nil { 7789 return graphql.Null 7790 } 7791 ctx = graphql.WithFieldContext(ctx, fc) 7792 defer func() { 7793 if r := recover(); r != nil { 7794 ec.Error(ctx, ec.Recover(ctx, r)) 7795 ret = graphql.Null 7796 } 7797 }() 7798 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7799 ctx = rctx // use context from middleware stack in children 7800 return ec.resolvers.Query().Collision(rctx) 7801 }) 7802 7803 if resTmp == nil { 7804 return graphql.Null 7805 } 7806 res := resTmp.(*introspection1.It) 7807 fc.Result = res 7808 return ec.marshalOIt2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋintrospectionᚐIt(ctx, field.Selections, res) 7809 } 7810 7811 func (ec *executionContext) fieldContext_Query_collision(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7812 fc = &graphql.FieldContext{ 7813 Object: "Query", 7814 Field: field, 7815 IsMethod: true, 7816 IsResolver: true, 7817 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7818 switch field.Name { 7819 case "id": 7820 return ec.fieldContext_It_id(ctx, field) 7821 } 7822 return nil, fmt.Errorf("no field named %q was found under type It", field.Name) 7823 }, 7824 } 7825 return fc, nil 7826 } 7827 7828 func (ec *executionContext) _Query_mapInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7829 fc, err := ec.fieldContext_Query_mapInput(ctx, field) 7830 if err != nil { 7831 return graphql.Null 7832 } 7833 ctx = graphql.WithFieldContext(ctx, fc) 7834 defer func() { 7835 if r := recover(); r != nil { 7836 ec.Error(ctx, ec.Recover(ctx, r)) 7837 ret = graphql.Null 7838 } 7839 }() 7840 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7841 ctx = rctx // use context from middleware stack in children 7842 return ec.resolvers.Query().MapInput(rctx, fc.Args["input"].(map[string]interface{})) 7843 }) 7844 7845 if resTmp == nil { 7846 return graphql.Null 7847 } 7848 res := resTmp.(*bool) 7849 fc.Result = res 7850 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7851 } 7852 7853 func (ec *executionContext) fieldContext_Query_mapInput(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7854 fc = &graphql.FieldContext{ 7855 Object: "Query", 7856 Field: field, 7857 IsMethod: true, 7858 IsResolver: true, 7859 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7860 return nil, errors.New("field of type Boolean does not have child fields") 7861 }, 7862 } 7863 defer func() { 7864 if r := recover(); r != nil { 7865 err = ec.Recover(ctx, r) 7866 ec.Error(ctx, err) 7867 } 7868 }() 7869 ctx = graphql.WithFieldContext(ctx, fc) 7870 if fc.Args, err = ec.field_Query_mapInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7871 ec.Error(ctx, err) 7872 return fc, err 7873 } 7874 return fc, nil 7875 } 7876 7877 func (ec *executionContext) _Query_recursive(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7878 fc, err := ec.fieldContext_Query_recursive(ctx, field) 7879 if err != nil { 7880 return graphql.Null 7881 } 7882 ctx = graphql.WithFieldContext(ctx, fc) 7883 defer func() { 7884 if r := recover(); r != nil { 7885 ec.Error(ctx, ec.Recover(ctx, r)) 7886 ret = graphql.Null 7887 } 7888 }() 7889 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7890 ctx = rctx // use context from middleware stack in children 7891 return ec.resolvers.Query().Recursive(rctx, fc.Args["input"].(*RecursiveInputSlice)) 7892 }) 7893 7894 if resTmp == nil { 7895 return graphql.Null 7896 } 7897 res := resTmp.(*bool) 7898 fc.Result = res 7899 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7900 } 7901 7902 func (ec *executionContext) fieldContext_Query_recursive(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7903 fc = &graphql.FieldContext{ 7904 Object: "Query", 7905 Field: field, 7906 IsMethod: true, 7907 IsResolver: true, 7908 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7909 return nil, errors.New("field of type Boolean does not have child fields") 7910 }, 7911 } 7912 defer func() { 7913 if r := recover(); r != nil { 7914 err = ec.Recover(ctx, r) 7915 ec.Error(ctx, err) 7916 } 7917 }() 7918 ctx = graphql.WithFieldContext(ctx, fc) 7919 if fc.Args, err = ec.field_Query_recursive_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7920 ec.Error(ctx, err) 7921 return fc, err 7922 } 7923 return fc, nil 7924 } 7925 7926 func (ec *executionContext) _Query_nestedInputs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7927 fc, err := ec.fieldContext_Query_nestedInputs(ctx, field) 7928 if err != nil { 7929 return graphql.Null 7930 } 7931 ctx = graphql.WithFieldContext(ctx, fc) 7932 defer func() { 7933 if r := recover(); r != nil { 7934 ec.Error(ctx, ec.Recover(ctx, r)) 7935 ret = graphql.Null 7936 } 7937 }() 7938 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7939 ctx = rctx // use context from middleware stack in children 7940 return ec.resolvers.Query().NestedInputs(rctx, fc.Args["input"].([][]*OuterInput)) 7941 }) 7942 7943 if resTmp == nil { 7944 return graphql.Null 7945 } 7946 res := resTmp.(*bool) 7947 fc.Result = res 7948 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7949 } 7950 7951 func (ec *executionContext) fieldContext_Query_nestedInputs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7952 fc = &graphql.FieldContext{ 7953 Object: "Query", 7954 Field: field, 7955 IsMethod: true, 7956 IsResolver: true, 7957 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7958 return nil, errors.New("field of type Boolean does not have child fields") 7959 }, 7960 } 7961 defer func() { 7962 if r := recover(); r != nil { 7963 err = ec.Recover(ctx, r) 7964 ec.Error(ctx, err) 7965 } 7966 }() 7967 ctx = graphql.WithFieldContext(ctx, fc) 7968 if fc.Args, err = ec.field_Query_nestedInputs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7969 ec.Error(ctx, err) 7970 return fc, err 7971 } 7972 return fc, nil 7973 } 7974 7975 func (ec *executionContext) _Query_nestedOutputs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7976 fc, err := ec.fieldContext_Query_nestedOutputs(ctx, field) 7977 if err != nil { 7978 return graphql.Null 7979 } 7980 ctx = graphql.WithFieldContext(ctx, fc) 7981 defer func() { 7982 if r := recover(); r != nil { 7983 ec.Error(ctx, ec.Recover(ctx, r)) 7984 ret = graphql.Null 7985 } 7986 }() 7987 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7988 ctx = rctx // use context from middleware stack in children 7989 return ec.resolvers.Query().NestedOutputs(rctx) 7990 }) 7991 7992 if resTmp == nil { 7993 return graphql.Null 7994 } 7995 res := resTmp.([][]*OuterObject) 7996 fc.Result = res 7997 return ec.marshalOOuterObject2ᚕᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx, field.Selections, res) 7998 } 7999 8000 func (ec *executionContext) fieldContext_Query_nestedOutputs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8001 fc = &graphql.FieldContext{ 8002 Object: "Query", 8003 Field: field, 8004 IsMethod: true, 8005 IsResolver: true, 8006 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8007 switch field.Name { 8008 case "inner": 8009 return ec.fieldContext_OuterObject_inner(ctx, field) 8010 } 8011 return nil, fmt.Errorf("no field named %q was found under type OuterObject", field.Name) 8012 }, 8013 } 8014 return fc, nil 8015 } 8016 8017 func (ec *executionContext) _Query_modelMethods(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8018 fc, err := ec.fieldContext_Query_modelMethods(ctx, field) 8019 if err != nil { 8020 return graphql.Null 8021 } 8022 ctx = graphql.WithFieldContext(ctx, fc) 8023 defer func() { 8024 if r := recover(); r != nil { 8025 ec.Error(ctx, ec.Recover(ctx, r)) 8026 ret = graphql.Null 8027 } 8028 }() 8029 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8030 ctx = rctx // use context from middleware stack in children 8031 return ec.resolvers.Query().ModelMethods(rctx) 8032 }) 8033 8034 if resTmp == nil { 8035 return graphql.Null 8036 } 8037 res := resTmp.(*ModelMethods) 8038 fc.Result = res 8039 return ec.marshalOModelMethods2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐModelMethods(ctx, field.Selections, res) 8040 } 8041 8042 func (ec *executionContext) fieldContext_Query_modelMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8043 fc = &graphql.FieldContext{ 8044 Object: "Query", 8045 Field: field, 8046 IsMethod: true, 8047 IsResolver: true, 8048 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8049 switch field.Name { 8050 case "resolverField": 8051 return ec.fieldContext_ModelMethods_resolverField(ctx, field) 8052 case "noContext": 8053 return ec.fieldContext_ModelMethods_noContext(ctx, field) 8054 case "withContext": 8055 return ec.fieldContext_ModelMethods_withContext(ctx, field) 8056 } 8057 return nil, fmt.Errorf("no field named %q was found under type ModelMethods", field.Name) 8058 }, 8059 } 8060 return fc, nil 8061 } 8062 8063 func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8064 fc, err := ec.fieldContext_Query_user(ctx, field) 8065 if err != nil { 8066 return graphql.Null 8067 } 8068 ctx = graphql.WithFieldContext(ctx, fc) 8069 defer func() { 8070 if r := recover(); r != nil { 8071 ec.Error(ctx, ec.Recover(ctx, r)) 8072 ret = graphql.Null 8073 } 8074 }() 8075 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8076 ctx = rctx // use context from middleware stack in children 8077 return ec.resolvers.Query().User(rctx, fc.Args["id"].(int)) 8078 }) 8079 8080 if resTmp == nil { 8081 if !graphql.HasFieldError(ctx, fc) { 8082 ec.Errorf(ctx, "must not be null") 8083 } 8084 return graphql.Null 8085 } 8086 res := resTmp.(*User) 8087 fc.Result = res 8088 return ec.marshalNUser2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUser(ctx, field.Selections, res) 8089 } 8090 8091 func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8092 fc = &graphql.FieldContext{ 8093 Object: "Query", 8094 Field: field, 8095 IsMethod: true, 8096 IsResolver: true, 8097 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8098 switch field.Name { 8099 case "id": 8100 return ec.fieldContext_User_id(ctx, field) 8101 case "friends": 8102 return ec.fieldContext_User_friends(ctx, field) 8103 case "created": 8104 return ec.fieldContext_User_created(ctx, field) 8105 case "updated": 8106 return ec.fieldContext_User_updated(ctx, field) 8107 case "pets": 8108 return ec.fieldContext_User_pets(ctx, field) 8109 } 8110 return nil, fmt.Errorf("no field named %q was found under type User", field.Name) 8111 }, 8112 } 8113 defer func() { 8114 if r := recover(); r != nil { 8115 err = ec.Recover(ctx, r) 8116 ec.Error(ctx, err) 8117 } 8118 }() 8119 ctx = graphql.WithFieldContext(ctx, fc) 8120 if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8121 ec.Error(ctx, err) 8122 return fc, err 8123 } 8124 return fc, nil 8125 } 8126 8127 func (ec *executionContext) _Query_nullableArg(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8128 fc, err := ec.fieldContext_Query_nullableArg(ctx, field) 8129 if err != nil { 8130 return graphql.Null 8131 } 8132 ctx = graphql.WithFieldContext(ctx, fc) 8133 defer func() { 8134 if r := recover(); r != nil { 8135 ec.Error(ctx, ec.Recover(ctx, r)) 8136 ret = graphql.Null 8137 } 8138 }() 8139 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8140 ctx = rctx // use context from middleware stack in children 8141 return ec.resolvers.Query().NullableArg(rctx, fc.Args["arg"].(*int)) 8142 }) 8143 8144 if resTmp == nil { 8145 return graphql.Null 8146 } 8147 res := resTmp.(*string) 8148 fc.Result = res 8149 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8150 } 8151 8152 func (ec *executionContext) fieldContext_Query_nullableArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8153 fc = &graphql.FieldContext{ 8154 Object: "Query", 8155 Field: field, 8156 IsMethod: true, 8157 IsResolver: true, 8158 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8159 return nil, errors.New("field of type String does not have child fields") 8160 }, 8161 } 8162 defer func() { 8163 if r := recover(); r != nil { 8164 err = ec.Recover(ctx, r) 8165 ec.Error(ctx, err) 8166 } 8167 }() 8168 ctx = graphql.WithFieldContext(ctx, fc) 8169 if fc.Args, err = ec.field_Query_nullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8170 ec.Error(ctx, err) 8171 return fc, err 8172 } 8173 return fc, nil 8174 } 8175 8176 func (ec *executionContext) _Query_inputSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8177 fc, err := ec.fieldContext_Query_inputSlice(ctx, field) 8178 if err != nil { 8179 return graphql.Null 8180 } 8181 ctx = graphql.WithFieldContext(ctx, fc) 8182 defer func() { 8183 if r := recover(); r != nil { 8184 ec.Error(ctx, ec.Recover(ctx, r)) 8185 ret = graphql.Null 8186 } 8187 }() 8188 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8189 ctx = rctx // use context from middleware stack in children 8190 return ec.resolvers.Query().InputSlice(rctx, fc.Args["arg"].([]string)) 8191 }) 8192 8193 if resTmp == nil { 8194 if !graphql.HasFieldError(ctx, fc) { 8195 ec.Errorf(ctx, "must not be null") 8196 } 8197 return graphql.Null 8198 } 8199 res := resTmp.(bool) 8200 fc.Result = res 8201 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 8202 } 8203 8204 func (ec *executionContext) fieldContext_Query_inputSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8205 fc = &graphql.FieldContext{ 8206 Object: "Query", 8207 Field: field, 8208 IsMethod: true, 8209 IsResolver: true, 8210 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8211 return nil, errors.New("field of type Boolean does not have child fields") 8212 }, 8213 } 8214 defer func() { 8215 if r := recover(); r != nil { 8216 err = ec.Recover(ctx, r) 8217 ec.Error(ctx, err) 8218 } 8219 }() 8220 ctx = graphql.WithFieldContext(ctx, fc) 8221 if fc.Args, err = ec.field_Query_inputSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8222 ec.Error(ctx, err) 8223 return fc, err 8224 } 8225 return fc, nil 8226 } 8227 8228 func (ec *executionContext) _Query_inputNullableSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8229 fc, err := ec.fieldContext_Query_inputNullableSlice(ctx, field) 8230 if err != nil { 8231 return graphql.Null 8232 } 8233 ctx = graphql.WithFieldContext(ctx, fc) 8234 defer func() { 8235 if r := recover(); r != nil { 8236 ec.Error(ctx, ec.Recover(ctx, r)) 8237 ret = graphql.Null 8238 } 8239 }() 8240 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8241 ctx = rctx // use context from middleware stack in children 8242 return ec.resolvers.Query().InputNullableSlice(rctx, fc.Args["arg"].([]string)) 8243 }) 8244 8245 if resTmp == nil { 8246 if !graphql.HasFieldError(ctx, fc) { 8247 ec.Errorf(ctx, "must not be null") 8248 } 8249 return graphql.Null 8250 } 8251 res := resTmp.(bool) 8252 fc.Result = res 8253 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 8254 } 8255 8256 func (ec *executionContext) fieldContext_Query_inputNullableSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8257 fc = &graphql.FieldContext{ 8258 Object: "Query", 8259 Field: field, 8260 IsMethod: true, 8261 IsResolver: true, 8262 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8263 return nil, errors.New("field of type Boolean does not have child fields") 8264 }, 8265 } 8266 defer func() { 8267 if r := recover(); r != nil { 8268 err = ec.Recover(ctx, r) 8269 ec.Error(ctx, err) 8270 } 8271 }() 8272 ctx = graphql.WithFieldContext(ctx, fc) 8273 if fc.Args, err = ec.field_Query_inputNullableSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8274 ec.Error(ctx, err) 8275 return fc, err 8276 } 8277 return fc, nil 8278 } 8279 8280 func (ec *executionContext) _Query_inputOmittable(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8281 fc, err := ec.fieldContext_Query_inputOmittable(ctx, field) 8282 if err != nil { 8283 return graphql.Null 8284 } 8285 ctx = graphql.WithFieldContext(ctx, fc) 8286 defer func() { 8287 if r := recover(); r != nil { 8288 ec.Error(ctx, ec.Recover(ctx, r)) 8289 ret = graphql.Null 8290 } 8291 }() 8292 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8293 ctx = rctx // use context from middleware stack in children 8294 return ec.resolvers.Query().InputOmittable(rctx, fc.Args["arg"].(OmittableInput)) 8295 }) 8296 8297 if resTmp == nil { 8298 if !graphql.HasFieldError(ctx, fc) { 8299 ec.Errorf(ctx, "must not be null") 8300 } 8301 return graphql.Null 8302 } 8303 res := resTmp.(string) 8304 fc.Result = res 8305 return ec.marshalNString2string(ctx, field.Selections, res) 8306 } 8307 8308 func (ec *executionContext) fieldContext_Query_inputOmittable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8309 fc = &graphql.FieldContext{ 8310 Object: "Query", 8311 Field: field, 8312 IsMethod: true, 8313 IsResolver: true, 8314 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8315 return nil, errors.New("field of type String does not have child fields") 8316 }, 8317 } 8318 defer func() { 8319 if r := recover(); r != nil { 8320 err = ec.Recover(ctx, r) 8321 ec.Error(ctx, err) 8322 } 8323 }() 8324 ctx = graphql.WithFieldContext(ctx, fc) 8325 if fc.Args, err = ec.field_Query_inputOmittable_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8326 ec.Error(ctx, err) 8327 return fc, err 8328 } 8329 return fc, nil 8330 } 8331 8332 func (ec *executionContext) _Query_shapeUnion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8333 fc, err := ec.fieldContext_Query_shapeUnion(ctx, field) 8334 if err != nil { 8335 return graphql.Null 8336 } 8337 ctx = graphql.WithFieldContext(ctx, fc) 8338 defer func() { 8339 if r := recover(); r != nil { 8340 ec.Error(ctx, ec.Recover(ctx, r)) 8341 ret = graphql.Null 8342 } 8343 }() 8344 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8345 ctx = rctx // use context from middleware stack in children 8346 return ec.resolvers.Query().ShapeUnion(rctx) 8347 }) 8348 8349 if resTmp == nil { 8350 if !graphql.HasFieldError(ctx, fc) { 8351 ec.Errorf(ctx, "must not be null") 8352 } 8353 return graphql.Null 8354 } 8355 res := resTmp.(ShapeUnion) 8356 fc.Result = res 8357 return ec.marshalNShapeUnion2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShapeUnion(ctx, field.Selections, res) 8358 } 8359 8360 func (ec *executionContext) fieldContext_Query_shapeUnion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8361 fc = &graphql.FieldContext{ 8362 Object: "Query", 8363 Field: field, 8364 IsMethod: true, 8365 IsResolver: true, 8366 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8367 return nil, errors.New("field of type ShapeUnion does not have child fields") 8368 }, 8369 } 8370 return fc, nil 8371 } 8372 8373 func (ec *executionContext) _Query_autobind(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8374 fc, err := ec.fieldContext_Query_autobind(ctx, field) 8375 if err != nil { 8376 return graphql.Null 8377 } 8378 ctx = graphql.WithFieldContext(ctx, fc) 8379 defer func() { 8380 if r := recover(); r != nil { 8381 ec.Error(ctx, ec.Recover(ctx, r)) 8382 ret = graphql.Null 8383 } 8384 }() 8385 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8386 ctx = rctx // use context from middleware stack in children 8387 return ec.resolvers.Query().Autobind(rctx) 8388 }) 8389 8390 if resTmp == nil { 8391 return graphql.Null 8392 } 8393 res := resTmp.(*Autobind) 8394 fc.Result = res 8395 return ec.marshalOAutobind2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐAutobind(ctx, field.Selections, res) 8396 } 8397 8398 func (ec *executionContext) fieldContext_Query_autobind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8399 fc = &graphql.FieldContext{ 8400 Object: "Query", 8401 Field: field, 8402 IsMethod: true, 8403 IsResolver: true, 8404 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8405 switch field.Name { 8406 case "int": 8407 return ec.fieldContext_Autobind_int(ctx, field) 8408 case "int32": 8409 return ec.fieldContext_Autobind_int32(ctx, field) 8410 case "int64": 8411 return ec.fieldContext_Autobind_int64(ctx, field) 8412 case "idStr": 8413 return ec.fieldContext_Autobind_idStr(ctx, field) 8414 case "idInt": 8415 return ec.fieldContext_Autobind_idInt(ctx, field) 8416 } 8417 return nil, fmt.Errorf("no field named %q was found under type Autobind", field.Name) 8418 }, 8419 } 8420 return fc, nil 8421 } 8422 8423 func (ec *executionContext) _Query_deprecatedField(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8424 fc, err := ec.fieldContext_Query_deprecatedField(ctx, field) 8425 if err != nil { 8426 return graphql.Null 8427 } 8428 ctx = graphql.WithFieldContext(ctx, fc) 8429 defer func() { 8430 if r := recover(); r != nil { 8431 ec.Error(ctx, ec.Recover(ctx, r)) 8432 ret = graphql.Null 8433 } 8434 }() 8435 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8436 ctx = rctx // use context from middleware stack in children 8437 return ec.resolvers.Query().DeprecatedField(rctx) 8438 }) 8439 8440 if resTmp == nil { 8441 if !graphql.HasFieldError(ctx, fc) { 8442 ec.Errorf(ctx, "must not be null") 8443 } 8444 return graphql.Null 8445 } 8446 res := resTmp.(string) 8447 fc.Result = res 8448 return ec.marshalNString2string(ctx, field.Selections, res) 8449 } 8450 8451 func (ec *executionContext) fieldContext_Query_deprecatedField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8452 fc = &graphql.FieldContext{ 8453 Object: "Query", 8454 Field: field, 8455 IsMethod: true, 8456 IsResolver: true, 8457 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8458 return nil, errors.New("field of type String does not have child fields") 8459 }, 8460 } 8461 return fc, nil 8462 } 8463 8464 func (ec *executionContext) _Query_overlapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8465 fc, err := ec.fieldContext_Query_overlapping(ctx, field) 8466 if err != nil { 8467 return graphql.Null 8468 } 8469 ctx = graphql.WithFieldContext(ctx, fc) 8470 defer func() { 8471 if r := recover(); r != nil { 8472 ec.Error(ctx, ec.Recover(ctx, r)) 8473 ret = graphql.Null 8474 } 8475 }() 8476 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8477 ctx = rctx // use context from middleware stack in children 8478 return ec.resolvers.Query().Overlapping(rctx) 8479 }) 8480 8481 if resTmp == nil { 8482 return graphql.Null 8483 } 8484 res := resTmp.(*OverlappingFields) 8485 fc.Result = res 8486 return ec.marshalOOverlappingFields2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOverlappingFields(ctx, field.Selections, res) 8487 } 8488 8489 func (ec *executionContext) fieldContext_Query_overlapping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8490 fc = &graphql.FieldContext{ 8491 Object: "Query", 8492 Field: field, 8493 IsMethod: true, 8494 IsResolver: true, 8495 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8496 switch field.Name { 8497 case "oneFoo": 8498 return ec.fieldContext_OverlappingFields_oneFoo(ctx, field) 8499 case "twoFoo": 8500 return ec.fieldContext_OverlappingFields_twoFoo(ctx, field) 8501 case "oldFoo": 8502 return ec.fieldContext_OverlappingFields_oldFoo(ctx, field) 8503 case "newFoo": 8504 return ec.fieldContext_OverlappingFields_newFoo(ctx, field) 8505 case "new_foo": 8506 return ec.fieldContext_OverlappingFields_new_foo(ctx, field) 8507 } 8508 return nil, fmt.Errorf("no field named %q was found under type OverlappingFields", field.Name) 8509 }, 8510 } 8511 return fc, nil 8512 } 8513 8514 func (ec *executionContext) _Query_defaultParameters(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8515 fc, err := ec.fieldContext_Query_defaultParameters(ctx, field) 8516 if err != nil { 8517 return graphql.Null 8518 } 8519 ctx = graphql.WithFieldContext(ctx, fc) 8520 defer func() { 8521 if r := recover(); r != nil { 8522 ec.Error(ctx, ec.Recover(ctx, r)) 8523 ret = graphql.Null 8524 } 8525 }() 8526 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8527 ctx = rctx // use context from middleware stack in children 8528 return ec.resolvers.Query().DefaultParameters(rctx, fc.Args["falsyBoolean"].(*bool), fc.Args["truthyBoolean"].(*bool)) 8529 }) 8530 8531 if resTmp == nil { 8532 if !graphql.HasFieldError(ctx, fc) { 8533 ec.Errorf(ctx, "must not be null") 8534 } 8535 return graphql.Null 8536 } 8537 res := resTmp.(*DefaultParametersMirror) 8538 fc.Result = res 8539 return ec.marshalNDefaultParametersMirror2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultParametersMirror(ctx, field.Selections, res) 8540 } 8541 8542 func (ec *executionContext) fieldContext_Query_defaultParameters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8543 fc = &graphql.FieldContext{ 8544 Object: "Query", 8545 Field: field, 8546 IsMethod: true, 8547 IsResolver: true, 8548 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8549 switch field.Name { 8550 case "falsyBoolean": 8551 return ec.fieldContext_DefaultParametersMirror_falsyBoolean(ctx, field) 8552 case "truthyBoolean": 8553 return ec.fieldContext_DefaultParametersMirror_truthyBoolean(ctx, field) 8554 } 8555 return nil, fmt.Errorf("no field named %q was found under type DefaultParametersMirror", field.Name) 8556 }, 8557 } 8558 defer func() { 8559 if r := recover(); r != nil { 8560 err = ec.Recover(ctx, r) 8561 ec.Error(ctx, err) 8562 } 8563 }() 8564 ctx = graphql.WithFieldContext(ctx, fc) 8565 if fc.Args, err = ec.field_Query_defaultParameters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8566 ec.Error(ctx, err) 8567 return fc, err 8568 } 8569 return fc, nil 8570 } 8571 8572 func (ec *executionContext) _Query_deferCase1(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8573 fc, err := ec.fieldContext_Query_deferCase1(ctx, field) 8574 if err != nil { 8575 return graphql.Null 8576 } 8577 ctx = graphql.WithFieldContext(ctx, fc) 8578 defer func() { 8579 if r := recover(); r != nil { 8580 ec.Error(ctx, ec.Recover(ctx, r)) 8581 ret = graphql.Null 8582 } 8583 }() 8584 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8585 ctx = rctx // use context from middleware stack in children 8586 return ec.resolvers.Query().DeferCase1(rctx) 8587 }) 8588 8589 if resTmp == nil { 8590 return graphql.Null 8591 } 8592 res := resTmp.(*DeferModel) 8593 fc.Result = res 8594 return ec.marshalODeferModel2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDeferModel(ctx, field.Selections, res) 8595 } 8596 8597 func (ec *executionContext) fieldContext_Query_deferCase1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8598 fc = &graphql.FieldContext{ 8599 Object: "Query", 8600 Field: field, 8601 IsMethod: true, 8602 IsResolver: true, 8603 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8604 switch field.Name { 8605 case "id": 8606 return ec.fieldContext_DeferModel_id(ctx, field) 8607 case "name": 8608 return ec.fieldContext_DeferModel_name(ctx, field) 8609 case "values": 8610 return ec.fieldContext_DeferModel_values(ctx, field) 8611 } 8612 return nil, fmt.Errorf("no field named %q was found under type DeferModel", field.Name) 8613 }, 8614 } 8615 return fc, nil 8616 } 8617 8618 func (ec *executionContext) _Query_deferCase2(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8619 fc, err := ec.fieldContext_Query_deferCase2(ctx, field) 8620 if err != nil { 8621 return graphql.Null 8622 } 8623 ctx = graphql.WithFieldContext(ctx, fc) 8624 defer func() { 8625 if r := recover(); r != nil { 8626 ec.Error(ctx, ec.Recover(ctx, r)) 8627 ret = graphql.Null 8628 } 8629 }() 8630 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8631 ctx = rctx // use context from middleware stack in children 8632 return ec.resolvers.Query().DeferCase2(rctx) 8633 }) 8634 8635 if resTmp == nil { 8636 return graphql.Null 8637 } 8638 res := resTmp.([]*DeferModel) 8639 fc.Result = res 8640 return ec.marshalODeferModel2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDeferModelᚄ(ctx, field.Selections, res) 8641 } 8642 8643 func (ec *executionContext) fieldContext_Query_deferCase2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8644 fc = &graphql.FieldContext{ 8645 Object: "Query", 8646 Field: field, 8647 IsMethod: true, 8648 IsResolver: true, 8649 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8650 switch field.Name { 8651 case "id": 8652 return ec.fieldContext_DeferModel_id(ctx, field) 8653 case "name": 8654 return ec.fieldContext_DeferModel_name(ctx, field) 8655 case "values": 8656 return ec.fieldContext_DeferModel_values(ctx, field) 8657 } 8658 return nil, fmt.Errorf("no field named %q was found under type DeferModel", field.Name) 8659 }, 8660 } 8661 return fc, nil 8662 } 8663 8664 func (ec *executionContext) _Query_directiveArg(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8665 fc, err := ec.fieldContext_Query_directiveArg(ctx, field) 8666 if err != nil { 8667 return graphql.Null 8668 } 8669 ctx = graphql.WithFieldContext(ctx, fc) 8670 defer func() { 8671 if r := recover(); r != nil { 8672 ec.Error(ctx, ec.Recover(ctx, r)) 8673 ret = graphql.Null 8674 } 8675 }() 8676 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8677 ctx = rctx // use context from middleware stack in children 8678 return ec.resolvers.Query().DirectiveArg(rctx, fc.Args["arg"].(string)) 8679 }) 8680 8681 if resTmp == nil { 8682 return graphql.Null 8683 } 8684 res := resTmp.(*string) 8685 fc.Result = res 8686 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8687 } 8688 8689 func (ec *executionContext) fieldContext_Query_directiveArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8690 fc = &graphql.FieldContext{ 8691 Object: "Query", 8692 Field: field, 8693 IsMethod: true, 8694 IsResolver: true, 8695 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8696 return nil, errors.New("field of type String does not have child fields") 8697 }, 8698 } 8699 defer func() { 8700 if r := recover(); r != nil { 8701 err = ec.Recover(ctx, r) 8702 ec.Error(ctx, err) 8703 } 8704 }() 8705 ctx = graphql.WithFieldContext(ctx, fc) 8706 if fc.Args, err = ec.field_Query_directiveArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8707 ec.Error(ctx, err) 8708 return fc, err 8709 } 8710 return fc, nil 8711 } 8712 8713 func (ec *executionContext) _Query_directiveNullableArg(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8714 fc, err := ec.fieldContext_Query_directiveNullableArg(ctx, field) 8715 if err != nil { 8716 return graphql.Null 8717 } 8718 ctx = graphql.WithFieldContext(ctx, fc) 8719 defer func() { 8720 if r := recover(); r != nil { 8721 ec.Error(ctx, ec.Recover(ctx, r)) 8722 ret = graphql.Null 8723 } 8724 }() 8725 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8726 ctx = rctx // use context from middleware stack in children 8727 return ec.resolvers.Query().DirectiveNullableArg(rctx, fc.Args["arg"].(*int), fc.Args["arg2"].(*int), fc.Args["arg3"].(*string)) 8728 }) 8729 8730 if resTmp == nil { 8731 return graphql.Null 8732 } 8733 res := resTmp.(*string) 8734 fc.Result = res 8735 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8736 } 8737 8738 func (ec *executionContext) fieldContext_Query_directiveNullableArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8739 fc = &graphql.FieldContext{ 8740 Object: "Query", 8741 Field: field, 8742 IsMethod: true, 8743 IsResolver: true, 8744 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8745 return nil, errors.New("field of type String does not have child fields") 8746 }, 8747 } 8748 defer func() { 8749 if r := recover(); r != nil { 8750 err = ec.Recover(ctx, r) 8751 ec.Error(ctx, err) 8752 } 8753 }() 8754 ctx = graphql.WithFieldContext(ctx, fc) 8755 if fc.Args, err = ec.field_Query_directiveNullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8756 ec.Error(ctx, err) 8757 return fc, err 8758 } 8759 return fc, nil 8760 } 8761 8762 func (ec *executionContext) _Query_directiveInputNullable(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8763 fc, err := ec.fieldContext_Query_directiveInputNullable(ctx, field) 8764 if err != nil { 8765 return graphql.Null 8766 } 8767 ctx = graphql.WithFieldContext(ctx, fc) 8768 defer func() { 8769 if r := recover(); r != nil { 8770 ec.Error(ctx, ec.Recover(ctx, r)) 8771 ret = graphql.Null 8772 } 8773 }() 8774 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8775 ctx = rctx // use context from middleware stack in children 8776 return ec.resolvers.Query().DirectiveInputNullable(rctx, fc.Args["arg"].(*InputDirectives)) 8777 }) 8778 8779 if resTmp == nil { 8780 return graphql.Null 8781 } 8782 res := resTmp.(*string) 8783 fc.Result = res 8784 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8785 } 8786 8787 func (ec *executionContext) fieldContext_Query_directiveInputNullable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8788 fc = &graphql.FieldContext{ 8789 Object: "Query", 8790 Field: field, 8791 IsMethod: true, 8792 IsResolver: true, 8793 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8794 return nil, errors.New("field of type String does not have child fields") 8795 }, 8796 } 8797 defer func() { 8798 if r := recover(); r != nil { 8799 err = ec.Recover(ctx, r) 8800 ec.Error(ctx, err) 8801 } 8802 }() 8803 ctx = graphql.WithFieldContext(ctx, fc) 8804 if fc.Args, err = ec.field_Query_directiveInputNullable_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8805 ec.Error(ctx, err) 8806 return fc, err 8807 } 8808 return fc, nil 8809 } 8810 8811 func (ec *executionContext) _Query_directiveInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8812 fc, err := ec.fieldContext_Query_directiveInput(ctx, field) 8813 if err != nil { 8814 return graphql.Null 8815 } 8816 ctx = graphql.WithFieldContext(ctx, fc) 8817 defer func() { 8818 if r := recover(); r != nil { 8819 ec.Error(ctx, ec.Recover(ctx, r)) 8820 ret = graphql.Null 8821 } 8822 }() 8823 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8824 ctx = rctx // use context from middleware stack in children 8825 return ec.resolvers.Query().DirectiveInput(rctx, fc.Args["arg"].(InputDirectives)) 8826 }) 8827 8828 if resTmp == nil { 8829 return graphql.Null 8830 } 8831 res := resTmp.(*string) 8832 fc.Result = res 8833 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8834 } 8835 8836 func (ec *executionContext) fieldContext_Query_directiveInput(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8837 fc = &graphql.FieldContext{ 8838 Object: "Query", 8839 Field: field, 8840 IsMethod: true, 8841 IsResolver: true, 8842 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8843 return nil, errors.New("field of type String does not have child fields") 8844 }, 8845 } 8846 defer func() { 8847 if r := recover(); r != nil { 8848 err = ec.Recover(ctx, r) 8849 ec.Error(ctx, err) 8850 } 8851 }() 8852 ctx = graphql.WithFieldContext(ctx, fc) 8853 if fc.Args, err = ec.field_Query_directiveInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8854 ec.Error(ctx, err) 8855 return fc, err 8856 } 8857 return fc, nil 8858 } 8859 8860 func (ec *executionContext) _Query_directiveInputType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8861 fc, err := ec.fieldContext_Query_directiveInputType(ctx, field) 8862 if err != nil { 8863 return graphql.Null 8864 } 8865 ctx = graphql.WithFieldContext(ctx, fc) 8866 defer func() { 8867 if r := recover(); r != nil { 8868 ec.Error(ctx, ec.Recover(ctx, r)) 8869 ret = graphql.Null 8870 } 8871 }() 8872 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8873 ctx = rctx // use context from middleware stack in children 8874 return ec.resolvers.Query().DirectiveInputType(rctx, fc.Args["arg"].(InnerInput)) 8875 }) 8876 8877 if resTmp == nil { 8878 return graphql.Null 8879 } 8880 res := resTmp.(*string) 8881 fc.Result = res 8882 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8883 } 8884 8885 func (ec *executionContext) fieldContext_Query_directiveInputType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8886 fc = &graphql.FieldContext{ 8887 Object: "Query", 8888 Field: field, 8889 IsMethod: true, 8890 IsResolver: true, 8891 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8892 return nil, errors.New("field of type String does not have child fields") 8893 }, 8894 } 8895 defer func() { 8896 if r := recover(); r != nil { 8897 err = ec.Recover(ctx, r) 8898 ec.Error(ctx, err) 8899 } 8900 }() 8901 ctx = graphql.WithFieldContext(ctx, fc) 8902 if fc.Args, err = ec.field_Query_directiveInputType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8903 ec.Error(ctx, err) 8904 return fc, err 8905 } 8906 return fc, nil 8907 } 8908 8909 func (ec *executionContext) _Query_directiveObject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8910 fc, err := ec.fieldContext_Query_directiveObject(ctx, field) 8911 if err != nil { 8912 return graphql.Null 8913 } 8914 ctx = graphql.WithFieldContext(ctx, fc) 8915 defer func() { 8916 if r := recover(); r != nil { 8917 ec.Error(ctx, ec.Recover(ctx, r)) 8918 ret = graphql.Null 8919 } 8920 }() 8921 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8922 directive0 := func(rctx context.Context) (interface{}, error) { 8923 ctx = rctx // use context from middleware stack in children 8924 return ec.resolvers.Query().DirectiveObject(rctx) 8925 } 8926 directive1 := func(ctx context.Context) (interface{}, error) { 8927 location, err := ec.unmarshalNString2string(ctx, "order1_1") 8928 if err != nil { 8929 return nil, err 8930 } 8931 if ec.directives.Order1 == nil { 8932 return nil, errors.New("directive order1 is not implemented") 8933 } 8934 return ec.directives.Order1(ctx, nil, directive0, location) 8935 } 8936 directive2 := func(ctx context.Context) (interface{}, error) { 8937 location, err := ec.unmarshalNString2string(ctx, "order1_2") 8938 if err != nil { 8939 return nil, err 8940 } 8941 if ec.directives.Order1 == nil { 8942 return nil, errors.New("directive order1 is not implemented") 8943 } 8944 return ec.directives.Order1(ctx, nil, directive1, location) 8945 } 8946 directive3 := func(ctx context.Context) (interface{}, error) { 8947 location, err := ec.unmarshalNString2string(ctx, "order2_1") 8948 if err != nil { 8949 return nil, err 8950 } 8951 if ec.directives.Order2 == nil { 8952 return nil, errors.New("directive order2 is not implemented") 8953 } 8954 return ec.directives.Order2(ctx, nil, directive2, location) 8955 } 8956 directive4 := func(ctx context.Context) (interface{}, error) { 8957 location, err := ec.unmarshalNString2string(ctx, "Query_field") 8958 if err != nil { 8959 return nil, err 8960 } 8961 if ec.directives.Order1 == nil { 8962 return nil, errors.New("directive order1 is not implemented") 8963 } 8964 return ec.directives.Order1(ctx, nil, directive3, location) 8965 } 8966 8967 tmp, err := directive4(rctx) 8968 if err != nil { 8969 return nil, graphql.ErrorOnPath(ctx, err) 8970 } 8971 if tmp == nil { 8972 return nil, nil 8973 } 8974 if data, ok := tmp.(*ObjectDirectives); ok { 8975 return data, nil 8976 } 8977 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/geneva/gqlgen/codegen/testserver/singlefile.ObjectDirectives`, tmp) 8978 }) 8979 8980 if resTmp == nil { 8981 return graphql.Null 8982 } 8983 res := resTmp.(*ObjectDirectives) 8984 fc.Result = res 8985 return ec.marshalOObjectDirectives2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐObjectDirectives(ctx, field.Selections, res) 8986 } 8987 8988 func (ec *executionContext) fieldContext_Query_directiveObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8989 fc = &graphql.FieldContext{ 8990 Object: "Query", 8991 Field: field, 8992 IsMethod: true, 8993 IsResolver: true, 8994 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8995 switch field.Name { 8996 case "text": 8997 return ec.fieldContext_ObjectDirectives_text(ctx, field) 8998 case "nullableText": 8999 return ec.fieldContext_ObjectDirectives_nullableText(ctx, field) 9000 case "order": 9001 return ec.fieldContext_ObjectDirectives_order(ctx, field) 9002 } 9003 return nil, fmt.Errorf("no field named %q was found under type ObjectDirectives", field.Name) 9004 }, 9005 } 9006 return fc, nil 9007 } 9008 9009 func (ec *executionContext) _Query_directiveObjectWithCustomGoModel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9010 fc, err := ec.fieldContext_Query_directiveObjectWithCustomGoModel(ctx, field) 9011 if err != nil { 9012 return graphql.Null 9013 } 9014 ctx = graphql.WithFieldContext(ctx, fc) 9015 defer func() { 9016 if r := recover(); r != nil { 9017 ec.Error(ctx, ec.Recover(ctx, r)) 9018 ret = graphql.Null 9019 } 9020 }() 9021 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9022 ctx = rctx // use context from middleware stack in children 9023 return ec.resolvers.Query().DirectiveObjectWithCustomGoModel(rctx) 9024 }) 9025 9026 if resTmp == nil { 9027 return graphql.Null 9028 } 9029 res := resTmp.(*ObjectDirectivesWithCustomGoModel) 9030 fc.Result = res 9031 return ec.marshalOObjectDirectivesWithCustomGoModel2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐObjectDirectivesWithCustomGoModel(ctx, field.Selections, res) 9032 } 9033 9034 func (ec *executionContext) fieldContext_Query_directiveObjectWithCustomGoModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9035 fc = &graphql.FieldContext{ 9036 Object: "Query", 9037 Field: field, 9038 IsMethod: true, 9039 IsResolver: true, 9040 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9041 switch field.Name { 9042 case "nullableText": 9043 return ec.fieldContext_ObjectDirectivesWithCustomGoModel_nullableText(ctx, field) 9044 } 9045 return nil, fmt.Errorf("no field named %q was found under type ObjectDirectivesWithCustomGoModel", field.Name) 9046 }, 9047 } 9048 return fc, nil 9049 } 9050 9051 func (ec *executionContext) _Query_directiveFieldDef(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9052 fc, err := ec.fieldContext_Query_directiveFieldDef(ctx, field) 9053 if err != nil { 9054 return graphql.Null 9055 } 9056 ctx = graphql.WithFieldContext(ctx, fc) 9057 defer func() { 9058 if r := recover(); r != nil { 9059 ec.Error(ctx, ec.Recover(ctx, r)) 9060 ret = graphql.Null 9061 } 9062 }() 9063 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9064 directive0 := func(rctx context.Context) (interface{}, error) { 9065 ctx = rctx // use context from middleware stack in children 9066 return ec.resolvers.Query().DirectiveFieldDef(rctx, fc.Args["ret"].(string)) 9067 } 9068 directive1 := func(ctx context.Context) (interface{}, error) { 9069 min, err := ec.unmarshalNInt2int(ctx, 1) 9070 if err != nil { 9071 return nil, err 9072 } 9073 message, err := ec.unmarshalOString2ᚖstring(ctx, "not valid") 9074 if err != nil { 9075 return nil, err 9076 } 9077 if ec.directives.Length == nil { 9078 return nil, errors.New("directive length is not implemented") 9079 } 9080 return ec.directives.Length(ctx, nil, directive0, min, nil, message) 9081 } 9082 9083 tmp, err := directive1(rctx) 9084 if err != nil { 9085 return nil, graphql.ErrorOnPath(ctx, err) 9086 } 9087 if tmp == nil { 9088 return nil, nil 9089 } 9090 if data, ok := tmp.(string); ok { 9091 return data, nil 9092 } 9093 return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 9094 }) 9095 9096 if resTmp == nil { 9097 if !graphql.HasFieldError(ctx, fc) { 9098 ec.Errorf(ctx, "must not be null") 9099 } 9100 return graphql.Null 9101 } 9102 res := resTmp.(string) 9103 fc.Result = res 9104 return ec.marshalNString2string(ctx, field.Selections, res) 9105 } 9106 9107 func (ec *executionContext) fieldContext_Query_directiveFieldDef(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9108 fc = &graphql.FieldContext{ 9109 Object: "Query", 9110 Field: field, 9111 IsMethod: true, 9112 IsResolver: true, 9113 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9114 return nil, errors.New("field of type String does not have child fields") 9115 }, 9116 } 9117 defer func() { 9118 if r := recover(); r != nil { 9119 err = ec.Recover(ctx, r) 9120 ec.Error(ctx, err) 9121 } 9122 }() 9123 ctx = graphql.WithFieldContext(ctx, fc) 9124 if fc.Args, err = ec.field_Query_directiveFieldDef_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9125 ec.Error(ctx, err) 9126 return fc, err 9127 } 9128 return fc, nil 9129 } 9130 9131 func (ec *executionContext) _Query_directiveField(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9132 fc, err := ec.fieldContext_Query_directiveField(ctx, field) 9133 if err != nil { 9134 return graphql.Null 9135 } 9136 ctx = graphql.WithFieldContext(ctx, fc) 9137 defer func() { 9138 if r := recover(); r != nil { 9139 ec.Error(ctx, ec.Recover(ctx, r)) 9140 ret = graphql.Null 9141 } 9142 }() 9143 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9144 ctx = rctx // use context from middleware stack in children 9145 return ec.resolvers.Query().DirectiveField(rctx) 9146 }) 9147 9148 if resTmp == nil { 9149 return graphql.Null 9150 } 9151 res := resTmp.(*string) 9152 fc.Result = res 9153 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9154 } 9155 9156 func (ec *executionContext) fieldContext_Query_directiveField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9157 fc = &graphql.FieldContext{ 9158 Object: "Query", 9159 Field: field, 9160 IsMethod: true, 9161 IsResolver: true, 9162 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9163 return nil, errors.New("field of type String does not have child fields") 9164 }, 9165 } 9166 return fc, nil 9167 } 9168 9169 func (ec *executionContext) _Query_directiveDouble(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9170 fc, err := ec.fieldContext_Query_directiveDouble(ctx, field) 9171 if err != nil { 9172 return graphql.Null 9173 } 9174 ctx = graphql.WithFieldContext(ctx, fc) 9175 defer func() { 9176 if r := recover(); r != nil { 9177 ec.Error(ctx, ec.Recover(ctx, r)) 9178 ret = graphql.Null 9179 } 9180 }() 9181 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9182 directive0 := func(rctx context.Context) (interface{}, error) { 9183 ctx = rctx // use context from middleware stack in children 9184 return ec.resolvers.Query().DirectiveDouble(rctx) 9185 } 9186 directive1 := func(ctx context.Context) (interface{}, error) { 9187 if ec.directives.Directive1 == nil { 9188 return nil, errors.New("directive directive1 is not implemented") 9189 } 9190 return ec.directives.Directive1(ctx, nil, directive0) 9191 } 9192 directive2 := func(ctx context.Context) (interface{}, error) { 9193 if ec.directives.Directive2 == nil { 9194 return nil, errors.New("directive directive2 is not implemented") 9195 } 9196 return ec.directives.Directive2(ctx, nil, directive1) 9197 } 9198 9199 tmp, err := directive2(rctx) 9200 if err != nil { 9201 return nil, graphql.ErrorOnPath(ctx, err) 9202 } 9203 if tmp == nil { 9204 return nil, nil 9205 } 9206 if data, ok := tmp.(*string); ok { 9207 return data, nil 9208 } 9209 return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 9210 }) 9211 9212 if resTmp == nil { 9213 return graphql.Null 9214 } 9215 res := resTmp.(*string) 9216 fc.Result = res 9217 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9218 } 9219 9220 func (ec *executionContext) fieldContext_Query_directiveDouble(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9221 fc = &graphql.FieldContext{ 9222 Object: "Query", 9223 Field: field, 9224 IsMethod: true, 9225 IsResolver: true, 9226 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9227 return nil, errors.New("field of type String does not have child fields") 9228 }, 9229 } 9230 return fc, nil 9231 } 9232 9233 func (ec *executionContext) _Query_directiveUnimplemented(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9234 fc, err := ec.fieldContext_Query_directiveUnimplemented(ctx, field) 9235 if err != nil { 9236 return graphql.Null 9237 } 9238 ctx = graphql.WithFieldContext(ctx, fc) 9239 defer func() { 9240 if r := recover(); r != nil { 9241 ec.Error(ctx, ec.Recover(ctx, r)) 9242 ret = graphql.Null 9243 } 9244 }() 9245 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9246 directive0 := func(rctx context.Context) (interface{}, error) { 9247 ctx = rctx // use context from middleware stack in children 9248 return ec.resolvers.Query().DirectiveUnimplemented(rctx) 9249 } 9250 directive1 := func(ctx context.Context) (interface{}, error) { 9251 if ec.directives.Unimplemented == nil { 9252 return nil, errors.New("directive unimplemented is not implemented") 9253 } 9254 return ec.directives.Unimplemented(ctx, nil, directive0) 9255 } 9256 9257 tmp, err := directive1(rctx) 9258 if err != nil { 9259 return nil, graphql.ErrorOnPath(ctx, err) 9260 } 9261 if tmp == nil { 9262 return nil, nil 9263 } 9264 if data, ok := tmp.(*string); ok { 9265 return data, nil 9266 } 9267 return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 9268 }) 9269 9270 if resTmp == nil { 9271 return graphql.Null 9272 } 9273 res := resTmp.(*string) 9274 fc.Result = res 9275 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9276 } 9277 9278 func (ec *executionContext) fieldContext_Query_directiveUnimplemented(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9279 fc = &graphql.FieldContext{ 9280 Object: "Query", 9281 Field: field, 9282 IsMethod: true, 9283 IsResolver: true, 9284 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9285 return nil, errors.New("field of type String does not have child fields") 9286 }, 9287 } 9288 return fc, nil 9289 } 9290 9291 func (ec *executionContext) _Query_embeddedCase1(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9292 fc, err := ec.fieldContext_Query_embeddedCase1(ctx, field) 9293 if err != nil { 9294 return graphql.Null 9295 } 9296 ctx = graphql.WithFieldContext(ctx, fc) 9297 defer func() { 9298 if r := recover(); r != nil { 9299 ec.Error(ctx, ec.Recover(ctx, r)) 9300 ret = graphql.Null 9301 } 9302 }() 9303 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9304 ctx = rctx // use context from middleware stack in children 9305 return ec.resolvers.Query().EmbeddedCase1(rctx) 9306 }) 9307 9308 if resTmp == nil { 9309 return graphql.Null 9310 } 9311 res := resTmp.(*EmbeddedCase1) 9312 fc.Result = res 9313 return ec.marshalOEmbeddedCase12ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase1(ctx, field.Selections, res) 9314 } 9315 9316 func (ec *executionContext) fieldContext_Query_embeddedCase1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9317 fc = &graphql.FieldContext{ 9318 Object: "Query", 9319 Field: field, 9320 IsMethod: true, 9321 IsResolver: true, 9322 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9323 switch field.Name { 9324 case "exportedEmbeddedPointerExportedMethod": 9325 return ec.fieldContext_EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx, field) 9326 } 9327 return nil, fmt.Errorf("no field named %q was found under type EmbeddedCase1", field.Name) 9328 }, 9329 } 9330 return fc, nil 9331 } 9332 9333 func (ec *executionContext) _Query_embeddedCase2(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9334 fc, err := ec.fieldContext_Query_embeddedCase2(ctx, field) 9335 if err != nil { 9336 return graphql.Null 9337 } 9338 ctx = graphql.WithFieldContext(ctx, fc) 9339 defer func() { 9340 if r := recover(); r != nil { 9341 ec.Error(ctx, ec.Recover(ctx, r)) 9342 ret = graphql.Null 9343 } 9344 }() 9345 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9346 ctx = rctx // use context from middleware stack in children 9347 return ec.resolvers.Query().EmbeddedCase2(rctx) 9348 }) 9349 9350 if resTmp == nil { 9351 return graphql.Null 9352 } 9353 res := resTmp.(*EmbeddedCase2) 9354 fc.Result = res 9355 return ec.marshalOEmbeddedCase22ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase2(ctx, field.Selections, res) 9356 } 9357 9358 func (ec *executionContext) fieldContext_Query_embeddedCase2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9359 fc = &graphql.FieldContext{ 9360 Object: "Query", 9361 Field: field, 9362 IsMethod: true, 9363 IsResolver: true, 9364 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9365 switch field.Name { 9366 case "unexportedEmbeddedPointerExportedMethod": 9367 return ec.fieldContext_EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx, field) 9368 } 9369 return nil, fmt.Errorf("no field named %q was found under type EmbeddedCase2", field.Name) 9370 }, 9371 } 9372 return fc, nil 9373 } 9374 9375 func (ec *executionContext) _Query_embeddedCase3(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9376 fc, err := ec.fieldContext_Query_embeddedCase3(ctx, field) 9377 if err != nil { 9378 return graphql.Null 9379 } 9380 ctx = graphql.WithFieldContext(ctx, fc) 9381 defer func() { 9382 if r := recover(); r != nil { 9383 ec.Error(ctx, ec.Recover(ctx, r)) 9384 ret = graphql.Null 9385 } 9386 }() 9387 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9388 ctx = rctx // use context from middleware stack in children 9389 return ec.resolvers.Query().EmbeddedCase3(rctx) 9390 }) 9391 9392 if resTmp == nil { 9393 return graphql.Null 9394 } 9395 res := resTmp.(*EmbeddedCase3) 9396 fc.Result = res 9397 return ec.marshalOEmbeddedCase32ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase3(ctx, field.Selections, res) 9398 } 9399 9400 func (ec *executionContext) fieldContext_Query_embeddedCase3(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9401 fc = &graphql.FieldContext{ 9402 Object: "Query", 9403 Field: field, 9404 IsMethod: true, 9405 IsResolver: true, 9406 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9407 switch field.Name { 9408 case "unexportedEmbeddedInterfaceExportedMethod": 9409 return ec.fieldContext_EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx, field) 9410 } 9411 return nil, fmt.Errorf("no field named %q was found under type EmbeddedCase3", field.Name) 9412 }, 9413 } 9414 return fc, nil 9415 } 9416 9417 func (ec *executionContext) _Query_enumInInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9418 fc, err := ec.fieldContext_Query_enumInInput(ctx, field) 9419 if err != nil { 9420 return graphql.Null 9421 } 9422 ctx = graphql.WithFieldContext(ctx, fc) 9423 defer func() { 9424 if r := recover(); r != nil { 9425 ec.Error(ctx, ec.Recover(ctx, r)) 9426 ret = graphql.Null 9427 } 9428 }() 9429 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9430 ctx = rctx // use context from middleware stack in children 9431 return ec.resolvers.Query().EnumInInput(rctx, fc.Args["input"].(*InputWithEnumValue)) 9432 }) 9433 9434 if resTmp == nil { 9435 if !graphql.HasFieldError(ctx, fc) { 9436 ec.Errorf(ctx, "must not be null") 9437 } 9438 return graphql.Null 9439 } 9440 res := resTmp.(EnumTest) 9441 fc.Result = res 9442 return ec.marshalNEnumTest2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx, field.Selections, res) 9443 } 9444 9445 func (ec *executionContext) fieldContext_Query_enumInInput(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9446 fc = &graphql.FieldContext{ 9447 Object: "Query", 9448 Field: field, 9449 IsMethod: true, 9450 IsResolver: true, 9451 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9452 return nil, errors.New("field of type EnumTest does not have child fields") 9453 }, 9454 } 9455 defer func() { 9456 if r := recover(); r != nil { 9457 err = ec.Recover(ctx, r) 9458 ec.Error(ctx, err) 9459 } 9460 }() 9461 ctx = graphql.WithFieldContext(ctx, fc) 9462 if fc.Args, err = ec.field_Query_enumInInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9463 ec.Error(ctx, err) 9464 return fc, err 9465 } 9466 return fc, nil 9467 } 9468 9469 func (ec *executionContext) _Query_shapes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9470 fc, err := ec.fieldContext_Query_shapes(ctx, field) 9471 if err != nil { 9472 return graphql.Null 9473 } 9474 ctx = graphql.WithFieldContext(ctx, fc) 9475 defer func() { 9476 if r := recover(); r != nil { 9477 ec.Error(ctx, ec.Recover(ctx, r)) 9478 ret = graphql.Null 9479 } 9480 }() 9481 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9482 ctx = rctx // use context from middleware stack in children 9483 return ec.resolvers.Query().Shapes(rctx) 9484 }) 9485 9486 if resTmp == nil { 9487 return graphql.Null 9488 } 9489 res := resTmp.([]Shape) 9490 fc.Result = res 9491 return ec.marshalOShape2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx, field.Selections, res) 9492 } 9493 9494 func (ec *executionContext) fieldContext_Query_shapes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9495 fc = &graphql.FieldContext{ 9496 Object: "Query", 9497 Field: field, 9498 IsMethod: true, 9499 IsResolver: true, 9500 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9501 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 9502 }, 9503 } 9504 return fc, nil 9505 } 9506 9507 func (ec *executionContext) _Query_noShape(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9508 fc, err := ec.fieldContext_Query_noShape(ctx, field) 9509 if err != nil { 9510 return graphql.Null 9511 } 9512 ctx = graphql.WithFieldContext(ctx, fc) 9513 defer func() { 9514 if r := recover(); r != nil { 9515 ec.Error(ctx, ec.Recover(ctx, r)) 9516 ret = graphql.Null 9517 } 9518 }() 9519 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9520 directive0 := func(rctx context.Context) (interface{}, error) { 9521 ctx = rctx // use context from middleware stack in children 9522 return ec.resolvers.Query().NoShape(rctx) 9523 } 9524 directive1 := func(ctx context.Context) (interface{}, error) { 9525 if ec.directives.MakeNil == nil { 9526 return nil, errors.New("directive makeNil is not implemented") 9527 } 9528 return ec.directives.MakeNil(ctx, nil, directive0) 9529 } 9530 9531 tmp, err := directive1(rctx) 9532 if err != nil { 9533 return nil, graphql.ErrorOnPath(ctx, err) 9534 } 9535 if tmp == nil { 9536 return nil, nil 9537 } 9538 if data, ok := tmp.(Shape); ok { 9539 return data, nil 9540 } 9541 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/geneva/gqlgen/codegen/testserver/singlefile.Shape`, tmp) 9542 }) 9543 9544 if resTmp == nil { 9545 return graphql.Null 9546 } 9547 res := resTmp.(Shape) 9548 fc.Result = res 9549 return ec.marshalOShape2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx, field.Selections, res) 9550 } 9551 9552 func (ec *executionContext) fieldContext_Query_noShape(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9553 fc = &graphql.FieldContext{ 9554 Object: "Query", 9555 Field: field, 9556 IsMethod: true, 9557 IsResolver: true, 9558 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9559 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 9560 }, 9561 } 9562 return fc, nil 9563 } 9564 9565 func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9566 fc, err := ec.fieldContext_Query_node(ctx, field) 9567 if err != nil { 9568 return graphql.Null 9569 } 9570 ctx = graphql.WithFieldContext(ctx, fc) 9571 defer func() { 9572 if r := recover(); r != nil { 9573 ec.Error(ctx, ec.Recover(ctx, r)) 9574 ret = graphql.Null 9575 } 9576 }() 9577 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9578 ctx = rctx // use context from middleware stack in children 9579 return ec.resolvers.Query().Node(rctx) 9580 }) 9581 9582 if resTmp == nil { 9583 if !graphql.HasFieldError(ctx, fc) { 9584 ec.Errorf(ctx, "must not be null") 9585 } 9586 return graphql.Null 9587 } 9588 res := resTmp.(Node) 9589 fc.Result = res 9590 return ec.marshalNNode2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNode(ctx, field.Selections, res) 9591 } 9592 9593 func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9594 fc = &graphql.FieldContext{ 9595 Object: "Query", 9596 Field: field, 9597 IsMethod: true, 9598 IsResolver: true, 9599 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9600 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 9601 }, 9602 } 9603 return fc, nil 9604 } 9605 9606 func (ec *executionContext) _Query_noShapeTypedNil(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9607 fc, err := ec.fieldContext_Query_noShapeTypedNil(ctx, field) 9608 if err != nil { 9609 return graphql.Null 9610 } 9611 ctx = graphql.WithFieldContext(ctx, fc) 9612 defer func() { 9613 if r := recover(); r != nil { 9614 ec.Error(ctx, ec.Recover(ctx, r)) 9615 ret = graphql.Null 9616 } 9617 }() 9618 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9619 directive0 := func(rctx context.Context) (interface{}, error) { 9620 ctx = rctx // use context from middleware stack in children 9621 return ec.resolvers.Query().NoShapeTypedNil(rctx) 9622 } 9623 directive1 := func(ctx context.Context) (interface{}, error) { 9624 if ec.directives.MakeTypedNil == nil { 9625 return nil, errors.New("directive makeTypedNil is not implemented") 9626 } 9627 return ec.directives.MakeTypedNil(ctx, nil, directive0) 9628 } 9629 9630 tmp, err := directive1(rctx) 9631 if err != nil { 9632 return nil, graphql.ErrorOnPath(ctx, err) 9633 } 9634 if tmp == nil { 9635 return nil, nil 9636 } 9637 if data, ok := tmp.(Shape); ok { 9638 return data, nil 9639 } 9640 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/geneva/gqlgen/codegen/testserver/singlefile.Shape`, tmp) 9641 }) 9642 9643 if resTmp == nil { 9644 return graphql.Null 9645 } 9646 res := resTmp.(Shape) 9647 fc.Result = res 9648 return ec.marshalOShape2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx, field.Selections, res) 9649 } 9650 9651 func (ec *executionContext) fieldContext_Query_noShapeTypedNil(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9652 fc = &graphql.FieldContext{ 9653 Object: "Query", 9654 Field: field, 9655 IsMethod: true, 9656 IsResolver: true, 9657 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9658 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 9659 }, 9660 } 9661 return fc, nil 9662 } 9663 9664 func (ec *executionContext) _Query_animal(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9665 fc, err := ec.fieldContext_Query_animal(ctx, field) 9666 if err != nil { 9667 return graphql.Null 9668 } 9669 ctx = graphql.WithFieldContext(ctx, fc) 9670 defer func() { 9671 if r := recover(); r != nil { 9672 ec.Error(ctx, ec.Recover(ctx, r)) 9673 ret = graphql.Null 9674 } 9675 }() 9676 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9677 directive0 := func(rctx context.Context) (interface{}, error) { 9678 ctx = rctx // use context from middleware stack in children 9679 return ec.resolvers.Query().Animal(rctx) 9680 } 9681 directive1 := func(ctx context.Context) (interface{}, error) { 9682 if ec.directives.MakeTypedNil == nil { 9683 return nil, errors.New("directive makeTypedNil is not implemented") 9684 } 9685 return ec.directives.MakeTypedNil(ctx, nil, directive0) 9686 } 9687 9688 tmp, err := directive1(rctx) 9689 if err != nil { 9690 return nil, graphql.ErrorOnPath(ctx, err) 9691 } 9692 if tmp == nil { 9693 return nil, nil 9694 } 9695 if data, ok := tmp.(Animal); ok { 9696 return data, nil 9697 } 9698 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/geneva/gqlgen/codegen/testserver/singlefile.Animal`, tmp) 9699 }) 9700 9701 if resTmp == nil { 9702 return graphql.Null 9703 } 9704 res := resTmp.(Animal) 9705 fc.Result = res 9706 return ec.marshalOAnimal2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐAnimal(ctx, field.Selections, res) 9707 } 9708 9709 func (ec *executionContext) fieldContext_Query_animal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9710 fc = &graphql.FieldContext{ 9711 Object: "Query", 9712 Field: field, 9713 IsMethod: true, 9714 IsResolver: true, 9715 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9716 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 9717 }, 9718 } 9719 return fc, nil 9720 } 9721 9722 func (ec *executionContext) _Query_notAnInterface(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9723 fc, err := ec.fieldContext_Query_notAnInterface(ctx, field) 9724 if err != nil { 9725 return graphql.Null 9726 } 9727 ctx = graphql.WithFieldContext(ctx, fc) 9728 defer func() { 9729 if r := recover(); r != nil { 9730 ec.Error(ctx, ec.Recover(ctx, r)) 9731 ret = graphql.Null 9732 } 9733 }() 9734 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9735 ctx = rctx // use context from middleware stack in children 9736 return ec.resolvers.Query().NotAnInterface(rctx) 9737 }) 9738 9739 if resTmp == nil { 9740 return graphql.Null 9741 } 9742 res := resTmp.(BackedByInterface) 9743 fc.Result = res 9744 return ec.marshalOBackedByInterface2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐBackedByInterface(ctx, field.Selections, res) 9745 } 9746 9747 func (ec *executionContext) fieldContext_Query_notAnInterface(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9748 fc = &graphql.FieldContext{ 9749 Object: "Query", 9750 Field: field, 9751 IsMethod: true, 9752 IsResolver: true, 9753 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9754 switch field.Name { 9755 case "id": 9756 return ec.fieldContext_BackedByInterface_id(ctx, field) 9757 case "thisShouldBind": 9758 return ec.fieldContext_BackedByInterface_thisShouldBind(ctx, field) 9759 case "thisShouldBindWithError": 9760 return ec.fieldContext_BackedByInterface_thisShouldBindWithError(ctx, field) 9761 } 9762 return nil, fmt.Errorf("no field named %q was found under type BackedByInterface", field.Name) 9763 }, 9764 } 9765 return fc, nil 9766 } 9767 9768 func (ec *executionContext) _Query_dog(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9769 fc, err := ec.fieldContext_Query_dog(ctx, field) 9770 if err != nil { 9771 return graphql.Null 9772 } 9773 ctx = graphql.WithFieldContext(ctx, fc) 9774 defer func() { 9775 if r := recover(); r != nil { 9776 ec.Error(ctx, ec.Recover(ctx, r)) 9777 ret = graphql.Null 9778 } 9779 }() 9780 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9781 ctx = rctx // use context from middleware stack in children 9782 return ec.resolvers.Query().Dog(rctx) 9783 }) 9784 9785 if resTmp == nil { 9786 return graphql.Null 9787 } 9788 res := resTmp.(*Dog) 9789 fc.Result = res 9790 return ec.marshalODog2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDog(ctx, field.Selections, res) 9791 } 9792 9793 func (ec *executionContext) fieldContext_Query_dog(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9794 fc = &graphql.FieldContext{ 9795 Object: "Query", 9796 Field: field, 9797 IsMethod: true, 9798 IsResolver: true, 9799 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9800 switch field.Name { 9801 case "species": 9802 return ec.fieldContext_Dog_species(ctx, field) 9803 case "size": 9804 return ec.fieldContext_Dog_size(ctx, field) 9805 case "dogBreed": 9806 return ec.fieldContext_Dog_dogBreed(ctx, field) 9807 } 9808 return nil, fmt.Errorf("no field named %q was found under type Dog", field.Name) 9809 }, 9810 } 9811 return fc, nil 9812 } 9813 9814 func (ec *executionContext) _Query_issue896a(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9815 fc, err := ec.fieldContext_Query_issue896a(ctx, field) 9816 if err != nil { 9817 return graphql.Null 9818 } 9819 ctx = graphql.WithFieldContext(ctx, fc) 9820 defer func() { 9821 if r := recover(); r != nil { 9822 ec.Error(ctx, ec.Recover(ctx, r)) 9823 ret = graphql.Null 9824 } 9825 }() 9826 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9827 ctx = rctx // use context from middleware stack in children 9828 return ec.resolvers.Query().Issue896a(rctx) 9829 }) 9830 9831 if resTmp == nil { 9832 return graphql.Null 9833 } 9834 res := resTmp.([]*CheckIssue896) 9835 fc.Result = res 9836 return ec.marshalOCheckIssue8962ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896ᚄ(ctx, field.Selections, res) 9837 } 9838 9839 func (ec *executionContext) fieldContext_Query_issue896a(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9840 fc = &graphql.FieldContext{ 9841 Object: "Query", 9842 Field: field, 9843 IsMethod: true, 9844 IsResolver: true, 9845 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9846 switch field.Name { 9847 case "id": 9848 return ec.fieldContext_CheckIssue896_id(ctx, field) 9849 } 9850 return nil, fmt.Errorf("no field named %q was found under type CheckIssue896", field.Name) 9851 }, 9852 } 9853 return fc, nil 9854 } 9855 9856 func (ec *executionContext) _Query_mapStringInterface(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9857 fc, err := ec.fieldContext_Query_mapStringInterface(ctx, field) 9858 if err != nil { 9859 return graphql.Null 9860 } 9861 ctx = graphql.WithFieldContext(ctx, fc) 9862 defer func() { 9863 if r := recover(); r != nil { 9864 ec.Error(ctx, ec.Recover(ctx, r)) 9865 ret = graphql.Null 9866 } 9867 }() 9868 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9869 ctx = rctx // use context from middleware stack in children 9870 return ec.resolvers.Query().MapStringInterface(rctx, fc.Args["in"].(map[string]interface{})) 9871 }) 9872 9873 if resTmp == nil { 9874 return graphql.Null 9875 } 9876 res := resTmp.(map[string]interface{}) 9877 fc.Result = res 9878 return ec.marshalOMapStringInterfaceType2map(ctx, field.Selections, res) 9879 } 9880 9881 func (ec *executionContext) fieldContext_Query_mapStringInterface(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9882 fc = &graphql.FieldContext{ 9883 Object: "Query", 9884 Field: field, 9885 IsMethod: true, 9886 IsResolver: true, 9887 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9888 switch field.Name { 9889 case "a": 9890 return ec.fieldContext_MapStringInterfaceType_a(ctx, field) 9891 case "b": 9892 return ec.fieldContext_MapStringInterfaceType_b(ctx, field) 9893 } 9894 return nil, fmt.Errorf("no field named %q was found under type MapStringInterfaceType", field.Name) 9895 }, 9896 } 9897 defer func() { 9898 if r := recover(); r != nil { 9899 err = ec.Recover(ctx, r) 9900 ec.Error(ctx, err) 9901 } 9902 }() 9903 ctx = graphql.WithFieldContext(ctx, fc) 9904 if fc.Args, err = ec.field_Query_mapStringInterface_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9905 ec.Error(ctx, err) 9906 return fc, err 9907 } 9908 return fc, nil 9909 } 9910 9911 func (ec *executionContext) _Query_mapNestedStringInterface(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9912 fc, err := ec.fieldContext_Query_mapNestedStringInterface(ctx, field) 9913 if err != nil { 9914 return graphql.Null 9915 } 9916 ctx = graphql.WithFieldContext(ctx, fc) 9917 defer func() { 9918 if r := recover(); r != nil { 9919 ec.Error(ctx, ec.Recover(ctx, r)) 9920 ret = graphql.Null 9921 } 9922 }() 9923 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9924 ctx = rctx // use context from middleware stack in children 9925 return ec.resolvers.Query().MapNestedStringInterface(rctx, fc.Args["in"].(*NestedMapInput)) 9926 }) 9927 9928 if resTmp == nil { 9929 return graphql.Null 9930 } 9931 res := resTmp.(map[string]interface{}) 9932 fc.Result = res 9933 return ec.marshalOMapStringInterfaceType2map(ctx, field.Selections, res) 9934 } 9935 9936 func (ec *executionContext) fieldContext_Query_mapNestedStringInterface(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9937 fc = &graphql.FieldContext{ 9938 Object: "Query", 9939 Field: field, 9940 IsMethod: true, 9941 IsResolver: true, 9942 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9943 switch field.Name { 9944 case "a": 9945 return ec.fieldContext_MapStringInterfaceType_a(ctx, field) 9946 case "b": 9947 return ec.fieldContext_MapStringInterfaceType_b(ctx, field) 9948 } 9949 return nil, fmt.Errorf("no field named %q was found under type MapStringInterfaceType", field.Name) 9950 }, 9951 } 9952 defer func() { 9953 if r := recover(); r != nil { 9954 err = ec.Recover(ctx, r) 9955 ec.Error(ctx, err) 9956 } 9957 }() 9958 ctx = graphql.WithFieldContext(ctx, fc) 9959 if fc.Args, err = ec.field_Query_mapNestedStringInterface_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9960 ec.Error(ctx, err) 9961 return fc, err 9962 } 9963 return fc, nil 9964 } 9965 9966 func (ec *executionContext) _Query_errorBubble(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9967 fc, err := ec.fieldContext_Query_errorBubble(ctx, field) 9968 if err != nil { 9969 return graphql.Null 9970 } 9971 ctx = graphql.WithFieldContext(ctx, fc) 9972 defer func() { 9973 if r := recover(); r != nil { 9974 ec.Error(ctx, ec.Recover(ctx, r)) 9975 ret = graphql.Null 9976 } 9977 }() 9978 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9979 ctx = rctx // use context from middleware stack in children 9980 return ec.resolvers.Query().ErrorBubble(rctx) 9981 }) 9982 9983 if resTmp == nil { 9984 return graphql.Null 9985 } 9986 res := resTmp.(*Error) 9987 fc.Result = res 9988 return ec.marshalOError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 9989 } 9990 9991 func (ec *executionContext) fieldContext_Query_errorBubble(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9992 fc = &graphql.FieldContext{ 9993 Object: "Query", 9994 Field: field, 9995 IsMethod: true, 9996 IsResolver: true, 9997 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9998 switch field.Name { 9999 case "id": 10000 return ec.fieldContext_Error_id(ctx, field) 10001 case "errorOnNonRequiredField": 10002 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 10003 case "errorOnRequiredField": 10004 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 10005 case "nilOnRequiredField": 10006 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 10007 } 10008 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 10009 }, 10010 } 10011 return fc, nil 10012 } 10013 10014 func (ec *executionContext) _Query_errorBubbleList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10015 fc, err := ec.fieldContext_Query_errorBubbleList(ctx, field) 10016 if err != nil { 10017 return graphql.Null 10018 } 10019 ctx = graphql.WithFieldContext(ctx, fc) 10020 defer func() { 10021 if r := recover(); r != nil { 10022 ec.Error(ctx, ec.Recover(ctx, r)) 10023 ret = graphql.Null 10024 } 10025 }() 10026 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10027 ctx = rctx // use context from middleware stack in children 10028 return ec.resolvers.Query().ErrorBubbleList(rctx) 10029 }) 10030 10031 if resTmp == nil { 10032 return graphql.Null 10033 } 10034 res := resTmp.([]*Error) 10035 fc.Result = res 10036 return ec.marshalOError2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐErrorᚄ(ctx, field.Selections, res) 10037 } 10038 10039 func (ec *executionContext) fieldContext_Query_errorBubbleList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10040 fc = &graphql.FieldContext{ 10041 Object: "Query", 10042 Field: field, 10043 IsMethod: true, 10044 IsResolver: true, 10045 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10046 switch field.Name { 10047 case "id": 10048 return ec.fieldContext_Error_id(ctx, field) 10049 case "errorOnNonRequiredField": 10050 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 10051 case "errorOnRequiredField": 10052 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 10053 case "nilOnRequiredField": 10054 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 10055 } 10056 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 10057 }, 10058 } 10059 return fc, nil 10060 } 10061 10062 func (ec *executionContext) _Query_errorList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10063 fc, err := ec.fieldContext_Query_errorList(ctx, field) 10064 if err != nil { 10065 return graphql.Null 10066 } 10067 ctx = graphql.WithFieldContext(ctx, fc) 10068 defer func() { 10069 if r := recover(); r != nil { 10070 ec.Error(ctx, ec.Recover(ctx, r)) 10071 ret = graphql.Null 10072 } 10073 }() 10074 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10075 ctx = rctx // use context from middleware stack in children 10076 return ec.resolvers.Query().ErrorList(rctx) 10077 }) 10078 10079 if resTmp == nil { 10080 return graphql.Null 10081 } 10082 res := resTmp.([]*Error) 10083 fc.Result = res 10084 return ec.marshalOError2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 10085 } 10086 10087 func (ec *executionContext) fieldContext_Query_errorList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10088 fc = &graphql.FieldContext{ 10089 Object: "Query", 10090 Field: field, 10091 IsMethod: true, 10092 IsResolver: true, 10093 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10094 switch field.Name { 10095 case "id": 10096 return ec.fieldContext_Error_id(ctx, field) 10097 case "errorOnNonRequiredField": 10098 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 10099 case "errorOnRequiredField": 10100 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 10101 case "nilOnRequiredField": 10102 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 10103 } 10104 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 10105 }, 10106 } 10107 return fc, nil 10108 } 10109 10110 func (ec *executionContext) _Query_errors(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10111 fc, err := ec.fieldContext_Query_errors(ctx, field) 10112 if err != nil { 10113 return graphql.Null 10114 } 10115 ctx = graphql.WithFieldContext(ctx, fc) 10116 defer func() { 10117 if r := recover(); r != nil { 10118 ec.Error(ctx, ec.Recover(ctx, r)) 10119 ret = graphql.Null 10120 } 10121 }() 10122 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10123 ctx = rctx // use context from middleware stack in children 10124 return ec.resolvers.Query().Errors(rctx) 10125 }) 10126 10127 if resTmp == nil { 10128 return graphql.Null 10129 } 10130 res := resTmp.(*Errors) 10131 fc.Result = res 10132 return ec.marshalOErrors2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐErrors(ctx, field.Selections, res) 10133 } 10134 10135 func (ec *executionContext) fieldContext_Query_errors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10136 fc = &graphql.FieldContext{ 10137 Object: "Query", 10138 Field: field, 10139 IsMethod: true, 10140 IsResolver: true, 10141 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10142 switch field.Name { 10143 case "a": 10144 return ec.fieldContext_Errors_a(ctx, field) 10145 case "b": 10146 return ec.fieldContext_Errors_b(ctx, field) 10147 case "c": 10148 return ec.fieldContext_Errors_c(ctx, field) 10149 case "d": 10150 return ec.fieldContext_Errors_d(ctx, field) 10151 case "e": 10152 return ec.fieldContext_Errors_e(ctx, field) 10153 } 10154 return nil, fmt.Errorf("no field named %q was found under type Errors", field.Name) 10155 }, 10156 } 10157 return fc, nil 10158 } 10159 10160 func (ec *executionContext) _Query_valid(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10161 fc, err := ec.fieldContext_Query_valid(ctx, field) 10162 if err != nil { 10163 return graphql.Null 10164 } 10165 ctx = graphql.WithFieldContext(ctx, fc) 10166 defer func() { 10167 if r := recover(); r != nil { 10168 ec.Error(ctx, ec.Recover(ctx, r)) 10169 ret = graphql.Null 10170 } 10171 }() 10172 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10173 ctx = rctx // use context from middleware stack in children 10174 return ec.resolvers.Query().Valid(rctx) 10175 }) 10176 10177 if resTmp == nil { 10178 if !graphql.HasFieldError(ctx, fc) { 10179 ec.Errorf(ctx, "must not be null") 10180 } 10181 return graphql.Null 10182 } 10183 res := resTmp.(string) 10184 fc.Result = res 10185 return ec.marshalNString2string(ctx, field.Selections, res) 10186 } 10187 10188 func (ec *executionContext) fieldContext_Query_valid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10189 fc = &graphql.FieldContext{ 10190 Object: "Query", 10191 Field: field, 10192 IsMethod: true, 10193 IsResolver: true, 10194 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10195 return nil, errors.New("field of type String does not have child fields") 10196 }, 10197 } 10198 return fc, nil 10199 } 10200 10201 func (ec *executionContext) _Query_invalid(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10202 fc, err := ec.fieldContext_Query_invalid(ctx, field) 10203 if err != nil { 10204 return graphql.Null 10205 } 10206 ctx = graphql.WithFieldContext(ctx, fc) 10207 defer func() { 10208 if r := recover(); r != nil { 10209 ec.Error(ctx, ec.Recover(ctx, r)) 10210 ret = graphql.Null 10211 } 10212 }() 10213 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10214 ctx = rctx // use context from middleware stack in children 10215 return ec.resolvers.Query().Invalid(rctx) 10216 }) 10217 10218 if resTmp == nil { 10219 if !graphql.HasFieldError(ctx, fc) { 10220 ec.Errorf(ctx, "must not be null") 10221 } 10222 return graphql.Null 10223 } 10224 res := resTmp.(string) 10225 fc.Result = res 10226 return ec.marshalNString2string(ctx, field.Selections, res) 10227 } 10228 10229 func (ec *executionContext) fieldContext_Query_invalid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10230 fc = &graphql.FieldContext{ 10231 Object: "Query", 10232 Field: field, 10233 IsMethod: true, 10234 IsResolver: true, 10235 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10236 return nil, errors.New("field of type String does not have child fields") 10237 }, 10238 } 10239 return fc, nil 10240 } 10241 10242 func (ec *executionContext) _Query_panics(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10243 fc, err := ec.fieldContext_Query_panics(ctx, field) 10244 if err != nil { 10245 return graphql.Null 10246 } 10247 ctx = graphql.WithFieldContext(ctx, fc) 10248 defer func() { 10249 if r := recover(); r != nil { 10250 ec.Error(ctx, ec.Recover(ctx, r)) 10251 ret = graphql.Null 10252 } 10253 }() 10254 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10255 ctx = rctx // use context from middleware stack in children 10256 return ec.resolvers.Query().Panics(rctx) 10257 }) 10258 10259 if resTmp == nil { 10260 return graphql.Null 10261 } 10262 res := resTmp.(*Panics) 10263 fc.Result = res 10264 return ec.marshalOPanics2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPanics(ctx, field.Selections, res) 10265 } 10266 10267 func (ec *executionContext) fieldContext_Query_panics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10268 fc = &graphql.FieldContext{ 10269 Object: "Query", 10270 Field: field, 10271 IsMethod: true, 10272 IsResolver: true, 10273 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10274 switch field.Name { 10275 case "fieldScalarMarshal": 10276 return ec.fieldContext_Panics_fieldScalarMarshal(ctx, field) 10277 case "fieldFuncMarshal": 10278 return ec.fieldContext_Panics_fieldFuncMarshal(ctx, field) 10279 case "argUnmarshal": 10280 return ec.fieldContext_Panics_argUnmarshal(ctx, field) 10281 } 10282 return nil, fmt.Errorf("no field named %q was found under type Panics", field.Name) 10283 }, 10284 } 10285 return fc, nil 10286 } 10287 10288 func (ec *executionContext) _Query_primitiveObject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10289 fc, err := ec.fieldContext_Query_primitiveObject(ctx, field) 10290 if err != nil { 10291 return graphql.Null 10292 } 10293 ctx = graphql.WithFieldContext(ctx, fc) 10294 defer func() { 10295 if r := recover(); r != nil { 10296 ec.Error(ctx, ec.Recover(ctx, r)) 10297 ret = graphql.Null 10298 } 10299 }() 10300 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10301 ctx = rctx // use context from middleware stack in children 10302 return ec.resolvers.Query().PrimitiveObject(rctx) 10303 }) 10304 10305 if resTmp == nil { 10306 if !graphql.HasFieldError(ctx, fc) { 10307 ec.Errorf(ctx, "must not be null") 10308 } 10309 return graphql.Null 10310 } 10311 res := resTmp.([]Primitive) 10312 fc.Result = res 10313 return ec.marshalNPrimitive2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveᚄ(ctx, field.Selections, res) 10314 } 10315 10316 func (ec *executionContext) fieldContext_Query_primitiveObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10317 fc = &graphql.FieldContext{ 10318 Object: "Query", 10319 Field: field, 10320 IsMethod: true, 10321 IsResolver: true, 10322 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10323 switch field.Name { 10324 case "value": 10325 return ec.fieldContext_Primitive_value(ctx, field) 10326 case "squared": 10327 return ec.fieldContext_Primitive_squared(ctx, field) 10328 } 10329 return nil, fmt.Errorf("no field named %q was found under type Primitive", field.Name) 10330 }, 10331 } 10332 return fc, nil 10333 } 10334 10335 func (ec *executionContext) _Query_primitiveStringObject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10336 fc, err := ec.fieldContext_Query_primitiveStringObject(ctx, field) 10337 if err != nil { 10338 return graphql.Null 10339 } 10340 ctx = graphql.WithFieldContext(ctx, fc) 10341 defer func() { 10342 if r := recover(); r != nil { 10343 ec.Error(ctx, ec.Recover(ctx, r)) 10344 ret = graphql.Null 10345 } 10346 }() 10347 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10348 ctx = rctx // use context from middleware stack in children 10349 return ec.resolvers.Query().PrimitiveStringObject(rctx) 10350 }) 10351 10352 if resTmp == nil { 10353 if !graphql.HasFieldError(ctx, fc) { 10354 ec.Errorf(ctx, "must not be null") 10355 } 10356 return graphql.Null 10357 } 10358 res := resTmp.([]PrimitiveString) 10359 fc.Result = res 10360 return ec.marshalNPrimitiveString2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveStringᚄ(ctx, field.Selections, res) 10361 } 10362 10363 func (ec *executionContext) fieldContext_Query_primitiveStringObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10364 fc = &graphql.FieldContext{ 10365 Object: "Query", 10366 Field: field, 10367 IsMethod: true, 10368 IsResolver: true, 10369 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10370 switch field.Name { 10371 case "value": 10372 return ec.fieldContext_PrimitiveString_value(ctx, field) 10373 case "doubled": 10374 return ec.fieldContext_PrimitiveString_doubled(ctx, field) 10375 case "len": 10376 return ec.fieldContext_PrimitiveString_len(ctx, field) 10377 } 10378 return nil, fmt.Errorf("no field named %q was found under type PrimitiveString", field.Name) 10379 }, 10380 } 10381 return fc, nil 10382 } 10383 10384 func (ec *executionContext) _Query_ptrToAnyContainer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10385 fc, err := ec.fieldContext_Query_ptrToAnyContainer(ctx, field) 10386 if err != nil { 10387 return graphql.Null 10388 } 10389 ctx = graphql.WithFieldContext(ctx, fc) 10390 defer func() { 10391 if r := recover(); r != nil { 10392 ec.Error(ctx, ec.Recover(ctx, r)) 10393 ret = graphql.Null 10394 } 10395 }() 10396 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10397 ctx = rctx // use context from middleware stack in children 10398 return ec.resolvers.Query().PtrToAnyContainer(rctx) 10399 }) 10400 10401 if resTmp == nil { 10402 if !graphql.HasFieldError(ctx, fc) { 10403 ec.Errorf(ctx, "must not be null") 10404 } 10405 return graphql.Null 10406 } 10407 res := resTmp.(*PtrToAnyContainer) 10408 fc.Result = res 10409 return ec.marshalNPtrToAnyContainer2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToAnyContainer(ctx, field.Selections, res) 10410 } 10411 10412 func (ec *executionContext) fieldContext_Query_ptrToAnyContainer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10413 fc = &graphql.FieldContext{ 10414 Object: "Query", 10415 Field: field, 10416 IsMethod: true, 10417 IsResolver: true, 10418 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10419 switch field.Name { 10420 case "ptrToAny": 10421 return ec.fieldContext_PtrToAnyContainer_ptrToAny(ctx, field) 10422 case "binding": 10423 return ec.fieldContext_PtrToAnyContainer_binding(ctx, field) 10424 } 10425 return nil, fmt.Errorf("no field named %q was found under type PtrToAnyContainer", field.Name) 10426 }, 10427 } 10428 return fc, nil 10429 } 10430 10431 func (ec *executionContext) _Query_ptrToSliceContainer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10432 fc, err := ec.fieldContext_Query_ptrToSliceContainer(ctx, field) 10433 if err != nil { 10434 return graphql.Null 10435 } 10436 ctx = graphql.WithFieldContext(ctx, fc) 10437 defer func() { 10438 if r := recover(); r != nil { 10439 ec.Error(ctx, ec.Recover(ctx, r)) 10440 ret = graphql.Null 10441 } 10442 }() 10443 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10444 ctx = rctx // use context from middleware stack in children 10445 return ec.resolvers.Query().PtrToSliceContainer(rctx) 10446 }) 10447 10448 if resTmp == nil { 10449 if !graphql.HasFieldError(ctx, fc) { 10450 ec.Errorf(ctx, "must not be null") 10451 } 10452 return graphql.Null 10453 } 10454 res := resTmp.(*PtrToSliceContainer) 10455 fc.Result = res 10456 return ec.marshalNPtrToSliceContainer2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToSliceContainer(ctx, field.Selections, res) 10457 } 10458 10459 func (ec *executionContext) fieldContext_Query_ptrToSliceContainer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10460 fc = &graphql.FieldContext{ 10461 Object: "Query", 10462 Field: field, 10463 IsMethod: true, 10464 IsResolver: true, 10465 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10466 switch field.Name { 10467 case "ptrToSlice": 10468 return ec.fieldContext_PtrToSliceContainer_ptrToSlice(ctx, field) 10469 } 10470 return nil, fmt.Errorf("no field named %q was found under type PtrToSliceContainer", field.Name) 10471 }, 10472 } 10473 return fc, nil 10474 } 10475 10476 func (ec *executionContext) _Query_infinity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10477 fc, err := ec.fieldContext_Query_infinity(ctx, field) 10478 if err != nil { 10479 return graphql.Null 10480 } 10481 ctx = graphql.WithFieldContext(ctx, fc) 10482 defer func() { 10483 if r := recover(); r != nil { 10484 ec.Error(ctx, ec.Recover(ctx, r)) 10485 ret = graphql.Null 10486 } 10487 }() 10488 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10489 ctx = rctx // use context from middleware stack in children 10490 return ec.resolvers.Query().Infinity(rctx) 10491 }) 10492 10493 if resTmp == nil { 10494 if !graphql.HasFieldError(ctx, fc) { 10495 ec.Errorf(ctx, "must not be null") 10496 } 10497 return graphql.Null 10498 } 10499 res := resTmp.(float64) 10500 fc.Result = res 10501 return ec.marshalNFloat2float64(ctx, field.Selections, res) 10502 } 10503 10504 func (ec *executionContext) fieldContext_Query_infinity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10505 fc = &graphql.FieldContext{ 10506 Object: "Query", 10507 Field: field, 10508 IsMethod: true, 10509 IsResolver: true, 10510 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10511 return nil, errors.New("field of type Float does not have child fields") 10512 }, 10513 } 10514 return fc, nil 10515 } 10516 10517 func (ec *executionContext) _Query_stringFromContextInterface(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10518 fc, err := ec.fieldContext_Query_stringFromContextInterface(ctx, field) 10519 if err != nil { 10520 return graphql.Null 10521 } 10522 ctx = graphql.WithFieldContext(ctx, fc) 10523 defer func() { 10524 if r := recover(); r != nil { 10525 ec.Error(ctx, ec.Recover(ctx, r)) 10526 ret = graphql.Null 10527 } 10528 }() 10529 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10530 ctx = rctx // use context from middleware stack in children 10531 return ec.resolvers.Query().StringFromContextInterface(rctx) 10532 }) 10533 10534 if resTmp == nil { 10535 if !graphql.HasFieldError(ctx, fc) { 10536 ec.Errorf(ctx, "must not be null") 10537 } 10538 return graphql.Null 10539 } 10540 res := resTmp.(*StringFromContextInterface) 10541 fc.Result = res 10542 return ec.marshalNStringFromContextInterface2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx, field.Selections, res) 10543 } 10544 10545 func (ec *executionContext) fieldContext_Query_stringFromContextInterface(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10546 fc = &graphql.FieldContext{ 10547 Object: "Query", 10548 Field: field, 10549 IsMethod: true, 10550 IsResolver: true, 10551 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10552 return nil, errors.New("field of type StringFromContextInterface does not have child fields") 10553 }, 10554 } 10555 return fc, nil 10556 } 10557 10558 func (ec *executionContext) _Query_stringFromContextFunction(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10559 fc, err := ec.fieldContext_Query_stringFromContextFunction(ctx, field) 10560 if err != nil { 10561 return graphql.Null 10562 } 10563 ctx = graphql.WithFieldContext(ctx, fc) 10564 defer func() { 10565 if r := recover(); r != nil { 10566 ec.Error(ctx, ec.Recover(ctx, r)) 10567 ret = graphql.Null 10568 } 10569 }() 10570 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10571 ctx = rctx // use context from middleware stack in children 10572 return ec.resolvers.Query().StringFromContextFunction(rctx) 10573 }) 10574 10575 if resTmp == nil { 10576 if !graphql.HasFieldError(ctx, fc) { 10577 ec.Errorf(ctx, "must not be null") 10578 } 10579 return graphql.Null 10580 } 10581 res := resTmp.(string) 10582 fc.Result = res 10583 return ec.marshalNStringFromContextFunction2string(ctx, field.Selections, res) 10584 } 10585 10586 func (ec *executionContext) fieldContext_Query_stringFromContextFunction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10587 fc = &graphql.FieldContext{ 10588 Object: "Query", 10589 Field: field, 10590 IsMethod: true, 10591 IsResolver: true, 10592 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10593 return nil, errors.New("field of type StringFromContextFunction does not have child fields") 10594 }, 10595 } 10596 return fc, nil 10597 } 10598 10599 func (ec *executionContext) _Query_defaultScalar(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10600 fc, err := ec.fieldContext_Query_defaultScalar(ctx, field) 10601 if err != nil { 10602 return graphql.Null 10603 } 10604 ctx = graphql.WithFieldContext(ctx, fc) 10605 defer func() { 10606 if r := recover(); r != nil { 10607 ec.Error(ctx, ec.Recover(ctx, r)) 10608 ret = graphql.Null 10609 } 10610 }() 10611 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10612 ctx = rctx // use context from middleware stack in children 10613 return ec.resolvers.Query().DefaultScalar(rctx, fc.Args["arg"].(string)) 10614 }) 10615 10616 if resTmp == nil { 10617 if !graphql.HasFieldError(ctx, fc) { 10618 ec.Errorf(ctx, "must not be null") 10619 } 10620 return graphql.Null 10621 } 10622 res := resTmp.(string) 10623 fc.Result = res 10624 return ec.marshalNDefaultScalarImplementation2string(ctx, field.Selections, res) 10625 } 10626 10627 func (ec *executionContext) fieldContext_Query_defaultScalar(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10628 fc = &graphql.FieldContext{ 10629 Object: "Query", 10630 Field: field, 10631 IsMethod: true, 10632 IsResolver: true, 10633 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10634 return nil, errors.New("field of type DefaultScalarImplementation does not have child fields") 10635 }, 10636 } 10637 defer func() { 10638 if r := recover(); r != nil { 10639 err = ec.Recover(ctx, r) 10640 ec.Error(ctx, err) 10641 } 10642 }() 10643 ctx = graphql.WithFieldContext(ctx, fc) 10644 if fc.Args, err = ec.field_Query_defaultScalar_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10645 ec.Error(ctx, err) 10646 return fc, err 10647 } 10648 return fc, nil 10649 } 10650 10651 func (ec *executionContext) _Query_slices(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10652 fc, err := ec.fieldContext_Query_slices(ctx, field) 10653 if err != nil { 10654 return graphql.Null 10655 } 10656 ctx = graphql.WithFieldContext(ctx, fc) 10657 defer func() { 10658 if r := recover(); r != nil { 10659 ec.Error(ctx, ec.Recover(ctx, r)) 10660 ret = graphql.Null 10661 } 10662 }() 10663 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10664 ctx = rctx // use context from middleware stack in children 10665 return ec.resolvers.Query().Slices(rctx) 10666 }) 10667 10668 if resTmp == nil { 10669 return graphql.Null 10670 } 10671 res := resTmp.(*Slices) 10672 fc.Result = res 10673 return ec.marshalOSlices2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSlices(ctx, field.Selections, res) 10674 } 10675 10676 func (ec *executionContext) fieldContext_Query_slices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10677 fc = &graphql.FieldContext{ 10678 Object: "Query", 10679 Field: field, 10680 IsMethod: true, 10681 IsResolver: true, 10682 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10683 switch field.Name { 10684 case "test1": 10685 return ec.fieldContext_Slices_test1(ctx, field) 10686 case "test2": 10687 return ec.fieldContext_Slices_test2(ctx, field) 10688 case "test3": 10689 return ec.fieldContext_Slices_test3(ctx, field) 10690 case "test4": 10691 return ec.fieldContext_Slices_test4(ctx, field) 10692 } 10693 return nil, fmt.Errorf("no field named %q was found under type Slices", field.Name) 10694 }, 10695 } 10696 return fc, nil 10697 } 10698 10699 func (ec *executionContext) _Query_scalarSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10700 fc, err := ec.fieldContext_Query_scalarSlice(ctx, field) 10701 if err != nil { 10702 return graphql.Null 10703 } 10704 ctx = graphql.WithFieldContext(ctx, fc) 10705 defer func() { 10706 if r := recover(); r != nil { 10707 ec.Error(ctx, ec.Recover(ctx, r)) 10708 ret = graphql.Null 10709 } 10710 }() 10711 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10712 ctx = rctx // use context from middleware stack in children 10713 return ec.resolvers.Query().ScalarSlice(rctx) 10714 }) 10715 10716 if resTmp == nil { 10717 if !graphql.HasFieldError(ctx, fc) { 10718 ec.Errorf(ctx, "must not be null") 10719 } 10720 return graphql.Null 10721 } 10722 res := resTmp.([]byte) 10723 fc.Result = res 10724 return ec.marshalNBytes2ᚕbyte(ctx, field.Selections, res) 10725 } 10726 10727 func (ec *executionContext) fieldContext_Query_scalarSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10728 fc = &graphql.FieldContext{ 10729 Object: "Query", 10730 Field: field, 10731 IsMethod: true, 10732 IsResolver: true, 10733 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10734 return nil, errors.New("field of type Bytes does not have child fields") 10735 }, 10736 } 10737 return fc, nil 10738 } 10739 10740 func (ec *executionContext) _Query_fallback(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10741 fc, err := ec.fieldContext_Query_fallback(ctx, field) 10742 if err != nil { 10743 return graphql.Null 10744 } 10745 ctx = graphql.WithFieldContext(ctx, fc) 10746 defer func() { 10747 if r := recover(); r != nil { 10748 ec.Error(ctx, ec.Recover(ctx, r)) 10749 ret = graphql.Null 10750 } 10751 }() 10752 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10753 ctx = rctx // use context from middleware stack in children 10754 return ec.resolvers.Query().Fallback(rctx, fc.Args["arg"].(FallbackToStringEncoding)) 10755 }) 10756 10757 if resTmp == nil { 10758 if !graphql.HasFieldError(ctx, fc) { 10759 ec.Errorf(ctx, "must not be null") 10760 } 10761 return graphql.Null 10762 } 10763 res := resTmp.(FallbackToStringEncoding) 10764 fc.Result = res 10765 return ec.marshalNFallbackToStringEncoding2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx, field.Selections, res) 10766 } 10767 10768 func (ec *executionContext) fieldContext_Query_fallback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10769 fc = &graphql.FieldContext{ 10770 Object: "Query", 10771 Field: field, 10772 IsMethod: true, 10773 IsResolver: true, 10774 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10775 return nil, errors.New("field of type FallbackToStringEncoding does not have child fields") 10776 }, 10777 } 10778 defer func() { 10779 if r := recover(); r != nil { 10780 err = ec.Recover(ctx, r) 10781 ec.Error(ctx, err) 10782 } 10783 }() 10784 ctx = graphql.WithFieldContext(ctx, fc) 10785 if fc.Args, err = ec.field_Query_fallback_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10786 ec.Error(ctx, err) 10787 return fc, err 10788 } 10789 return fc, nil 10790 } 10791 10792 func (ec *executionContext) _Query_optionalUnion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10793 fc, err := ec.fieldContext_Query_optionalUnion(ctx, field) 10794 if err != nil { 10795 return graphql.Null 10796 } 10797 ctx = graphql.WithFieldContext(ctx, fc) 10798 defer func() { 10799 if r := recover(); r != nil { 10800 ec.Error(ctx, ec.Recover(ctx, r)) 10801 ret = graphql.Null 10802 } 10803 }() 10804 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10805 ctx = rctx // use context from middleware stack in children 10806 return ec.resolvers.Query().OptionalUnion(rctx) 10807 }) 10808 10809 if resTmp == nil { 10810 return graphql.Null 10811 } 10812 res := resTmp.(TestUnion) 10813 fc.Result = res 10814 return ec.marshalOTestUnion2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐTestUnion(ctx, field.Selections, res) 10815 } 10816 10817 func (ec *executionContext) fieldContext_Query_optionalUnion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10818 fc = &graphql.FieldContext{ 10819 Object: "Query", 10820 Field: field, 10821 IsMethod: true, 10822 IsResolver: true, 10823 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10824 return nil, errors.New("field of type TestUnion does not have child fields") 10825 }, 10826 } 10827 return fc, nil 10828 } 10829 10830 func (ec *executionContext) _Query_vOkCaseValue(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10831 fc, err := ec.fieldContext_Query_vOkCaseValue(ctx, field) 10832 if err != nil { 10833 return graphql.Null 10834 } 10835 ctx = graphql.WithFieldContext(ctx, fc) 10836 defer func() { 10837 if r := recover(); r != nil { 10838 ec.Error(ctx, ec.Recover(ctx, r)) 10839 ret = graphql.Null 10840 } 10841 }() 10842 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10843 ctx = rctx // use context from middleware stack in children 10844 return ec.resolvers.Query().VOkCaseValue(rctx) 10845 }) 10846 10847 if resTmp == nil { 10848 return graphql.Null 10849 } 10850 res := resTmp.(*VOkCaseValue) 10851 fc.Result = res 10852 return ec.marshalOVOkCaseValue2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVOkCaseValue(ctx, field.Selections, res) 10853 } 10854 10855 func (ec *executionContext) fieldContext_Query_vOkCaseValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10856 fc = &graphql.FieldContext{ 10857 Object: "Query", 10858 Field: field, 10859 IsMethod: true, 10860 IsResolver: true, 10861 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10862 switch field.Name { 10863 case "value": 10864 return ec.fieldContext_VOkCaseValue_value(ctx, field) 10865 } 10866 return nil, fmt.Errorf("no field named %q was found under type VOkCaseValue", field.Name) 10867 }, 10868 } 10869 return fc, nil 10870 } 10871 10872 func (ec *executionContext) _Query_vOkCaseNil(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10873 fc, err := ec.fieldContext_Query_vOkCaseNil(ctx, field) 10874 if err != nil { 10875 return graphql.Null 10876 } 10877 ctx = graphql.WithFieldContext(ctx, fc) 10878 defer func() { 10879 if r := recover(); r != nil { 10880 ec.Error(ctx, ec.Recover(ctx, r)) 10881 ret = graphql.Null 10882 } 10883 }() 10884 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10885 ctx = rctx // use context from middleware stack in children 10886 return ec.resolvers.Query().VOkCaseNil(rctx) 10887 }) 10888 10889 if resTmp == nil { 10890 return graphql.Null 10891 } 10892 res := resTmp.(*VOkCaseNil) 10893 fc.Result = res 10894 return ec.marshalOVOkCaseNil2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVOkCaseNil(ctx, field.Selections, res) 10895 } 10896 10897 func (ec *executionContext) fieldContext_Query_vOkCaseNil(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10898 fc = &graphql.FieldContext{ 10899 Object: "Query", 10900 Field: field, 10901 IsMethod: true, 10902 IsResolver: true, 10903 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10904 switch field.Name { 10905 case "value": 10906 return ec.fieldContext_VOkCaseNil_value(ctx, field) 10907 } 10908 return nil, fmt.Errorf("no field named %q was found under type VOkCaseNil", field.Name) 10909 }, 10910 } 10911 return fc, nil 10912 } 10913 10914 func (ec *executionContext) _Query_validType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10915 fc, err := ec.fieldContext_Query_validType(ctx, field) 10916 if err != nil { 10917 return graphql.Null 10918 } 10919 ctx = graphql.WithFieldContext(ctx, fc) 10920 defer func() { 10921 if r := recover(); r != nil { 10922 ec.Error(ctx, ec.Recover(ctx, r)) 10923 ret = graphql.Null 10924 } 10925 }() 10926 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10927 ctx = rctx // use context from middleware stack in children 10928 return ec.resolvers.Query().ValidType(rctx) 10929 }) 10930 10931 if resTmp == nil { 10932 return graphql.Null 10933 } 10934 res := resTmp.(*ValidType) 10935 fc.Result = res 10936 return ec.marshalOValidType2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidType(ctx, field.Selections, res) 10937 } 10938 10939 func (ec *executionContext) fieldContext_Query_validType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10940 fc = &graphql.FieldContext{ 10941 Object: "Query", 10942 Field: field, 10943 IsMethod: true, 10944 IsResolver: true, 10945 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10946 switch field.Name { 10947 case "differentCase": 10948 return ec.fieldContext_ValidType_differentCase(ctx, field) 10949 case "different_case": 10950 return ec.fieldContext_ValidType_different_case(ctx, field) 10951 case "validInputKeywords": 10952 return ec.fieldContext_ValidType_validInputKeywords(ctx, field) 10953 case "validArgs": 10954 return ec.fieldContext_ValidType_validArgs(ctx, field) 10955 } 10956 return nil, fmt.Errorf("no field named %q was found under type ValidType", field.Name) 10957 }, 10958 } 10959 return fc, nil 10960 } 10961 10962 func (ec *executionContext) _Query_variadicModel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10963 fc, err := ec.fieldContext_Query_variadicModel(ctx, field) 10964 if err != nil { 10965 return graphql.Null 10966 } 10967 ctx = graphql.WithFieldContext(ctx, fc) 10968 defer func() { 10969 if r := recover(); r != nil { 10970 ec.Error(ctx, ec.Recover(ctx, r)) 10971 ret = graphql.Null 10972 } 10973 }() 10974 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10975 ctx = rctx // use context from middleware stack in children 10976 return ec.resolvers.Query().VariadicModel(rctx) 10977 }) 10978 10979 if resTmp == nil { 10980 return graphql.Null 10981 } 10982 res := resTmp.(*VariadicModel) 10983 fc.Result = res 10984 return ec.marshalOVariadicModel2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVariadicModel(ctx, field.Selections, res) 10985 } 10986 10987 func (ec *executionContext) fieldContext_Query_variadicModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10988 fc = &graphql.FieldContext{ 10989 Object: "Query", 10990 Field: field, 10991 IsMethod: true, 10992 IsResolver: true, 10993 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10994 switch field.Name { 10995 case "value": 10996 return ec.fieldContext_VariadicModel_value(ctx, field) 10997 } 10998 return nil, fmt.Errorf("no field named %q was found under type VariadicModel", field.Name) 10999 }, 11000 } 11001 return fc, nil 11002 } 11003 11004 func (ec *executionContext) _Query_wrappedStruct(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 11005 fc, err := ec.fieldContext_Query_wrappedStruct(ctx, field) 11006 if err != nil { 11007 return graphql.Null 11008 } 11009 ctx = graphql.WithFieldContext(ctx, fc) 11010 defer func() { 11011 if r := recover(); r != nil { 11012 ec.Error(ctx, ec.Recover(ctx, r)) 11013 ret = graphql.Null 11014 } 11015 }() 11016 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11017 ctx = rctx // use context from middleware stack in children 11018 return ec.resolvers.Query().WrappedStruct(rctx) 11019 }) 11020 11021 if resTmp == nil { 11022 if !graphql.HasFieldError(ctx, fc) { 11023 ec.Errorf(ctx, "must not be null") 11024 } 11025 return graphql.Null 11026 } 11027 res := resTmp.(*WrappedStruct) 11028 fc.Result = res 11029 return ec.marshalNWrappedStruct2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedStruct(ctx, field.Selections, res) 11030 } 11031 11032 func (ec *executionContext) fieldContext_Query_wrappedStruct(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11033 fc = &graphql.FieldContext{ 11034 Object: "Query", 11035 Field: field, 11036 IsMethod: true, 11037 IsResolver: true, 11038 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11039 switch field.Name { 11040 case "name": 11041 return ec.fieldContext_WrappedStruct_name(ctx, field) 11042 case "desc": 11043 return ec.fieldContext_WrappedStruct_desc(ctx, field) 11044 } 11045 return nil, fmt.Errorf("no field named %q was found under type WrappedStruct", field.Name) 11046 }, 11047 } 11048 return fc, nil 11049 } 11050 11051 func (ec *executionContext) _Query_wrappedScalar(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 11052 fc, err := ec.fieldContext_Query_wrappedScalar(ctx, field) 11053 if err != nil { 11054 return graphql.Null 11055 } 11056 ctx = graphql.WithFieldContext(ctx, fc) 11057 defer func() { 11058 if r := recover(); r != nil { 11059 ec.Error(ctx, ec.Recover(ctx, r)) 11060 ret = graphql.Null 11061 } 11062 }() 11063 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11064 ctx = rctx // use context from middleware stack in children 11065 return ec.resolvers.Query().WrappedScalar(rctx) 11066 }) 11067 11068 if resTmp == nil { 11069 if !graphql.HasFieldError(ctx, fc) { 11070 ec.Errorf(ctx, "must not be null") 11071 } 11072 return graphql.Null 11073 } 11074 res := resTmp.(otherpkg.Scalar) 11075 fc.Result = res 11076 return ec.marshalNWrappedScalar2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx, field.Selections, res) 11077 } 11078 11079 func (ec *executionContext) fieldContext_Query_wrappedScalar(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11080 fc = &graphql.FieldContext{ 11081 Object: "Query", 11082 Field: field, 11083 IsMethod: true, 11084 IsResolver: true, 11085 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11086 return nil, errors.New("field of type WrappedScalar does not have child fields") 11087 }, 11088 } 11089 return fc, nil 11090 } 11091 11092 func (ec *executionContext) _Query_wrappedMap(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 11093 fc, err := ec.fieldContext_Query_wrappedMap(ctx, field) 11094 if err != nil { 11095 return graphql.Null 11096 } 11097 ctx = graphql.WithFieldContext(ctx, fc) 11098 defer func() { 11099 if r := recover(); r != nil { 11100 ec.Error(ctx, ec.Recover(ctx, r)) 11101 ret = graphql.Null 11102 } 11103 }() 11104 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11105 ctx = rctx // use context from middleware stack in children 11106 return ec.resolvers.Query().WrappedMap(rctx) 11107 }) 11108 11109 if resTmp == nil { 11110 if !graphql.HasFieldError(ctx, fc) { 11111 ec.Errorf(ctx, "must not be null") 11112 } 11113 return graphql.Null 11114 } 11115 res := resTmp.(WrappedMap) 11116 fc.Result = res 11117 return ec.marshalNWrappedMap2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedMap(ctx, field.Selections, res) 11118 } 11119 11120 func (ec *executionContext) fieldContext_Query_wrappedMap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11121 fc = &graphql.FieldContext{ 11122 Object: "Query", 11123 Field: field, 11124 IsMethod: true, 11125 IsResolver: true, 11126 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11127 switch field.Name { 11128 case "get": 11129 return ec.fieldContext_WrappedMap_get(ctx, field) 11130 } 11131 return nil, fmt.Errorf("no field named %q was found under type WrappedMap", field.Name) 11132 }, 11133 } 11134 return fc, nil 11135 } 11136 11137 func (ec *executionContext) _Query_wrappedSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 11138 fc, err := ec.fieldContext_Query_wrappedSlice(ctx, field) 11139 if err != nil { 11140 return graphql.Null 11141 } 11142 ctx = graphql.WithFieldContext(ctx, fc) 11143 defer func() { 11144 if r := recover(); r != nil { 11145 ec.Error(ctx, ec.Recover(ctx, r)) 11146 ret = graphql.Null 11147 } 11148 }() 11149 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11150 ctx = rctx // use context from middleware stack in children 11151 return ec.resolvers.Query().WrappedSlice(rctx) 11152 }) 11153 11154 if resTmp == nil { 11155 if !graphql.HasFieldError(ctx, fc) { 11156 ec.Errorf(ctx, "must not be null") 11157 } 11158 return graphql.Null 11159 } 11160 res := resTmp.(WrappedSlice) 11161 fc.Result = res 11162 return ec.marshalNWrappedSlice2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedSlice(ctx, field.Selections, res) 11163 } 11164 11165 func (ec *executionContext) fieldContext_Query_wrappedSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11166 fc = &graphql.FieldContext{ 11167 Object: "Query", 11168 Field: field, 11169 IsMethod: true, 11170 IsResolver: true, 11171 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11172 switch field.Name { 11173 case "get": 11174 return ec.fieldContext_WrappedSlice_get(ctx, field) 11175 } 11176 return nil, fmt.Errorf("no field named %q was found under type WrappedSlice", field.Name) 11177 }, 11178 } 11179 return fc, nil 11180 } 11181 11182 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 11183 fc, err := ec.fieldContext_Query___type(ctx, field) 11184 if err != nil { 11185 return graphql.Null 11186 } 11187 ctx = graphql.WithFieldContext(ctx, fc) 11188 defer func() { 11189 if r := recover(); r != nil { 11190 ec.Error(ctx, ec.Recover(ctx, r)) 11191 ret = graphql.Null 11192 } 11193 }() 11194 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11195 ctx = rctx // use context from middleware stack in children 11196 return ec.introspectType(fc.Args["name"].(string)) 11197 }) 11198 11199 if resTmp == nil { 11200 return graphql.Null 11201 } 11202 res := resTmp.(*introspection.Type) 11203 fc.Result = res 11204 return ec.marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 11205 } 11206 11207 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11208 fc = &graphql.FieldContext{ 11209 Object: "Query", 11210 Field: field, 11211 IsMethod: true, 11212 IsResolver: false, 11213 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11214 switch field.Name { 11215 case "kind": 11216 return ec.fieldContext___Type_kind(ctx, field) 11217 case "name": 11218 return ec.fieldContext___Type_name(ctx, field) 11219 case "description": 11220 return ec.fieldContext___Type_description(ctx, field) 11221 case "fields": 11222 return ec.fieldContext___Type_fields(ctx, field) 11223 case "interfaces": 11224 return ec.fieldContext___Type_interfaces(ctx, field) 11225 case "possibleTypes": 11226 return ec.fieldContext___Type_possibleTypes(ctx, field) 11227 case "enumValues": 11228 return ec.fieldContext___Type_enumValues(ctx, field) 11229 case "inputFields": 11230 return ec.fieldContext___Type_inputFields(ctx, field) 11231 case "ofType": 11232 return ec.fieldContext___Type_ofType(ctx, field) 11233 case "specifiedByURL": 11234 return ec.fieldContext___Type_specifiedByURL(ctx, field) 11235 } 11236 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 11237 }, 11238 } 11239 defer func() { 11240 if r := recover(); r != nil { 11241 err = ec.Recover(ctx, r) 11242 ec.Error(ctx, err) 11243 } 11244 }() 11245 ctx = graphql.WithFieldContext(ctx, fc) 11246 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11247 ec.Error(ctx, err) 11248 return fc, err 11249 } 11250 return fc, nil 11251 } 11252 11253 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 11254 fc, err := ec.fieldContext_Query___schema(ctx, field) 11255 if err != nil { 11256 return graphql.Null 11257 } 11258 ctx = graphql.WithFieldContext(ctx, fc) 11259 defer func() { 11260 if r := recover(); r != nil { 11261 ec.Error(ctx, ec.Recover(ctx, r)) 11262 ret = graphql.Null 11263 } 11264 }() 11265 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11266 ctx = rctx // use context from middleware stack in children 11267 return ec.introspectSchema() 11268 }) 11269 11270 if resTmp == nil { 11271 return graphql.Null 11272 } 11273 res := resTmp.(*introspection.Schema) 11274 fc.Result = res 11275 return ec.marshalO__Schema2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) 11276 } 11277 11278 func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11279 fc = &graphql.FieldContext{ 11280 Object: "Query", 11281 Field: field, 11282 IsMethod: true, 11283 IsResolver: false, 11284 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11285 switch field.Name { 11286 case "description": 11287 return ec.fieldContext___Schema_description(ctx, field) 11288 case "types": 11289 return ec.fieldContext___Schema_types(ctx, field) 11290 case "queryType": 11291 return ec.fieldContext___Schema_queryType(ctx, field) 11292 case "mutationType": 11293 return ec.fieldContext___Schema_mutationType(ctx, field) 11294 case "subscriptionType": 11295 return ec.fieldContext___Schema_subscriptionType(ctx, field) 11296 case "directives": 11297 return ec.fieldContext___Schema_directives(ctx, field) 11298 } 11299 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) 11300 }, 11301 } 11302 return fc, nil 11303 } 11304 11305 func (ec *executionContext) _Rectangle_length(ctx context.Context, field graphql.CollectedField, obj *Rectangle) (ret graphql.Marshaler) { 11306 fc, err := ec.fieldContext_Rectangle_length(ctx, field) 11307 if err != nil { 11308 return graphql.Null 11309 } 11310 ctx = graphql.WithFieldContext(ctx, fc) 11311 defer func() { 11312 if r := recover(); r != nil { 11313 ec.Error(ctx, ec.Recover(ctx, r)) 11314 ret = graphql.Null 11315 } 11316 }() 11317 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11318 ctx = rctx // use context from middleware stack in children 11319 return obj.Length, nil 11320 }) 11321 11322 if resTmp == nil { 11323 return graphql.Null 11324 } 11325 res := resTmp.(float64) 11326 fc.Result = res 11327 return ec.marshalOFloat2float64(ctx, field.Selections, res) 11328 } 11329 11330 func (ec *executionContext) fieldContext_Rectangle_length(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11331 fc = &graphql.FieldContext{ 11332 Object: "Rectangle", 11333 Field: field, 11334 IsMethod: false, 11335 IsResolver: false, 11336 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11337 return nil, errors.New("field of type Float does not have child fields") 11338 }, 11339 } 11340 return fc, nil 11341 } 11342 11343 func (ec *executionContext) _Rectangle_width(ctx context.Context, field graphql.CollectedField, obj *Rectangle) (ret graphql.Marshaler) { 11344 fc, err := ec.fieldContext_Rectangle_width(ctx, field) 11345 if err != nil { 11346 return graphql.Null 11347 } 11348 ctx = graphql.WithFieldContext(ctx, fc) 11349 defer func() { 11350 if r := recover(); r != nil { 11351 ec.Error(ctx, ec.Recover(ctx, r)) 11352 ret = graphql.Null 11353 } 11354 }() 11355 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11356 ctx = rctx // use context from middleware stack in children 11357 return obj.Width, nil 11358 }) 11359 11360 if resTmp == nil { 11361 return graphql.Null 11362 } 11363 res := resTmp.(float64) 11364 fc.Result = res 11365 return ec.marshalOFloat2float64(ctx, field.Selections, res) 11366 } 11367 11368 func (ec *executionContext) fieldContext_Rectangle_width(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11369 fc = &graphql.FieldContext{ 11370 Object: "Rectangle", 11371 Field: field, 11372 IsMethod: false, 11373 IsResolver: false, 11374 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11375 return nil, errors.New("field of type Float does not have child fields") 11376 }, 11377 } 11378 return fc, nil 11379 } 11380 11381 func (ec *executionContext) _Rectangle_area(ctx context.Context, field graphql.CollectedField, obj *Rectangle) (ret graphql.Marshaler) { 11382 fc, err := ec.fieldContext_Rectangle_area(ctx, field) 11383 if err != nil { 11384 return graphql.Null 11385 } 11386 ctx = graphql.WithFieldContext(ctx, fc) 11387 defer func() { 11388 if r := recover(); r != nil { 11389 ec.Error(ctx, ec.Recover(ctx, r)) 11390 ret = graphql.Null 11391 } 11392 }() 11393 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11394 ctx = rctx // use context from middleware stack in children 11395 return obj.Area(), nil 11396 }) 11397 11398 if resTmp == nil { 11399 return graphql.Null 11400 } 11401 res := resTmp.(float64) 11402 fc.Result = res 11403 return ec.marshalOFloat2float64(ctx, field.Selections, res) 11404 } 11405 11406 func (ec *executionContext) fieldContext_Rectangle_area(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11407 fc = &graphql.FieldContext{ 11408 Object: "Rectangle", 11409 Field: field, 11410 IsMethod: true, 11411 IsResolver: false, 11412 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11413 return nil, errors.New("field of type Float does not have child fields") 11414 }, 11415 } 11416 return fc, nil 11417 } 11418 11419 func (ec *executionContext) _Rectangle_coordinates(ctx context.Context, field graphql.CollectedField, obj *Rectangle) (ret graphql.Marshaler) { 11420 fc, err := ec.fieldContext_Rectangle_coordinates(ctx, field) 11421 if err != nil { 11422 return graphql.Null 11423 } 11424 ctx = graphql.WithFieldContext(ctx, fc) 11425 defer func() { 11426 if r := recover(); r != nil { 11427 ec.Error(ctx, ec.Recover(ctx, r)) 11428 ret = graphql.Null 11429 } 11430 }() 11431 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11432 ctx = rctx // use context from middleware stack in children 11433 return obj.Coordinates, nil 11434 }) 11435 11436 if resTmp == nil { 11437 return graphql.Null 11438 } 11439 res := resTmp.(Coordinates) 11440 fc.Result = res 11441 return ec.marshalOCoordinates2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCoordinates(ctx, field.Selections, res) 11442 } 11443 11444 func (ec *executionContext) fieldContext_Rectangle_coordinates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11445 fc = &graphql.FieldContext{ 11446 Object: "Rectangle", 11447 Field: field, 11448 IsMethod: false, 11449 IsResolver: false, 11450 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11451 switch field.Name { 11452 case "x": 11453 return ec.fieldContext_Coordinates_x(ctx, field) 11454 case "y": 11455 return ec.fieldContext_Coordinates_y(ctx, field) 11456 } 11457 return nil, fmt.Errorf("no field named %q was found under type Coordinates", field.Name) 11458 }, 11459 } 11460 return fc, nil 11461 } 11462 11463 func (ec *executionContext) _Size_height(ctx context.Context, field graphql.CollectedField, obj *Size) (ret graphql.Marshaler) { 11464 fc, err := ec.fieldContext_Size_height(ctx, field) 11465 if err != nil { 11466 return graphql.Null 11467 } 11468 ctx = graphql.WithFieldContext(ctx, fc) 11469 defer func() { 11470 if r := recover(); r != nil { 11471 ec.Error(ctx, ec.Recover(ctx, r)) 11472 ret = graphql.Null 11473 } 11474 }() 11475 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11476 ctx = rctx // use context from middleware stack in children 11477 return obj.Height, nil 11478 }) 11479 11480 if resTmp == nil { 11481 if !graphql.HasFieldError(ctx, fc) { 11482 ec.Errorf(ctx, "must not be null") 11483 } 11484 return graphql.Null 11485 } 11486 res := resTmp.(int) 11487 fc.Result = res 11488 return ec.marshalNInt2int(ctx, field.Selections, res) 11489 } 11490 11491 func (ec *executionContext) fieldContext_Size_height(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11492 fc = &graphql.FieldContext{ 11493 Object: "Size", 11494 Field: field, 11495 IsMethod: false, 11496 IsResolver: false, 11497 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11498 return nil, errors.New("field of type Int does not have child fields") 11499 }, 11500 } 11501 return fc, nil 11502 } 11503 11504 func (ec *executionContext) _Size_weight(ctx context.Context, field graphql.CollectedField, obj *Size) (ret graphql.Marshaler) { 11505 fc, err := ec.fieldContext_Size_weight(ctx, field) 11506 if err != nil { 11507 return graphql.Null 11508 } 11509 ctx = graphql.WithFieldContext(ctx, fc) 11510 defer func() { 11511 if r := recover(); r != nil { 11512 ec.Error(ctx, ec.Recover(ctx, r)) 11513 ret = graphql.Null 11514 } 11515 }() 11516 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11517 ctx = rctx // use context from middleware stack in children 11518 return obj.Weight, nil 11519 }) 11520 11521 if resTmp == nil { 11522 if !graphql.HasFieldError(ctx, fc) { 11523 ec.Errorf(ctx, "must not be null") 11524 } 11525 return graphql.Null 11526 } 11527 res := resTmp.(int) 11528 fc.Result = res 11529 return ec.marshalNInt2int(ctx, field.Selections, res) 11530 } 11531 11532 func (ec *executionContext) fieldContext_Size_weight(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11533 fc = &graphql.FieldContext{ 11534 Object: "Size", 11535 Field: field, 11536 IsMethod: false, 11537 IsResolver: false, 11538 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11539 return nil, errors.New("field of type Int does not have child fields") 11540 }, 11541 } 11542 return fc, nil 11543 } 11544 11545 func (ec *executionContext) _Slices_test1(ctx context.Context, field graphql.CollectedField, obj *Slices) (ret graphql.Marshaler) { 11546 fc, err := ec.fieldContext_Slices_test1(ctx, field) 11547 if err != nil { 11548 return graphql.Null 11549 } 11550 ctx = graphql.WithFieldContext(ctx, fc) 11551 defer func() { 11552 if r := recover(); r != nil { 11553 ec.Error(ctx, ec.Recover(ctx, r)) 11554 ret = graphql.Null 11555 } 11556 }() 11557 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11558 ctx = rctx // use context from middleware stack in children 11559 return obj.Test1, nil 11560 }) 11561 11562 if resTmp == nil { 11563 return graphql.Null 11564 } 11565 res := resTmp.([]*string) 11566 fc.Result = res 11567 return ec.marshalOString2ᚕᚖstring(ctx, field.Selections, res) 11568 } 11569 11570 func (ec *executionContext) fieldContext_Slices_test1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11571 fc = &graphql.FieldContext{ 11572 Object: "Slices", 11573 Field: field, 11574 IsMethod: false, 11575 IsResolver: false, 11576 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11577 return nil, errors.New("field of type String does not have child fields") 11578 }, 11579 } 11580 return fc, nil 11581 } 11582 11583 func (ec *executionContext) _Slices_test2(ctx context.Context, field graphql.CollectedField, obj *Slices) (ret graphql.Marshaler) { 11584 fc, err := ec.fieldContext_Slices_test2(ctx, field) 11585 if err != nil { 11586 return graphql.Null 11587 } 11588 ctx = graphql.WithFieldContext(ctx, fc) 11589 defer func() { 11590 if r := recover(); r != nil { 11591 ec.Error(ctx, ec.Recover(ctx, r)) 11592 ret = graphql.Null 11593 } 11594 }() 11595 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11596 ctx = rctx // use context from middleware stack in children 11597 return obj.Test2, nil 11598 }) 11599 11600 if resTmp == nil { 11601 return graphql.Null 11602 } 11603 res := resTmp.([]string) 11604 fc.Result = res 11605 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 11606 } 11607 11608 func (ec *executionContext) fieldContext_Slices_test2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11609 fc = &graphql.FieldContext{ 11610 Object: "Slices", 11611 Field: field, 11612 IsMethod: false, 11613 IsResolver: false, 11614 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11615 return nil, errors.New("field of type String does not have child fields") 11616 }, 11617 } 11618 return fc, nil 11619 } 11620 11621 func (ec *executionContext) _Slices_test3(ctx context.Context, field graphql.CollectedField, obj *Slices) (ret graphql.Marshaler) { 11622 fc, err := ec.fieldContext_Slices_test3(ctx, field) 11623 if err != nil { 11624 return graphql.Null 11625 } 11626 ctx = graphql.WithFieldContext(ctx, fc) 11627 defer func() { 11628 if r := recover(); r != nil { 11629 ec.Error(ctx, ec.Recover(ctx, r)) 11630 ret = graphql.Null 11631 } 11632 }() 11633 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11634 ctx = rctx // use context from middleware stack in children 11635 return obj.Test3, nil 11636 }) 11637 11638 if resTmp == nil { 11639 if !graphql.HasFieldError(ctx, fc) { 11640 ec.Errorf(ctx, "must not be null") 11641 } 11642 return graphql.Null 11643 } 11644 res := resTmp.([]*string) 11645 fc.Result = res 11646 return ec.marshalNString2ᚕᚖstring(ctx, field.Selections, res) 11647 } 11648 11649 func (ec *executionContext) fieldContext_Slices_test3(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11650 fc = &graphql.FieldContext{ 11651 Object: "Slices", 11652 Field: field, 11653 IsMethod: false, 11654 IsResolver: false, 11655 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11656 return nil, errors.New("field of type String does not have child fields") 11657 }, 11658 } 11659 return fc, nil 11660 } 11661 11662 func (ec *executionContext) _Slices_test4(ctx context.Context, field graphql.CollectedField, obj *Slices) (ret graphql.Marshaler) { 11663 fc, err := ec.fieldContext_Slices_test4(ctx, field) 11664 if err != nil { 11665 return graphql.Null 11666 } 11667 ctx = graphql.WithFieldContext(ctx, fc) 11668 defer func() { 11669 if r := recover(); r != nil { 11670 ec.Error(ctx, ec.Recover(ctx, r)) 11671 ret = graphql.Null 11672 } 11673 }() 11674 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11675 ctx = rctx // use context from middleware stack in children 11676 return obj.Test4, nil 11677 }) 11678 11679 if resTmp == nil { 11680 if !graphql.HasFieldError(ctx, fc) { 11681 ec.Errorf(ctx, "must not be null") 11682 } 11683 return graphql.Null 11684 } 11685 res := resTmp.([]string) 11686 fc.Result = res 11687 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 11688 } 11689 11690 func (ec *executionContext) fieldContext_Slices_test4(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11691 fc = &graphql.FieldContext{ 11692 Object: "Slices", 11693 Field: field, 11694 IsMethod: false, 11695 IsResolver: false, 11696 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11697 return nil, errors.New("field of type String does not have child fields") 11698 }, 11699 } 11700 return fc, nil 11701 } 11702 11703 func (ec *executionContext) _Subscription_updated(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 11704 fc, err := ec.fieldContext_Subscription_updated(ctx, field) 11705 if err != nil { 11706 return nil 11707 } 11708 ctx = graphql.WithFieldContext(ctx, fc) 11709 defer func() { 11710 if r := recover(); r != nil { 11711 ec.Error(ctx, ec.Recover(ctx, r)) 11712 ret = nil 11713 } 11714 }() 11715 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11716 ctx = rctx // use context from middleware stack in children 11717 return ec.resolvers.Subscription().Updated(rctx) 11718 }) 11719 11720 if resTmp == nil { 11721 if !graphql.HasFieldError(ctx, fc) { 11722 ec.Errorf(ctx, "must not be null") 11723 } 11724 return nil 11725 } 11726 return func(ctx context.Context) graphql.Marshaler { 11727 select { 11728 case res, ok := <-resTmp.(<-chan string): 11729 if !ok { 11730 return nil 11731 } 11732 return graphql.WriterFunc(func(w io.Writer) { 11733 w.Write([]byte{'{'}) 11734 graphql.MarshalString(field.Alias).MarshalGQL(w) 11735 w.Write([]byte{':'}) 11736 ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w) 11737 w.Write([]byte{'}'}) 11738 }) 11739 case <-ctx.Done(): 11740 return nil 11741 } 11742 } 11743 } 11744 11745 func (ec *executionContext) fieldContext_Subscription_updated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11746 fc = &graphql.FieldContext{ 11747 Object: "Subscription", 11748 Field: field, 11749 IsMethod: true, 11750 IsResolver: true, 11751 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11752 return nil, errors.New("field of type String does not have child fields") 11753 }, 11754 } 11755 return fc, nil 11756 } 11757 11758 func (ec *executionContext) _Subscription_initPayload(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 11759 fc, err := ec.fieldContext_Subscription_initPayload(ctx, field) 11760 if err != nil { 11761 return nil 11762 } 11763 ctx = graphql.WithFieldContext(ctx, fc) 11764 defer func() { 11765 if r := recover(); r != nil { 11766 ec.Error(ctx, ec.Recover(ctx, r)) 11767 ret = nil 11768 } 11769 }() 11770 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11771 ctx = rctx // use context from middleware stack in children 11772 return ec.resolvers.Subscription().InitPayload(rctx) 11773 }) 11774 11775 if resTmp == nil { 11776 if !graphql.HasFieldError(ctx, fc) { 11777 ec.Errorf(ctx, "must not be null") 11778 } 11779 return nil 11780 } 11781 return func(ctx context.Context) graphql.Marshaler { 11782 select { 11783 case res, ok := <-resTmp.(<-chan string): 11784 if !ok { 11785 return nil 11786 } 11787 return graphql.WriterFunc(func(w io.Writer) { 11788 w.Write([]byte{'{'}) 11789 graphql.MarshalString(field.Alias).MarshalGQL(w) 11790 w.Write([]byte{':'}) 11791 ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w) 11792 w.Write([]byte{'}'}) 11793 }) 11794 case <-ctx.Done(): 11795 return nil 11796 } 11797 } 11798 } 11799 11800 func (ec *executionContext) fieldContext_Subscription_initPayload(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11801 fc = &graphql.FieldContext{ 11802 Object: "Subscription", 11803 Field: field, 11804 IsMethod: true, 11805 IsResolver: true, 11806 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11807 return nil, errors.New("field of type String does not have child fields") 11808 }, 11809 } 11810 return fc, nil 11811 } 11812 11813 func (ec *executionContext) _Subscription_directiveArg(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 11814 fc, err := ec.fieldContext_Subscription_directiveArg(ctx, field) 11815 if err != nil { 11816 return nil 11817 } 11818 ctx = graphql.WithFieldContext(ctx, fc) 11819 defer func() { 11820 if r := recover(); r != nil { 11821 ec.Error(ctx, ec.Recover(ctx, r)) 11822 ret = nil 11823 } 11824 }() 11825 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11826 ctx = rctx // use context from middleware stack in children 11827 return ec.resolvers.Subscription().DirectiveArg(rctx, fc.Args["arg"].(string)) 11828 }) 11829 11830 if resTmp == nil { 11831 return nil 11832 } 11833 return func(ctx context.Context) graphql.Marshaler { 11834 select { 11835 case res, ok := <-resTmp.(<-chan *string): 11836 if !ok { 11837 return nil 11838 } 11839 return graphql.WriterFunc(func(w io.Writer) { 11840 w.Write([]byte{'{'}) 11841 graphql.MarshalString(field.Alias).MarshalGQL(w) 11842 w.Write([]byte{':'}) 11843 ec.marshalOString2ᚖstring(ctx, field.Selections, res).MarshalGQL(w) 11844 w.Write([]byte{'}'}) 11845 }) 11846 case <-ctx.Done(): 11847 return nil 11848 } 11849 } 11850 } 11851 11852 func (ec *executionContext) fieldContext_Subscription_directiveArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11853 fc = &graphql.FieldContext{ 11854 Object: "Subscription", 11855 Field: field, 11856 IsMethod: true, 11857 IsResolver: true, 11858 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11859 return nil, errors.New("field of type String does not have child fields") 11860 }, 11861 } 11862 defer func() { 11863 if r := recover(); r != nil { 11864 err = ec.Recover(ctx, r) 11865 ec.Error(ctx, err) 11866 } 11867 }() 11868 ctx = graphql.WithFieldContext(ctx, fc) 11869 if fc.Args, err = ec.field_Subscription_directiveArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11870 ec.Error(ctx, err) 11871 return fc, err 11872 } 11873 return fc, nil 11874 } 11875 11876 func (ec *executionContext) _Subscription_directiveNullableArg(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 11877 fc, err := ec.fieldContext_Subscription_directiveNullableArg(ctx, field) 11878 if err != nil { 11879 return nil 11880 } 11881 ctx = graphql.WithFieldContext(ctx, fc) 11882 defer func() { 11883 if r := recover(); r != nil { 11884 ec.Error(ctx, ec.Recover(ctx, r)) 11885 ret = nil 11886 } 11887 }() 11888 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11889 ctx = rctx // use context from middleware stack in children 11890 return ec.resolvers.Subscription().DirectiveNullableArg(rctx, fc.Args["arg"].(*int), fc.Args["arg2"].(*int), fc.Args["arg3"].(*string)) 11891 }) 11892 11893 if resTmp == nil { 11894 return nil 11895 } 11896 return func(ctx context.Context) graphql.Marshaler { 11897 select { 11898 case res, ok := <-resTmp.(<-chan *string): 11899 if !ok { 11900 return nil 11901 } 11902 return graphql.WriterFunc(func(w io.Writer) { 11903 w.Write([]byte{'{'}) 11904 graphql.MarshalString(field.Alias).MarshalGQL(w) 11905 w.Write([]byte{':'}) 11906 ec.marshalOString2ᚖstring(ctx, field.Selections, res).MarshalGQL(w) 11907 w.Write([]byte{'}'}) 11908 }) 11909 case <-ctx.Done(): 11910 return nil 11911 } 11912 } 11913 } 11914 11915 func (ec *executionContext) fieldContext_Subscription_directiveNullableArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11916 fc = &graphql.FieldContext{ 11917 Object: "Subscription", 11918 Field: field, 11919 IsMethod: true, 11920 IsResolver: true, 11921 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11922 return nil, errors.New("field of type String does not have child fields") 11923 }, 11924 } 11925 defer func() { 11926 if r := recover(); r != nil { 11927 err = ec.Recover(ctx, r) 11928 ec.Error(ctx, err) 11929 } 11930 }() 11931 ctx = graphql.WithFieldContext(ctx, fc) 11932 if fc.Args, err = ec.field_Subscription_directiveNullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11933 ec.Error(ctx, err) 11934 return fc, err 11935 } 11936 return fc, nil 11937 } 11938 11939 func (ec *executionContext) _Subscription_directiveDouble(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 11940 fc, err := ec.fieldContext_Subscription_directiveDouble(ctx, field) 11941 if err != nil { 11942 return nil 11943 } 11944 ctx = graphql.WithFieldContext(ctx, fc) 11945 defer func() { 11946 if r := recover(); r != nil { 11947 ec.Error(ctx, ec.Recover(ctx, r)) 11948 ret = nil 11949 } 11950 }() 11951 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11952 directive0 := func(rctx context.Context) (interface{}, error) { 11953 ctx = rctx // use context from middleware stack in children 11954 return ec.resolvers.Subscription().DirectiveDouble(rctx) 11955 } 11956 directive1 := func(ctx context.Context) (interface{}, error) { 11957 if ec.directives.Directive1 == nil { 11958 return nil, errors.New("directive directive1 is not implemented") 11959 } 11960 return ec.directives.Directive1(ctx, nil, directive0) 11961 } 11962 directive2 := func(ctx context.Context) (interface{}, error) { 11963 if ec.directives.Directive2 == nil { 11964 return nil, errors.New("directive directive2 is not implemented") 11965 } 11966 return ec.directives.Directive2(ctx, nil, directive1) 11967 } 11968 11969 tmp, err := directive2(rctx) 11970 if err != nil { 11971 return nil, graphql.ErrorOnPath(ctx, err) 11972 } 11973 if tmp == nil { 11974 return nil, nil 11975 } 11976 if data, ok := tmp.(<-chan *string); ok { 11977 return data, nil 11978 } 11979 return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *string`, tmp) 11980 }) 11981 11982 if resTmp == nil { 11983 return nil 11984 } 11985 return func(ctx context.Context) graphql.Marshaler { 11986 select { 11987 case res, ok := <-resTmp.(<-chan *string): 11988 if !ok { 11989 return nil 11990 } 11991 return graphql.WriterFunc(func(w io.Writer) { 11992 w.Write([]byte{'{'}) 11993 graphql.MarshalString(field.Alias).MarshalGQL(w) 11994 w.Write([]byte{':'}) 11995 ec.marshalOString2ᚖstring(ctx, field.Selections, res).MarshalGQL(w) 11996 w.Write([]byte{'}'}) 11997 }) 11998 case <-ctx.Done(): 11999 return nil 12000 } 12001 } 12002 } 12003 12004 func (ec *executionContext) fieldContext_Subscription_directiveDouble(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12005 fc = &graphql.FieldContext{ 12006 Object: "Subscription", 12007 Field: field, 12008 IsMethod: true, 12009 IsResolver: true, 12010 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12011 return nil, errors.New("field of type String does not have child fields") 12012 }, 12013 } 12014 return fc, nil 12015 } 12016 12017 func (ec *executionContext) _Subscription_directiveUnimplemented(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 12018 fc, err := ec.fieldContext_Subscription_directiveUnimplemented(ctx, field) 12019 if err != nil { 12020 return nil 12021 } 12022 ctx = graphql.WithFieldContext(ctx, fc) 12023 defer func() { 12024 if r := recover(); r != nil { 12025 ec.Error(ctx, ec.Recover(ctx, r)) 12026 ret = nil 12027 } 12028 }() 12029 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 12030 directive0 := func(rctx context.Context) (interface{}, error) { 12031 ctx = rctx // use context from middleware stack in children 12032 return ec.resolvers.Subscription().DirectiveUnimplemented(rctx) 12033 } 12034 directive1 := func(ctx context.Context) (interface{}, error) { 12035 if ec.directives.Unimplemented == nil { 12036 return nil, errors.New("directive unimplemented is not implemented") 12037 } 12038 return ec.directives.Unimplemented(ctx, nil, directive0) 12039 } 12040 12041 tmp, err := directive1(rctx) 12042 if err != nil { 12043 return nil, graphql.ErrorOnPath(ctx, err) 12044 } 12045 if tmp == nil { 12046 return nil, nil 12047 } 12048 if data, ok := tmp.(<-chan *string); ok { 12049 return data, nil 12050 } 12051 return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *string`, tmp) 12052 }) 12053 12054 if resTmp == nil { 12055 return nil 12056 } 12057 return func(ctx context.Context) graphql.Marshaler { 12058 select { 12059 case res, ok := <-resTmp.(<-chan *string): 12060 if !ok { 12061 return nil 12062 } 12063 return graphql.WriterFunc(func(w io.Writer) { 12064 w.Write([]byte{'{'}) 12065 graphql.MarshalString(field.Alias).MarshalGQL(w) 12066 w.Write([]byte{':'}) 12067 ec.marshalOString2ᚖstring(ctx, field.Selections, res).MarshalGQL(w) 12068 w.Write([]byte{'}'}) 12069 }) 12070 case <-ctx.Done(): 12071 return nil 12072 } 12073 } 12074 } 12075 12076 func (ec *executionContext) fieldContext_Subscription_directiveUnimplemented(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12077 fc = &graphql.FieldContext{ 12078 Object: "Subscription", 12079 Field: field, 12080 IsMethod: true, 12081 IsResolver: true, 12082 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12083 return nil, errors.New("field of type String does not have child fields") 12084 }, 12085 } 12086 return fc, nil 12087 } 12088 12089 func (ec *executionContext) _Subscription_issue896b(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 12090 fc, err := ec.fieldContext_Subscription_issue896b(ctx, field) 12091 if err != nil { 12092 return nil 12093 } 12094 ctx = graphql.WithFieldContext(ctx, fc) 12095 defer func() { 12096 if r := recover(); r != nil { 12097 ec.Error(ctx, ec.Recover(ctx, r)) 12098 ret = nil 12099 } 12100 }() 12101 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 12102 ctx = rctx // use context from middleware stack in children 12103 return ec.resolvers.Subscription().Issue896b(rctx) 12104 }) 12105 12106 if resTmp == nil { 12107 return nil 12108 } 12109 return func(ctx context.Context) graphql.Marshaler { 12110 select { 12111 case res, ok := <-resTmp.(<-chan []*CheckIssue896): 12112 if !ok { 12113 return nil 12114 } 12115 return graphql.WriterFunc(func(w io.Writer) { 12116 w.Write([]byte{'{'}) 12117 graphql.MarshalString(field.Alias).MarshalGQL(w) 12118 w.Write([]byte{':'}) 12119 ec.marshalOCheckIssue8962ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx, field.Selections, res).MarshalGQL(w) 12120 w.Write([]byte{'}'}) 12121 }) 12122 case <-ctx.Done(): 12123 return nil 12124 } 12125 } 12126 } 12127 12128 func (ec *executionContext) fieldContext_Subscription_issue896b(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12129 fc = &graphql.FieldContext{ 12130 Object: "Subscription", 12131 Field: field, 12132 IsMethod: true, 12133 IsResolver: true, 12134 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12135 switch field.Name { 12136 case "id": 12137 return ec.fieldContext_CheckIssue896_id(ctx, field) 12138 } 12139 return nil, fmt.Errorf("no field named %q was found under type CheckIssue896", field.Name) 12140 }, 12141 } 12142 return fc, nil 12143 } 12144 12145 func (ec *executionContext) _Subscription_errorRequired(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 12146 fc, err := ec.fieldContext_Subscription_errorRequired(ctx, field) 12147 if err != nil { 12148 return nil 12149 } 12150 ctx = graphql.WithFieldContext(ctx, fc) 12151 defer func() { 12152 if r := recover(); r != nil { 12153 ec.Error(ctx, ec.Recover(ctx, r)) 12154 ret = nil 12155 } 12156 }() 12157 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 12158 ctx = rctx // use context from middleware stack in children 12159 return ec.resolvers.Subscription().ErrorRequired(rctx) 12160 }) 12161 12162 if resTmp == nil { 12163 if !graphql.HasFieldError(ctx, fc) { 12164 ec.Errorf(ctx, "must not be null") 12165 } 12166 return nil 12167 } 12168 return func(ctx context.Context) graphql.Marshaler { 12169 select { 12170 case res, ok := <-resTmp.(<-chan *Error): 12171 if !ok { 12172 return nil 12173 } 12174 return graphql.WriterFunc(func(w io.Writer) { 12175 w.Write([]byte{'{'}) 12176 graphql.MarshalString(field.Alias).MarshalGQL(w) 12177 w.Write([]byte{':'}) 12178 ec.marshalNError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res).MarshalGQL(w) 12179 w.Write([]byte{'}'}) 12180 }) 12181 case <-ctx.Done(): 12182 return nil 12183 } 12184 } 12185 } 12186 12187 func (ec *executionContext) fieldContext_Subscription_errorRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12188 fc = &graphql.FieldContext{ 12189 Object: "Subscription", 12190 Field: field, 12191 IsMethod: true, 12192 IsResolver: true, 12193 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12194 switch field.Name { 12195 case "id": 12196 return ec.fieldContext_Error_id(ctx, field) 12197 case "errorOnNonRequiredField": 12198 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 12199 case "errorOnRequiredField": 12200 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 12201 case "nilOnRequiredField": 12202 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 12203 } 12204 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 12205 }, 12206 } 12207 return fc, nil 12208 } 12209 12210 func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 12211 fc, err := ec.fieldContext_User_id(ctx, field) 12212 if err != nil { 12213 return graphql.Null 12214 } 12215 ctx = graphql.WithFieldContext(ctx, fc) 12216 defer func() { 12217 if r := recover(); r != nil { 12218 ec.Error(ctx, ec.Recover(ctx, r)) 12219 ret = graphql.Null 12220 } 12221 }() 12222 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12223 ctx = rctx // use context from middleware stack in children 12224 return obj.ID, nil 12225 }) 12226 12227 if resTmp == nil { 12228 if !graphql.HasFieldError(ctx, fc) { 12229 ec.Errorf(ctx, "must not be null") 12230 } 12231 return graphql.Null 12232 } 12233 res := resTmp.(int) 12234 fc.Result = res 12235 return ec.marshalNInt2int(ctx, field.Selections, res) 12236 } 12237 12238 func (ec *executionContext) fieldContext_User_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12239 fc = &graphql.FieldContext{ 12240 Object: "User", 12241 Field: field, 12242 IsMethod: false, 12243 IsResolver: false, 12244 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12245 return nil, errors.New("field of type Int does not have child fields") 12246 }, 12247 } 12248 return fc, nil 12249 } 12250 12251 func (ec *executionContext) _User_friends(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 12252 fc, err := ec.fieldContext_User_friends(ctx, field) 12253 if err != nil { 12254 return graphql.Null 12255 } 12256 ctx = graphql.WithFieldContext(ctx, fc) 12257 defer func() { 12258 if r := recover(); r != nil { 12259 ec.Error(ctx, ec.Recover(ctx, r)) 12260 ret = graphql.Null 12261 } 12262 }() 12263 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12264 ctx = rctx // use context from middleware stack in children 12265 return ec.resolvers.User().Friends(rctx, obj) 12266 }) 12267 12268 if resTmp == nil { 12269 if !graphql.HasFieldError(ctx, fc) { 12270 ec.Errorf(ctx, "must not be null") 12271 } 12272 return graphql.Null 12273 } 12274 res := resTmp.([]*User) 12275 fc.Result = res 12276 return ec.marshalNUser2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUserᚄ(ctx, field.Selections, res) 12277 } 12278 12279 func (ec *executionContext) fieldContext_User_friends(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12280 fc = &graphql.FieldContext{ 12281 Object: "User", 12282 Field: field, 12283 IsMethod: true, 12284 IsResolver: true, 12285 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12286 switch field.Name { 12287 case "id": 12288 return ec.fieldContext_User_id(ctx, field) 12289 case "friends": 12290 return ec.fieldContext_User_friends(ctx, field) 12291 case "created": 12292 return ec.fieldContext_User_created(ctx, field) 12293 case "updated": 12294 return ec.fieldContext_User_updated(ctx, field) 12295 case "pets": 12296 return ec.fieldContext_User_pets(ctx, field) 12297 } 12298 return nil, fmt.Errorf("no field named %q was found under type User", field.Name) 12299 }, 12300 } 12301 return fc, nil 12302 } 12303 12304 func (ec *executionContext) _User_created(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 12305 fc, err := ec.fieldContext_User_created(ctx, field) 12306 if err != nil { 12307 return graphql.Null 12308 } 12309 ctx = graphql.WithFieldContext(ctx, fc) 12310 defer func() { 12311 if r := recover(); r != nil { 12312 ec.Error(ctx, ec.Recover(ctx, r)) 12313 ret = graphql.Null 12314 } 12315 }() 12316 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12317 ctx = rctx // use context from middleware stack in children 12318 return obj.Created, nil 12319 }) 12320 12321 if resTmp == nil { 12322 if !graphql.HasFieldError(ctx, fc) { 12323 ec.Errorf(ctx, "must not be null") 12324 } 12325 return graphql.Null 12326 } 12327 res := resTmp.(time.Time) 12328 fc.Result = res 12329 return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) 12330 } 12331 12332 func (ec *executionContext) fieldContext_User_created(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12333 fc = &graphql.FieldContext{ 12334 Object: "User", 12335 Field: field, 12336 IsMethod: false, 12337 IsResolver: false, 12338 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12339 return nil, errors.New("field of type Time does not have child fields") 12340 }, 12341 } 12342 return fc, nil 12343 } 12344 12345 func (ec *executionContext) _User_updated(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 12346 fc, err := ec.fieldContext_User_updated(ctx, field) 12347 if err != nil { 12348 return graphql.Null 12349 } 12350 ctx = graphql.WithFieldContext(ctx, fc) 12351 defer func() { 12352 if r := recover(); r != nil { 12353 ec.Error(ctx, ec.Recover(ctx, r)) 12354 ret = graphql.Null 12355 } 12356 }() 12357 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12358 ctx = rctx // use context from middleware stack in children 12359 return obj.Updated, nil 12360 }) 12361 12362 if resTmp == nil { 12363 return graphql.Null 12364 } 12365 res := resTmp.(*time.Time) 12366 fc.Result = res 12367 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 12368 } 12369 12370 func (ec *executionContext) fieldContext_User_updated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12371 fc = &graphql.FieldContext{ 12372 Object: "User", 12373 Field: field, 12374 IsMethod: false, 12375 IsResolver: false, 12376 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12377 return nil, errors.New("field of type Time does not have child fields") 12378 }, 12379 } 12380 return fc, nil 12381 } 12382 12383 func (ec *executionContext) _User_pets(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 12384 fc, err := ec.fieldContext_User_pets(ctx, field) 12385 if err != nil { 12386 return graphql.Null 12387 } 12388 ctx = graphql.WithFieldContext(ctx, fc) 12389 defer func() { 12390 if r := recover(); r != nil { 12391 ec.Error(ctx, ec.Recover(ctx, r)) 12392 ret = graphql.Null 12393 } 12394 }() 12395 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12396 ctx = rctx // use context from middleware stack in children 12397 return ec.resolvers.User().Pets(rctx, obj, fc.Args["limit"].(*int)) 12398 }) 12399 12400 if resTmp == nil { 12401 return graphql.Null 12402 } 12403 res := resTmp.([]*Pet) 12404 fc.Result = res 12405 return ec.marshalOPet2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPetᚄ(ctx, field.Selections, res) 12406 } 12407 12408 func (ec *executionContext) fieldContext_User_pets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12409 fc = &graphql.FieldContext{ 12410 Object: "User", 12411 Field: field, 12412 IsMethod: true, 12413 IsResolver: true, 12414 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12415 switch field.Name { 12416 case "id": 12417 return ec.fieldContext_Pet_id(ctx, field) 12418 case "friends": 12419 return ec.fieldContext_Pet_friends(ctx, field) 12420 } 12421 return nil, fmt.Errorf("no field named %q was found under type Pet", field.Name) 12422 }, 12423 } 12424 defer func() { 12425 if r := recover(); r != nil { 12426 err = ec.Recover(ctx, r) 12427 ec.Error(ctx, err) 12428 } 12429 }() 12430 ctx = graphql.WithFieldContext(ctx, fc) 12431 if fc.Args, err = ec.field_User_pets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 12432 ec.Error(ctx, err) 12433 return fc, err 12434 } 12435 return fc, nil 12436 } 12437 12438 func (ec *executionContext) _VOkCaseNil_value(ctx context.Context, field graphql.CollectedField, obj *VOkCaseNil) (ret graphql.Marshaler) { 12439 fc, err := ec.fieldContext_VOkCaseNil_value(ctx, field) 12440 if err != nil { 12441 return graphql.Null 12442 } 12443 ctx = graphql.WithFieldContext(ctx, fc) 12444 defer func() { 12445 if r := recover(); r != nil { 12446 ec.Error(ctx, ec.Recover(ctx, r)) 12447 ret = graphql.Null 12448 } 12449 }() 12450 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12451 ctx = rctx // use context from middleware stack in children 12452 v, ok := obj.Value() 12453 if !ok { 12454 return nil, nil 12455 } 12456 return v, nil 12457 }) 12458 12459 if resTmp == nil { 12460 return graphql.Null 12461 } 12462 res := resTmp.(string) 12463 fc.Result = res 12464 return ec.marshalOString2string(ctx, field.Selections, res) 12465 } 12466 12467 func (ec *executionContext) fieldContext_VOkCaseNil_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12468 fc = &graphql.FieldContext{ 12469 Object: "VOkCaseNil", 12470 Field: field, 12471 IsMethod: true, 12472 IsResolver: false, 12473 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12474 return nil, errors.New("field of type String does not have child fields") 12475 }, 12476 } 12477 return fc, nil 12478 } 12479 12480 func (ec *executionContext) _VOkCaseValue_value(ctx context.Context, field graphql.CollectedField, obj *VOkCaseValue) (ret graphql.Marshaler) { 12481 fc, err := ec.fieldContext_VOkCaseValue_value(ctx, field) 12482 if err != nil { 12483 return graphql.Null 12484 } 12485 ctx = graphql.WithFieldContext(ctx, fc) 12486 defer func() { 12487 if r := recover(); r != nil { 12488 ec.Error(ctx, ec.Recover(ctx, r)) 12489 ret = graphql.Null 12490 } 12491 }() 12492 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12493 ctx = rctx // use context from middleware stack in children 12494 v, ok := obj.Value() 12495 if !ok { 12496 return nil, nil 12497 } 12498 return v, nil 12499 }) 12500 12501 if resTmp == nil { 12502 return graphql.Null 12503 } 12504 res := resTmp.(string) 12505 fc.Result = res 12506 return ec.marshalOString2string(ctx, field.Selections, res) 12507 } 12508 12509 func (ec *executionContext) fieldContext_VOkCaseValue_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12510 fc = &graphql.FieldContext{ 12511 Object: "VOkCaseValue", 12512 Field: field, 12513 IsMethod: true, 12514 IsResolver: false, 12515 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12516 return nil, errors.New("field of type String does not have child fields") 12517 }, 12518 } 12519 return fc, nil 12520 } 12521 12522 func (ec *executionContext) _ValidType_differentCase(ctx context.Context, field graphql.CollectedField, obj *ValidType) (ret graphql.Marshaler) { 12523 fc, err := ec.fieldContext_ValidType_differentCase(ctx, field) 12524 if err != nil { 12525 return graphql.Null 12526 } 12527 ctx = graphql.WithFieldContext(ctx, fc) 12528 defer func() { 12529 if r := recover(); r != nil { 12530 ec.Error(ctx, ec.Recover(ctx, r)) 12531 ret = graphql.Null 12532 } 12533 }() 12534 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12535 ctx = rctx // use context from middleware stack in children 12536 return obj.DifferentCase, nil 12537 }) 12538 12539 if resTmp == nil { 12540 if !graphql.HasFieldError(ctx, fc) { 12541 ec.Errorf(ctx, "must not be null") 12542 } 12543 return graphql.Null 12544 } 12545 res := resTmp.(string) 12546 fc.Result = res 12547 return ec.marshalNString2string(ctx, field.Selections, res) 12548 } 12549 12550 func (ec *executionContext) fieldContext_ValidType_differentCase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12551 fc = &graphql.FieldContext{ 12552 Object: "ValidType", 12553 Field: field, 12554 IsMethod: false, 12555 IsResolver: false, 12556 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12557 return nil, errors.New("field of type String does not have child fields") 12558 }, 12559 } 12560 return fc, nil 12561 } 12562 12563 func (ec *executionContext) _ValidType_different_case(ctx context.Context, field graphql.CollectedField, obj *ValidType) (ret graphql.Marshaler) { 12564 fc, err := ec.fieldContext_ValidType_different_case(ctx, field) 12565 if err != nil { 12566 return graphql.Null 12567 } 12568 ctx = graphql.WithFieldContext(ctx, fc) 12569 defer func() { 12570 if r := recover(); r != nil { 12571 ec.Error(ctx, ec.Recover(ctx, r)) 12572 ret = graphql.Null 12573 } 12574 }() 12575 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12576 ctx = rctx // use context from middleware stack in children 12577 return obj.DifferentCaseOld, nil 12578 }) 12579 12580 if resTmp == nil { 12581 if !graphql.HasFieldError(ctx, fc) { 12582 ec.Errorf(ctx, "must not be null") 12583 } 12584 return graphql.Null 12585 } 12586 res := resTmp.(string) 12587 fc.Result = res 12588 return ec.marshalNString2string(ctx, field.Selections, res) 12589 } 12590 12591 func (ec *executionContext) fieldContext_ValidType_different_case(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12592 fc = &graphql.FieldContext{ 12593 Object: "ValidType", 12594 Field: field, 12595 IsMethod: false, 12596 IsResolver: false, 12597 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12598 return nil, errors.New("field of type String does not have child fields") 12599 }, 12600 } 12601 return fc, nil 12602 } 12603 12604 func (ec *executionContext) _ValidType_validInputKeywords(ctx context.Context, field graphql.CollectedField, obj *ValidType) (ret graphql.Marshaler) { 12605 fc, err := ec.fieldContext_ValidType_validInputKeywords(ctx, field) 12606 if err != nil { 12607 return graphql.Null 12608 } 12609 ctx = graphql.WithFieldContext(ctx, fc) 12610 defer func() { 12611 if r := recover(); r != nil { 12612 ec.Error(ctx, ec.Recover(ctx, r)) 12613 ret = graphql.Null 12614 } 12615 }() 12616 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12617 ctx = rctx // use context from middleware stack in children 12618 return obj.ValidInputKeywords, nil 12619 }) 12620 12621 if resTmp == nil { 12622 if !graphql.HasFieldError(ctx, fc) { 12623 ec.Errorf(ctx, "must not be null") 12624 } 12625 return graphql.Null 12626 } 12627 res := resTmp.(bool) 12628 fc.Result = res 12629 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 12630 } 12631 12632 func (ec *executionContext) fieldContext_ValidType_validInputKeywords(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12633 fc = &graphql.FieldContext{ 12634 Object: "ValidType", 12635 Field: field, 12636 IsMethod: false, 12637 IsResolver: false, 12638 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12639 return nil, errors.New("field of type Boolean does not have child fields") 12640 }, 12641 } 12642 defer func() { 12643 if r := recover(); r != nil { 12644 err = ec.Recover(ctx, r) 12645 ec.Error(ctx, err) 12646 } 12647 }() 12648 ctx = graphql.WithFieldContext(ctx, fc) 12649 if fc.Args, err = ec.field_ValidType_validInputKeywords_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 12650 ec.Error(ctx, err) 12651 return fc, err 12652 } 12653 return fc, nil 12654 } 12655 12656 func (ec *executionContext) _ValidType_validArgs(ctx context.Context, field graphql.CollectedField, obj *ValidType) (ret graphql.Marshaler) { 12657 fc, err := ec.fieldContext_ValidType_validArgs(ctx, field) 12658 if err != nil { 12659 return graphql.Null 12660 } 12661 ctx = graphql.WithFieldContext(ctx, fc) 12662 defer func() { 12663 if r := recover(); r != nil { 12664 ec.Error(ctx, ec.Recover(ctx, r)) 12665 ret = graphql.Null 12666 } 12667 }() 12668 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12669 ctx = rctx // use context from middleware stack in children 12670 return obj.ValidArgs, nil 12671 }) 12672 12673 if resTmp == nil { 12674 if !graphql.HasFieldError(ctx, fc) { 12675 ec.Errorf(ctx, "must not be null") 12676 } 12677 return graphql.Null 12678 } 12679 res := resTmp.(bool) 12680 fc.Result = res 12681 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 12682 } 12683 12684 func (ec *executionContext) fieldContext_ValidType_validArgs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12685 fc = &graphql.FieldContext{ 12686 Object: "ValidType", 12687 Field: field, 12688 IsMethod: false, 12689 IsResolver: false, 12690 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12691 return nil, errors.New("field of type Boolean does not have child fields") 12692 }, 12693 } 12694 defer func() { 12695 if r := recover(); r != nil { 12696 err = ec.Recover(ctx, r) 12697 ec.Error(ctx, err) 12698 } 12699 }() 12700 ctx = graphql.WithFieldContext(ctx, fc) 12701 if fc.Args, err = ec.field_ValidType_validArgs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 12702 ec.Error(ctx, err) 12703 return fc, err 12704 } 12705 return fc, nil 12706 } 12707 12708 func (ec *executionContext) _VariadicModel_value(ctx context.Context, field graphql.CollectedField, obj *VariadicModel) (ret graphql.Marshaler) { 12709 fc, err := ec.fieldContext_VariadicModel_value(ctx, field) 12710 if err != nil { 12711 return graphql.Null 12712 } 12713 ctx = graphql.WithFieldContext(ctx, fc) 12714 defer func() { 12715 if r := recover(); r != nil { 12716 ec.Error(ctx, ec.Recover(ctx, r)) 12717 ret = graphql.Null 12718 } 12719 }() 12720 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12721 ctx = rctx // use context from middleware stack in children 12722 return obj.Value(ctx, fc.Args["rank"].(int)) 12723 }) 12724 12725 if resTmp == nil { 12726 return graphql.Null 12727 } 12728 res := resTmp.(string) 12729 fc.Result = res 12730 return ec.marshalOString2string(ctx, field.Selections, res) 12731 } 12732 12733 func (ec *executionContext) fieldContext_VariadicModel_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12734 fc = &graphql.FieldContext{ 12735 Object: "VariadicModel", 12736 Field: field, 12737 IsMethod: true, 12738 IsResolver: false, 12739 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12740 return nil, errors.New("field of type String does not have child fields") 12741 }, 12742 } 12743 defer func() { 12744 if r := recover(); r != nil { 12745 err = ec.Recover(ctx, r) 12746 ec.Error(ctx, err) 12747 } 12748 }() 12749 ctx = graphql.WithFieldContext(ctx, fc) 12750 if fc.Args, err = ec.field_VariadicModel_value_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 12751 ec.Error(ctx, err) 12752 return fc, err 12753 } 12754 return fc, nil 12755 } 12756 12757 func (ec *executionContext) _WrappedMap_get(ctx context.Context, field graphql.CollectedField, obj WrappedMap) (ret graphql.Marshaler) { 12758 fc, err := ec.fieldContext_WrappedMap_get(ctx, field) 12759 if err != nil { 12760 return graphql.Null 12761 } 12762 ctx = graphql.WithFieldContext(ctx, fc) 12763 defer func() { 12764 if r := recover(); r != nil { 12765 ec.Error(ctx, ec.Recover(ctx, r)) 12766 ret = graphql.Null 12767 } 12768 }() 12769 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12770 ctx = rctx // use context from middleware stack in children 12771 return ec.resolvers.WrappedMap().Get(rctx, obj, fc.Args["key"].(string)) 12772 }) 12773 12774 if resTmp == nil { 12775 if !graphql.HasFieldError(ctx, fc) { 12776 ec.Errorf(ctx, "must not be null") 12777 } 12778 return graphql.Null 12779 } 12780 res := resTmp.(string) 12781 fc.Result = res 12782 return ec.marshalNString2string(ctx, field.Selections, res) 12783 } 12784 12785 func (ec *executionContext) fieldContext_WrappedMap_get(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12786 fc = &graphql.FieldContext{ 12787 Object: "WrappedMap", 12788 Field: field, 12789 IsMethod: true, 12790 IsResolver: true, 12791 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12792 return nil, errors.New("field of type String does not have child fields") 12793 }, 12794 } 12795 defer func() { 12796 if r := recover(); r != nil { 12797 err = ec.Recover(ctx, r) 12798 ec.Error(ctx, err) 12799 } 12800 }() 12801 ctx = graphql.WithFieldContext(ctx, fc) 12802 if fc.Args, err = ec.field_WrappedMap_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 12803 ec.Error(ctx, err) 12804 return fc, err 12805 } 12806 return fc, nil 12807 } 12808 12809 func (ec *executionContext) _WrappedSlice_get(ctx context.Context, field graphql.CollectedField, obj WrappedSlice) (ret graphql.Marshaler) { 12810 fc, err := ec.fieldContext_WrappedSlice_get(ctx, field) 12811 if err != nil { 12812 return graphql.Null 12813 } 12814 ctx = graphql.WithFieldContext(ctx, fc) 12815 defer func() { 12816 if r := recover(); r != nil { 12817 ec.Error(ctx, ec.Recover(ctx, r)) 12818 ret = graphql.Null 12819 } 12820 }() 12821 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12822 ctx = rctx // use context from middleware stack in children 12823 return ec.resolvers.WrappedSlice().Get(rctx, obj, fc.Args["idx"].(int)) 12824 }) 12825 12826 if resTmp == nil { 12827 if !graphql.HasFieldError(ctx, fc) { 12828 ec.Errorf(ctx, "must not be null") 12829 } 12830 return graphql.Null 12831 } 12832 res := resTmp.(string) 12833 fc.Result = res 12834 return ec.marshalNString2string(ctx, field.Selections, res) 12835 } 12836 12837 func (ec *executionContext) fieldContext_WrappedSlice_get(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12838 fc = &graphql.FieldContext{ 12839 Object: "WrappedSlice", 12840 Field: field, 12841 IsMethod: true, 12842 IsResolver: true, 12843 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12844 return nil, errors.New("field of type String does not have child fields") 12845 }, 12846 } 12847 defer func() { 12848 if r := recover(); r != nil { 12849 err = ec.Recover(ctx, r) 12850 ec.Error(ctx, err) 12851 } 12852 }() 12853 ctx = graphql.WithFieldContext(ctx, fc) 12854 if fc.Args, err = ec.field_WrappedSlice_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 12855 ec.Error(ctx, err) 12856 return fc, err 12857 } 12858 return fc, nil 12859 } 12860 12861 func (ec *executionContext) _WrappedStruct_name(ctx context.Context, field graphql.CollectedField, obj *WrappedStruct) (ret graphql.Marshaler) { 12862 fc, err := ec.fieldContext_WrappedStruct_name(ctx, field) 12863 if err != nil { 12864 return graphql.Null 12865 } 12866 ctx = graphql.WithFieldContext(ctx, fc) 12867 defer func() { 12868 if r := recover(); r != nil { 12869 ec.Error(ctx, ec.Recover(ctx, r)) 12870 ret = graphql.Null 12871 } 12872 }() 12873 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12874 ctx = rctx // use context from middleware stack in children 12875 return obj.Name, nil 12876 }) 12877 12878 if resTmp == nil { 12879 if !graphql.HasFieldError(ctx, fc) { 12880 ec.Errorf(ctx, "must not be null") 12881 } 12882 return graphql.Null 12883 } 12884 res := resTmp.(otherpkg.Scalar) 12885 fc.Result = res 12886 return ec.marshalNWrappedScalar2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx, field.Selections, res) 12887 } 12888 12889 func (ec *executionContext) fieldContext_WrappedStruct_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12890 fc = &graphql.FieldContext{ 12891 Object: "WrappedStruct", 12892 Field: field, 12893 IsMethod: false, 12894 IsResolver: false, 12895 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12896 return nil, errors.New("field of type WrappedScalar does not have child fields") 12897 }, 12898 } 12899 return fc, nil 12900 } 12901 12902 func (ec *executionContext) _WrappedStruct_desc(ctx context.Context, field graphql.CollectedField, obj *WrappedStruct) (ret graphql.Marshaler) { 12903 fc, err := ec.fieldContext_WrappedStruct_desc(ctx, field) 12904 if err != nil { 12905 return graphql.Null 12906 } 12907 ctx = graphql.WithFieldContext(ctx, fc) 12908 defer func() { 12909 if r := recover(); r != nil { 12910 ec.Error(ctx, ec.Recover(ctx, r)) 12911 ret = graphql.Null 12912 } 12913 }() 12914 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12915 ctx = rctx // use context from middleware stack in children 12916 return obj.Desc, nil 12917 }) 12918 12919 if resTmp == nil { 12920 return graphql.Null 12921 } 12922 res := resTmp.(*otherpkg.Scalar) 12923 fc.Result = res 12924 return ec.marshalOWrappedScalar2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx, field.Selections, res) 12925 } 12926 12927 func (ec *executionContext) fieldContext_WrappedStruct_desc(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12928 fc = &graphql.FieldContext{ 12929 Object: "WrappedStruct", 12930 Field: field, 12931 IsMethod: false, 12932 IsResolver: false, 12933 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12934 return nil, errors.New("field of type WrappedScalar does not have child fields") 12935 }, 12936 } 12937 return fc, nil 12938 } 12939 12940 func (ec *executionContext) _XXIt_id(ctx context.Context, field graphql.CollectedField, obj *XXIt) (ret graphql.Marshaler) { 12941 fc, err := ec.fieldContext_XXIt_id(ctx, field) 12942 if err != nil { 12943 return graphql.Null 12944 } 12945 ctx = graphql.WithFieldContext(ctx, fc) 12946 defer func() { 12947 if r := recover(); r != nil { 12948 ec.Error(ctx, ec.Recover(ctx, r)) 12949 ret = graphql.Null 12950 } 12951 }() 12952 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12953 ctx = rctx // use context from middleware stack in children 12954 return obj.ID, nil 12955 }) 12956 12957 if resTmp == nil { 12958 if !graphql.HasFieldError(ctx, fc) { 12959 ec.Errorf(ctx, "must not be null") 12960 } 12961 return graphql.Null 12962 } 12963 res := resTmp.(string) 12964 fc.Result = res 12965 return ec.marshalNID2string(ctx, field.Selections, res) 12966 } 12967 12968 func (ec *executionContext) fieldContext_XXIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12969 fc = &graphql.FieldContext{ 12970 Object: "XXIt", 12971 Field: field, 12972 IsMethod: false, 12973 IsResolver: false, 12974 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12975 return nil, errors.New("field of type ID does not have child fields") 12976 }, 12977 } 12978 return fc, nil 12979 } 12980 12981 func (ec *executionContext) _XxIt_id(ctx context.Context, field graphql.CollectedField, obj *XxIt) (ret graphql.Marshaler) { 12982 fc, err := ec.fieldContext_XxIt_id(ctx, field) 12983 if err != nil { 12984 return graphql.Null 12985 } 12986 ctx = graphql.WithFieldContext(ctx, fc) 12987 defer func() { 12988 if r := recover(); r != nil { 12989 ec.Error(ctx, ec.Recover(ctx, r)) 12990 ret = graphql.Null 12991 } 12992 }() 12993 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12994 ctx = rctx // use context from middleware stack in children 12995 return obj.ID, nil 12996 }) 12997 12998 if resTmp == nil { 12999 if !graphql.HasFieldError(ctx, fc) { 13000 ec.Errorf(ctx, "must not be null") 13001 } 13002 return graphql.Null 13003 } 13004 res := resTmp.(string) 13005 fc.Result = res 13006 return ec.marshalNID2string(ctx, field.Selections, res) 13007 } 13008 13009 func (ec *executionContext) fieldContext_XxIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13010 fc = &graphql.FieldContext{ 13011 Object: "XxIt", 13012 Field: field, 13013 IsMethod: false, 13014 IsResolver: false, 13015 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13016 return nil, errors.New("field of type ID does not have child fields") 13017 }, 13018 } 13019 return fc, nil 13020 } 13021 13022 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 13023 fc, err := ec.fieldContext___Directive_name(ctx, field) 13024 if err != nil { 13025 return graphql.Null 13026 } 13027 ctx = graphql.WithFieldContext(ctx, fc) 13028 defer func() { 13029 if r := recover(); r != nil { 13030 ec.Error(ctx, ec.Recover(ctx, r)) 13031 ret = graphql.Null 13032 } 13033 }() 13034 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13035 ctx = rctx // use context from middleware stack in children 13036 return obj.Name, nil 13037 }) 13038 13039 if resTmp == nil { 13040 if !graphql.HasFieldError(ctx, fc) { 13041 ec.Errorf(ctx, "must not be null") 13042 } 13043 return graphql.Null 13044 } 13045 res := resTmp.(string) 13046 fc.Result = res 13047 return ec.marshalNString2string(ctx, field.Selections, res) 13048 } 13049 13050 func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13051 fc = &graphql.FieldContext{ 13052 Object: "__Directive", 13053 Field: field, 13054 IsMethod: false, 13055 IsResolver: false, 13056 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13057 return nil, errors.New("field of type String does not have child fields") 13058 }, 13059 } 13060 return fc, nil 13061 } 13062 13063 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 13064 fc, err := ec.fieldContext___Directive_description(ctx, field) 13065 if err != nil { 13066 return graphql.Null 13067 } 13068 ctx = graphql.WithFieldContext(ctx, fc) 13069 defer func() { 13070 if r := recover(); r != nil { 13071 ec.Error(ctx, ec.Recover(ctx, r)) 13072 ret = graphql.Null 13073 } 13074 }() 13075 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13076 ctx = rctx // use context from middleware stack in children 13077 return obj.Description(), nil 13078 }) 13079 13080 if resTmp == nil { 13081 return graphql.Null 13082 } 13083 res := resTmp.(*string) 13084 fc.Result = res 13085 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13086 } 13087 13088 func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13089 fc = &graphql.FieldContext{ 13090 Object: "__Directive", 13091 Field: field, 13092 IsMethod: true, 13093 IsResolver: false, 13094 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13095 return nil, errors.New("field of type String does not have child fields") 13096 }, 13097 } 13098 return fc, nil 13099 } 13100 13101 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 13102 fc, err := ec.fieldContext___Directive_locations(ctx, field) 13103 if err != nil { 13104 return graphql.Null 13105 } 13106 ctx = graphql.WithFieldContext(ctx, fc) 13107 defer func() { 13108 if r := recover(); r != nil { 13109 ec.Error(ctx, ec.Recover(ctx, r)) 13110 ret = graphql.Null 13111 } 13112 }() 13113 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13114 ctx = rctx // use context from middleware stack in children 13115 return obj.Locations, nil 13116 }) 13117 13118 if resTmp == nil { 13119 if !graphql.HasFieldError(ctx, fc) { 13120 ec.Errorf(ctx, "must not be null") 13121 } 13122 return graphql.Null 13123 } 13124 res := resTmp.([]string) 13125 fc.Result = res 13126 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) 13127 } 13128 13129 func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13130 fc = &graphql.FieldContext{ 13131 Object: "__Directive", 13132 Field: field, 13133 IsMethod: false, 13134 IsResolver: false, 13135 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13136 return nil, errors.New("field of type __DirectiveLocation does not have child fields") 13137 }, 13138 } 13139 return fc, nil 13140 } 13141 13142 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 13143 fc, err := ec.fieldContext___Directive_args(ctx, field) 13144 if err != nil { 13145 return graphql.Null 13146 } 13147 ctx = graphql.WithFieldContext(ctx, fc) 13148 defer func() { 13149 if r := recover(); r != nil { 13150 ec.Error(ctx, ec.Recover(ctx, r)) 13151 ret = graphql.Null 13152 } 13153 }() 13154 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13155 ctx = rctx // use context from middleware stack in children 13156 return obj.Args, nil 13157 }) 13158 13159 if resTmp == nil { 13160 if !graphql.HasFieldError(ctx, fc) { 13161 ec.Errorf(ctx, "must not be null") 13162 } 13163 return graphql.Null 13164 } 13165 res := resTmp.([]introspection.InputValue) 13166 fc.Result = res 13167 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 13168 } 13169 13170 func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13171 fc = &graphql.FieldContext{ 13172 Object: "__Directive", 13173 Field: field, 13174 IsMethod: false, 13175 IsResolver: false, 13176 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13177 switch field.Name { 13178 case "name": 13179 return ec.fieldContext___InputValue_name(ctx, field) 13180 case "description": 13181 return ec.fieldContext___InputValue_description(ctx, field) 13182 case "type": 13183 return ec.fieldContext___InputValue_type(ctx, field) 13184 case "defaultValue": 13185 return ec.fieldContext___InputValue_defaultValue(ctx, field) 13186 } 13187 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 13188 }, 13189 } 13190 return fc, nil 13191 } 13192 13193 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 13194 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) 13195 if err != nil { 13196 return graphql.Null 13197 } 13198 ctx = graphql.WithFieldContext(ctx, fc) 13199 defer func() { 13200 if r := recover(); r != nil { 13201 ec.Error(ctx, ec.Recover(ctx, r)) 13202 ret = graphql.Null 13203 } 13204 }() 13205 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13206 ctx = rctx // use context from middleware stack in children 13207 return obj.IsRepeatable, nil 13208 }) 13209 13210 if resTmp == nil { 13211 if !graphql.HasFieldError(ctx, fc) { 13212 ec.Errorf(ctx, "must not be null") 13213 } 13214 return graphql.Null 13215 } 13216 res := resTmp.(bool) 13217 fc.Result = res 13218 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 13219 } 13220 13221 func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13222 fc = &graphql.FieldContext{ 13223 Object: "__Directive", 13224 Field: field, 13225 IsMethod: false, 13226 IsResolver: false, 13227 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13228 return nil, errors.New("field of type Boolean does not have child fields") 13229 }, 13230 } 13231 return fc, nil 13232 } 13233 13234 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 13235 fc, err := ec.fieldContext___EnumValue_name(ctx, field) 13236 if err != nil { 13237 return graphql.Null 13238 } 13239 ctx = graphql.WithFieldContext(ctx, fc) 13240 defer func() { 13241 if r := recover(); r != nil { 13242 ec.Error(ctx, ec.Recover(ctx, r)) 13243 ret = graphql.Null 13244 } 13245 }() 13246 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13247 ctx = rctx // use context from middleware stack in children 13248 return obj.Name, nil 13249 }) 13250 13251 if resTmp == nil { 13252 if !graphql.HasFieldError(ctx, fc) { 13253 ec.Errorf(ctx, "must not be null") 13254 } 13255 return graphql.Null 13256 } 13257 res := resTmp.(string) 13258 fc.Result = res 13259 return ec.marshalNString2string(ctx, field.Selections, res) 13260 } 13261 13262 func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13263 fc = &graphql.FieldContext{ 13264 Object: "__EnumValue", 13265 Field: field, 13266 IsMethod: false, 13267 IsResolver: false, 13268 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13269 return nil, errors.New("field of type String does not have child fields") 13270 }, 13271 } 13272 return fc, nil 13273 } 13274 13275 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 13276 fc, err := ec.fieldContext___EnumValue_description(ctx, field) 13277 if err != nil { 13278 return graphql.Null 13279 } 13280 ctx = graphql.WithFieldContext(ctx, fc) 13281 defer func() { 13282 if r := recover(); r != nil { 13283 ec.Error(ctx, ec.Recover(ctx, r)) 13284 ret = graphql.Null 13285 } 13286 }() 13287 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13288 ctx = rctx // use context from middleware stack in children 13289 return obj.Description(), nil 13290 }) 13291 13292 if resTmp == nil { 13293 return graphql.Null 13294 } 13295 res := resTmp.(*string) 13296 fc.Result = res 13297 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13298 } 13299 13300 func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13301 fc = &graphql.FieldContext{ 13302 Object: "__EnumValue", 13303 Field: field, 13304 IsMethod: true, 13305 IsResolver: false, 13306 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13307 return nil, errors.New("field of type String does not have child fields") 13308 }, 13309 } 13310 return fc, nil 13311 } 13312 13313 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 13314 fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) 13315 if err != nil { 13316 return graphql.Null 13317 } 13318 ctx = graphql.WithFieldContext(ctx, fc) 13319 defer func() { 13320 if r := recover(); r != nil { 13321 ec.Error(ctx, ec.Recover(ctx, r)) 13322 ret = graphql.Null 13323 } 13324 }() 13325 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13326 ctx = rctx // use context from middleware stack in children 13327 return obj.IsDeprecated(), nil 13328 }) 13329 13330 if resTmp == nil { 13331 if !graphql.HasFieldError(ctx, fc) { 13332 ec.Errorf(ctx, "must not be null") 13333 } 13334 return graphql.Null 13335 } 13336 res := resTmp.(bool) 13337 fc.Result = res 13338 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 13339 } 13340 13341 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13342 fc = &graphql.FieldContext{ 13343 Object: "__EnumValue", 13344 Field: field, 13345 IsMethod: true, 13346 IsResolver: false, 13347 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13348 return nil, errors.New("field of type Boolean does not have child fields") 13349 }, 13350 } 13351 return fc, nil 13352 } 13353 13354 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 13355 fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) 13356 if err != nil { 13357 return graphql.Null 13358 } 13359 ctx = graphql.WithFieldContext(ctx, fc) 13360 defer func() { 13361 if r := recover(); r != nil { 13362 ec.Error(ctx, ec.Recover(ctx, r)) 13363 ret = graphql.Null 13364 } 13365 }() 13366 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13367 ctx = rctx // use context from middleware stack in children 13368 return obj.DeprecationReason(), nil 13369 }) 13370 13371 if resTmp == nil { 13372 return graphql.Null 13373 } 13374 res := resTmp.(*string) 13375 fc.Result = res 13376 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13377 } 13378 13379 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13380 fc = &graphql.FieldContext{ 13381 Object: "__EnumValue", 13382 Field: field, 13383 IsMethod: true, 13384 IsResolver: false, 13385 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13386 return nil, errors.New("field of type String does not have child fields") 13387 }, 13388 } 13389 return fc, nil 13390 } 13391 13392 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 13393 fc, err := ec.fieldContext___Field_name(ctx, field) 13394 if err != nil { 13395 return graphql.Null 13396 } 13397 ctx = graphql.WithFieldContext(ctx, fc) 13398 defer func() { 13399 if r := recover(); r != nil { 13400 ec.Error(ctx, ec.Recover(ctx, r)) 13401 ret = graphql.Null 13402 } 13403 }() 13404 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13405 ctx = rctx // use context from middleware stack in children 13406 return obj.Name, nil 13407 }) 13408 13409 if resTmp == nil { 13410 if !graphql.HasFieldError(ctx, fc) { 13411 ec.Errorf(ctx, "must not be null") 13412 } 13413 return graphql.Null 13414 } 13415 res := resTmp.(string) 13416 fc.Result = res 13417 return ec.marshalNString2string(ctx, field.Selections, res) 13418 } 13419 13420 func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13421 fc = &graphql.FieldContext{ 13422 Object: "__Field", 13423 Field: field, 13424 IsMethod: false, 13425 IsResolver: false, 13426 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13427 return nil, errors.New("field of type String does not have child fields") 13428 }, 13429 } 13430 return fc, nil 13431 } 13432 13433 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 13434 fc, err := ec.fieldContext___Field_description(ctx, field) 13435 if err != nil { 13436 return graphql.Null 13437 } 13438 ctx = graphql.WithFieldContext(ctx, fc) 13439 defer func() { 13440 if r := recover(); r != nil { 13441 ec.Error(ctx, ec.Recover(ctx, r)) 13442 ret = graphql.Null 13443 } 13444 }() 13445 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13446 ctx = rctx // use context from middleware stack in children 13447 return obj.Description(), nil 13448 }) 13449 13450 if resTmp == nil { 13451 return graphql.Null 13452 } 13453 res := resTmp.(*string) 13454 fc.Result = res 13455 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13456 } 13457 13458 func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13459 fc = &graphql.FieldContext{ 13460 Object: "__Field", 13461 Field: field, 13462 IsMethod: true, 13463 IsResolver: false, 13464 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13465 return nil, errors.New("field of type String does not have child fields") 13466 }, 13467 } 13468 return fc, nil 13469 } 13470 13471 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 13472 fc, err := ec.fieldContext___Field_args(ctx, field) 13473 if err != nil { 13474 return graphql.Null 13475 } 13476 ctx = graphql.WithFieldContext(ctx, fc) 13477 defer func() { 13478 if r := recover(); r != nil { 13479 ec.Error(ctx, ec.Recover(ctx, r)) 13480 ret = graphql.Null 13481 } 13482 }() 13483 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13484 ctx = rctx // use context from middleware stack in children 13485 return obj.Args, nil 13486 }) 13487 13488 if resTmp == nil { 13489 if !graphql.HasFieldError(ctx, fc) { 13490 ec.Errorf(ctx, "must not be null") 13491 } 13492 return graphql.Null 13493 } 13494 res := resTmp.([]introspection.InputValue) 13495 fc.Result = res 13496 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 13497 } 13498 13499 func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13500 fc = &graphql.FieldContext{ 13501 Object: "__Field", 13502 Field: field, 13503 IsMethod: false, 13504 IsResolver: false, 13505 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13506 switch field.Name { 13507 case "name": 13508 return ec.fieldContext___InputValue_name(ctx, field) 13509 case "description": 13510 return ec.fieldContext___InputValue_description(ctx, field) 13511 case "type": 13512 return ec.fieldContext___InputValue_type(ctx, field) 13513 case "defaultValue": 13514 return ec.fieldContext___InputValue_defaultValue(ctx, field) 13515 } 13516 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 13517 }, 13518 } 13519 return fc, nil 13520 } 13521 13522 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 13523 fc, err := ec.fieldContext___Field_type(ctx, field) 13524 if err != nil { 13525 return graphql.Null 13526 } 13527 ctx = graphql.WithFieldContext(ctx, fc) 13528 defer func() { 13529 if r := recover(); r != nil { 13530 ec.Error(ctx, ec.Recover(ctx, r)) 13531 ret = graphql.Null 13532 } 13533 }() 13534 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13535 ctx = rctx // use context from middleware stack in children 13536 return obj.Type, nil 13537 }) 13538 13539 if resTmp == nil { 13540 if !graphql.HasFieldError(ctx, fc) { 13541 ec.Errorf(ctx, "must not be null") 13542 } 13543 return graphql.Null 13544 } 13545 res := resTmp.(*introspection.Type) 13546 fc.Result = res 13547 return ec.marshalN__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 13548 } 13549 13550 func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13551 fc = &graphql.FieldContext{ 13552 Object: "__Field", 13553 Field: field, 13554 IsMethod: false, 13555 IsResolver: false, 13556 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13557 switch field.Name { 13558 case "kind": 13559 return ec.fieldContext___Type_kind(ctx, field) 13560 case "name": 13561 return ec.fieldContext___Type_name(ctx, field) 13562 case "description": 13563 return ec.fieldContext___Type_description(ctx, field) 13564 case "fields": 13565 return ec.fieldContext___Type_fields(ctx, field) 13566 case "interfaces": 13567 return ec.fieldContext___Type_interfaces(ctx, field) 13568 case "possibleTypes": 13569 return ec.fieldContext___Type_possibleTypes(ctx, field) 13570 case "enumValues": 13571 return ec.fieldContext___Type_enumValues(ctx, field) 13572 case "inputFields": 13573 return ec.fieldContext___Type_inputFields(ctx, field) 13574 case "ofType": 13575 return ec.fieldContext___Type_ofType(ctx, field) 13576 case "specifiedByURL": 13577 return ec.fieldContext___Type_specifiedByURL(ctx, field) 13578 } 13579 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 13580 }, 13581 } 13582 return fc, nil 13583 } 13584 13585 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 13586 fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) 13587 if err != nil { 13588 return graphql.Null 13589 } 13590 ctx = graphql.WithFieldContext(ctx, fc) 13591 defer func() { 13592 if r := recover(); r != nil { 13593 ec.Error(ctx, ec.Recover(ctx, r)) 13594 ret = graphql.Null 13595 } 13596 }() 13597 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13598 ctx = rctx // use context from middleware stack in children 13599 return obj.IsDeprecated(), nil 13600 }) 13601 13602 if resTmp == nil { 13603 if !graphql.HasFieldError(ctx, fc) { 13604 ec.Errorf(ctx, "must not be null") 13605 } 13606 return graphql.Null 13607 } 13608 res := resTmp.(bool) 13609 fc.Result = res 13610 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 13611 } 13612 13613 func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13614 fc = &graphql.FieldContext{ 13615 Object: "__Field", 13616 Field: field, 13617 IsMethod: true, 13618 IsResolver: false, 13619 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13620 return nil, errors.New("field of type Boolean does not have child fields") 13621 }, 13622 } 13623 return fc, nil 13624 } 13625 13626 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 13627 fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) 13628 if err != nil { 13629 return graphql.Null 13630 } 13631 ctx = graphql.WithFieldContext(ctx, fc) 13632 defer func() { 13633 if r := recover(); r != nil { 13634 ec.Error(ctx, ec.Recover(ctx, r)) 13635 ret = graphql.Null 13636 } 13637 }() 13638 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13639 ctx = rctx // use context from middleware stack in children 13640 return obj.DeprecationReason(), nil 13641 }) 13642 13643 if resTmp == nil { 13644 return graphql.Null 13645 } 13646 res := resTmp.(*string) 13647 fc.Result = res 13648 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13649 } 13650 13651 func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13652 fc = &graphql.FieldContext{ 13653 Object: "__Field", 13654 Field: field, 13655 IsMethod: true, 13656 IsResolver: false, 13657 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13658 return nil, errors.New("field of type String does not have child fields") 13659 }, 13660 } 13661 return fc, nil 13662 } 13663 13664 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 13665 fc, err := ec.fieldContext___InputValue_name(ctx, field) 13666 if err != nil { 13667 return graphql.Null 13668 } 13669 ctx = graphql.WithFieldContext(ctx, fc) 13670 defer func() { 13671 if r := recover(); r != nil { 13672 ec.Error(ctx, ec.Recover(ctx, r)) 13673 ret = graphql.Null 13674 } 13675 }() 13676 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13677 ctx = rctx // use context from middleware stack in children 13678 return obj.Name, nil 13679 }) 13680 13681 if resTmp == nil { 13682 if !graphql.HasFieldError(ctx, fc) { 13683 ec.Errorf(ctx, "must not be null") 13684 } 13685 return graphql.Null 13686 } 13687 res := resTmp.(string) 13688 fc.Result = res 13689 return ec.marshalNString2string(ctx, field.Selections, res) 13690 } 13691 13692 func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13693 fc = &graphql.FieldContext{ 13694 Object: "__InputValue", 13695 Field: field, 13696 IsMethod: false, 13697 IsResolver: false, 13698 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13699 return nil, errors.New("field of type String does not have child fields") 13700 }, 13701 } 13702 return fc, nil 13703 } 13704 13705 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 13706 fc, err := ec.fieldContext___InputValue_description(ctx, field) 13707 if err != nil { 13708 return graphql.Null 13709 } 13710 ctx = graphql.WithFieldContext(ctx, fc) 13711 defer func() { 13712 if r := recover(); r != nil { 13713 ec.Error(ctx, ec.Recover(ctx, r)) 13714 ret = graphql.Null 13715 } 13716 }() 13717 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13718 ctx = rctx // use context from middleware stack in children 13719 return obj.Description(), nil 13720 }) 13721 13722 if resTmp == nil { 13723 return graphql.Null 13724 } 13725 res := resTmp.(*string) 13726 fc.Result = res 13727 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13728 } 13729 13730 func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13731 fc = &graphql.FieldContext{ 13732 Object: "__InputValue", 13733 Field: field, 13734 IsMethod: true, 13735 IsResolver: false, 13736 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13737 return nil, errors.New("field of type String does not have child fields") 13738 }, 13739 } 13740 return fc, nil 13741 } 13742 13743 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 13744 fc, err := ec.fieldContext___InputValue_type(ctx, field) 13745 if err != nil { 13746 return graphql.Null 13747 } 13748 ctx = graphql.WithFieldContext(ctx, fc) 13749 defer func() { 13750 if r := recover(); r != nil { 13751 ec.Error(ctx, ec.Recover(ctx, r)) 13752 ret = graphql.Null 13753 } 13754 }() 13755 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13756 ctx = rctx // use context from middleware stack in children 13757 return obj.Type, nil 13758 }) 13759 13760 if resTmp == nil { 13761 if !graphql.HasFieldError(ctx, fc) { 13762 ec.Errorf(ctx, "must not be null") 13763 } 13764 return graphql.Null 13765 } 13766 res := resTmp.(*introspection.Type) 13767 fc.Result = res 13768 return ec.marshalN__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 13769 } 13770 13771 func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13772 fc = &graphql.FieldContext{ 13773 Object: "__InputValue", 13774 Field: field, 13775 IsMethod: false, 13776 IsResolver: false, 13777 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13778 switch field.Name { 13779 case "kind": 13780 return ec.fieldContext___Type_kind(ctx, field) 13781 case "name": 13782 return ec.fieldContext___Type_name(ctx, field) 13783 case "description": 13784 return ec.fieldContext___Type_description(ctx, field) 13785 case "fields": 13786 return ec.fieldContext___Type_fields(ctx, field) 13787 case "interfaces": 13788 return ec.fieldContext___Type_interfaces(ctx, field) 13789 case "possibleTypes": 13790 return ec.fieldContext___Type_possibleTypes(ctx, field) 13791 case "enumValues": 13792 return ec.fieldContext___Type_enumValues(ctx, field) 13793 case "inputFields": 13794 return ec.fieldContext___Type_inputFields(ctx, field) 13795 case "ofType": 13796 return ec.fieldContext___Type_ofType(ctx, field) 13797 case "specifiedByURL": 13798 return ec.fieldContext___Type_specifiedByURL(ctx, field) 13799 } 13800 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 13801 }, 13802 } 13803 return fc, nil 13804 } 13805 13806 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 13807 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) 13808 if err != nil { 13809 return graphql.Null 13810 } 13811 ctx = graphql.WithFieldContext(ctx, fc) 13812 defer func() { 13813 if r := recover(); r != nil { 13814 ec.Error(ctx, ec.Recover(ctx, r)) 13815 ret = graphql.Null 13816 } 13817 }() 13818 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13819 ctx = rctx // use context from middleware stack in children 13820 return obj.DefaultValue, nil 13821 }) 13822 13823 if resTmp == nil { 13824 return graphql.Null 13825 } 13826 res := resTmp.(*string) 13827 fc.Result = res 13828 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13829 } 13830 13831 func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13832 fc = &graphql.FieldContext{ 13833 Object: "__InputValue", 13834 Field: field, 13835 IsMethod: false, 13836 IsResolver: false, 13837 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13838 return nil, errors.New("field of type String does not have child fields") 13839 }, 13840 } 13841 return fc, nil 13842 } 13843 13844 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 13845 fc, err := ec.fieldContext___Schema_description(ctx, field) 13846 if err != nil { 13847 return graphql.Null 13848 } 13849 ctx = graphql.WithFieldContext(ctx, fc) 13850 defer func() { 13851 if r := recover(); r != nil { 13852 ec.Error(ctx, ec.Recover(ctx, r)) 13853 ret = graphql.Null 13854 } 13855 }() 13856 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13857 ctx = rctx // use context from middleware stack in children 13858 return obj.Description(), nil 13859 }) 13860 13861 if resTmp == nil { 13862 return graphql.Null 13863 } 13864 res := resTmp.(*string) 13865 fc.Result = res 13866 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13867 } 13868 13869 func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13870 fc = &graphql.FieldContext{ 13871 Object: "__Schema", 13872 Field: field, 13873 IsMethod: true, 13874 IsResolver: false, 13875 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13876 return nil, errors.New("field of type String does not have child fields") 13877 }, 13878 } 13879 return fc, nil 13880 } 13881 13882 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 13883 fc, err := ec.fieldContext___Schema_types(ctx, field) 13884 if err != nil { 13885 return graphql.Null 13886 } 13887 ctx = graphql.WithFieldContext(ctx, fc) 13888 defer func() { 13889 if r := recover(); r != nil { 13890 ec.Error(ctx, ec.Recover(ctx, r)) 13891 ret = graphql.Null 13892 } 13893 }() 13894 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13895 ctx = rctx // use context from middleware stack in children 13896 return obj.Types(), nil 13897 }) 13898 13899 if resTmp == nil { 13900 if !graphql.HasFieldError(ctx, fc) { 13901 ec.Errorf(ctx, "must not be null") 13902 } 13903 return graphql.Null 13904 } 13905 res := resTmp.([]introspection.Type) 13906 fc.Result = res 13907 return ec.marshalN__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 13908 } 13909 13910 func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13911 fc = &graphql.FieldContext{ 13912 Object: "__Schema", 13913 Field: field, 13914 IsMethod: true, 13915 IsResolver: false, 13916 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13917 switch field.Name { 13918 case "kind": 13919 return ec.fieldContext___Type_kind(ctx, field) 13920 case "name": 13921 return ec.fieldContext___Type_name(ctx, field) 13922 case "description": 13923 return ec.fieldContext___Type_description(ctx, field) 13924 case "fields": 13925 return ec.fieldContext___Type_fields(ctx, field) 13926 case "interfaces": 13927 return ec.fieldContext___Type_interfaces(ctx, field) 13928 case "possibleTypes": 13929 return ec.fieldContext___Type_possibleTypes(ctx, field) 13930 case "enumValues": 13931 return ec.fieldContext___Type_enumValues(ctx, field) 13932 case "inputFields": 13933 return ec.fieldContext___Type_inputFields(ctx, field) 13934 case "ofType": 13935 return ec.fieldContext___Type_ofType(ctx, field) 13936 case "specifiedByURL": 13937 return ec.fieldContext___Type_specifiedByURL(ctx, field) 13938 } 13939 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 13940 }, 13941 } 13942 return fc, nil 13943 } 13944 13945 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 13946 fc, err := ec.fieldContext___Schema_queryType(ctx, field) 13947 if err != nil { 13948 return graphql.Null 13949 } 13950 ctx = graphql.WithFieldContext(ctx, fc) 13951 defer func() { 13952 if r := recover(); r != nil { 13953 ec.Error(ctx, ec.Recover(ctx, r)) 13954 ret = graphql.Null 13955 } 13956 }() 13957 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13958 ctx = rctx // use context from middleware stack in children 13959 return obj.QueryType(), nil 13960 }) 13961 13962 if resTmp == nil { 13963 if !graphql.HasFieldError(ctx, fc) { 13964 ec.Errorf(ctx, "must not be null") 13965 } 13966 return graphql.Null 13967 } 13968 res := resTmp.(*introspection.Type) 13969 fc.Result = res 13970 return ec.marshalN__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 13971 } 13972 13973 func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13974 fc = &graphql.FieldContext{ 13975 Object: "__Schema", 13976 Field: field, 13977 IsMethod: true, 13978 IsResolver: false, 13979 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13980 switch field.Name { 13981 case "kind": 13982 return ec.fieldContext___Type_kind(ctx, field) 13983 case "name": 13984 return ec.fieldContext___Type_name(ctx, field) 13985 case "description": 13986 return ec.fieldContext___Type_description(ctx, field) 13987 case "fields": 13988 return ec.fieldContext___Type_fields(ctx, field) 13989 case "interfaces": 13990 return ec.fieldContext___Type_interfaces(ctx, field) 13991 case "possibleTypes": 13992 return ec.fieldContext___Type_possibleTypes(ctx, field) 13993 case "enumValues": 13994 return ec.fieldContext___Type_enumValues(ctx, field) 13995 case "inputFields": 13996 return ec.fieldContext___Type_inputFields(ctx, field) 13997 case "ofType": 13998 return ec.fieldContext___Type_ofType(ctx, field) 13999 case "specifiedByURL": 14000 return ec.fieldContext___Type_specifiedByURL(ctx, field) 14001 } 14002 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 14003 }, 14004 } 14005 return fc, nil 14006 } 14007 14008 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 14009 fc, err := ec.fieldContext___Schema_mutationType(ctx, field) 14010 if err != nil { 14011 return graphql.Null 14012 } 14013 ctx = graphql.WithFieldContext(ctx, fc) 14014 defer func() { 14015 if r := recover(); r != nil { 14016 ec.Error(ctx, ec.Recover(ctx, r)) 14017 ret = graphql.Null 14018 } 14019 }() 14020 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14021 ctx = rctx // use context from middleware stack in children 14022 return obj.MutationType(), nil 14023 }) 14024 14025 if resTmp == nil { 14026 return graphql.Null 14027 } 14028 res := resTmp.(*introspection.Type) 14029 fc.Result = res 14030 return ec.marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 14031 } 14032 14033 func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14034 fc = &graphql.FieldContext{ 14035 Object: "__Schema", 14036 Field: field, 14037 IsMethod: true, 14038 IsResolver: false, 14039 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14040 switch field.Name { 14041 case "kind": 14042 return ec.fieldContext___Type_kind(ctx, field) 14043 case "name": 14044 return ec.fieldContext___Type_name(ctx, field) 14045 case "description": 14046 return ec.fieldContext___Type_description(ctx, field) 14047 case "fields": 14048 return ec.fieldContext___Type_fields(ctx, field) 14049 case "interfaces": 14050 return ec.fieldContext___Type_interfaces(ctx, field) 14051 case "possibleTypes": 14052 return ec.fieldContext___Type_possibleTypes(ctx, field) 14053 case "enumValues": 14054 return ec.fieldContext___Type_enumValues(ctx, field) 14055 case "inputFields": 14056 return ec.fieldContext___Type_inputFields(ctx, field) 14057 case "ofType": 14058 return ec.fieldContext___Type_ofType(ctx, field) 14059 case "specifiedByURL": 14060 return ec.fieldContext___Type_specifiedByURL(ctx, field) 14061 } 14062 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 14063 }, 14064 } 14065 return fc, nil 14066 } 14067 14068 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 14069 fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) 14070 if err != nil { 14071 return graphql.Null 14072 } 14073 ctx = graphql.WithFieldContext(ctx, fc) 14074 defer func() { 14075 if r := recover(); r != nil { 14076 ec.Error(ctx, ec.Recover(ctx, r)) 14077 ret = graphql.Null 14078 } 14079 }() 14080 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14081 ctx = rctx // use context from middleware stack in children 14082 return obj.SubscriptionType(), nil 14083 }) 14084 14085 if resTmp == nil { 14086 return graphql.Null 14087 } 14088 res := resTmp.(*introspection.Type) 14089 fc.Result = res 14090 return ec.marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 14091 } 14092 14093 func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14094 fc = &graphql.FieldContext{ 14095 Object: "__Schema", 14096 Field: field, 14097 IsMethod: true, 14098 IsResolver: false, 14099 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14100 switch field.Name { 14101 case "kind": 14102 return ec.fieldContext___Type_kind(ctx, field) 14103 case "name": 14104 return ec.fieldContext___Type_name(ctx, field) 14105 case "description": 14106 return ec.fieldContext___Type_description(ctx, field) 14107 case "fields": 14108 return ec.fieldContext___Type_fields(ctx, field) 14109 case "interfaces": 14110 return ec.fieldContext___Type_interfaces(ctx, field) 14111 case "possibleTypes": 14112 return ec.fieldContext___Type_possibleTypes(ctx, field) 14113 case "enumValues": 14114 return ec.fieldContext___Type_enumValues(ctx, field) 14115 case "inputFields": 14116 return ec.fieldContext___Type_inputFields(ctx, field) 14117 case "ofType": 14118 return ec.fieldContext___Type_ofType(ctx, field) 14119 case "specifiedByURL": 14120 return ec.fieldContext___Type_specifiedByURL(ctx, field) 14121 } 14122 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 14123 }, 14124 } 14125 return fc, nil 14126 } 14127 14128 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 14129 fc, err := ec.fieldContext___Schema_directives(ctx, field) 14130 if err != nil { 14131 return graphql.Null 14132 } 14133 ctx = graphql.WithFieldContext(ctx, fc) 14134 defer func() { 14135 if r := recover(); r != nil { 14136 ec.Error(ctx, ec.Recover(ctx, r)) 14137 ret = graphql.Null 14138 } 14139 }() 14140 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14141 ctx = rctx // use context from middleware stack in children 14142 return obj.Directives(), nil 14143 }) 14144 14145 if resTmp == nil { 14146 if !graphql.HasFieldError(ctx, fc) { 14147 ec.Errorf(ctx, "must not be null") 14148 } 14149 return graphql.Null 14150 } 14151 res := resTmp.([]introspection.Directive) 14152 fc.Result = res 14153 return ec.marshalN__Directive2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) 14154 } 14155 14156 func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14157 fc = &graphql.FieldContext{ 14158 Object: "__Schema", 14159 Field: field, 14160 IsMethod: true, 14161 IsResolver: false, 14162 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14163 switch field.Name { 14164 case "name": 14165 return ec.fieldContext___Directive_name(ctx, field) 14166 case "description": 14167 return ec.fieldContext___Directive_description(ctx, field) 14168 case "locations": 14169 return ec.fieldContext___Directive_locations(ctx, field) 14170 case "args": 14171 return ec.fieldContext___Directive_args(ctx, field) 14172 case "isRepeatable": 14173 return ec.fieldContext___Directive_isRepeatable(ctx, field) 14174 } 14175 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) 14176 }, 14177 } 14178 return fc, nil 14179 } 14180 14181 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14182 fc, err := ec.fieldContext___Type_kind(ctx, field) 14183 if err != nil { 14184 return graphql.Null 14185 } 14186 ctx = graphql.WithFieldContext(ctx, fc) 14187 defer func() { 14188 if r := recover(); r != nil { 14189 ec.Error(ctx, ec.Recover(ctx, r)) 14190 ret = graphql.Null 14191 } 14192 }() 14193 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14194 ctx = rctx // use context from middleware stack in children 14195 return obj.Kind(), nil 14196 }) 14197 14198 if resTmp == nil { 14199 if !graphql.HasFieldError(ctx, fc) { 14200 ec.Errorf(ctx, "must not be null") 14201 } 14202 return graphql.Null 14203 } 14204 res := resTmp.(string) 14205 fc.Result = res 14206 return ec.marshalN__TypeKind2string(ctx, field.Selections, res) 14207 } 14208 14209 func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14210 fc = &graphql.FieldContext{ 14211 Object: "__Type", 14212 Field: field, 14213 IsMethod: true, 14214 IsResolver: false, 14215 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14216 return nil, errors.New("field of type __TypeKind does not have child fields") 14217 }, 14218 } 14219 return fc, nil 14220 } 14221 14222 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14223 fc, err := ec.fieldContext___Type_name(ctx, field) 14224 if err != nil { 14225 return graphql.Null 14226 } 14227 ctx = graphql.WithFieldContext(ctx, fc) 14228 defer func() { 14229 if r := recover(); r != nil { 14230 ec.Error(ctx, ec.Recover(ctx, r)) 14231 ret = graphql.Null 14232 } 14233 }() 14234 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14235 ctx = rctx // use context from middleware stack in children 14236 return obj.Name(), nil 14237 }) 14238 14239 if resTmp == nil { 14240 return graphql.Null 14241 } 14242 res := resTmp.(*string) 14243 fc.Result = res 14244 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 14245 } 14246 14247 func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14248 fc = &graphql.FieldContext{ 14249 Object: "__Type", 14250 Field: field, 14251 IsMethod: true, 14252 IsResolver: false, 14253 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14254 return nil, errors.New("field of type String does not have child fields") 14255 }, 14256 } 14257 return fc, nil 14258 } 14259 14260 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14261 fc, err := ec.fieldContext___Type_description(ctx, field) 14262 if err != nil { 14263 return graphql.Null 14264 } 14265 ctx = graphql.WithFieldContext(ctx, fc) 14266 defer func() { 14267 if r := recover(); r != nil { 14268 ec.Error(ctx, ec.Recover(ctx, r)) 14269 ret = graphql.Null 14270 } 14271 }() 14272 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14273 ctx = rctx // use context from middleware stack in children 14274 return obj.Description(), nil 14275 }) 14276 14277 if resTmp == nil { 14278 return graphql.Null 14279 } 14280 res := resTmp.(*string) 14281 fc.Result = res 14282 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 14283 } 14284 14285 func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14286 fc = &graphql.FieldContext{ 14287 Object: "__Type", 14288 Field: field, 14289 IsMethod: true, 14290 IsResolver: false, 14291 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14292 return nil, errors.New("field of type String does not have child fields") 14293 }, 14294 } 14295 return fc, nil 14296 } 14297 14298 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14299 fc, err := ec.fieldContext___Type_fields(ctx, field) 14300 if err != nil { 14301 return graphql.Null 14302 } 14303 ctx = graphql.WithFieldContext(ctx, fc) 14304 defer func() { 14305 if r := recover(); r != nil { 14306 ec.Error(ctx, ec.Recover(ctx, r)) 14307 ret = graphql.Null 14308 } 14309 }() 14310 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14311 ctx = rctx // use context from middleware stack in children 14312 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil 14313 }) 14314 14315 if resTmp == nil { 14316 return graphql.Null 14317 } 14318 res := resTmp.([]introspection.Field) 14319 fc.Result = res 14320 return ec.marshalO__Field2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) 14321 } 14322 14323 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14324 fc = &graphql.FieldContext{ 14325 Object: "__Type", 14326 Field: field, 14327 IsMethod: true, 14328 IsResolver: false, 14329 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14330 switch field.Name { 14331 case "name": 14332 return ec.fieldContext___Field_name(ctx, field) 14333 case "description": 14334 return ec.fieldContext___Field_description(ctx, field) 14335 case "args": 14336 return ec.fieldContext___Field_args(ctx, field) 14337 case "type": 14338 return ec.fieldContext___Field_type(ctx, field) 14339 case "isDeprecated": 14340 return ec.fieldContext___Field_isDeprecated(ctx, field) 14341 case "deprecationReason": 14342 return ec.fieldContext___Field_deprecationReason(ctx, field) 14343 } 14344 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) 14345 }, 14346 } 14347 defer func() { 14348 if r := recover(); r != nil { 14349 err = ec.Recover(ctx, r) 14350 ec.Error(ctx, err) 14351 } 14352 }() 14353 ctx = graphql.WithFieldContext(ctx, fc) 14354 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 14355 ec.Error(ctx, err) 14356 return fc, err 14357 } 14358 return fc, nil 14359 } 14360 14361 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14362 fc, err := ec.fieldContext___Type_interfaces(ctx, field) 14363 if err != nil { 14364 return graphql.Null 14365 } 14366 ctx = graphql.WithFieldContext(ctx, fc) 14367 defer func() { 14368 if r := recover(); r != nil { 14369 ec.Error(ctx, ec.Recover(ctx, r)) 14370 ret = graphql.Null 14371 } 14372 }() 14373 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14374 ctx = rctx // use context from middleware stack in children 14375 return obj.Interfaces(), nil 14376 }) 14377 14378 if resTmp == nil { 14379 return graphql.Null 14380 } 14381 res := resTmp.([]introspection.Type) 14382 fc.Result = res 14383 return ec.marshalO__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 14384 } 14385 14386 func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14387 fc = &graphql.FieldContext{ 14388 Object: "__Type", 14389 Field: field, 14390 IsMethod: true, 14391 IsResolver: false, 14392 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14393 switch field.Name { 14394 case "kind": 14395 return ec.fieldContext___Type_kind(ctx, field) 14396 case "name": 14397 return ec.fieldContext___Type_name(ctx, field) 14398 case "description": 14399 return ec.fieldContext___Type_description(ctx, field) 14400 case "fields": 14401 return ec.fieldContext___Type_fields(ctx, field) 14402 case "interfaces": 14403 return ec.fieldContext___Type_interfaces(ctx, field) 14404 case "possibleTypes": 14405 return ec.fieldContext___Type_possibleTypes(ctx, field) 14406 case "enumValues": 14407 return ec.fieldContext___Type_enumValues(ctx, field) 14408 case "inputFields": 14409 return ec.fieldContext___Type_inputFields(ctx, field) 14410 case "ofType": 14411 return ec.fieldContext___Type_ofType(ctx, field) 14412 case "specifiedByURL": 14413 return ec.fieldContext___Type_specifiedByURL(ctx, field) 14414 } 14415 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 14416 }, 14417 } 14418 return fc, nil 14419 } 14420 14421 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14422 fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) 14423 if err != nil { 14424 return graphql.Null 14425 } 14426 ctx = graphql.WithFieldContext(ctx, fc) 14427 defer func() { 14428 if r := recover(); r != nil { 14429 ec.Error(ctx, ec.Recover(ctx, r)) 14430 ret = graphql.Null 14431 } 14432 }() 14433 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14434 ctx = rctx // use context from middleware stack in children 14435 return obj.PossibleTypes(), nil 14436 }) 14437 14438 if resTmp == nil { 14439 return graphql.Null 14440 } 14441 res := resTmp.([]introspection.Type) 14442 fc.Result = res 14443 return ec.marshalO__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 14444 } 14445 14446 func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14447 fc = &graphql.FieldContext{ 14448 Object: "__Type", 14449 Field: field, 14450 IsMethod: true, 14451 IsResolver: false, 14452 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14453 switch field.Name { 14454 case "kind": 14455 return ec.fieldContext___Type_kind(ctx, field) 14456 case "name": 14457 return ec.fieldContext___Type_name(ctx, field) 14458 case "description": 14459 return ec.fieldContext___Type_description(ctx, field) 14460 case "fields": 14461 return ec.fieldContext___Type_fields(ctx, field) 14462 case "interfaces": 14463 return ec.fieldContext___Type_interfaces(ctx, field) 14464 case "possibleTypes": 14465 return ec.fieldContext___Type_possibleTypes(ctx, field) 14466 case "enumValues": 14467 return ec.fieldContext___Type_enumValues(ctx, field) 14468 case "inputFields": 14469 return ec.fieldContext___Type_inputFields(ctx, field) 14470 case "ofType": 14471 return ec.fieldContext___Type_ofType(ctx, field) 14472 case "specifiedByURL": 14473 return ec.fieldContext___Type_specifiedByURL(ctx, field) 14474 } 14475 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 14476 }, 14477 } 14478 return fc, nil 14479 } 14480 14481 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14482 fc, err := ec.fieldContext___Type_enumValues(ctx, field) 14483 if err != nil { 14484 return graphql.Null 14485 } 14486 ctx = graphql.WithFieldContext(ctx, fc) 14487 defer func() { 14488 if r := recover(); r != nil { 14489 ec.Error(ctx, ec.Recover(ctx, r)) 14490 ret = graphql.Null 14491 } 14492 }() 14493 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14494 ctx = rctx // use context from middleware stack in children 14495 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil 14496 }) 14497 14498 if resTmp == nil { 14499 return graphql.Null 14500 } 14501 res := resTmp.([]introspection.EnumValue) 14502 fc.Result = res 14503 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) 14504 } 14505 14506 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14507 fc = &graphql.FieldContext{ 14508 Object: "__Type", 14509 Field: field, 14510 IsMethod: true, 14511 IsResolver: false, 14512 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14513 switch field.Name { 14514 case "name": 14515 return ec.fieldContext___EnumValue_name(ctx, field) 14516 case "description": 14517 return ec.fieldContext___EnumValue_description(ctx, field) 14518 case "isDeprecated": 14519 return ec.fieldContext___EnumValue_isDeprecated(ctx, field) 14520 case "deprecationReason": 14521 return ec.fieldContext___EnumValue_deprecationReason(ctx, field) 14522 } 14523 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) 14524 }, 14525 } 14526 defer func() { 14527 if r := recover(); r != nil { 14528 err = ec.Recover(ctx, r) 14529 ec.Error(ctx, err) 14530 } 14531 }() 14532 ctx = graphql.WithFieldContext(ctx, fc) 14533 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 14534 ec.Error(ctx, err) 14535 return fc, err 14536 } 14537 return fc, nil 14538 } 14539 14540 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14541 fc, err := ec.fieldContext___Type_inputFields(ctx, field) 14542 if err != nil { 14543 return graphql.Null 14544 } 14545 ctx = graphql.WithFieldContext(ctx, fc) 14546 defer func() { 14547 if r := recover(); r != nil { 14548 ec.Error(ctx, ec.Recover(ctx, r)) 14549 ret = graphql.Null 14550 } 14551 }() 14552 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14553 ctx = rctx // use context from middleware stack in children 14554 return obj.InputFields(), nil 14555 }) 14556 14557 if resTmp == nil { 14558 return graphql.Null 14559 } 14560 res := resTmp.([]introspection.InputValue) 14561 fc.Result = res 14562 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 14563 } 14564 14565 func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14566 fc = &graphql.FieldContext{ 14567 Object: "__Type", 14568 Field: field, 14569 IsMethod: true, 14570 IsResolver: false, 14571 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14572 switch field.Name { 14573 case "name": 14574 return ec.fieldContext___InputValue_name(ctx, field) 14575 case "description": 14576 return ec.fieldContext___InputValue_description(ctx, field) 14577 case "type": 14578 return ec.fieldContext___InputValue_type(ctx, field) 14579 case "defaultValue": 14580 return ec.fieldContext___InputValue_defaultValue(ctx, field) 14581 } 14582 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 14583 }, 14584 } 14585 return fc, nil 14586 } 14587 14588 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14589 fc, err := ec.fieldContext___Type_ofType(ctx, field) 14590 if err != nil { 14591 return graphql.Null 14592 } 14593 ctx = graphql.WithFieldContext(ctx, fc) 14594 defer func() { 14595 if r := recover(); r != nil { 14596 ec.Error(ctx, ec.Recover(ctx, r)) 14597 ret = graphql.Null 14598 } 14599 }() 14600 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14601 ctx = rctx // use context from middleware stack in children 14602 return obj.OfType(), nil 14603 }) 14604 14605 if resTmp == nil { 14606 return graphql.Null 14607 } 14608 res := resTmp.(*introspection.Type) 14609 fc.Result = res 14610 return ec.marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 14611 } 14612 14613 func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14614 fc = &graphql.FieldContext{ 14615 Object: "__Type", 14616 Field: field, 14617 IsMethod: true, 14618 IsResolver: false, 14619 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14620 switch field.Name { 14621 case "kind": 14622 return ec.fieldContext___Type_kind(ctx, field) 14623 case "name": 14624 return ec.fieldContext___Type_name(ctx, field) 14625 case "description": 14626 return ec.fieldContext___Type_description(ctx, field) 14627 case "fields": 14628 return ec.fieldContext___Type_fields(ctx, field) 14629 case "interfaces": 14630 return ec.fieldContext___Type_interfaces(ctx, field) 14631 case "possibleTypes": 14632 return ec.fieldContext___Type_possibleTypes(ctx, field) 14633 case "enumValues": 14634 return ec.fieldContext___Type_enumValues(ctx, field) 14635 case "inputFields": 14636 return ec.fieldContext___Type_inputFields(ctx, field) 14637 case "ofType": 14638 return ec.fieldContext___Type_ofType(ctx, field) 14639 case "specifiedByURL": 14640 return ec.fieldContext___Type_specifiedByURL(ctx, field) 14641 } 14642 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 14643 }, 14644 } 14645 return fc, nil 14646 } 14647 14648 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 14649 fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) 14650 if err != nil { 14651 return graphql.Null 14652 } 14653 ctx = graphql.WithFieldContext(ctx, fc) 14654 defer func() { 14655 if r := recover(); r != nil { 14656 ec.Error(ctx, ec.Recover(ctx, r)) 14657 ret = graphql.Null 14658 } 14659 }() 14660 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14661 ctx = rctx // use context from middleware stack in children 14662 return obj.SpecifiedByURL(), nil 14663 }) 14664 14665 if resTmp == nil { 14666 return graphql.Null 14667 } 14668 res := resTmp.(*string) 14669 fc.Result = res 14670 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 14671 } 14672 14673 func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14674 fc = &graphql.FieldContext{ 14675 Object: "__Type", 14676 Field: field, 14677 IsMethod: true, 14678 IsResolver: false, 14679 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14680 return nil, errors.New("field of type String does not have child fields") 14681 }, 14682 } 14683 return fc, nil 14684 } 14685 14686 func (ec *executionContext) _asdfIt_id(ctx context.Context, field graphql.CollectedField, obj *AsdfIt) (ret graphql.Marshaler) { 14687 fc, err := ec.fieldContext_asdfIt_id(ctx, field) 14688 if err != nil { 14689 return graphql.Null 14690 } 14691 ctx = graphql.WithFieldContext(ctx, fc) 14692 defer func() { 14693 if r := recover(); r != nil { 14694 ec.Error(ctx, ec.Recover(ctx, r)) 14695 ret = graphql.Null 14696 } 14697 }() 14698 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14699 ctx = rctx // use context from middleware stack in children 14700 return obj.ID, nil 14701 }) 14702 14703 if resTmp == nil { 14704 if !graphql.HasFieldError(ctx, fc) { 14705 ec.Errorf(ctx, "must not be null") 14706 } 14707 return graphql.Null 14708 } 14709 res := resTmp.(string) 14710 fc.Result = res 14711 return ec.marshalNID2string(ctx, field.Selections, res) 14712 } 14713 14714 func (ec *executionContext) fieldContext_asdfIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14715 fc = &graphql.FieldContext{ 14716 Object: "asdfIt", 14717 Field: field, 14718 IsMethod: false, 14719 IsResolver: false, 14720 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14721 return nil, errors.New("field of type ID does not have child fields") 14722 }, 14723 } 14724 return fc, nil 14725 } 14726 14727 func (ec *executionContext) _iIt_id(ctx context.Context, field graphql.CollectedField, obj *IIt) (ret graphql.Marshaler) { 14728 fc, err := ec.fieldContext_iIt_id(ctx, field) 14729 if err != nil { 14730 return graphql.Null 14731 } 14732 ctx = graphql.WithFieldContext(ctx, fc) 14733 defer func() { 14734 if r := recover(); r != nil { 14735 ec.Error(ctx, ec.Recover(ctx, r)) 14736 ret = graphql.Null 14737 } 14738 }() 14739 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 14740 ctx = rctx // use context from middleware stack in children 14741 return obj.ID, nil 14742 }) 14743 14744 if resTmp == nil { 14745 if !graphql.HasFieldError(ctx, fc) { 14746 ec.Errorf(ctx, "must not be null") 14747 } 14748 return graphql.Null 14749 } 14750 res := resTmp.(string) 14751 fc.Result = res 14752 return ec.marshalNID2string(ctx, field.Selections, res) 14753 } 14754 14755 func (ec *executionContext) fieldContext_iIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14756 fc = &graphql.FieldContext{ 14757 Object: "iIt", 14758 Field: field, 14759 IsMethod: false, 14760 IsResolver: false, 14761 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14762 return nil, errors.New("field of type ID does not have child fields") 14763 }, 14764 } 14765 return fc, nil 14766 } 14767 14768 // endregion **************************** field.gotpl ***************************** 14769 14770 // region **************************** input.gotpl ***************************** 14771 14772 func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj interface{}) (DefaultInput, error) { 14773 var it DefaultInput 14774 asMap := map[string]interface{}{} 14775 for k, v := range obj.(map[string]interface{}) { 14776 asMap[k] = v 14777 } 14778 14779 if _, present := asMap["falsyBoolean"]; !present { 14780 asMap["falsyBoolean"] = false 14781 } 14782 if _, present := asMap["truthyBoolean"]; !present { 14783 asMap["truthyBoolean"] = true 14784 } 14785 14786 fieldsInOrder := [...]string{"falsyBoolean", "truthyBoolean"} 14787 for _, k := range fieldsInOrder { 14788 v, ok := asMap[k] 14789 if !ok { 14790 continue 14791 } 14792 switch k { 14793 case "falsyBoolean": 14794 var err error 14795 14796 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("falsyBoolean")) 14797 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 14798 if err != nil { 14799 return it, err 14800 } 14801 it.FalsyBoolean = data 14802 case "truthyBoolean": 14803 var err error 14804 14805 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("truthyBoolean")) 14806 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 14807 if err != nil { 14808 return it, err 14809 } 14810 it.TruthyBoolean = data 14811 } 14812 } 14813 14814 return it, nil 14815 } 14816 14817 func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, obj interface{}) (FieldsOrderInput, error) { 14818 var it FieldsOrderInput 14819 asMap := map[string]interface{}{} 14820 for k, v := range obj.(map[string]interface{}) { 14821 asMap[k] = v 14822 } 14823 14824 fieldsInOrder := [...]string{"firstField", "overrideFirstField"} 14825 for _, k := range fieldsInOrder { 14826 v, ok := asMap[k] 14827 if !ok { 14828 continue 14829 } 14830 switch k { 14831 case "firstField": 14832 var err error 14833 14834 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstField")) 14835 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 14836 if err != nil { 14837 return it, err 14838 } 14839 it.FirstField = data 14840 case "overrideFirstField": 14841 var err error 14842 14843 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("overrideFirstField")) 14844 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 14845 if err != nil { 14846 return it, err 14847 } 14848 if err = ec.resolvers.FieldsOrderInput().OverrideFirstField(ctx, &it, data); err != nil { 14849 return it, err 14850 } 14851 } 14852 } 14853 14854 return it, nil 14855 } 14856 14857 func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, obj interface{}) (InnerDirectives, error) { 14858 var it InnerDirectives 14859 asMap := map[string]interface{}{} 14860 for k, v := range obj.(map[string]interface{}) { 14861 asMap[k] = v 14862 } 14863 14864 fieldsInOrder := [...]string{"message"} 14865 for _, k := range fieldsInOrder { 14866 v, ok := asMap[k] 14867 if !ok { 14868 continue 14869 } 14870 switch k { 14871 case "message": 14872 var err error 14873 14874 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) 14875 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } 14876 directive1 := func(ctx context.Context) (interface{}, error) { 14877 min, err := ec.unmarshalNInt2int(ctx, 1) 14878 if err != nil { 14879 return nil, err 14880 } 14881 message, err := ec.unmarshalOString2ᚖstring(ctx, "not valid") 14882 if err != nil { 14883 return nil, err 14884 } 14885 if ec.directives.Length == nil { 14886 return nil, errors.New("directive length is not implemented") 14887 } 14888 return ec.directives.Length(ctx, obj, directive0, min, nil, message) 14889 } 14890 14891 tmp, err := directive1(ctx) 14892 if err != nil { 14893 return it, graphql.ErrorOnPath(ctx, err) 14894 } 14895 if data, ok := tmp.(string); ok { 14896 it.Message = data 14897 } else { 14898 err := fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 14899 return it, graphql.ErrorOnPath(ctx, err) 14900 } 14901 } 14902 } 14903 14904 return it, nil 14905 } 14906 14907 func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj interface{}) (InnerInput, error) { 14908 var it InnerInput 14909 asMap := map[string]interface{}{} 14910 for k, v := range obj.(map[string]interface{}) { 14911 asMap[k] = v 14912 } 14913 14914 fieldsInOrder := [...]string{"id"} 14915 for _, k := range fieldsInOrder { 14916 v, ok := asMap[k] 14917 if !ok { 14918 continue 14919 } 14920 switch k { 14921 case "id": 14922 var err error 14923 14924 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 14925 data, err := ec.unmarshalNInt2int(ctx, v) 14926 if err != nil { 14927 return it, err 14928 } 14929 it.ID = data 14930 } 14931 } 14932 14933 return it, nil 14934 } 14935 14936 func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, obj interface{}) (InputDirectives, error) { 14937 var it InputDirectives 14938 asMap := map[string]interface{}{} 14939 for k, v := range obj.(map[string]interface{}) { 14940 asMap[k] = v 14941 } 14942 14943 fieldsInOrder := [...]string{"text", "nullableText", "inner", "innerNullable", "thirdParty"} 14944 for _, k := range fieldsInOrder { 14945 v, ok := asMap[k] 14946 if !ok { 14947 continue 14948 } 14949 switch k { 14950 case "text": 14951 var err error 14952 14953 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) 14954 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } 14955 directive1 := func(ctx context.Context) (interface{}, error) { 14956 if ec.directives.Directive3 == nil { 14957 return nil, errors.New("directive directive3 is not implemented") 14958 } 14959 return ec.directives.Directive3(ctx, obj, directive0) 14960 } 14961 directive2 := func(ctx context.Context) (interface{}, error) { 14962 min, err := ec.unmarshalNInt2int(ctx, 0) 14963 if err != nil { 14964 return nil, err 14965 } 14966 max, err := ec.unmarshalOInt2ᚖint(ctx, 7) 14967 if err != nil { 14968 return nil, err 14969 } 14970 message, err := ec.unmarshalOString2ᚖstring(ctx, "not valid") 14971 if err != nil { 14972 return nil, err 14973 } 14974 if ec.directives.Length == nil { 14975 return nil, errors.New("directive length is not implemented") 14976 } 14977 return ec.directives.Length(ctx, obj, directive1, min, max, message) 14978 } 14979 14980 tmp, err := directive2(ctx) 14981 if err != nil { 14982 return it, graphql.ErrorOnPath(ctx, err) 14983 } 14984 if data, ok := tmp.(string); ok { 14985 it.Text = data 14986 } else { 14987 err := fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 14988 return it, graphql.ErrorOnPath(ctx, err) 14989 } 14990 case "nullableText": 14991 var err error 14992 14993 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nullableText")) 14994 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } 14995 directive1 := func(ctx context.Context) (interface{}, error) { 14996 if ec.directives.Directive3 == nil { 14997 return nil, errors.New("directive directive3 is not implemented") 14998 } 14999 return ec.directives.Directive3(ctx, obj, directive0) 15000 } 15001 directive2 := func(ctx context.Context) (interface{}, error) { 15002 if ec.directives.ToNull == nil { 15003 return nil, errors.New("directive toNull is not implemented") 15004 } 15005 return ec.directives.ToNull(ctx, obj, directive1) 15006 } 15007 15008 tmp, err := directive2(ctx) 15009 if err != nil { 15010 return it, graphql.ErrorOnPath(ctx, err) 15011 } 15012 if data, ok := tmp.(*string); ok { 15013 it.NullableText = data 15014 } else if tmp == nil { 15015 it.NullableText = nil 15016 } else { 15017 err := fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 15018 return it, graphql.ErrorOnPath(ctx, err) 15019 } 15020 case "inner": 15021 var err error 15022 15023 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) 15024 directive0 := func(ctx context.Context) (interface{}, error) { 15025 return ec.unmarshalNInnerDirectives2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx, v) 15026 } 15027 directive1 := func(ctx context.Context) (interface{}, error) { 15028 if ec.directives.Directive3 == nil { 15029 return nil, errors.New("directive directive3 is not implemented") 15030 } 15031 return ec.directives.Directive3(ctx, obj, directive0) 15032 } 15033 15034 tmp, err := directive1(ctx) 15035 if err != nil { 15036 return it, graphql.ErrorOnPath(ctx, err) 15037 } 15038 if data, ok := tmp.(*InnerDirectives); ok { 15039 it.Inner = data 15040 } else if tmp == nil { 15041 it.Inner = nil 15042 } else { 15043 err := fmt.Errorf(`unexpected type %T from directive, should be *github.com/geneva/gqlgen/codegen/testserver/singlefile.InnerDirectives`, tmp) 15044 return it, graphql.ErrorOnPath(ctx, err) 15045 } 15046 case "innerNullable": 15047 var err error 15048 15049 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("innerNullable")) 15050 directive0 := func(ctx context.Context) (interface{}, error) { 15051 return ec.unmarshalOInnerDirectives2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx, v) 15052 } 15053 directive1 := func(ctx context.Context) (interface{}, error) { 15054 if ec.directives.Directive3 == nil { 15055 return nil, errors.New("directive directive3 is not implemented") 15056 } 15057 return ec.directives.Directive3(ctx, obj, directive0) 15058 } 15059 15060 tmp, err := directive1(ctx) 15061 if err != nil { 15062 return it, graphql.ErrorOnPath(ctx, err) 15063 } 15064 if data, ok := tmp.(*InnerDirectives); ok { 15065 it.InnerNullable = data 15066 } else if tmp == nil { 15067 it.InnerNullable = nil 15068 } else { 15069 err := fmt.Errorf(`unexpected type %T from directive, should be *github.com/geneva/gqlgen/codegen/testserver/singlefile.InnerDirectives`, tmp) 15070 return it, graphql.ErrorOnPath(ctx, err) 15071 } 15072 case "thirdParty": 15073 var err error 15074 15075 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("thirdParty")) 15076 directive0 := func(ctx context.Context) (interface{}, error) { 15077 return ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx, v) 15078 } 15079 directive1 := func(ctx context.Context) (interface{}, error) { 15080 if ec.directives.Directive3 == nil { 15081 return nil, errors.New("directive directive3 is not implemented") 15082 } 15083 return ec.directives.Directive3(ctx, obj, directive0) 15084 } 15085 directive2 := func(ctx context.Context) (interface{}, error) { 15086 min, err := ec.unmarshalNInt2int(ctx, 0) 15087 if err != nil { 15088 return nil, err 15089 } 15090 max, err := ec.unmarshalOInt2ᚖint(ctx, 7) 15091 if err != nil { 15092 return nil, err 15093 } 15094 if ec.directives.Length == nil { 15095 return nil, errors.New("directive length is not implemented") 15096 } 15097 return ec.directives.Length(ctx, obj, directive1, min, max, nil) 15098 } 15099 15100 tmp, err := directive2(ctx) 15101 if err != nil { 15102 return it, graphql.ErrorOnPath(ctx, err) 15103 } 15104 if data, ok := tmp.(*ThirdParty); ok { 15105 it.ThirdParty = data 15106 } else if tmp == nil { 15107 it.ThirdParty = nil 15108 } else { 15109 err := fmt.Errorf(`unexpected type %T from directive, should be *github.com/geneva/gqlgen/codegen/testserver/singlefile.ThirdParty`, tmp) 15110 return it, graphql.ErrorOnPath(ctx, err) 15111 } 15112 } 15113 } 15114 15115 return it, nil 15116 } 15117 15118 func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context, obj interface{}) (InputWithEnumValue, error) { 15119 var it InputWithEnumValue 15120 asMap := map[string]interface{}{} 15121 for k, v := range obj.(map[string]interface{}) { 15122 asMap[k] = v 15123 } 15124 15125 fieldsInOrder := [...]string{"enum"} 15126 for _, k := range fieldsInOrder { 15127 v, ok := asMap[k] 15128 if !ok { 15129 continue 15130 } 15131 switch k { 15132 case "enum": 15133 var err error 15134 15135 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enum")) 15136 data, err := ec.unmarshalNEnumTest2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx, v) 15137 if err != nil { 15138 return it, err 15139 } 15140 it.Enum = data 15141 } 15142 } 15143 15144 return it, nil 15145 } 15146 15147 func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj interface{}) (NestedInput, error) { 15148 var it NestedInput 15149 asMap := map[string]interface{}{} 15150 for k, v := range obj.(map[string]interface{}) { 15151 asMap[k] = v 15152 } 15153 15154 fieldsInOrder := [...]string{"field"} 15155 for _, k := range fieldsInOrder { 15156 v, ok := asMap[k] 15157 if !ok { 15158 continue 15159 } 15160 switch k { 15161 case "field": 15162 var err error 15163 15164 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) 15165 data, err := ec.unmarshalNEmail2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx, v) 15166 if err != nil { 15167 return it, err 15168 } 15169 it.Field = data 15170 } 15171 } 15172 15173 return it, nil 15174 } 15175 15176 func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, obj interface{}) (NestedMapInput, error) { 15177 var it NestedMapInput 15178 asMap := map[string]interface{}{} 15179 for k, v := range obj.(map[string]interface{}) { 15180 asMap[k] = v 15181 } 15182 15183 fieldsInOrder := [...]string{"map"} 15184 for _, k := range fieldsInOrder { 15185 v, ok := asMap[k] 15186 if !ok { 15187 continue 15188 } 15189 switch k { 15190 case "map": 15191 var err error 15192 15193 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) 15194 data, err := ec.unmarshalOMapStringInterfaceInput2map(ctx, v) 15195 if err != nil { 15196 return it, err 15197 } 15198 it.Map = data 15199 } 15200 } 15201 15202 return it, nil 15203 } 15204 15205 func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, obj interface{}) (OmittableInput, error) { 15206 var it OmittableInput 15207 asMap := map[string]interface{}{} 15208 for k, v := range obj.(map[string]interface{}) { 15209 asMap[k] = v 15210 } 15211 15212 fieldsInOrder := [...]string{"id", "bool", "str", "int", "time", "enum", "scalar", "object"} 15213 for _, k := range fieldsInOrder { 15214 v, ok := asMap[k] 15215 if !ok { 15216 continue 15217 } 15218 switch k { 15219 case "id": 15220 var err error 15221 15222 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 15223 data, err := ec.unmarshalOID2ᚖstring(ctx, v) 15224 if err != nil { 15225 return it, err 15226 } 15227 it.ID = graphql.OmittableOf(data) 15228 case "bool": 15229 var err error 15230 15231 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bool")) 15232 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 15233 if err != nil { 15234 return it, err 15235 } 15236 it.Bool = graphql.OmittableOf(data) 15237 case "str": 15238 var err error 15239 15240 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("str")) 15241 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 15242 if err != nil { 15243 return it, err 15244 } 15245 it.Str = graphql.OmittableOf(data) 15246 case "int": 15247 var err error 15248 15249 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("int")) 15250 data, err := ec.unmarshalOInt2ᚖint(ctx, v) 15251 if err != nil { 15252 return it, err 15253 } 15254 it.Int = graphql.OmittableOf(data) 15255 case "time": 15256 var err error 15257 15258 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("time")) 15259 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) 15260 if err != nil { 15261 return it, err 15262 } 15263 it.Time = graphql.OmittableOf(data) 15264 case "enum": 15265 var err error 15266 15267 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enum")) 15268 data, err := ec.unmarshalOStatus2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStatus(ctx, v) 15269 if err != nil { 15270 return it, err 15271 } 15272 it.Enum = graphql.OmittableOf(data) 15273 case "scalar": 15274 var err error 15275 15276 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scalar")) 15277 data, err := ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx, v) 15278 if err != nil { 15279 return it, err 15280 } 15281 it.Scalar = graphql.OmittableOf(data) 15282 case "object": 15283 var err error 15284 15285 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("object")) 15286 data, err := ec.unmarshalOOuterInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx, v) 15287 if err != nil { 15288 return it, err 15289 } 15290 it.Object = graphql.OmittableOf(data) 15291 } 15292 } 15293 15294 return it, nil 15295 } 15296 15297 func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj interface{}) (OuterInput, error) { 15298 var it OuterInput 15299 asMap := map[string]interface{}{} 15300 for k, v := range obj.(map[string]interface{}) { 15301 asMap[k] = v 15302 } 15303 15304 fieldsInOrder := [...]string{"inner"} 15305 for _, k := range fieldsInOrder { 15306 v, ok := asMap[k] 15307 if !ok { 15308 continue 15309 } 15310 switch k { 15311 case "inner": 15312 var err error 15313 15314 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) 15315 data, err := ec.unmarshalNInnerInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx, v) 15316 if err != nil { 15317 return it, err 15318 } 15319 it.Inner = data 15320 } 15321 } 15322 15323 return it, nil 15324 } 15325 15326 func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Context, obj interface{}) (RecursiveInputSlice, error) { 15327 var it RecursiveInputSlice 15328 asMap := map[string]interface{}{} 15329 for k, v := range obj.(map[string]interface{}) { 15330 asMap[k] = v 15331 } 15332 15333 fieldsInOrder := [...]string{"self"} 15334 for _, k := range fieldsInOrder { 15335 v, ok := asMap[k] 15336 if !ok { 15337 continue 15338 } 15339 switch k { 15340 case "self": 15341 var err error 15342 15343 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("self")) 15344 data, err := ec.unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSliceᚄ(ctx, v) 15345 if err != nil { 15346 return it, err 15347 } 15348 it.Self = data 15349 } 15350 } 15351 15352 return it, nil 15353 } 15354 15355 func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj interface{}) (SpecialInput, error) { 15356 var it SpecialInput 15357 asMap := map[string]interface{}{} 15358 for k, v := range obj.(map[string]interface{}) { 15359 asMap[k] = v 15360 } 15361 15362 fieldsInOrder := [...]string{"nesting"} 15363 for _, k := range fieldsInOrder { 15364 v, ok := asMap[k] 15365 if !ok { 15366 continue 15367 } 15368 switch k { 15369 case "nesting": 15370 var err error 15371 15372 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nesting")) 15373 data, err := ec.unmarshalNNestedInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedInput(ctx, v) 15374 if err != nil { 15375 return it, err 15376 } 15377 it.Nesting = data 15378 } 15379 } 15380 15381 return it, nil 15382 } 15383 15384 func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Context, obj interface{}) (UpdatePtrToPtrInner, error) { 15385 var it UpdatePtrToPtrInner 15386 asMap := map[string]interface{}{} 15387 for k, v := range obj.(map[string]interface{}) { 15388 asMap[k] = v 15389 } 15390 15391 fieldsInOrder := [...]string{"key", "value"} 15392 for _, k := range fieldsInOrder { 15393 v, ok := asMap[k] 15394 if !ok { 15395 continue 15396 } 15397 switch k { 15398 case "key": 15399 var err error 15400 15401 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 15402 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 15403 if err != nil { 15404 return it, err 15405 } 15406 it.Key = data 15407 case "value": 15408 var err error 15409 15410 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) 15411 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 15412 if err != nil { 15413 return it, err 15414 } 15415 it.Value = data 15416 } 15417 } 15418 15419 return it, nil 15420 } 15421 15422 func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj interface{}) (UpdatePtrToPtrOuter, error) { 15423 var it UpdatePtrToPtrOuter 15424 asMap := map[string]interface{}{} 15425 for k, v := range obj.(map[string]interface{}) { 15426 asMap[k] = v 15427 } 15428 15429 fieldsInOrder := [...]string{"name", "inner", "stupidInner"} 15430 for _, k := range fieldsInOrder { 15431 v, ok := asMap[k] 15432 if !ok { 15433 continue 15434 } 15435 switch k { 15436 case "name": 15437 var err error 15438 15439 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 15440 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 15441 if err != nil { 15442 return it, err 15443 } 15444 it.Name = data 15445 case "inner": 15446 var err error 15447 15448 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) 15449 data, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 15450 if err != nil { 15451 return it, err 15452 } 15453 it.Inner = data 15454 case "stupidInner": 15455 var err error 15456 15457 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stupidInner")) 15458 data, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 15459 if err != nil { 15460 return it, err 15461 } 15462 it.StupidInner = data 15463 } 15464 } 15465 15466 return it, nil 15467 } 15468 15469 func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj interface{}) (ValidInput, error) { 15470 var it ValidInput 15471 asMap := map[string]interface{}{} 15472 for k, v := range obj.(map[string]interface{}) { 15473 asMap[k] = v 15474 } 15475 15476 fieldsInOrder := [...]string{"break", "default", "func", "interface", "select", "case", "defer", "go", "map", "struct", "chan", "else", "goto", "package", "switch", "const", "fallthrough", "if", "range", "type", "continue", "for", "import", "return", "var", "_"} 15477 for _, k := range fieldsInOrder { 15478 v, ok := asMap[k] 15479 if !ok { 15480 continue 15481 } 15482 switch k { 15483 case "break": 15484 var err error 15485 15486 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("break")) 15487 data, err := ec.unmarshalNString2string(ctx, v) 15488 if err != nil { 15489 return it, err 15490 } 15491 it.Break = data 15492 case "default": 15493 var err error 15494 15495 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) 15496 data, err := ec.unmarshalNString2string(ctx, v) 15497 if err != nil { 15498 return it, err 15499 } 15500 it.Default = data 15501 case "func": 15502 var err error 15503 15504 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("func")) 15505 data, err := ec.unmarshalNString2string(ctx, v) 15506 if err != nil { 15507 return it, err 15508 } 15509 it.Func = data 15510 case "interface": 15511 var err error 15512 15513 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interface")) 15514 data, err := ec.unmarshalNString2string(ctx, v) 15515 if err != nil { 15516 return it, err 15517 } 15518 it.Interface = data 15519 case "select": 15520 var err error 15521 15522 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("select")) 15523 data, err := ec.unmarshalNString2string(ctx, v) 15524 if err != nil { 15525 return it, err 15526 } 15527 it.Select = data 15528 case "case": 15529 var err error 15530 15531 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("case")) 15532 data, err := ec.unmarshalNString2string(ctx, v) 15533 if err != nil { 15534 return it, err 15535 } 15536 it.Case = data 15537 case "defer": 15538 var err error 15539 15540 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defer")) 15541 data, err := ec.unmarshalNString2string(ctx, v) 15542 if err != nil { 15543 return it, err 15544 } 15545 it.Defer = data 15546 case "go": 15547 var err error 15548 15549 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("go")) 15550 data, err := ec.unmarshalNString2string(ctx, v) 15551 if err != nil { 15552 return it, err 15553 } 15554 it.Go = data 15555 case "map": 15556 var err error 15557 15558 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) 15559 data, err := ec.unmarshalNString2string(ctx, v) 15560 if err != nil { 15561 return it, err 15562 } 15563 it.Map = data 15564 case "struct": 15565 var err error 15566 15567 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("struct")) 15568 data, err := ec.unmarshalNString2string(ctx, v) 15569 if err != nil { 15570 return it, err 15571 } 15572 it.Struct = data 15573 case "chan": 15574 var err error 15575 15576 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chan")) 15577 data, err := ec.unmarshalNString2string(ctx, v) 15578 if err != nil { 15579 return it, err 15580 } 15581 it.Chan = data 15582 case "else": 15583 var err error 15584 15585 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("else")) 15586 data, err := ec.unmarshalNString2string(ctx, v) 15587 if err != nil { 15588 return it, err 15589 } 15590 it.Else = data 15591 case "goto": 15592 var err error 15593 15594 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("goto")) 15595 data, err := ec.unmarshalNString2string(ctx, v) 15596 if err != nil { 15597 return it, err 15598 } 15599 it.Goto = data 15600 case "package": 15601 var err error 15602 15603 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("package")) 15604 data, err := ec.unmarshalNString2string(ctx, v) 15605 if err != nil { 15606 return it, err 15607 } 15608 it.Package = data 15609 case "switch": 15610 var err error 15611 15612 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("switch")) 15613 data, err := ec.unmarshalNString2string(ctx, v) 15614 if err != nil { 15615 return it, err 15616 } 15617 it.Switch = data 15618 case "const": 15619 var err error 15620 15621 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("const")) 15622 data, err := ec.unmarshalNString2string(ctx, v) 15623 if err != nil { 15624 return it, err 15625 } 15626 it.Const = data 15627 case "fallthrough": 15628 var err error 15629 15630 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fallthrough")) 15631 data, err := ec.unmarshalNString2string(ctx, v) 15632 if err != nil { 15633 return it, err 15634 } 15635 it.Fallthrough = data 15636 case "if": 15637 var err error 15638 15639 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("if")) 15640 data, err := ec.unmarshalNString2string(ctx, v) 15641 if err != nil { 15642 return it, err 15643 } 15644 it.If = data 15645 case "range": 15646 var err error 15647 15648 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("range")) 15649 data, err := ec.unmarshalNString2string(ctx, v) 15650 if err != nil { 15651 return it, err 15652 } 15653 it.Range = data 15654 case "type": 15655 var err error 15656 15657 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) 15658 data, err := ec.unmarshalNString2string(ctx, v) 15659 if err != nil { 15660 return it, err 15661 } 15662 it.Type = data 15663 case "continue": 15664 var err error 15665 15666 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue")) 15667 data, err := ec.unmarshalNString2string(ctx, v) 15668 if err != nil { 15669 return it, err 15670 } 15671 it.Continue = data 15672 case "for": 15673 var err error 15674 15675 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("for")) 15676 data, err := ec.unmarshalNString2string(ctx, v) 15677 if err != nil { 15678 return it, err 15679 } 15680 it.For = data 15681 case "import": 15682 var err error 15683 15684 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import")) 15685 data, err := ec.unmarshalNString2string(ctx, v) 15686 if err != nil { 15687 return it, err 15688 } 15689 it.Import = data 15690 case "return": 15691 var err error 15692 15693 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("return")) 15694 data, err := ec.unmarshalNString2string(ctx, v) 15695 if err != nil { 15696 return it, err 15697 } 15698 it.Return = data 15699 case "var": 15700 var err error 15701 15702 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("var")) 15703 data, err := ec.unmarshalNString2string(ctx, v) 15704 if err != nil { 15705 return it, err 15706 } 15707 it.Var = data 15708 case "_": 15709 var err error 15710 15711 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_")) 15712 data, err := ec.unmarshalNString2string(ctx, v) 15713 if err != nil { 15714 return it, err 15715 } 15716 it.Underscore = data 15717 } 15718 } 15719 15720 return it, nil 15721 } 15722 15723 // endregion **************************** input.gotpl ***************************** 15724 15725 // region ************************** interface.gotpl *************************** 15726 15727 func (ec *executionContext) _Animal(ctx context.Context, sel ast.SelectionSet, obj Animal) graphql.Marshaler { 15728 switch obj := (obj).(type) { 15729 case nil: 15730 return graphql.Null 15731 case Dog: 15732 return ec._Dog(ctx, sel, &obj) 15733 case *Dog: 15734 if obj == nil { 15735 return graphql.Null 15736 } 15737 return ec._Dog(ctx, sel, obj) 15738 case Cat: 15739 return ec._Cat(ctx, sel, &obj) 15740 case *Cat: 15741 if obj == nil { 15742 return graphql.Null 15743 } 15744 return ec._Cat(ctx, sel, obj) 15745 default: 15746 panic(fmt.Errorf("unexpected type %T", obj)) 15747 } 15748 } 15749 15750 func (ec *executionContext) _Content_Child(ctx context.Context, sel ast.SelectionSet, obj ContentChild) graphql.Marshaler { 15751 switch obj := (obj).(type) { 15752 case nil: 15753 return graphql.Null 15754 case ContentUser: 15755 return ec._Content_User(ctx, sel, &obj) 15756 case *ContentUser: 15757 if obj == nil { 15758 return graphql.Null 15759 } 15760 return ec._Content_User(ctx, sel, obj) 15761 case ContentPost: 15762 return ec._Content_Post(ctx, sel, &obj) 15763 case *ContentPost: 15764 if obj == nil { 15765 return graphql.Null 15766 } 15767 return ec._Content_Post(ctx, sel, obj) 15768 default: 15769 panic(fmt.Errorf("unexpected type %T", obj)) 15770 } 15771 } 15772 15773 func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj Node) graphql.Marshaler { 15774 switch obj := (obj).(type) { 15775 case nil: 15776 return graphql.Null 15777 case *ConcreteNodeA: 15778 if obj == nil { 15779 return graphql.Null 15780 } 15781 return ec._ConcreteNodeA(ctx, sel, obj) 15782 case ConcreteNodeInterface: 15783 if obj == nil { 15784 return graphql.Null 15785 } 15786 return ec._ConcreteNodeInterface(ctx, sel, obj) 15787 default: 15788 panic(fmt.Errorf("unexpected type %T", obj)) 15789 } 15790 } 15791 15792 func (ec *executionContext) _Shape(ctx context.Context, sel ast.SelectionSet, obj Shape) graphql.Marshaler { 15793 switch obj := (obj).(type) { 15794 case nil: 15795 return graphql.Null 15796 case *Circle: 15797 if obj == nil { 15798 return graphql.Null 15799 } 15800 return ec._Circle(ctx, sel, obj) 15801 case *Rectangle: 15802 if obj == nil { 15803 return graphql.Null 15804 } 15805 return ec._Rectangle(ctx, sel, obj) 15806 default: 15807 panic(fmt.Errorf("unexpected type %T", obj)) 15808 } 15809 } 15810 15811 func (ec *executionContext) _ShapeUnion(ctx context.Context, sel ast.SelectionSet, obj ShapeUnion) graphql.Marshaler { 15812 switch obj := (obj).(type) { 15813 case nil: 15814 return graphql.Null 15815 case *Circle: 15816 if obj == nil { 15817 return graphql.Null 15818 } 15819 return ec._Circle(ctx, sel, obj) 15820 case *Rectangle: 15821 if obj == nil { 15822 return graphql.Null 15823 } 15824 return ec._Rectangle(ctx, sel, obj) 15825 default: 15826 panic(fmt.Errorf("unexpected type %T", obj)) 15827 } 15828 } 15829 15830 func (ec *executionContext) _TestUnion(ctx context.Context, sel ast.SelectionSet, obj TestUnion) graphql.Marshaler { 15831 switch obj := (obj).(type) { 15832 case nil: 15833 return graphql.Null 15834 case A: 15835 return ec._A(ctx, sel, &obj) 15836 case *A: 15837 if obj == nil { 15838 return graphql.Null 15839 } 15840 return ec._A(ctx, sel, obj) 15841 case B: 15842 return ec._B(ctx, sel, &obj) 15843 case *B: 15844 if obj == nil { 15845 return graphql.Null 15846 } 15847 return ec._B(ctx, sel, obj) 15848 default: 15849 panic(fmt.Errorf("unexpected type %T", obj)) 15850 } 15851 } 15852 15853 // endregion ************************** interface.gotpl *************************** 15854 15855 // region **************************** object.gotpl **************************** 15856 15857 var aImplementors = []string{"A", "TestUnion"} 15858 15859 func (ec *executionContext) _A(ctx context.Context, sel ast.SelectionSet, obj *A) graphql.Marshaler { 15860 fields := graphql.CollectFields(ec.OperationContext, sel, aImplementors) 15861 15862 out := graphql.NewFieldSet(fields) 15863 deferred := make(map[string]*graphql.FieldSet) 15864 for i, field := range fields { 15865 switch field.Name { 15866 case "__typename": 15867 out.Values[i] = graphql.MarshalString("A") 15868 case "id": 15869 out.Values[i] = ec._A_id(ctx, field, obj) 15870 if out.Values[i] == graphql.Null { 15871 out.Invalids++ 15872 } 15873 default: 15874 panic("unknown field " + strconv.Quote(field.Name)) 15875 } 15876 } 15877 out.Dispatch(ctx) 15878 if out.Invalids > 0 { 15879 return graphql.Null 15880 } 15881 15882 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 15883 15884 for label, dfs := range deferred { 15885 ec.processDeferredGroup(graphql.DeferredGroup{ 15886 Label: label, 15887 Path: graphql.GetPath(ctx), 15888 FieldSet: dfs, 15889 Context: ctx, 15890 }) 15891 } 15892 15893 return out 15894 } 15895 15896 var aItImplementors = []string{"AIt"} 15897 15898 func (ec *executionContext) _AIt(ctx context.Context, sel ast.SelectionSet, obj *AIt) graphql.Marshaler { 15899 fields := graphql.CollectFields(ec.OperationContext, sel, aItImplementors) 15900 15901 out := graphql.NewFieldSet(fields) 15902 deferred := make(map[string]*graphql.FieldSet) 15903 for i, field := range fields { 15904 switch field.Name { 15905 case "__typename": 15906 out.Values[i] = graphql.MarshalString("AIt") 15907 case "id": 15908 out.Values[i] = ec._AIt_id(ctx, field, obj) 15909 if out.Values[i] == graphql.Null { 15910 out.Invalids++ 15911 } 15912 default: 15913 panic("unknown field " + strconv.Quote(field.Name)) 15914 } 15915 } 15916 out.Dispatch(ctx) 15917 if out.Invalids > 0 { 15918 return graphql.Null 15919 } 15920 15921 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 15922 15923 for label, dfs := range deferred { 15924 ec.processDeferredGroup(graphql.DeferredGroup{ 15925 Label: label, 15926 Path: graphql.GetPath(ctx), 15927 FieldSet: dfs, 15928 Context: ctx, 15929 }) 15930 } 15931 15932 return out 15933 } 15934 15935 var abItImplementors = []string{"AbIt"} 15936 15937 func (ec *executionContext) _AbIt(ctx context.Context, sel ast.SelectionSet, obj *AbIt) graphql.Marshaler { 15938 fields := graphql.CollectFields(ec.OperationContext, sel, abItImplementors) 15939 15940 out := graphql.NewFieldSet(fields) 15941 deferred := make(map[string]*graphql.FieldSet) 15942 for i, field := range fields { 15943 switch field.Name { 15944 case "__typename": 15945 out.Values[i] = graphql.MarshalString("AbIt") 15946 case "id": 15947 out.Values[i] = ec._AbIt_id(ctx, field, obj) 15948 if out.Values[i] == graphql.Null { 15949 out.Invalids++ 15950 } 15951 default: 15952 panic("unknown field " + strconv.Quote(field.Name)) 15953 } 15954 } 15955 out.Dispatch(ctx) 15956 if out.Invalids > 0 { 15957 return graphql.Null 15958 } 15959 15960 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 15961 15962 for label, dfs := range deferred { 15963 ec.processDeferredGroup(graphql.DeferredGroup{ 15964 Label: label, 15965 Path: graphql.GetPath(ctx), 15966 FieldSet: dfs, 15967 Context: ctx, 15968 }) 15969 } 15970 15971 return out 15972 } 15973 15974 var autobindImplementors = []string{"Autobind"} 15975 15976 func (ec *executionContext) _Autobind(ctx context.Context, sel ast.SelectionSet, obj *Autobind) graphql.Marshaler { 15977 fields := graphql.CollectFields(ec.OperationContext, sel, autobindImplementors) 15978 15979 out := graphql.NewFieldSet(fields) 15980 deferred := make(map[string]*graphql.FieldSet) 15981 for i, field := range fields { 15982 switch field.Name { 15983 case "__typename": 15984 out.Values[i] = graphql.MarshalString("Autobind") 15985 case "int": 15986 out.Values[i] = ec._Autobind_int(ctx, field, obj) 15987 if out.Values[i] == graphql.Null { 15988 out.Invalids++ 15989 } 15990 case "int32": 15991 out.Values[i] = ec._Autobind_int32(ctx, field, obj) 15992 if out.Values[i] == graphql.Null { 15993 out.Invalids++ 15994 } 15995 case "int64": 15996 out.Values[i] = ec._Autobind_int64(ctx, field, obj) 15997 if out.Values[i] == graphql.Null { 15998 out.Invalids++ 15999 } 16000 case "idStr": 16001 out.Values[i] = ec._Autobind_idStr(ctx, field, obj) 16002 if out.Values[i] == graphql.Null { 16003 out.Invalids++ 16004 } 16005 case "idInt": 16006 out.Values[i] = ec._Autobind_idInt(ctx, field, obj) 16007 if out.Values[i] == graphql.Null { 16008 out.Invalids++ 16009 } 16010 default: 16011 panic("unknown field " + strconv.Quote(field.Name)) 16012 } 16013 } 16014 out.Dispatch(ctx) 16015 if out.Invalids > 0 { 16016 return graphql.Null 16017 } 16018 16019 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16020 16021 for label, dfs := range deferred { 16022 ec.processDeferredGroup(graphql.DeferredGroup{ 16023 Label: label, 16024 Path: graphql.GetPath(ctx), 16025 FieldSet: dfs, 16026 Context: ctx, 16027 }) 16028 } 16029 16030 return out 16031 } 16032 16033 var bImplementors = []string{"B", "TestUnion"} 16034 16035 func (ec *executionContext) _B(ctx context.Context, sel ast.SelectionSet, obj *B) graphql.Marshaler { 16036 fields := graphql.CollectFields(ec.OperationContext, sel, bImplementors) 16037 16038 out := graphql.NewFieldSet(fields) 16039 deferred := make(map[string]*graphql.FieldSet) 16040 for i, field := range fields { 16041 switch field.Name { 16042 case "__typename": 16043 out.Values[i] = graphql.MarshalString("B") 16044 case "id": 16045 out.Values[i] = ec._B_id(ctx, field, obj) 16046 if out.Values[i] == graphql.Null { 16047 out.Invalids++ 16048 } 16049 default: 16050 panic("unknown field " + strconv.Quote(field.Name)) 16051 } 16052 } 16053 out.Dispatch(ctx) 16054 if out.Invalids > 0 { 16055 return graphql.Null 16056 } 16057 16058 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16059 16060 for label, dfs := range deferred { 16061 ec.processDeferredGroup(graphql.DeferredGroup{ 16062 Label: label, 16063 Path: graphql.GetPath(ctx), 16064 FieldSet: dfs, 16065 Context: ctx, 16066 }) 16067 } 16068 16069 return out 16070 } 16071 16072 var backedByInterfaceImplementors = []string{"BackedByInterface"} 16073 16074 func (ec *executionContext) _BackedByInterface(ctx context.Context, sel ast.SelectionSet, obj BackedByInterface) graphql.Marshaler { 16075 fields := graphql.CollectFields(ec.OperationContext, sel, backedByInterfaceImplementors) 16076 16077 out := graphql.NewFieldSet(fields) 16078 deferred := make(map[string]*graphql.FieldSet) 16079 for i, field := range fields { 16080 switch field.Name { 16081 case "__typename": 16082 out.Values[i] = graphql.MarshalString("BackedByInterface") 16083 case "id": 16084 field := field 16085 16086 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 16087 defer func() { 16088 if r := recover(); r != nil { 16089 ec.Error(ctx, ec.Recover(ctx, r)) 16090 } 16091 }() 16092 res = ec._BackedByInterface_id(ctx, field, obj) 16093 if res == graphql.Null { 16094 atomic.AddUint32(&fs.Invalids, 1) 16095 } 16096 return res 16097 } 16098 16099 if field.Deferrable != nil { 16100 dfs, ok := deferred[field.Deferrable.Label] 16101 di := 0 16102 if ok { 16103 dfs.AddField(field) 16104 di = len(dfs.Values) - 1 16105 } else { 16106 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 16107 deferred[field.Deferrable.Label] = dfs 16108 } 16109 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 16110 return innerFunc(ctx, dfs) 16111 }) 16112 16113 // don't run the out.Concurrently() call below 16114 out.Values[i] = graphql.Null 16115 continue 16116 } 16117 16118 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 16119 case "thisShouldBind": 16120 out.Values[i] = ec._BackedByInterface_thisShouldBind(ctx, field, obj) 16121 if out.Values[i] == graphql.Null { 16122 atomic.AddUint32(&out.Invalids, 1) 16123 } 16124 case "thisShouldBindWithError": 16125 out.Values[i] = ec._BackedByInterface_thisShouldBindWithError(ctx, field, obj) 16126 if out.Values[i] == graphql.Null { 16127 atomic.AddUint32(&out.Invalids, 1) 16128 } 16129 default: 16130 panic("unknown field " + strconv.Quote(field.Name)) 16131 } 16132 } 16133 out.Dispatch(ctx) 16134 if out.Invalids > 0 { 16135 return graphql.Null 16136 } 16137 16138 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16139 16140 for label, dfs := range deferred { 16141 ec.processDeferredGroup(graphql.DeferredGroup{ 16142 Label: label, 16143 Path: graphql.GetPath(ctx), 16144 FieldSet: dfs, 16145 Context: ctx, 16146 }) 16147 } 16148 16149 return out 16150 } 16151 16152 var catImplementors = []string{"Cat", "Animal"} 16153 16154 func (ec *executionContext) _Cat(ctx context.Context, sel ast.SelectionSet, obj *Cat) graphql.Marshaler { 16155 fields := graphql.CollectFields(ec.OperationContext, sel, catImplementors) 16156 16157 out := graphql.NewFieldSet(fields) 16158 deferred := make(map[string]*graphql.FieldSet) 16159 for i, field := range fields { 16160 switch field.Name { 16161 case "__typename": 16162 out.Values[i] = graphql.MarshalString("Cat") 16163 case "species": 16164 out.Values[i] = ec._Cat_species(ctx, field, obj) 16165 if out.Values[i] == graphql.Null { 16166 out.Invalids++ 16167 } 16168 case "size": 16169 out.Values[i] = ec._Cat_size(ctx, field, obj) 16170 if out.Values[i] == graphql.Null { 16171 out.Invalids++ 16172 } 16173 case "catBreed": 16174 out.Values[i] = ec._Cat_catBreed(ctx, field, obj) 16175 if out.Values[i] == graphql.Null { 16176 out.Invalids++ 16177 } 16178 default: 16179 panic("unknown field " + strconv.Quote(field.Name)) 16180 } 16181 } 16182 out.Dispatch(ctx) 16183 if out.Invalids > 0 { 16184 return graphql.Null 16185 } 16186 16187 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16188 16189 for label, dfs := range deferred { 16190 ec.processDeferredGroup(graphql.DeferredGroup{ 16191 Label: label, 16192 Path: graphql.GetPath(ctx), 16193 FieldSet: dfs, 16194 Context: ctx, 16195 }) 16196 } 16197 16198 return out 16199 } 16200 16201 var checkIssue896Implementors = []string{"CheckIssue896"} 16202 16203 func (ec *executionContext) _CheckIssue896(ctx context.Context, sel ast.SelectionSet, obj *CheckIssue896) graphql.Marshaler { 16204 fields := graphql.CollectFields(ec.OperationContext, sel, checkIssue896Implementors) 16205 16206 out := graphql.NewFieldSet(fields) 16207 deferred := make(map[string]*graphql.FieldSet) 16208 for i, field := range fields { 16209 switch field.Name { 16210 case "__typename": 16211 out.Values[i] = graphql.MarshalString("CheckIssue896") 16212 case "id": 16213 out.Values[i] = ec._CheckIssue896_id(ctx, field, obj) 16214 default: 16215 panic("unknown field " + strconv.Quote(field.Name)) 16216 } 16217 } 16218 out.Dispatch(ctx) 16219 if out.Invalids > 0 { 16220 return graphql.Null 16221 } 16222 16223 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16224 16225 for label, dfs := range deferred { 16226 ec.processDeferredGroup(graphql.DeferredGroup{ 16227 Label: label, 16228 Path: graphql.GetPath(ctx), 16229 FieldSet: dfs, 16230 Context: ctx, 16231 }) 16232 } 16233 16234 return out 16235 } 16236 16237 var circleImplementors = []string{"Circle", "Shape", "ShapeUnion"} 16238 16239 func (ec *executionContext) _Circle(ctx context.Context, sel ast.SelectionSet, obj *Circle) graphql.Marshaler { 16240 fields := graphql.CollectFields(ec.OperationContext, sel, circleImplementors) 16241 16242 out := graphql.NewFieldSet(fields) 16243 deferred := make(map[string]*graphql.FieldSet) 16244 for i, field := range fields { 16245 switch field.Name { 16246 case "__typename": 16247 out.Values[i] = graphql.MarshalString("Circle") 16248 case "radius": 16249 out.Values[i] = ec._Circle_radius(ctx, field, obj) 16250 case "area": 16251 out.Values[i] = ec._Circle_area(ctx, field, obj) 16252 case "coordinates": 16253 out.Values[i] = ec._Circle_coordinates(ctx, field, obj) 16254 default: 16255 panic("unknown field " + strconv.Quote(field.Name)) 16256 } 16257 } 16258 out.Dispatch(ctx) 16259 if out.Invalids > 0 { 16260 return graphql.Null 16261 } 16262 16263 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16264 16265 for label, dfs := range deferred { 16266 ec.processDeferredGroup(graphql.DeferredGroup{ 16267 Label: label, 16268 Path: graphql.GetPath(ctx), 16269 FieldSet: dfs, 16270 Context: ctx, 16271 }) 16272 } 16273 16274 return out 16275 } 16276 16277 var concreteNodeAImplementors = []string{"ConcreteNodeA", "Node"} 16278 16279 func (ec *executionContext) _ConcreteNodeA(ctx context.Context, sel ast.SelectionSet, obj *ConcreteNodeA) graphql.Marshaler { 16280 fields := graphql.CollectFields(ec.OperationContext, sel, concreteNodeAImplementors) 16281 16282 out := graphql.NewFieldSet(fields) 16283 deferred := make(map[string]*graphql.FieldSet) 16284 for i, field := range fields { 16285 switch field.Name { 16286 case "__typename": 16287 out.Values[i] = graphql.MarshalString("ConcreteNodeA") 16288 case "id": 16289 out.Values[i] = ec._ConcreteNodeA_id(ctx, field, obj) 16290 if out.Values[i] == graphql.Null { 16291 out.Invalids++ 16292 } 16293 case "child": 16294 out.Values[i] = ec._ConcreteNodeA_child(ctx, field, obj) 16295 if out.Values[i] == graphql.Null { 16296 out.Invalids++ 16297 } 16298 case "name": 16299 out.Values[i] = ec._ConcreteNodeA_name(ctx, field, obj) 16300 if out.Values[i] == graphql.Null { 16301 out.Invalids++ 16302 } 16303 default: 16304 panic("unknown field " + strconv.Quote(field.Name)) 16305 } 16306 } 16307 out.Dispatch(ctx) 16308 if out.Invalids > 0 { 16309 return graphql.Null 16310 } 16311 16312 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16313 16314 for label, dfs := range deferred { 16315 ec.processDeferredGroup(graphql.DeferredGroup{ 16316 Label: label, 16317 Path: graphql.GetPath(ctx), 16318 FieldSet: dfs, 16319 Context: ctx, 16320 }) 16321 } 16322 16323 return out 16324 } 16325 16326 var concreteNodeInterfaceImplementors = []string{"ConcreteNodeInterface", "Node"} 16327 16328 func (ec *executionContext) _ConcreteNodeInterface(ctx context.Context, sel ast.SelectionSet, obj ConcreteNodeInterface) graphql.Marshaler { 16329 fields := graphql.CollectFields(ec.OperationContext, sel, concreteNodeInterfaceImplementors) 16330 16331 out := graphql.NewFieldSet(fields) 16332 deferred := make(map[string]*graphql.FieldSet) 16333 for i, field := range fields { 16334 switch field.Name { 16335 case "__typename": 16336 out.Values[i] = graphql.MarshalString("ConcreteNodeInterface") 16337 case "id": 16338 out.Values[i] = ec._ConcreteNodeInterface_id(ctx, field, obj) 16339 if out.Values[i] == graphql.Null { 16340 out.Invalids++ 16341 } 16342 case "child": 16343 out.Values[i] = ec._ConcreteNodeInterface_child(ctx, field, obj) 16344 if out.Values[i] == graphql.Null { 16345 out.Invalids++ 16346 } 16347 default: 16348 panic("unknown field " + strconv.Quote(field.Name)) 16349 } 16350 } 16351 out.Dispatch(ctx) 16352 if out.Invalids > 0 { 16353 return graphql.Null 16354 } 16355 16356 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16357 16358 for label, dfs := range deferred { 16359 ec.processDeferredGroup(graphql.DeferredGroup{ 16360 Label: label, 16361 Path: graphql.GetPath(ctx), 16362 FieldSet: dfs, 16363 Context: ctx, 16364 }) 16365 } 16366 16367 return out 16368 } 16369 16370 var content_PostImplementors = []string{"Content_Post", "Content_Child"} 16371 16372 func (ec *executionContext) _Content_Post(ctx context.Context, sel ast.SelectionSet, obj *ContentPost) graphql.Marshaler { 16373 fields := graphql.CollectFields(ec.OperationContext, sel, content_PostImplementors) 16374 16375 out := graphql.NewFieldSet(fields) 16376 deferred := make(map[string]*graphql.FieldSet) 16377 for i, field := range fields { 16378 switch field.Name { 16379 case "__typename": 16380 out.Values[i] = graphql.MarshalString("Content_Post") 16381 case "foo": 16382 out.Values[i] = ec._Content_Post_foo(ctx, field, obj) 16383 default: 16384 panic("unknown field " + strconv.Quote(field.Name)) 16385 } 16386 } 16387 out.Dispatch(ctx) 16388 if out.Invalids > 0 { 16389 return graphql.Null 16390 } 16391 16392 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16393 16394 for label, dfs := range deferred { 16395 ec.processDeferredGroup(graphql.DeferredGroup{ 16396 Label: label, 16397 Path: graphql.GetPath(ctx), 16398 FieldSet: dfs, 16399 Context: ctx, 16400 }) 16401 } 16402 16403 return out 16404 } 16405 16406 var content_UserImplementors = []string{"Content_User", "Content_Child"} 16407 16408 func (ec *executionContext) _Content_User(ctx context.Context, sel ast.SelectionSet, obj *ContentUser) graphql.Marshaler { 16409 fields := graphql.CollectFields(ec.OperationContext, sel, content_UserImplementors) 16410 16411 out := graphql.NewFieldSet(fields) 16412 deferred := make(map[string]*graphql.FieldSet) 16413 for i, field := range fields { 16414 switch field.Name { 16415 case "__typename": 16416 out.Values[i] = graphql.MarshalString("Content_User") 16417 case "foo": 16418 out.Values[i] = ec._Content_User_foo(ctx, field, obj) 16419 default: 16420 panic("unknown field " + strconv.Quote(field.Name)) 16421 } 16422 } 16423 out.Dispatch(ctx) 16424 if out.Invalids > 0 { 16425 return graphql.Null 16426 } 16427 16428 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16429 16430 for label, dfs := range deferred { 16431 ec.processDeferredGroup(graphql.DeferredGroup{ 16432 Label: label, 16433 Path: graphql.GetPath(ctx), 16434 FieldSet: dfs, 16435 Context: ctx, 16436 }) 16437 } 16438 16439 return out 16440 } 16441 16442 var coordinatesImplementors = []string{"Coordinates"} 16443 16444 func (ec *executionContext) _Coordinates(ctx context.Context, sel ast.SelectionSet, obj *Coordinates) graphql.Marshaler { 16445 fields := graphql.CollectFields(ec.OperationContext, sel, coordinatesImplementors) 16446 16447 out := graphql.NewFieldSet(fields) 16448 deferred := make(map[string]*graphql.FieldSet) 16449 for i, field := range fields { 16450 switch field.Name { 16451 case "__typename": 16452 out.Values[i] = graphql.MarshalString("Coordinates") 16453 case "x": 16454 out.Values[i] = ec._Coordinates_x(ctx, field, obj) 16455 if out.Values[i] == graphql.Null { 16456 out.Invalids++ 16457 } 16458 case "y": 16459 out.Values[i] = ec._Coordinates_y(ctx, field, obj) 16460 if out.Values[i] == graphql.Null { 16461 out.Invalids++ 16462 } 16463 default: 16464 panic("unknown field " + strconv.Quote(field.Name)) 16465 } 16466 } 16467 out.Dispatch(ctx) 16468 if out.Invalids > 0 { 16469 return graphql.Null 16470 } 16471 16472 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16473 16474 for label, dfs := range deferred { 16475 ec.processDeferredGroup(graphql.DeferredGroup{ 16476 Label: label, 16477 Path: graphql.GetPath(ctx), 16478 FieldSet: dfs, 16479 Context: ctx, 16480 }) 16481 } 16482 16483 return out 16484 } 16485 16486 var defaultParametersMirrorImplementors = []string{"DefaultParametersMirror"} 16487 16488 func (ec *executionContext) _DefaultParametersMirror(ctx context.Context, sel ast.SelectionSet, obj *DefaultParametersMirror) graphql.Marshaler { 16489 fields := graphql.CollectFields(ec.OperationContext, sel, defaultParametersMirrorImplementors) 16490 16491 out := graphql.NewFieldSet(fields) 16492 deferred := make(map[string]*graphql.FieldSet) 16493 for i, field := range fields { 16494 switch field.Name { 16495 case "__typename": 16496 out.Values[i] = graphql.MarshalString("DefaultParametersMirror") 16497 case "falsyBoolean": 16498 out.Values[i] = ec._DefaultParametersMirror_falsyBoolean(ctx, field, obj) 16499 case "truthyBoolean": 16500 out.Values[i] = ec._DefaultParametersMirror_truthyBoolean(ctx, field, obj) 16501 default: 16502 panic("unknown field " + strconv.Quote(field.Name)) 16503 } 16504 } 16505 out.Dispatch(ctx) 16506 if out.Invalids > 0 { 16507 return graphql.Null 16508 } 16509 16510 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16511 16512 for label, dfs := range deferred { 16513 ec.processDeferredGroup(graphql.DeferredGroup{ 16514 Label: label, 16515 Path: graphql.GetPath(ctx), 16516 FieldSet: dfs, 16517 Context: ctx, 16518 }) 16519 } 16520 16521 return out 16522 } 16523 16524 var deferModelImplementors = []string{"DeferModel"} 16525 16526 func (ec *executionContext) _DeferModel(ctx context.Context, sel ast.SelectionSet, obj *DeferModel) graphql.Marshaler { 16527 fields := graphql.CollectFields(ec.OperationContext, sel, deferModelImplementors) 16528 16529 out := graphql.NewFieldSet(fields) 16530 deferred := make(map[string]*graphql.FieldSet) 16531 for i, field := range fields { 16532 switch field.Name { 16533 case "__typename": 16534 out.Values[i] = graphql.MarshalString("DeferModel") 16535 case "id": 16536 out.Values[i] = ec._DeferModel_id(ctx, field, obj) 16537 if out.Values[i] == graphql.Null { 16538 atomic.AddUint32(&out.Invalids, 1) 16539 } 16540 case "name": 16541 out.Values[i] = ec._DeferModel_name(ctx, field, obj) 16542 if out.Values[i] == graphql.Null { 16543 atomic.AddUint32(&out.Invalids, 1) 16544 } 16545 case "values": 16546 field := field 16547 16548 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 16549 defer func() { 16550 if r := recover(); r != nil { 16551 ec.Error(ctx, ec.Recover(ctx, r)) 16552 } 16553 }() 16554 res = ec._DeferModel_values(ctx, field, obj) 16555 if res == graphql.Null { 16556 atomic.AddUint32(&fs.Invalids, 1) 16557 } 16558 return res 16559 } 16560 16561 if field.Deferrable != nil { 16562 dfs, ok := deferred[field.Deferrable.Label] 16563 di := 0 16564 if ok { 16565 dfs.AddField(field) 16566 di = len(dfs.Values) - 1 16567 } else { 16568 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 16569 deferred[field.Deferrable.Label] = dfs 16570 } 16571 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 16572 return innerFunc(ctx, dfs) 16573 }) 16574 16575 // don't run the out.Concurrently() call below 16576 out.Values[i] = graphql.Null 16577 continue 16578 } 16579 16580 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 16581 default: 16582 panic("unknown field " + strconv.Quote(field.Name)) 16583 } 16584 } 16585 out.Dispatch(ctx) 16586 if out.Invalids > 0 { 16587 return graphql.Null 16588 } 16589 16590 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16591 16592 for label, dfs := range deferred { 16593 ec.processDeferredGroup(graphql.DeferredGroup{ 16594 Label: label, 16595 Path: graphql.GetPath(ctx), 16596 FieldSet: dfs, 16597 Context: ctx, 16598 }) 16599 } 16600 16601 return out 16602 } 16603 16604 var dogImplementors = []string{"Dog", "Animal"} 16605 16606 func (ec *executionContext) _Dog(ctx context.Context, sel ast.SelectionSet, obj *Dog) graphql.Marshaler { 16607 fields := graphql.CollectFields(ec.OperationContext, sel, dogImplementors) 16608 16609 out := graphql.NewFieldSet(fields) 16610 deferred := make(map[string]*graphql.FieldSet) 16611 for i, field := range fields { 16612 switch field.Name { 16613 case "__typename": 16614 out.Values[i] = graphql.MarshalString("Dog") 16615 case "species": 16616 out.Values[i] = ec._Dog_species(ctx, field, obj) 16617 if out.Values[i] == graphql.Null { 16618 out.Invalids++ 16619 } 16620 case "size": 16621 out.Values[i] = ec._Dog_size(ctx, field, obj) 16622 if out.Values[i] == graphql.Null { 16623 out.Invalids++ 16624 } 16625 case "dogBreed": 16626 out.Values[i] = ec._Dog_dogBreed(ctx, field, obj) 16627 if out.Values[i] == graphql.Null { 16628 out.Invalids++ 16629 } 16630 default: 16631 panic("unknown field " + strconv.Quote(field.Name)) 16632 } 16633 } 16634 out.Dispatch(ctx) 16635 if out.Invalids > 0 { 16636 return graphql.Null 16637 } 16638 16639 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16640 16641 for label, dfs := range deferred { 16642 ec.processDeferredGroup(graphql.DeferredGroup{ 16643 Label: label, 16644 Path: graphql.GetPath(ctx), 16645 FieldSet: dfs, 16646 Context: ctx, 16647 }) 16648 } 16649 16650 return out 16651 } 16652 16653 var embeddedCase1Implementors = []string{"EmbeddedCase1"} 16654 16655 func (ec *executionContext) _EmbeddedCase1(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedCase1) graphql.Marshaler { 16656 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedCase1Implementors) 16657 16658 out := graphql.NewFieldSet(fields) 16659 deferred := make(map[string]*graphql.FieldSet) 16660 for i, field := range fields { 16661 switch field.Name { 16662 case "__typename": 16663 out.Values[i] = graphql.MarshalString("EmbeddedCase1") 16664 case "exportedEmbeddedPointerExportedMethod": 16665 out.Values[i] = ec._EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx, field, obj) 16666 if out.Values[i] == graphql.Null { 16667 out.Invalids++ 16668 } 16669 default: 16670 panic("unknown field " + strconv.Quote(field.Name)) 16671 } 16672 } 16673 out.Dispatch(ctx) 16674 if out.Invalids > 0 { 16675 return graphql.Null 16676 } 16677 16678 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16679 16680 for label, dfs := range deferred { 16681 ec.processDeferredGroup(graphql.DeferredGroup{ 16682 Label: label, 16683 Path: graphql.GetPath(ctx), 16684 FieldSet: dfs, 16685 Context: ctx, 16686 }) 16687 } 16688 16689 return out 16690 } 16691 16692 var embeddedCase2Implementors = []string{"EmbeddedCase2"} 16693 16694 func (ec *executionContext) _EmbeddedCase2(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedCase2) graphql.Marshaler { 16695 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedCase2Implementors) 16696 16697 out := graphql.NewFieldSet(fields) 16698 deferred := make(map[string]*graphql.FieldSet) 16699 for i, field := range fields { 16700 switch field.Name { 16701 case "__typename": 16702 out.Values[i] = graphql.MarshalString("EmbeddedCase2") 16703 case "unexportedEmbeddedPointerExportedMethod": 16704 out.Values[i] = ec._EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx, field, obj) 16705 if out.Values[i] == graphql.Null { 16706 out.Invalids++ 16707 } 16708 default: 16709 panic("unknown field " + strconv.Quote(field.Name)) 16710 } 16711 } 16712 out.Dispatch(ctx) 16713 if out.Invalids > 0 { 16714 return graphql.Null 16715 } 16716 16717 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16718 16719 for label, dfs := range deferred { 16720 ec.processDeferredGroup(graphql.DeferredGroup{ 16721 Label: label, 16722 Path: graphql.GetPath(ctx), 16723 FieldSet: dfs, 16724 Context: ctx, 16725 }) 16726 } 16727 16728 return out 16729 } 16730 16731 var embeddedCase3Implementors = []string{"EmbeddedCase3"} 16732 16733 func (ec *executionContext) _EmbeddedCase3(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedCase3) graphql.Marshaler { 16734 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedCase3Implementors) 16735 16736 out := graphql.NewFieldSet(fields) 16737 deferred := make(map[string]*graphql.FieldSet) 16738 for i, field := range fields { 16739 switch field.Name { 16740 case "__typename": 16741 out.Values[i] = graphql.MarshalString("EmbeddedCase3") 16742 case "unexportedEmbeddedInterfaceExportedMethod": 16743 out.Values[i] = ec._EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx, field, obj) 16744 if out.Values[i] == graphql.Null { 16745 out.Invalids++ 16746 } 16747 default: 16748 panic("unknown field " + strconv.Quote(field.Name)) 16749 } 16750 } 16751 out.Dispatch(ctx) 16752 if out.Invalids > 0 { 16753 return graphql.Null 16754 } 16755 16756 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16757 16758 for label, dfs := range deferred { 16759 ec.processDeferredGroup(graphql.DeferredGroup{ 16760 Label: label, 16761 Path: graphql.GetPath(ctx), 16762 FieldSet: dfs, 16763 Context: ctx, 16764 }) 16765 } 16766 16767 return out 16768 } 16769 16770 var embeddedDefaultScalarImplementors = []string{"EmbeddedDefaultScalar"} 16771 16772 func (ec *executionContext) _EmbeddedDefaultScalar(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedDefaultScalar) graphql.Marshaler { 16773 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedDefaultScalarImplementors) 16774 16775 out := graphql.NewFieldSet(fields) 16776 deferred := make(map[string]*graphql.FieldSet) 16777 for i, field := range fields { 16778 switch field.Name { 16779 case "__typename": 16780 out.Values[i] = graphql.MarshalString("EmbeddedDefaultScalar") 16781 case "value": 16782 out.Values[i] = ec._EmbeddedDefaultScalar_value(ctx, field, obj) 16783 default: 16784 panic("unknown field " + strconv.Quote(field.Name)) 16785 } 16786 } 16787 out.Dispatch(ctx) 16788 if out.Invalids > 0 { 16789 return graphql.Null 16790 } 16791 16792 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16793 16794 for label, dfs := range deferred { 16795 ec.processDeferredGroup(graphql.DeferredGroup{ 16796 Label: label, 16797 Path: graphql.GetPath(ctx), 16798 FieldSet: dfs, 16799 Context: ctx, 16800 }) 16801 } 16802 16803 return out 16804 } 16805 16806 var embeddedPointerImplementors = []string{"EmbeddedPointer"} 16807 16808 func (ec *executionContext) _EmbeddedPointer(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedPointerModel) graphql.Marshaler { 16809 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedPointerImplementors) 16810 16811 out := graphql.NewFieldSet(fields) 16812 deferred := make(map[string]*graphql.FieldSet) 16813 for i, field := range fields { 16814 switch field.Name { 16815 case "__typename": 16816 out.Values[i] = graphql.MarshalString("EmbeddedPointer") 16817 case "ID": 16818 out.Values[i] = ec._EmbeddedPointer_ID(ctx, field, obj) 16819 case "Title": 16820 out.Values[i] = ec._EmbeddedPointer_Title(ctx, field, obj) 16821 default: 16822 panic("unknown field " + strconv.Quote(field.Name)) 16823 } 16824 } 16825 out.Dispatch(ctx) 16826 if out.Invalids > 0 { 16827 return graphql.Null 16828 } 16829 16830 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16831 16832 for label, dfs := range deferred { 16833 ec.processDeferredGroup(graphql.DeferredGroup{ 16834 Label: label, 16835 Path: graphql.GetPath(ctx), 16836 FieldSet: dfs, 16837 Context: ctx, 16838 }) 16839 } 16840 16841 return out 16842 } 16843 16844 var errorImplementors = []string{"Error"} 16845 16846 func (ec *executionContext) _Error(ctx context.Context, sel ast.SelectionSet, obj *Error) graphql.Marshaler { 16847 fields := graphql.CollectFields(ec.OperationContext, sel, errorImplementors) 16848 16849 out := graphql.NewFieldSet(fields) 16850 deferred := make(map[string]*graphql.FieldSet) 16851 for i, field := range fields { 16852 switch field.Name { 16853 case "__typename": 16854 out.Values[i] = graphql.MarshalString("Error") 16855 case "id": 16856 out.Values[i] = ec._Error_id(ctx, field, obj) 16857 if out.Values[i] == graphql.Null { 16858 out.Invalids++ 16859 } 16860 case "errorOnNonRequiredField": 16861 out.Values[i] = ec._Error_errorOnNonRequiredField(ctx, field, obj) 16862 case "errorOnRequiredField": 16863 out.Values[i] = ec._Error_errorOnRequiredField(ctx, field, obj) 16864 if out.Values[i] == graphql.Null { 16865 out.Invalids++ 16866 } 16867 case "nilOnRequiredField": 16868 out.Values[i] = ec._Error_nilOnRequiredField(ctx, field, obj) 16869 if out.Values[i] == graphql.Null { 16870 out.Invalids++ 16871 } 16872 default: 16873 panic("unknown field " + strconv.Quote(field.Name)) 16874 } 16875 } 16876 out.Dispatch(ctx) 16877 if out.Invalids > 0 { 16878 return graphql.Null 16879 } 16880 16881 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 16882 16883 for label, dfs := range deferred { 16884 ec.processDeferredGroup(graphql.DeferredGroup{ 16885 Label: label, 16886 Path: graphql.GetPath(ctx), 16887 FieldSet: dfs, 16888 Context: ctx, 16889 }) 16890 } 16891 16892 return out 16893 } 16894 16895 var errorsImplementors = []string{"Errors"} 16896 16897 func (ec *executionContext) _Errors(ctx context.Context, sel ast.SelectionSet, obj *Errors) graphql.Marshaler { 16898 fields := graphql.CollectFields(ec.OperationContext, sel, errorsImplementors) 16899 16900 out := graphql.NewFieldSet(fields) 16901 deferred := make(map[string]*graphql.FieldSet) 16902 for i, field := range fields { 16903 switch field.Name { 16904 case "__typename": 16905 out.Values[i] = graphql.MarshalString("Errors") 16906 case "a": 16907 field := field 16908 16909 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 16910 defer func() { 16911 if r := recover(); r != nil { 16912 ec.Error(ctx, ec.Recover(ctx, r)) 16913 } 16914 }() 16915 res = ec._Errors_a(ctx, field, obj) 16916 if res == graphql.Null { 16917 atomic.AddUint32(&fs.Invalids, 1) 16918 } 16919 return res 16920 } 16921 16922 if field.Deferrable != nil { 16923 dfs, ok := deferred[field.Deferrable.Label] 16924 di := 0 16925 if ok { 16926 dfs.AddField(field) 16927 di = len(dfs.Values) - 1 16928 } else { 16929 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 16930 deferred[field.Deferrable.Label] = dfs 16931 } 16932 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 16933 return innerFunc(ctx, dfs) 16934 }) 16935 16936 // don't run the out.Concurrently() call below 16937 out.Values[i] = graphql.Null 16938 continue 16939 } 16940 16941 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 16942 case "b": 16943 field := field 16944 16945 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 16946 defer func() { 16947 if r := recover(); r != nil { 16948 ec.Error(ctx, ec.Recover(ctx, r)) 16949 } 16950 }() 16951 res = ec._Errors_b(ctx, field, obj) 16952 if res == graphql.Null { 16953 atomic.AddUint32(&fs.Invalids, 1) 16954 } 16955 return res 16956 } 16957 16958 if field.Deferrable != nil { 16959 dfs, ok := deferred[field.Deferrable.Label] 16960 di := 0 16961 if ok { 16962 dfs.AddField(field) 16963 di = len(dfs.Values) - 1 16964 } else { 16965 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 16966 deferred[field.Deferrable.Label] = dfs 16967 } 16968 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 16969 return innerFunc(ctx, dfs) 16970 }) 16971 16972 // don't run the out.Concurrently() call below 16973 out.Values[i] = graphql.Null 16974 continue 16975 } 16976 16977 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 16978 case "c": 16979 field := field 16980 16981 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 16982 defer func() { 16983 if r := recover(); r != nil { 16984 ec.Error(ctx, ec.Recover(ctx, r)) 16985 } 16986 }() 16987 res = ec._Errors_c(ctx, field, obj) 16988 if res == graphql.Null { 16989 atomic.AddUint32(&fs.Invalids, 1) 16990 } 16991 return res 16992 } 16993 16994 if field.Deferrable != nil { 16995 dfs, ok := deferred[field.Deferrable.Label] 16996 di := 0 16997 if ok { 16998 dfs.AddField(field) 16999 di = len(dfs.Values) - 1 17000 } else { 17001 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17002 deferred[field.Deferrable.Label] = dfs 17003 } 17004 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17005 return innerFunc(ctx, dfs) 17006 }) 17007 17008 // don't run the out.Concurrently() call below 17009 out.Values[i] = graphql.Null 17010 continue 17011 } 17012 17013 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17014 case "d": 17015 field := field 17016 17017 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17018 defer func() { 17019 if r := recover(); r != nil { 17020 ec.Error(ctx, ec.Recover(ctx, r)) 17021 } 17022 }() 17023 res = ec._Errors_d(ctx, field, obj) 17024 if res == graphql.Null { 17025 atomic.AddUint32(&fs.Invalids, 1) 17026 } 17027 return res 17028 } 17029 17030 if field.Deferrable != nil { 17031 dfs, ok := deferred[field.Deferrable.Label] 17032 di := 0 17033 if ok { 17034 dfs.AddField(field) 17035 di = len(dfs.Values) - 1 17036 } else { 17037 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17038 deferred[field.Deferrable.Label] = dfs 17039 } 17040 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17041 return innerFunc(ctx, dfs) 17042 }) 17043 17044 // don't run the out.Concurrently() call below 17045 out.Values[i] = graphql.Null 17046 continue 17047 } 17048 17049 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17050 case "e": 17051 field := field 17052 17053 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17054 defer func() { 17055 if r := recover(); r != nil { 17056 ec.Error(ctx, ec.Recover(ctx, r)) 17057 } 17058 }() 17059 res = ec._Errors_e(ctx, field, obj) 17060 if res == graphql.Null { 17061 atomic.AddUint32(&fs.Invalids, 1) 17062 } 17063 return res 17064 } 17065 17066 if field.Deferrable != nil { 17067 dfs, ok := deferred[field.Deferrable.Label] 17068 di := 0 17069 if ok { 17070 dfs.AddField(field) 17071 di = len(dfs.Values) - 1 17072 } else { 17073 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17074 deferred[field.Deferrable.Label] = dfs 17075 } 17076 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17077 return innerFunc(ctx, dfs) 17078 }) 17079 17080 // don't run the out.Concurrently() call below 17081 out.Values[i] = graphql.Null 17082 continue 17083 } 17084 17085 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17086 default: 17087 panic("unknown field " + strconv.Quote(field.Name)) 17088 } 17089 } 17090 out.Dispatch(ctx) 17091 if out.Invalids > 0 { 17092 return graphql.Null 17093 } 17094 17095 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17096 17097 for label, dfs := range deferred { 17098 ec.processDeferredGroup(graphql.DeferredGroup{ 17099 Label: label, 17100 Path: graphql.GetPath(ctx), 17101 FieldSet: dfs, 17102 Context: ctx, 17103 }) 17104 } 17105 17106 return out 17107 } 17108 17109 var fieldsOrderPayloadImplementors = []string{"FieldsOrderPayload"} 17110 17111 func (ec *executionContext) _FieldsOrderPayload(ctx context.Context, sel ast.SelectionSet, obj *FieldsOrderPayload) graphql.Marshaler { 17112 fields := graphql.CollectFields(ec.OperationContext, sel, fieldsOrderPayloadImplementors) 17113 17114 out := graphql.NewFieldSet(fields) 17115 deferred := make(map[string]*graphql.FieldSet) 17116 for i, field := range fields { 17117 switch field.Name { 17118 case "__typename": 17119 out.Values[i] = graphql.MarshalString("FieldsOrderPayload") 17120 case "firstFieldValue": 17121 out.Values[i] = ec._FieldsOrderPayload_firstFieldValue(ctx, field, obj) 17122 default: 17123 panic("unknown field " + strconv.Quote(field.Name)) 17124 } 17125 } 17126 out.Dispatch(ctx) 17127 if out.Invalids > 0 { 17128 return graphql.Null 17129 } 17130 17131 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17132 17133 for label, dfs := range deferred { 17134 ec.processDeferredGroup(graphql.DeferredGroup{ 17135 Label: label, 17136 Path: graphql.GetPath(ctx), 17137 FieldSet: dfs, 17138 Context: ctx, 17139 }) 17140 } 17141 17142 return out 17143 } 17144 17145 var forcedResolverImplementors = []string{"ForcedResolver"} 17146 17147 func (ec *executionContext) _ForcedResolver(ctx context.Context, sel ast.SelectionSet, obj *ForcedResolver) graphql.Marshaler { 17148 fields := graphql.CollectFields(ec.OperationContext, sel, forcedResolverImplementors) 17149 17150 out := graphql.NewFieldSet(fields) 17151 deferred := make(map[string]*graphql.FieldSet) 17152 for i, field := range fields { 17153 switch field.Name { 17154 case "__typename": 17155 out.Values[i] = graphql.MarshalString("ForcedResolver") 17156 case "field": 17157 field := field 17158 17159 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17160 defer func() { 17161 if r := recover(); r != nil { 17162 ec.Error(ctx, ec.Recover(ctx, r)) 17163 } 17164 }() 17165 res = ec._ForcedResolver_field(ctx, field, obj) 17166 return res 17167 } 17168 17169 if field.Deferrable != nil { 17170 dfs, ok := deferred[field.Deferrable.Label] 17171 di := 0 17172 if ok { 17173 dfs.AddField(field) 17174 di = len(dfs.Values) - 1 17175 } else { 17176 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17177 deferred[field.Deferrable.Label] = dfs 17178 } 17179 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17180 return innerFunc(ctx, dfs) 17181 }) 17182 17183 // don't run the out.Concurrently() call below 17184 out.Values[i] = graphql.Null 17185 continue 17186 } 17187 17188 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17189 default: 17190 panic("unknown field " + strconv.Quote(field.Name)) 17191 } 17192 } 17193 out.Dispatch(ctx) 17194 if out.Invalids > 0 { 17195 return graphql.Null 17196 } 17197 17198 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17199 17200 for label, dfs := range deferred { 17201 ec.processDeferredGroup(graphql.DeferredGroup{ 17202 Label: label, 17203 Path: graphql.GetPath(ctx), 17204 FieldSet: dfs, 17205 Context: ctx, 17206 }) 17207 } 17208 17209 return out 17210 } 17211 17212 var innerObjectImplementors = []string{"InnerObject"} 17213 17214 func (ec *executionContext) _InnerObject(ctx context.Context, sel ast.SelectionSet, obj *InnerObject) graphql.Marshaler { 17215 fields := graphql.CollectFields(ec.OperationContext, sel, innerObjectImplementors) 17216 17217 out := graphql.NewFieldSet(fields) 17218 deferred := make(map[string]*graphql.FieldSet) 17219 for i, field := range fields { 17220 switch field.Name { 17221 case "__typename": 17222 out.Values[i] = graphql.MarshalString("InnerObject") 17223 case "id": 17224 out.Values[i] = ec._InnerObject_id(ctx, field, obj) 17225 if out.Values[i] == graphql.Null { 17226 out.Invalids++ 17227 } 17228 default: 17229 panic("unknown field " + strconv.Quote(field.Name)) 17230 } 17231 } 17232 out.Dispatch(ctx) 17233 if out.Invalids > 0 { 17234 return graphql.Null 17235 } 17236 17237 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17238 17239 for label, dfs := range deferred { 17240 ec.processDeferredGroup(graphql.DeferredGroup{ 17241 Label: label, 17242 Path: graphql.GetPath(ctx), 17243 FieldSet: dfs, 17244 Context: ctx, 17245 }) 17246 } 17247 17248 return out 17249 } 17250 17251 var invalidIdentifierImplementors = []string{"InvalidIdentifier"} 17252 17253 func (ec *executionContext) _InvalidIdentifier(ctx context.Context, sel ast.SelectionSet, obj *invalid_packagename.InvalidIdentifier) graphql.Marshaler { 17254 fields := graphql.CollectFields(ec.OperationContext, sel, invalidIdentifierImplementors) 17255 17256 out := graphql.NewFieldSet(fields) 17257 deferred := make(map[string]*graphql.FieldSet) 17258 for i, field := range fields { 17259 switch field.Name { 17260 case "__typename": 17261 out.Values[i] = graphql.MarshalString("InvalidIdentifier") 17262 case "id": 17263 out.Values[i] = ec._InvalidIdentifier_id(ctx, field, obj) 17264 if out.Values[i] == graphql.Null { 17265 out.Invalids++ 17266 } 17267 default: 17268 panic("unknown field " + strconv.Quote(field.Name)) 17269 } 17270 } 17271 out.Dispatch(ctx) 17272 if out.Invalids > 0 { 17273 return graphql.Null 17274 } 17275 17276 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17277 17278 for label, dfs := range deferred { 17279 ec.processDeferredGroup(graphql.DeferredGroup{ 17280 Label: label, 17281 Path: graphql.GetPath(ctx), 17282 FieldSet: dfs, 17283 Context: ctx, 17284 }) 17285 } 17286 17287 return out 17288 } 17289 17290 var itImplementors = []string{"It"} 17291 17292 func (ec *executionContext) _It(ctx context.Context, sel ast.SelectionSet, obj *introspection1.It) graphql.Marshaler { 17293 fields := graphql.CollectFields(ec.OperationContext, sel, itImplementors) 17294 17295 out := graphql.NewFieldSet(fields) 17296 deferred := make(map[string]*graphql.FieldSet) 17297 for i, field := range fields { 17298 switch field.Name { 17299 case "__typename": 17300 out.Values[i] = graphql.MarshalString("It") 17301 case "id": 17302 out.Values[i] = ec._It_id(ctx, field, obj) 17303 if out.Values[i] == graphql.Null { 17304 out.Invalids++ 17305 } 17306 default: 17307 panic("unknown field " + strconv.Quote(field.Name)) 17308 } 17309 } 17310 out.Dispatch(ctx) 17311 if out.Invalids > 0 { 17312 return graphql.Null 17313 } 17314 17315 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17316 17317 for label, dfs := range deferred { 17318 ec.processDeferredGroup(graphql.DeferredGroup{ 17319 Label: label, 17320 Path: graphql.GetPath(ctx), 17321 FieldSet: dfs, 17322 Context: ctx, 17323 }) 17324 } 17325 17326 return out 17327 } 17328 17329 var loopAImplementors = []string{"LoopA"} 17330 17331 func (ec *executionContext) _LoopA(ctx context.Context, sel ast.SelectionSet, obj *LoopA) graphql.Marshaler { 17332 fields := graphql.CollectFields(ec.OperationContext, sel, loopAImplementors) 17333 17334 out := graphql.NewFieldSet(fields) 17335 deferred := make(map[string]*graphql.FieldSet) 17336 for i, field := range fields { 17337 switch field.Name { 17338 case "__typename": 17339 out.Values[i] = graphql.MarshalString("LoopA") 17340 case "b": 17341 out.Values[i] = ec._LoopA_b(ctx, field, obj) 17342 if out.Values[i] == graphql.Null { 17343 out.Invalids++ 17344 } 17345 default: 17346 panic("unknown field " + strconv.Quote(field.Name)) 17347 } 17348 } 17349 out.Dispatch(ctx) 17350 if out.Invalids > 0 { 17351 return graphql.Null 17352 } 17353 17354 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17355 17356 for label, dfs := range deferred { 17357 ec.processDeferredGroup(graphql.DeferredGroup{ 17358 Label: label, 17359 Path: graphql.GetPath(ctx), 17360 FieldSet: dfs, 17361 Context: ctx, 17362 }) 17363 } 17364 17365 return out 17366 } 17367 17368 var loopBImplementors = []string{"LoopB"} 17369 17370 func (ec *executionContext) _LoopB(ctx context.Context, sel ast.SelectionSet, obj *LoopB) graphql.Marshaler { 17371 fields := graphql.CollectFields(ec.OperationContext, sel, loopBImplementors) 17372 17373 out := graphql.NewFieldSet(fields) 17374 deferred := make(map[string]*graphql.FieldSet) 17375 for i, field := range fields { 17376 switch field.Name { 17377 case "__typename": 17378 out.Values[i] = graphql.MarshalString("LoopB") 17379 case "a": 17380 out.Values[i] = ec._LoopB_a(ctx, field, obj) 17381 if out.Values[i] == graphql.Null { 17382 out.Invalids++ 17383 } 17384 default: 17385 panic("unknown field " + strconv.Quote(field.Name)) 17386 } 17387 } 17388 out.Dispatch(ctx) 17389 if out.Invalids > 0 { 17390 return graphql.Null 17391 } 17392 17393 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17394 17395 for label, dfs := range deferred { 17396 ec.processDeferredGroup(graphql.DeferredGroup{ 17397 Label: label, 17398 Path: graphql.GetPath(ctx), 17399 FieldSet: dfs, 17400 Context: ctx, 17401 }) 17402 } 17403 17404 return out 17405 } 17406 17407 var mapImplementors = []string{"Map"} 17408 17409 func (ec *executionContext) _Map(ctx context.Context, sel ast.SelectionSet, obj *Map) graphql.Marshaler { 17410 fields := graphql.CollectFields(ec.OperationContext, sel, mapImplementors) 17411 17412 out := graphql.NewFieldSet(fields) 17413 deferred := make(map[string]*graphql.FieldSet) 17414 for i, field := range fields { 17415 switch field.Name { 17416 case "__typename": 17417 out.Values[i] = graphql.MarshalString("Map") 17418 case "id": 17419 out.Values[i] = ec._Map_id(ctx, field, obj) 17420 if out.Values[i] == graphql.Null { 17421 out.Invalids++ 17422 } 17423 default: 17424 panic("unknown field " + strconv.Quote(field.Name)) 17425 } 17426 } 17427 out.Dispatch(ctx) 17428 if out.Invalids > 0 { 17429 return graphql.Null 17430 } 17431 17432 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17433 17434 for label, dfs := range deferred { 17435 ec.processDeferredGroup(graphql.DeferredGroup{ 17436 Label: label, 17437 Path: graphql.GetPath(ctx), 17438 FieldSet: dfs, 17439 Context: ctx, 17440 }) 17441 } 17442 17443 return out 17444 } 17445 17446 var mapStringInterfaceTypeImplementors = []string{"MapStringInterfaceType"} 17447 17448 func (ec *executionContext) _MapStringInterfaceType(ctx context.Context, sel ast.SelectionSet, obj map[string]interface{}) graphql.Marshaler { 17449 fields := graphql.CollectFields(ec.OperationContext, sel, mapStringInterfaceTypeImplementors) 17450 17451 out := graphql.NewFieldSet(fields) 17452 deferred := make(map[string]*graphql.FieldSet) 17453 for i, field := range fields { 17454 switch field.Name { 17455 case "__typename": 17456 out.Values[i] = graphql.MarshalString("MapStringInterfaceType") 17457 case "a": 17458 out.Values[i] = ec._MapStringInterfaceType_a(ctx, field, obj) 17459 case "b": 17460 out.Values[i] = ec._MapStringInterfaceType_b(ctx, field, obj) 17461 default: 17462 panic("unknown field " + strconv.Quote(field.Name)) 17463 } 17464 } 17465 out.Dispatch(ctx) 17466 if out.Invalids > 0 { 17467 return graphql.Null 17468 } 17469 17470 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17471 17472 for label, dfs := range deferred { 17473 ec.processDeferredGroup(graphql.DeferredGroup{ 17474 Label: label, 17475 Path: graphql.GetPath(ctx), 17476 FieldSet: dfs, 17477 Context: ctx, 17478 }) 17479 } 17480 17481 return out 17482 } 17483 17484 var modelMethodsImplementors = []string{"ModelMethods"} 17485 17486 func (ec *executionContext) _ModelMethods(ctx context.Context, sel ast.SelectionSet, obj *ModelMethods) graphql.Marshaler { 17487 fields := graphql.CollectFields(ec.OperationContext, sel, modelMethodsImplementors) 17488 17489 out := graphql.NewFieldSet(fields) 17490 deferred := make(map[string]*graphql.FieldSet) 17491 for i, field := range fields { 17492 switch field.Name { 17493 case "__typename": 17494 out.Values[i] = graphql.MarshalString("ModelMethods") 17495 case "resolverField": 17496 field := field 17497 17498 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17499 defer func() { 17500 if r := recover(); r != nil { 17501 ec.Error(ctx, ec.Recover(ctx, r)) 17502 } 17503 }() 17504 res = ec._ModelMethods_resolverField(ctx, field, obj) 17505 if res == graphql.Null { 17506 atomic.AddUint32(&fs.Invalids, 1) 17507 } 17508 return res 17509 } 17510 17511 if field.Deferrable != nil { 17512 dfs, ok := deferred[field.Deferrable.Label] 17513 di := 0 17514 if ok { 17515 dfs.AddField(field) 17516 di = len(dfs.Values) - 1 17517 } else { 17518 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17519 deferred[field.Deferrable.Label] = dfs 17520 } 17521 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17522 return innerFunc(ctx, dfs) 17523 }) 17524 17525 // don't run the out.Concurrently() call below 17526 out.Values[i] = graphql.Null 17527 continue 17528 } 17529 17530 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17531 case "noContext": 17532 out.Values[i] = ec._ModelMethods_noContext(ctx, field, obj) 17533 if out.Values[i] == graphql.Null { 17534 atomic.AddUint32(&out.Invalids, 1) 17535 } 17536 case "withContext": 17537 field := field 17538 17539 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17540 defer func() { 17541 if r := recover(); r != nil { 17542 ec.Error(ctx, ec.Recover(ctx, r)) 17543 } 17544 }() 17545 res = ec._ModelMethods_withContext(ctx, field, obj) 17546 if res == graphql.Null { 17547 atomic.AddUint32(&fs.Invalids, 1) 17548 } 17549 return res 17550 } 17551 17552 if field.Deferrable != nil { 17553 dfs, ok := deferred[field.Deferrable.Label] 17554 di := 0 17555 if ok { 17556 dfs.AddField(field) 17557 di = len(dfs.Values) - 1 17558 } else { 17559 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17560 deferred[field.Deferrable.Label] = dfs 17561 } 17562 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17563 return innerFunc(ctx, dfs) 17564 }) 17565 17566 // don't run the out.Concurrently() call below 17567 out.Values[i] = graphql.Null 17568 continue 17569 } 17570 17571 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17572 default: 17573 panic("unknown field " + strconv.Quote(field.Name)) 17574 } 17575 } 17576 out.Dispatch(ctx) 17577 if out.Invalids > 0 { 17578 return graphql.Null 17579 } 17580 17581 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17582 17583 for label, dfs := range deferred { 17584 ec.processDeferredGroup(graphql.DeferredGroup{ 17585 Label: label, 17586 Path: graphql.GetPath(ctx), 17587 FieldSet: dfs, 17588 Context: ctx, 17589 }) 17590 } 17591 17592 return out 17593 } 17594 17595 var mutationImplementors = []string{"Mutation"} 17596 17597 func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 17598 fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) 17599 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 17600 Object: "Mutation", 17601 }) 17602 17603 out := graphql.NewFieldSet(fields) 17604 deferred := make(map[string]*graphql.FieldSet) 17605 for i, field := range fields { 17606 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 17607 Object: field.Name, 17608 Field: field, 17609 }) 17610 17611 switch field.Name { 17612 case "__typename": 17613 out.Values[i] = graphql.MarshalString("Mutation") 17614 case "defaultInput": 17615 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 17616 return ec._Mutation_defaultInput(ctx, field) 17617 }) 17618 if out.Values[i] == graphql.Null { 17619 out.Invalids++ 17620 } 17621 case "overrideValueViaInput": 17622 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 17623 return ec._Mutation_overrideValueViaInput(ctx, field) 17624 }) 17625 if out.Values[i] == graphql.Null { 17626 out.Invalids++ 17627 } 17628 case "updateSomething": 17629 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 17630 return ec._Mutation_updateSomething(ctx, field) 17631 }) 17632 if out.Values[i] == graphql.Null { 17633 out.Invalids++ 17634 } 17635 case "updatePtrToPtr": 17636 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 17637 return ec._Mutation_updatePtrToPtr(ctx, field) 17638 }) 17639 if out.Values[i] == graphql.Null { 17640 out.Invalids++ 17641 } 17642 default: 17643 panic("unknown field " + strconv.Quote(field.Name)) 17644 } 17645 } 17646 out.Dispatch(ctx) 17647 if out.Invalids > 0 { 17648 return graphql.Null 17649 } 17650 17651 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17652 17653 for label, dfs := range deferred { 17654 ec.processDeferredGroup(graphql.DeferredGroup{ 17655 Label: label, 17656 Path: graphql.GetPath(ctx), 17657 FieldSet: dfs, 17658 Context: ctx, 17659 }) 17660 } 17661 17662 return out 17663 } 17664 17665 var objectDirectivesImplementors = []string{"ObjectDirectives"} 17666 17667 func (ec *executionContext) _ObjectDirectives(ctx context.Context, sel ast.SelectionSet, obj *ObjectDirectives) graphql.Marshaler { 17668 fields := graphql.CollectFields(ec.OperationContext, sel, objectDirectivesImplementors) 17669 17670 out := graphql.NewFieldSet(fields) 17671 deferred := make(map[string]*graphql.FieldSet) 17672 for i, field := range fields { 17673 switch field.Name { 17674 case "__typename": 17675 out.Values[i] = graphql.MarshalString("ObjectDirectives") 17676 case "text": 17677 out.Values[i] = ec._ObjectDirectives_text(ctx, field, obj) 17678 if out.Values[i] == graphql.Null { 17679 out.Invalids++ 17680 } 17681 case "nullableText": 17682 out.Values[i] = ec._ObjectDirectives_nullableText(ctx, field, obj) 17683 case "order": 17684 out.Values[i] = ec._ObjectDirectives_order(ctx, field, obj) 17685 if out.Values[i] == graphql.Null { 17686 out.Invalids++ 17687 } 17688 default: 17689 panic("unknown field " + strconv.Quote(field.Name)) 17690 } 17691 } 17692 out.Dispatch(ctx) 17693 if out.Invalids > 0 { 17694 return graphql.Null 17695 } 17696 17697 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17698 17699 for label, dfs := range deferred { 17700 ec.processDeferredGroup(graphql.DeferredGroup{ 17701 Label: label, 17702 Path: graphql.GetPath(ctx), 17703 FieldSet: dfs, 17704 Context: ctx, 17705 }) 17706 } 17707 17708 return out 17709 } 17710 17711 var objectDirectivesWithCustomGoModelImplementors = []string{"ObjectDirectivesWithCustomGoModel"} 17712 17713 func (ec *executionContext) _ObjectDirectivesWithCustomGoModel(ctx context.Context, sel ast.SelectionSet, obj *ObjectDirectivesWithCustomGoModel) graphql.Marshaler { 17714 fields := graphql.CollectFields(ec.OperationContext, sel, objectDirectivesWithCustomGoModelImplementors) 17715 17716 out := graphql.NewFieldSet(fields) 17717 deferred := make(map[string]*graphql.FieldSet) 17718 for i, field := range fields { 17719 switch field.Name { 17720 case "__typename": 17721 out.Values[i] = graphql.MarshalString("ObjectDirectivesWithCustomGoModel") 17722 case "nullableText": 17723 out.Values[i] = ec._ObjectDirectivesWithCustomGoModel_nullableText(ctx, field, obj) 17724 default: 17725 panic("unknown field " + strconv.Quote(field.Name)) 17726 } 17727 } 17728 out.Dispatch(ctx) 17729 if out.Invalids > 0 { 17730 return graphql.Null 17731 } 17732 17733 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17734 17735 for label, dfs := range deferred { 17736 ec.processDeferredGroup(graphql.DeferredGroup{ 17737 Label: label, 17738 Path: graphql.GetPath(ctx), 17739 FieldSet: dfs, 17740 Context: ctx, 17741 }) 17742 } 17743 17744 return out 17745 } 17746 17747 var outerObjectImplementors = []string{"OuterObject"} 17748 17749 func (ec *executionContext) _OuterObject(ctx context.Context, sel ast.SelectionSet, obj *OuterObject) graphql.Marshaler { 17750 fields := graphql.CollectFields(ec.OperationContext, sel, outerObjectImplementors) 17751 17752 out := graphql.NewFieldSet(fields) 17753 deferred := make(map[string]*graphql.FieldSet) 17754 for i, field := range fields { 17755 switch field.Name { 17756 case "__typename": 17757 out.Values[i] = graphql.MarshalString("OuterObject") 17758 case "inner": 17759 out.Values[i] = ec._OuterObject_inner(ctx, field, obj) 17760 if out.Values[i] == graphql.Null { 17761 out.Invalids++ 17762 } 17763 default: 17764 panic("unknown field " + strconv.Quote(field.Name)) 17765 } 17766 } 17767 out.Dispatch(ctx) 17768 if out.Invalids > 0 { 17769 return graphql.Null 17770 } 17771 17772 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17773 17774 for label, dfs := range deferred { 17775 ec.processDeferredGroup(graphql.DeferredGroup{ 17776 Label: label, 17777 Path: graphql.GetPath(ctx), 17778 FieldSet: dfs, 17779 Context: ctx, 17780 }) 17781 } 17782 17783 return out 17784 } 17785 17786 var overlappingFieldsImplementors = []string{"OverlappingFields"} 17787 17788 func (ec *executionContext) _OverlappingFields(ctx context.Context, sel ast.SelectionSet, obj *OverlappingFields) graphql.Marshaler { 17789 fields := graphql.CollectFields(ec.OperationContext, sel, overlappingFieldsImplementors) 17790 17791 out := graphql.NewFieldSet(fields) 17792 deferred := make(map[string]*graphql.FieldSet) 17793 for i, field := range fields { 17794 switch field.Name { 17795 case "__typename": 17796 out.Values[i] = graphql.MarshalString("OverlappingFields") 17797 case "oneFoo": 17798 out.Values[i] = ec._OverlappingFields_oneFoo(ctx, field, obj) 17799 if out.Values[i] == graphql.Null { 17800 atomic.AddUint32(&out.Invalids, 1) 17801 } 17802 case "twoFoo": 17803 out.Values[i] = ec._OverlappingFields_twoFoo(ctx, field, obj) 17804 if out.Values[i] == graphql.Null { 17805 atomic.AddUint32(&out.Invalids, 1) 17806 } 17807 case "oldFoo": 17808 field := field 17809 17810 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17811 defer func() { 17812 if r := recover(); r != nil { 17813 ec.Error(ctx, ec.Recover(ctx, r)) 17814 } 17815 }() 17816 res = ec._OverlappingFields_oldFoo(ctx, field, obj) 17817 if res == graphql.Null { 17818 atomic.AddUint32(&fs.Invalids, 1) 17819 } 17820 return res 17821 } 17822 17823 if field.Deferrable != nil { 17824 dfs, ok := deferred[field.Deferrable.Label] 17825 di := 0 17826 if ok { 17827 dfs.AddField(field) 17828 di = len(dfs.Values) - 1 17829 } else { 17830 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17831 deferred[field.Deferrable.Label] = dfs 17832 } 17833 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17834 return innerFunc(ctx, dfs) 17835 }) 17836 17837 // don't run the out.Concurrently() call below 17838 out.Values[i] = graphql.Null 17839 continue 17840 } 17841 17842 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17843 case "newFoo": 17844 out.Values[i] = ec._OverlappingFields_newFoo(ctx, field, obj) 17845 if out.Values[i] == graphql.Null { 17846 atomic.AddUint32(&out.Invalids, 1) 17847 } 17848 case "new_foo": 17849 out.Values[i] = ec._OverlappingFields_new_foo(ctx, field, obj) 17850 if out.Values[i] == graphql.Null { 17851 atomic.AddUint32(&out.Invalids, 1) 17852 } 17853 default: 17854 panic("unknown field " + strconv.Quote(field.Name)) 17855 } 17856 } 17857 out.Dispatch(ctx) 17858 if out.Invalids > 0 { 17859 return graphql.Null 17860 } 17861 17862 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 17863 17864 for label, dfs := range deferred { 17865 ec.processDeferredGroup(graphql.DeferredGroup{ 17866 Label: label, 17867 Path: graphql.GetPath(ctx), 17868 FieldSet: dfs, 17869 Context: ctx, 17870 }) 17871 } 17872 17873 return out 17874 } 17875 17876 var panicsImplementors = []string{"Panics"} 17877 17878 func (ec *executionContext) _Panics(ctx context.Context, sel ast.SelectionSet, obj *Panics) graphql.Marshaler { 17879 fields := graphql.CollectFields(ec.OperationContext, sel, panicsImplementors) 17880 17881 out := graphql.NewFieldSet(fields) 17882 deferred := make(map[string]*graphql.FieldSet) 17883 for i, field := range fields { 17884 switch field.Name { 17885 case "__typename": 17886 out.Values[i] = graphql.MarshalString("Panics") 17887 case "fieldScalarMarshal": 17888 field := field 17889 17890 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17891 defer func() { 17892 if r := recover(); r != nil { 17893 ec.Error(ctx, ec.Recover(ctx, r)) 17894 } 17895 }() 17896 res = ec._Panics_fieldScalarMarshal(ctx, field, obj) 17897 if res == graphql.Null { 17898 atomic.AddUint32(&fs.Invalids, 1) 17899 } 17900 return res 17901 } 17902 17903 if field.Deferrable != nil { 17904 dfs, ok := deferred[field.Deferrable.Label] 17905 di := 0 17906 if ok { 17907 dfs.AddField(field) 17908 di = len(dfs.Values) - 1 17909 } else { 17910 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17911 deferred[field.Deferrable.Label] = dfs 17912 } 17913 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17914 return innerFunc(ctx, dfs) 17915 }) 17916 17917 // don't run the out.Concurrently() call below 17918 out.Values[i] = graphql.Null 17919 continue 17920 } 17921 17922 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17923 case "fieldFuncMarshal": 17924 field := field 17925 17926 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17927 defer func() { 17928 if r := recover(); r != nil { 17929 ec.Error(ctx, ec.Recover(ctx, r)) 17930 } 17931 }() 17932 res = ec._Panics_fieldFuncMarshal(ctx, field, obj) 17933 if res == graphql.Null { 17934 atomic.AddUint32(&fs.Invalids, 1) 17935 } 17936 return res 17937 } 17938 17939 if field.Deferrable != nil { 17940 dfs, ok := deferred[field.Deferrable.Label] 17941 di := 0 17942 if ok { 17943 dfs.AddField(field) 17944 di = len(dfs.Values) - 1 17945 } else { 17946 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17947 deferred[field.Deferrable.Label] = dfs 17948 } 17949 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17950 return innerFunc(ctx, dfs) 17951 }) 17952 17953 // don't run the out.Concurrently() call below 17954 out.Values[i] = graphql.Null 17955 continue 17956 } 17957 17958 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17959 case "argUnmarshal": 17960 field := field 17961 17962 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 17963 defer func() { 17964 if r := recover(); r != nil { 17965 ec.Error(ctx, ec.Recover(ctx, r)) 17966 } 17967 }() 17968 res = ec._Panics_argUnmarshal(ctx, field, obj) 17969 if res == graphql.Null { 17970 atomic.AddUint32(&fs.Invalids, 1) 17971 } 17972 return res 17973 } 17974 17975 if field.Deferrable != nil { 17976 dfs, ok := deferred[field.Deferrable.Label] 17977 di := 0 17978 if ok { 17979 dfs.AddField(field) 17980 di = len(dfs.Values) - 1 17981 } else { 17982 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 17983 deferred[field.Deferrable.Label] = dfs 17984 } 17985 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 17986 return innerFunc(ctx, dfs) 17987 }) 17988 17989 // don't run the out.Concurrently() call below 17990 out.Values[i] = graphql.Null 17991 continue 17992 } 17993 17994 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 17995 default: 17996 panic("unknown field " + strconv.Quote(field.Name)) 17997 } 17998 } 17999 out.Dispatch(ctx) 18000 if out.Invalids > 0 { 18001 return graphql.Null 18002 } 18003 18004 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 18005 18006 for label, dfs := range deferred { 18007 ec.processDeferredGroup(graphql.DeferredGroup{ 18008 Label: label, 18009 Path: graphql.GetPath(ctx), 18010 FieldSet: dfs, 18011 Context: ctx, 18012 }) 18013 } 18014 18015 return out 18016 } 18017 18018 var petImplementors = []string{"Pet"} 18019 18020 func (ec *executionContext) _Pet(ctx context.Context, sel ast.SelectionSet, obj *Pet) graphql.Marshaler { 18021 fields := graphql.CollectFields(ec.OperationContext, sel, petImplementors) 18022 18023 out := graphql.NewFieldSet(fields) 18024 deferred := make(map[string]*graphql.FieldSet) 18025 for i, field := range fields { 18026 switch field.Name { 18027 case "__typename": 18028 out.Values[i] = graphql.MarshalString("Pet") 18029 case "id": 18030 out.Values[i] = ec._Pet_id(ctx, field, obj) 18031 if out.Values[i] == graphql.Null { 18032 atomic.AddUint32(&out.Invalids, 1) 18033 } 18034 case "friends": 18035 field := field 18036 18037 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18038 defer func() { 18039 if r := recover(); r != nil { 18040 ec.Error(ctx, ec.Recover(ctx, r)) 18041 } 18042 }() 18043 res = ec._Pet_friends(ctx, field, obj) 18044 return res 18045 } 18046 18047 if field.Deferrable != nil { 18048 dfs, ok := deferred[field.Deferrable.Label] 18049 di := 0 18050 if ok { 18051 dfs.AddField(field) 18052 di = len(dfs.Values) - 1 18053 } else { 18054 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 18055 deferred[field.Deferrable.Label] = dfs 18056 } 18057 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 18058 return innerFunc(ctx, dfs) 18059 }) 18060 18061 // don't run the out.Concurrently() call below 18062 out.Values[i] = graphql.Null 18063 continue 18064 } 18065 18066 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18067 default: 18068 panic("unknown field " + strconv.Quote(field.Name)) 18069 } 18070 } 18071 out.Dispatch(ctx) 18072 if out.Invalids > 0 { 18073 return graphql.Null 18074 } 18075 18076 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 18077 18078 for label, dfs := range deferred { 18079 ec.processDeferredGroup(graphql.DeferredGroup{ 18080 Label: label, 18081 Path: graphql.GetPath(ctx), 18082 FieldSet: dfs, 18083 Context: ctx, 18084 }) 18085 } 18086 18087 return out 18088 } 18089 18090 var primitiveImplementors = []string{"Primitive"} 18091 18092 func (ec *executionContext) _Primitive(ctx context.Context, sel ast.SelectionSet, obj *Primitive) graphql.Marshaler { 18093 fields := graphql.CollectFields(ec.OperationContext, sel, primitiveImplementors) 18094 18095 out := graphql.NewFieldSet(fields) 18096 deferred := make(map[string]*graphql.FieldSet) 18097 for i, field := range fields { 18098 switch field.Name { 18099 case "__typename": 18100 out.Values[i] = graphql.MarshalString("Primitive") 18101 case "value": 18102 field := field 18103 18104 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18105 defer func() { 18106 if r := recover(); r != nil { 18107 ec.Error(ctx, ec.Recover(ctx, r)) 18108 } 18109 }() 18110 res = ec._Primitive_value(ctx, field, obj) 18111 if res == graphql.Null { 18112 atomic.AddUint32(&fs.Invalids, 1) 18113 } 18114 return res 18115 } 18116 18117 if field.Deferrable != nil { 18118 dfs, ok := deferred[field.Deferrable.Label] 18119 di := 0 18120 if ok { 18121 dfs.AddField(field) 18122 di = len(dfs.Values) - 1 18123 } else { 18124 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 18125 deferred[field.Deferrable.Label] = dfs 18126 } 18127 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 18128 return innerFunc(ctx, dfs) 18129 }) 18130 18131 // don't run the out.Concurrently() call below 18132 out.Values[i] = graphql.Null 18133 continue 18134 } 18135 18136 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18137 case "squared": 18138 out.Values[i] = ec._Primitive_squared(ctx, field, obj) 18139 if out.Values[i] == graphql.Null { 18140 atomic.AddUint32(&out.Invalids, 1) 18141 } 18142 default: 18143 panic("unknown field " + strconv.Quote(field.Name)) 18144 } 18145 } 18146 out.Dispatch(ctx) 18147 if out.Invalids > 0 { 18148 return graphql.Null 18149 } 18150 18151 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 18152 18153 for label, dfs := range deferred { 18154 ec.processDeferredGroup(graphql.DeferredGroup{ 18155 Label: label, 18156 Path: graphql.GetPath(ctx), 18157 FieldSet: dfs, 18158 Context: ctx, 18159 }) 18160 } 18161 18162 return out 18163 } 18164 18165 var primitiveStringImplementors = []string{"PrimitiveString"} 18166 18167 func (ec *executionContext) _PrimitiveString(ctx context.Context, sel ast.SelectionSet, obj *PrimitiveString) graphql.Marshaler { 18168 fields := graphql.CollectFields(ec.OperationContext, sel, primitiveStringImplementors) 18169 18170 out := graphql.NewFieldSet(fields) 18171 deferred := make(map[string]*graphql.FieldSet) 18172 for i, field := range fields { 18173 switch field.Name { 18174 case "__typename": 18175 out.Values[i] = graphql.MarshalString("PrimitiveString") 18176 case "value": 18177 field := field 18178 18179 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18180 defer func() { 18181 if r := recover(); r != nil { 18182 ec.Error(ctx, ec.Recover(ctx, r)) 18183 } 18184 }() 18185 res = ec._PrimitiveString_value(ctx, field, obj) 18186 if res == graphql.Null { 18187 atomic.AddUint32(&fs.Invalids, 1) 18188 } 18189 return res 18190 } 18191 18192 if field.Deferrable != nil { 18193 dfs, ok := deferred[field.Deferrable.Label] 18194 di := 0 18195 if ok { 18196 dfs.AddField(field) 18197 di = len(dfs.Values) - 1 18198 } else { 18199 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 18200 deferred[field.Deferrable.Label] = dfs 18201 } 18202 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 18203 return innerFunc(ctx, dfs) 18204 }) 18205 18206 // don't run the out.Concurrently() call below 18207 out.Values[i] = graphql.Null 18208 continue 18209 } 18210 18211 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18212 case "doubled": 18213 out.Values[i] = ec._PrimitiveString_doubled(ctx, field, obj) 18214 if out.Values[i] == graphql.Null { 18215 atomic.AddUint32(&out.Invalids, 1) 18216 } 18217 case "len": 18218 field := field 18219 18220 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18221 defer func() { 18222 if r := recover(); r != nil { 18223 ec.Error(ctx, ec.Recover(ctx, r)) 18224 } 18225 }() 18226 res = ec._PrimitiveString_len(ctx, field, obj) 18227 if res == graphql.Null { 18228 atomic.AddUint32(&fs.Invalids, 1) 18229 } 18230 return res 18231 } 18232 18233 if field.Deferrable != nil { 18234 dfs, ok := deferred[field.Deferrable.Label] 18235 di := 0 18236 if ok { 18237 dfs.AddField(field) 18238 di = len(dfs.Values) - 1 18239 } else { 18240 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 18241 deferred[field.Deferrable.Label] = dfs 18242 } 18243 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 18244 return innerFunc(ctx, dfs) 18245 }) 18246 18247 // don't run the out.Concurrently() call below 18248 out.Values[i] = graphql.Null 18249 continue 18250 } 18251 18252 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18253 default: 18254 panic("unknown field " + strconv.Quote(field.Name)) 18255 } 18256 } 18257 out.Dispatch(ctx) 18258 if out.Invalids > 0 { 18259 return graphql.Null 18260 } 18261 18262 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 18263 18264 for label, dfs := range deferred { 18265 ec.processDeferredGroup(graphql.DeferredGroup{ 18266 Label: label, 18267 Path: graphql.GetPath(ctx), 18268 FieldSet: dfs, 18269 Context: ctx, 18270 }) 18271 } 18272 18273 return out 18274 } 18275 18276 var ptrToAnyContainerImplementors = []string{"PtrToAnyContainer"} 18277 18278 func (ec *executionContext) _PtrToAnyContainer(ctx context.Context, sel ast.SelectionSet, obj *PtrToAnyContainer) graphql.Marshaler { 18279 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToAnyContainerImplementors) 18280 18281 out := graphql.NewFieldSet(fields) 18282 deferred := make(map[string]*graphql.FieldSet) 18283 for i, field := range fields { 18284 switch field.Name { 18285 case "__typename": 18286 out.Values[i] = graphql.MarshalString("PtrToAnyContainer") 18287 case "ptrToAny": 18288 out.Values[i] = ec._PtrToAnyContainer_ptrToAny(ctx, field, obj) 18289 case "binding": 18290 out.Values[i] = ec._PtrToAnyContainer_binding(ctx, field, obj) 18291 default: 18292 panic("unknown field " + strconv.Quote(field.Name)) 18293 } 18294 } 18295 out.Dispatch(ctx) 18296 if out.Invalids > 0 { 18297 return graphql.Null 18298 } 18299 18300 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 18301 18302 for label, dfs := range deferred { 18303 ec.processDeferredGroup(graphql.DeferredGroup{ 18304 Label: label, 18305 Path: graphql.GetPath(ctx), 18306 FieldSet: dfs, 18307 Context: ctx, 18308 }) 18309 } 18310 18311 return out 18312 } 18313 18314 var ptrToPtrInnerImplementors = []string{"PtrToPtrInner"} 18315 18316 func (ec *executionContext) _PtrToPtrInner(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrInner) graphql.Marshaler { 18317 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrInnerImplementors) 18318 18319 out := graphql.NewFieldSet(fields) 18320 deferred := make(map[string]*graphql.FieldSet) 18321 for i, field := range fields { 18322 switch field.Name { 18323 case "__typename": 18324 out.Values[i] = graphql.MarshalString("PtrToPtrInner") 18325 case "key": 18326 out.Values[i] = ec._PtrToPtrInner_key(ctx, field, obj) 18327 if out.Values[i] == graphql.Null { 18328 out.Invalids++ 18329 } 18330 case "value": 18331 out.Values[i] = ec._PtrToPtrInner_value(ctx, field, obj) 18332 if out.Values[i] == graphql.Null { 18333 out.Invalids++ 18334 } 18335 default: 18336 panic("unknown field " + strconv.Quote(field.Name)) 18337 } 18338 } 18339 out.Dispatch(ctx) 18340 if out.Invalids > 0 { 18341 return graphql.Null 18342 } 18343 18344 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 18345 18346 for label, dfs := range deferred { 18347 ec.processDeferredGroup(graphql.DeferredGroup{ 18348 Label: label, 18349 Path: graphql.GetPath(ctx), 18350 FieldSet: dfs, 18351 Context: ctx, 18352 }) 18353 } 18354 18355 return out 18356 } 18357 18358 var ptrToPtrOuterImplementors = []string{"PtrToPtrOuter"} 18359 18360 func (ec *executionContext) _PtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrOuter) graphql.Marshaler { 18361 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrOuterImplementors) 18362 18363 out := graphql.NewFieldSet(fields) 18364 deferred := make(map[string]*graphql.FieldSet) 18365 for i, field := range fields { 18366 switch field.Name { 18367 case "__typename": 18368 out.Values[i] = graphql.MarshalString("PtrToPtrOuter") 18369 case "name": 18370 out.Values[i] = ec._PtrToPtrOuter_name(ctx, field, obj) 18371 if out.Values[i] == graphql.Null { 18372 out.Invalids++ 18373 } 18374 case "inner": 18375 out.Values[i] = ec._PtrToPtrOuter_inner(ctx, field, obj) 18376 case "stupidInner": 18377 out.Values[i] = ec._PtrToPtrOuter_stupidInner(ctx, field, obj) 18378 default: 18379 panic("unknown field " + strconv.Quote(field.Name)) 18380 } 18381 } 18382 out.Dispatch(ctx) 18383 if out.Invalids > 0 { 18384 return graphql.Null 18385 } 18386 18387 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 18388 18389 for label, dfs := range deferred { 18390 ec.processDeferredGroup(graphql.DeferredGroup{ 18391 Label: label, 18392 Path: graphql.GetPath(ctx), 18393 FieldSet: dfs, 18394 Context: ctx, 18395 }) 18396 } 18397 18398 return out 18399 } 18400 18401 var ptrToSliceContainerImplementors = []string{"PtrToSliceContainer"} 18402 18403 func (ec *executionContext) _PtrToSliceContainer(ctx context.Context, sel ast.SelectionSet, obj *PtrToSliceContainer) graphql.Marshaler { 18404 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToSliceContainerImplementors) 18405 18406 out := graphql.NewFieldSet(fields) 18407 deferred := make(map[string]*graphql.FieldSet) 18408 for i, field := range fields { 18409 switch field.Name { 18410 case "__typename": 18411 out.Values[i] = graphql.MarshalString("PtrToSliceContainer") 18412 case "ptrToSlice": 18413 out.Values[i] = ec._PtrToSliceContainer_ptrToSlice(ctx, field, obj) 18414 default: 18415 panic("unknown field " + strconv.Quote(field.Name)) 18416 } 18417 } 18418 out.Dispatch(ctx) 18419 if out.Invalids > 0 { 18420 return graphql.Null 18421 } 18422 18423 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 18424 18425 for label, dfs := range deferred { 18426 ec.processDeferredGroup(graphql.DeferredGroup{ 18427 Label: label, 18428 Path: graphql.GetPath(ctx), 18429 FieldSet: dfs, 18430 Context: ctx, 18431 }) 18432 } 18433 18434 return out 18435 } 18436 18437 var queryImplementors = []string{"Query"} 18438 18439 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 18440 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) 18441 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 18442 Object: "Query", 18443 }) 18444 18445 out := graphql.NewFieldSet(fields) 18446 deferred := make(map[string]*graphql.FieldSet) 18447 for i, field := range fields { 18448 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 18449 Object: field.Name, 18450 Field: field, 18451 }) 18452 18453 switch field.Name { 18454 case "__typename": 18455 out.Values[i] = graphql.MarshalString("Query") 18456 case "invalidIdentifier": 18457 field := field 18458 18459 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18460 defer func() { 18461 if r := recover(); r != nil { 18462 ec.Error(ctx, ec.Recover(ctx, r)) 18463 } 18464 }() 18465 res = ec._Query_invalidIdentifier(ctx, field) 18466 return res 18467 } 18468 18469 rrm := func(ctx context.Context) graphql.Marshaler { 18470 return ec.OperationContext.RootResolverMiddleware(ctx, 18471 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18472 } 18473 18474 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18475 case "collision": 18476 field := field 18477 18478 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18479 defer func() { 18480 if r := recover(); r != nil { 18481 ec.Error(ctx, ec.Recover(ctx, r)) 18482 } 18483 }() 18484 res = ec._Query_collision(ctx, field) 18485 return res 18486 } 18487 18488 rrm := func(ctx context.Context) graphql.Marshaler { 18489 return ec.OperationContext.RootResolverMiddleware(ctx, 18490 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18491 } 18492 18493 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18494 case "mapInput": 18495 field := field 18496 18497 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18498 defer func() { 18499 if r := recover(); r != nil { 18500 ec.Error(ctx, ec.Recover(ctx, r)) 18501 } 18502 }() 18503 res = ec._Query_mapInput(ctx, field) 18504 return res 18505 } 18506 18507 rrm := func(ctx context.Context) graphql.Marshaler { 18508 return ec.OperationContext.RootResolverMiddleware(ctx, 18509 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18510 } 18511 18512 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18513 case "recursive": 18514 field := field 18515 18516 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18517 defer func() { 18518 if r := recover(); r != nil { 18519 ec.Error(ctx, ec.Recover(ctx, r)) 18520 } 18521 }() 18522 res = ec._Query_recursive(ctx, field) 18523 return res 18524 } 18525 18526 rrm := func(ctx context.Context) graphql.Marshaler { 18527 return ec.OperationContext.RootResolverMiddleware(ctx, 18528 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18529 } 18530 18531 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18532 case "nestedInputs": 18533 field := field 18534 18535 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18536 defer func() { 18537 if r := recover(); r != nil { 18538 ec.Error(ctx, ec.Recover(ctx, r)) 18539 } 18540 }() 18541 res = ec._Query_nestedInputs(ctx, field) 18542 return res 18543 } 18544 18545 rrm := func(ctx context.Context) graphql.Marshaler { 18546 return ec.OperationContext.RootResolverMiddleware(ctx, 18547 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18548 } 18549 18550 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18551 case "nestedOutputs": 18552 field := field 18553 18554 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18555 defer func() { 18556 if r := recover(); r != nil { 18557 ec.Error(ctx, ec.Recover(ctx, r)) 18558 } 18559 }() 18560 res = ec._Query_nestedOutputs(ctx, field) 18561 return res 18562 } 18563 18564 rrm := func(ctx context.Context) graphql.Marshaler { 18565 return ec.OperationContext.RootResolverMiddleware(ctx, 18566 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18567 } 18568 18569 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18570 case "modelMethods": 18571 field := field 18572 18573 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18574 defer func() { 18575 if r := recover(); r != nil { 18576 ec.Error(ctx, ec.Recover(ctx, r)) 18577 } 18578 }() 18579 res = ec._Query_modelMethods(ctx, field) 18580 return res 18581 } 18582 18583 rrm := func(ctx context.Context) graphql.Marshaler { 18584 return ec.OperationContext.RootResolverMiddleware(ctx, 18585 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18586 } 18587 18588 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18589 case "user": 18590 field := field 18591 18592 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18593 defer func() { 18594 if r := recover(); r != nil { 18595 ec.Error(ctx, ec.Recover(ctx, r)) 18596 } 18597 }() 18598 res = ec._Query_user(ctx, field) 18599 if res == graphql.Null { 18600 atomic.AddUint32(&fs.Invalids, 1) 18601 } 18602 return res 18603 } 18604 18605 rrm := func(ctx context.Context) graphql.Marshaler { 18606 return ec.OperationContext.RootResolverMiddleware(ctx, 18607 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18608 } 18609 18610 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18611 case "nullableArg": 18612 field := field 18613 18614 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18615 defer func() { 18616 if r := recover(); r != nil { 18617 ec.Error(ctx, ec.Recover(ctx, r)) 18618 } 18619 }() 18620 res = ec._Query_nullableArg(ctx, field) 18621 return res 18622 } 18623 18624 rrm := func(ctx context.Context) graphql.Marshaler { 18625 return ec.OperationContext.RootResolverMiddleware(ctx, 18626 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18627 } 18628 18629 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18630 case "inputSlice": 18631 field := field 18632 18633 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18634 defer func() { 18635 if r := recover(); r != nil { 18636 ec.Error(ctx, ec.Recover(ctx, r)) 18637 } 18638 }() 18639 res = ec._Query_inputSlice(ctx, field) 18640 if res == graphql.Null { 18641 atomic.AddUint32(&fs.Invalids, 1) 18642 } 18643 return res 18644 } 18645 18646 rrm := func(ctx context.Context) graphql.Marshaler { 18647 return ec.OperationContext.RootResolverMiddleware(ctx, 18648 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18649 } 18650 18651 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18652 case "inputNullableSlice": 18653 field := field 18654 18655 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18656 defer func() { 18657 if r := recover(); r != nil { 18658 ec.Error(ctx, ec.Recover(ctx, r)) 18659 } 18660 }() 18661 res = ec._Query_inputNullableSlice(ctx, field) 18662 if res == graphql.Null { 18663 atomic.AddUint32(&fs.Invalids, 1) 18664 } 18665 return res 18666 } 18667 18668 rrm := func(ctx context.Context) graphql.Marshaler { 18669 return ec.OperationContext.RootResolverMiddleware(ctx, 18670 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18671 } 18672 18673 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18674 case "inputOmittable": 18675 field := field 18676 18677 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18678 defer func() { 18679 if r := recover(); r != nil { 18680 ec.Error(ctx, ec.Recover(ctx, r)) 18681 } 18682 }() 18683 res = ec._Query_inputOmittable(ctx, field) 18684 if res == graphql.Null { 18685 atomic.AddUint32(&fs.Invalids, 1) 18686 } 18687 return res 18688 } 18689 18690 rrm := func(ctx context.Context) graphql.Marshaler { 18691 return ec.OperationContext.RootResolverMiddleware(ctx, 18692 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18693 } 18694 18695 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18696 case "shapeUnion": 18697 field := field 18698 18699 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18700 defer func() { 18701 if r := recover(); r != nil { 18702 ec.Error(ctx, ec.Recover(ctx, r)) 18703 } 18704 }() 18705 res = ec._Query_shapeUnion(ctx, field) 18706 if res == graphql.Null { 18707 atomic.AddUint32(&fs.Invalids, 1) 18708 } 18709 return res 18710 } 18711 18712 rrm := func(ctx context.Context) graphql.Marshaler { 18713 return ec.OperationContext.RootResolverMiddleware(ctx, 18714 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18715 } 18716 18717 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18718 case "autobind": 18719 field := field 18720 18721 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18722 defer func() { 18723 if r := recover(); r != nil { 18724 ec.Error(ctx, ec.Recover(ctx, r)) 18725 } 18726 }() 18727 res = ec._Query_autobind(ctx, field) 18728 return res 18729 } 18730 18731 rrm := func(ctx context.Context) graphql.Marshaler { 18732 return ec.OperationContext.RootResolverMiddleware(ctx, 18733 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18734 } 18735 18736 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18737 case "deprecatedField": 18738 field := field 18739 18740 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18741 defer func() { 18742 if r := recover(); r != nil { 18743 ec.Error(ctx, ec.Recover(ctx, r)) 18744 } 18745 }() 18746 res = ec._Query_deprecatedField(ctx, field) 18747 if res == graphql.Null { 18748 atomic.AddUint32(&fs.Invalids, 1) 18749 } 18750 return res 18751 } 18752 18753 rrm := func(ctx context.Context) graphql.Marshaler { 18754 return ec.OperationContext.RootResolverMiddleware(ctx, 18755 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18756 } 18757 18758 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18759 case "overlapping": 18760 field := field 18761 18762 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18763 defer func() { 18764 if r := recover(); r != nil { 18765 ec.Error(ctx, ec.Recover(ctx, r)) 18766 } 18767 }() 18768 res = ec._Query_overlapping(ctx, field) 18769 return res 18770 } 18771 18772 rrm := func(ctx context.Context) graphql.Marshaler { 18773 return ec.OperationContext.RootResolverMiddleware(ctx, 18774 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18775 } 18776 18777 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18778 case "defaultParameters": 18779 field := field 18780 18781 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18782 defer func() { 18783 if r := recover(); r != nil { 18784 ec.Error(ctx, ec.Recover(ctx, r)) 18785 } 18786 }() 18787 res = ec._Query_defaultParameters(ctx, field) 18788 if res == graphql.Null { 18789 atomic.AddUint32(&fs.Invalids, 1) 18790 } 18791 return res 18792 } 18793 18794 rrm := func(ctx context.Context) graphql.Marshaler { 18795 return ec.OperationContext.RootResolverMiddleware(ctx, 18796 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18797 } 18798 18799 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18800 case "deferCase1": 18801 field := field 18802 18803 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18804 defer func() { 18805 if r := recover(); r != nil { 18806 ec.Error(ctx, ec.Recover(ctx, r)) 18807 } 18808 }() 18809 res = ec._Query_deferCase1(ctx, field) 18810 return res 18811 } 18812 18813 rrm := func(ctx context.Context) graphql.Marshaler { 18814 return ec.OperationContext.RootResolverMiddleware(ctx, 18815 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18816 } 18817 18818 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18819 case "deferCase2": 18820 field := field 18821 18822 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18823 defer func() { 18824 if r := recover(); r != nil { 18825 ec.Error(ctx, ec.Recover(ctx, r)) 18826 } 18827 }() 18828 res = ec._Query_deferCase2(ctx, field) 18829 return res 18830 } 18831 18832 rrm := func(ctx context.Context) graphql.Marshaler { 18833 return ec.OperationContext.RootResolverMiddleware(ctx, 18834 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18835 } 18836 18837 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18838 case "directiveArg": 18839 field := field 18840 18841 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18842 defer func() { 18843 if r := recover(); r != nil { 18844 ec.Error(ctx, ec.Recover(ctx, r)) 18845 } 18846 }() 18847 res = ec._Query_directiveArg(ctx, field) 18848 return res 18849 } 18850 18851 rrm := func(ctx context.Context) graphql.Marshaler { 18852 return ec.OperationContext.RootResolverMiddleware(ctx, 18853 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18854 } 18855 18856 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18857 case "directiveNullableArg": 18858 field := field 18859 18860 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18861 defer func() { 18862 if r := recover(); r != nil { 18863 ec.Error(ctx, ec.Recover(ctx, r)) 18864 } 18865 }() 18866 res = ec._Query_directiveNullableArg(ctx, field) 18867 return res 18868 } 18869 18870 rrm := func(ctx context.Context) graphql.Marshaler { 18871 return ec.OperationContext.RootResolverMiddleware(ctx, 18872 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18873 } 18874 18875 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18876 case "directiveInputNullable": 18877 field := field 18878 18879 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18880 defer func() { 18881 if r := recover(); r != nil { 18882 ec.Error(ctx, ec.Recover(ctx, r)) 18883 } 18884 }() 18885 res = ec._Query_directiveInputNullable(ctx, field) 18886 return res 18887 } 18888 18889 rrm := func(ctx context.Context) graphql.Marshaler { 18890 return ec.OperationContext.RootResolverMiddleware(ctx, 18891 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18892 } 18893 18894 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18895 case "directiveInput": 18896 field := field 18897 18898 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18899 defer func() { 18900 if r := recover(); r != nil { 18901 ec.Error(ctx, ec.Recover(ctx, r)) 18902 } 18903 }() 18904 res = ec._Query_directiveInput(ctx, field) 18905 return res 18906 } 18907 18908 rrm := func(ctx context.Context) graphql.Marshaler { 18909 return ec.OperationContext.RootResolverMiddleware(ctx, 18910 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18911 } 18912 18913 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18914 case "directiveInputType": 18915 field := field 18916 18917 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18918 defer func() { 18919 if r := recover(); r != nil { 18920 ec.Error(ctx, ec.Recover(ctx, r)) 18921 } 18922 }() 18923 res = ec._Query_directiveInputType(ctx, field) 18924 return res 18925 } 18926 18927 rrm := func(ctx context.Context) graphql.Marshaler { 18928 return ec.OperationContext.RootResolverMiddleware(ctx, 18929 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18930 } 18931 18932 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18933 case "directiveObject": 18934 field := field 18935 18936 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18937 defer func() { 18938 if r := recover(); r != nil { 18939 ec.Error(ctx, ec.Recover(ctx, r)) 18940 } 18941 }() 18942 res = ec._Query_directiveObject(ctx, field) 18943 return res 18944 } 18945 18946 rrm := func(ctx context.Context) graphql.Marshaler { 18947 return ec.OperationContext.RootResolverMiddleware(ctx, 18948 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18949 } 18950 18951 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18952 case "directiveObjectWithCustomGoModel": 18953 field := field 18954 18955 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18956 defer func() { 18957 if r := recover(); r != nil { 18958 ec.Error(ctx, ec.Recover(ctx, r)) 18959 } 18960 }() 18961 res = ec._Query_directiveObjectWithCustomGoModel(ctx, field) 18962 return res 18963 } 18964 18965 rrm := func(ctx context.Context) graphql.Marshaler { 18966 return ec.OperationContext.RootResolverMiddleware(ctx, 18967 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18968 } 18969 18970 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18971 case "directiveFieldDef": 18972 field := field 18973 18974 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18975 defer func() { 18976 if r := recover(); r != nil { 18977 ec.Error(ctx, ec.Recover(ctx, r)) 18978 } 18979 }() 18980 res = ec._Query_directiveFieldDef(ctx, field) 18981 if res == graphql.Null { 18982 atomic.AddUint32(&fs.Invalids, 1) 18983 } 18984 return res 18985 } 18986 18987 rrm := func(ctx context.Context) graphql.Marshaler { 18988 return ec.OperationContext.RootResolverMiddleware(ctx, 18989 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 18990 } 18991 18992 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 18993 case "directiveField": 18994 field := field 18995 18996 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 18997 defer func() { 18998 if r := recover(); r != nil { 18999 ec.Error(ctx, ec.Recover(ctx, r)) 19000 } 19001 }() 19002 res = ec._Query_directiveField(ctx, field) 19003 return res 19004 } 19005 19006 rrm := func(ctx context.Context) graphql.Marshaler { 19007 return ec.OperationContext.RootResolverMiddleware(ctx, 19008 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19009 } 19010 19011 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19012 case "directiveDouble": 19013 field := field 19014 19015 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19016 defer func() { 19017 if r := recover(); r != nil { 19018 ec.Error(ctx, ec.Recover(ctx, r)) 19019 } 19020 }() 19021 res = ec._Query_directiveDouble(ctx, field) 19022 return res 19023 } 19024 19025 rrm := func(ctx context.Context) graphql.Marshaler { 19026 return ec.OperationContext.RootResolverMiddleware(ctx, 19027 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19028 } 19029 19030 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19031 case "directiveUnimplemented": 19032 field := field 19033 19034 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19035 defer func() { 19036 if r := recover(); r != nil { 19037 ec.Error(ctx, ec.Recover(ctx, r)) 19038 } 19039 }() 19040 res = ec._Query_directiveUnimplemented(ctx, field) 19041 return res 19042 } 19043 19044 rrm := func(ctx context.Context) graphql.Marshaler { 19045 return ec.OperationContext.RootResolverMiddleware(ctx, 19046 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19047 } 19048 19049 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19050 case "embeddedCase1": 19051 field := field 19052 19053 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19054 defer func() { 19055 if r := recover(); r != nil { 19056 ec.Error(ctx, ec.Recover(ctx, r)) 19057 } 19058 }() 19059 res = ec._Query_embeddedCase1(ctx, field) 19060 return res 19061 } 19062 19063 rrm := func(ctx context.Context) graphql.Marshaler { 19064 return ec.OperationContext.RootResolverMiddleware(ctx, 19065 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19066 } 19067 19068 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19069 case "embeddedCase2": 19070 field := field 19071 19072 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19073 defer func() { 19074 if r := recover(); r != nil { 19075 ec.Error(ctx, ec.Recover(ctx, r)) 19076 } 19077 }() 19078 res = ec._Query_embeddedCase2(ctx, field) 19079 return res 19080 } 19081 19082 rrm := func(ctx context.Context) graphql.Marshaler { 19083 return ec.OperationContext.RootResolverMiddleware(ctx, 19084 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19085 } 19086 19087 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19088 case "embeddedCase3": 19089 field := field 19090 19091 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19092 defer func() { 19093 if r := recover(); r != nil { 19094 ec.Error(ctx, ec.Recover(ctx, r)) 19095 } 19096 }() 19097 res = ec._Query_embeddedCase3(ctx, field) 19098 return res 19099 } 19100 19101 rrm := func(ctx context.Context) graphql.Marshaler { 19102 return ec.OperationContext.RootResolverMiddleware(ctx, 19103 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19104 } 19105 19106 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19107 case "enumInInput": 19108 field := field 19109 19110 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19111 defer func() { 19112 if r := recover(); r != nil { 19113 ec.Error(ctx, ec.Recover(ctx, r)) 19114 } 19115 }() 19116 res = ec._Query_enumInInput(ctx, field) 19117 if res == graphql.Null { 19118 atomic.AddUint32(&fs.Invalids, 1) 19119 } 19120 return res 19121 } 19122 19123 rrm := func(ctx context.Context) graphql.Marshaler { 19124 return ec.OperationContext.RootResolverMiddleware(ctx, 19125 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19126 } 19127 19128 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19129 case "shapes": 19130 field := field 19131 19132 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19133 defer func() { 19134 if r := recover(); r != nil { 19135 ec.Error(ctx, ec.Recover(ctx, r)) 19136 } 19137 }() 19138 res = ec._Query_shapes(ctx, field) 19139 return res 19140 } 19141 19142 rrm := func(ctx context.Context) graphql.Marshaler { 19143 return ec.OperationContext.RootResolverMiddleware(ctx, 19144 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19145 } 19146 19147 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19148 case "noShape": 19149 field := field 19150 19151 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19152 defer func() { 19153 if r := recover(); r != nil { 19154 ec.Error(ctx, ec.Recover(ctx, r)) 19155 } 19156 }() 19157 res = ec._Query_noShape(ctx, field) 19158 return res 19159 } 19160 19161 rrm := func(ctx context.Context) graphql.Marshaler { 19162 return ec.OperationContext.RootResolverMiddleware(ctx, 19163 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19164 } 19165 19166 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19167 case "node": 19168 field := field 19169 19170 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19171 defer func() { 19172 if r := recover(); r != nil { 19173 ec.Error(ctx, ec.Recover(ctx, r)) 19174 } 19175 }() 19176 res = ec._Query_node(ctx, field) 19177 if res == graphql.Null { 19178 atomic.AddUint32(&fs.Invalids, 1) 19179 } 19180 return res 19181 } 19182 19183 rrm := func(ctx context.Context) graphql.Marshaler { 19184 return ec.OperationContext.RootResolverMiddleware(ctx, 19185 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19186 } 19187 19188 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19189 case "noShapeTypedNil": 19190 field := field 19191 19192 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19193 defer func() { 19194 if r := recover(); r != nil { 19195 ec.Error(ctx, ec.Recover(ctx, r)) 19196 } 19197 }() 19198 res = ec._Query_noShapeTypedNil(ctx, field) 19199 return res 19200 } 19201 19202 rrm := func(ctx context.Context) graphql.Marshaler { 19203 return ec.OperationContext.RootResolverMiddleware(ctx, 19204 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19205 } 19206 19207 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19208 case "animal": 19209 field := field 19210 19211 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19212 defer func() { 19213 if r := recover(); r != nil { 19214 ec.Error(ctx, ec.Recover(ctx, r)) 19215 } 19216 }() 19217 res = ec._Query_animal(ctx, field) 19218 return res 19219 } 19220 19221 rrm := func(ctx context.Context) graphql.Marshaler { 19222 return ec.OperationContext.RootResolverMiddleware(ctx, 19223 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19224 } 19225 19226 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19227 case "notAnInterface": 19228 field := field 19229 19230 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19231 defer func() { 19232 if r := recover(); r != nil { 19233 ec.Error(ctx, ec.Recover(ctx, r)) 19234 } 19235 }() 19236 res = ec._Query_notAnInterface(ctx, field) 19237 return res 19238 } 19239 19240 rrm := func(ctx context.Context) graphql.Marshaler { 19241 return ec.OperationContext.RootResolverMiddleware(ctx, 19242 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19243 } 19244 19245 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19246 case "dog": 19247 field := field 19248 19249 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19250 defer func() { 19251 if r := recover(); r != nil { 19252 ec.Error(ctx, ec.Recover(ctx, r)) 19253 } 19254 }() 19255 res = ec._Query_dog(ctx, field) 19256 return res 19257 } 19258 19259 rrm := func(ctx context.Context) graphql.Marshaler { 19260 return ec.OperationContext.RootResolverMiddleware(ctx, 19261 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19262 } 19263 19264 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19265 case "issue896a": 19266 field := field 19267 19268 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19269 defer func() { 19270 if r := recover(); r != nil { 19271 ec.Error(ctx, ec.Recover(ctx, r)) 19272 } 19273 }() 19274 res = ec._Query_issue896a(ctx, field) 19275 return res 19276 } 19277 19278 rrm := func(ctx context.Context) graphql.Marshaler { 19279 return ec.OperationContext.RootResolverMiddleware(ctx, 19280 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19281 } 19282 19283 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19284 case "mapStringInterface": 19285 field := field 19286 19287 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19288 defer func() { 19289 if r := recover(); r != nil { 19290 ec.Error(ctx, ec.Recover(ctx, r)) 19291 } 19292 }() 19293 res = ec._Query_mapStringInterface(ctx, field) 19294 return res 19295 } 19296 19297 rrm := func(ctx context.Context) graphql.Marshaler { 19298 return ec.OperationContext.RootResolverMiddleware(ctx, 19299 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19300 } 19301 19302 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19303 case "mapNestedStringInterface": 19304 field := field 19305 19306 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19307 defer func() { 19308 if r := recover(); r != nil { 19309 ec.Error(ctx, ec.Recover(ctx, r)) 19310 } 19311 }() 19312 res = ec._Query_mapNestedStringInterface(ctx, field) 19313 return res 19314 } 19315 19316 rrm := func(ctx context.Context) graphql.Marshaler { 19317 return ec.OperationContext.RootResolverMiddleware(ctx, 19318 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19319 } 19320 19321 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19322 case "errorBubble": 19323 field := field 19324 19325 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19326 defer func() { 19327 if r := recover(); r != nil { 19328 ec.Error(ctx, ec.Recover(ctx, r)) 19329 } 19330 }() 19331 res = ec._Query_errorBubble(ctx, field) 19332 return res 19333 } 19334 19335 rrm := func(ctx context.Context) graphql.Marshaler { 19336 return ec.OperationContext.RootResolverMiddleware(ctx, 19337 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19338 } 19339 19340 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19341 case "errorBubbleList": 19342 field := field 19343 19344 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19345 defer func() { 19346 if r := recover(); r != nil { 19347 ec.Error(ctx, ec.Recover(ctx, r)) 19348 } 19349 }() 19350 res = ec._Query_errorBubbleList(ctx, field) 19351 return res 19352 } 19353 19354 rrm := func(ctx context.Context) graphql.Marshaler { 19355 return ec.OperationContext.RootResolverMiddleware(ctx, 19356 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19357 } 19358 19359 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19360 case "errorList": 19361 field := field 19362 19363 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19364 defer func() { 19365 if r := recover(); r != nil { 19366 ec.Error(ctx, ec.Recover(ctx, r)) 19367 } 19368 }() 19369 res = ec._Query_errorList(ctx, field) 19370 return res 19371 } 19372 19373 rrm := func(ctx context.Context) graphql.Marshaler { 19374 return ec.OperationContext.RootResolverMiddleware(ctx, 19375 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19376 } 19377 19378 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19379 case "errors": 19380 field := field 19381 19382 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19383 defer func() { 19384 if r := recover(); r != nil { 19385 ec.Error(ctx, ec.Recover(ctx, r)) 19386 } 19387 }() 19388 res = ec._Query_errors(ctx, field) 19389 return res 19390 } 19391 19392 rrm := func(ctx context.Context) graphql.Marshaler { 19393 return ec.OperationContext.RootResolverMiddleware(ctx, 19394 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19395 } 19396 19397 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19398 case "valid": 19399 field := field 19400 19401 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19402 defer func() { 19403 if r := recover(); r != nil { 19404 ec.Error(ctx, ec.Recover(ctx, r)) 19405 } 19406 }() 19407 res = ec._Query_valid(ctx, field) 19408 if res == graphql.Null { 19409 atomic.AddUint32(&fs.Invalids, 1) 19410 } 19411 return res 19412 } 19413 19414 rrm := func(ctx context.Context) graphql.Marshaler { 19415 return ec.OperationContext.RootResolverMiddleware(ctx, 19416 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19417 } 19418 19419 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19420 case "invalid": 19421 field := field 19422 19423 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19424 defer func() { 19425 if r := recover(); r != nil { 19426 ec.Error(ctx, ec.Recover(ctx, r)) 19427 } 19428 }() 19429 res = ec._Query_invalid(ctx, field) 19430 if res == graphql.Null { 19431 atomic.AddUint32(&fs.Invalids, 1) 19432 } 19433 return res 19434 } 19435 19436 rrm := func(ctx context.Context) graphql.Marshaler { 19437 return ec.OperationContext.RootResolverMiddleware(ctx, 19438 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19439 } 19440 19441 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19442 case "panics": 19443 field := field 19444 19445 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19446 defer func() { 19447 if r := recover(); r != nil { 19448 ec.Error(ctx, ec.Recover(ctx, r)) 19449 } 19450 }() 19451 res = ec._Query_panics(ctx, field) 19452 return res 19453 } 19454 19455 rrm := func(ctx context.Context) graphql.Marshaler { 19456 return ec.OperationContext.RootResolverMiddleware(ctx, 19457 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19458 } 19459 19460 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19461 case "primitiveObject": 19462 field := field 19463 19464 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19465 defer func() { 19466 if r := recover(); r != nil { 19467 ec.Error(ctx, ec.Recover(ctx, r)) 19468 } 19469 }() 19470 res = ec._Query_primitiveObject(ctx, field) 19471 if res == graphql.Null { 19472 atomic.AddUint32(&fs.Invalids, 1) 19473 } 19474 return res 19475 } 19476 19477 rrm := func(ctx context.Context) graphql.Marshaler { 19478 return ec.OperationContext.RootResolverMiddleware(ctx, 19479 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19480 } 19481 19482 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19483 case "primitiveStringObject": 19484 field := field 19485 19486 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19487 defer func() { 19488 if r := recover(); r != nil { 19489 ec.Error(ctx, ec.Recover(ctx, r)) 19490 } 19491 }() 19492 res = ec._Query_primitiveStringObject(ctx, field) 19493 if res == graphql.Null { 19494 atomic.AddUint32(&fs.Invalids, 1) 19495 } 19496 return res 19497 } 19498 19499 rrm := func(ctx context.Context) graphql.Marshaler { 19500 return ec.OperationContext.RootResolverMiddleware(ctx, 19501 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19502 } 19503 19504 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19505 case "ptrToAnyContainer": 19506 field := field 19507 19508 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19509 defer func() { 19510 if r := recover(); r != nil { 19511 ec.Error(ctx, ec.Recover(ctx, r)) 19512 } 19513 }() 19514 res = ec._Query_ptrToAnyContainer(ctx, field) 19515 if res == graphql.Null { 19516 atomic.AddUint32(&fs.Invalids, 1) 19517 } 19518 return res 19519 } 19520 19521 rrm := func(ctx context.Context) graphql.Marshaler { 19522 return ec.OperationContext.RootResolverMiddleware(ctx, 19523 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19524 } 19525 19526 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19527 case "ptrToSliceContainer": 19528 field := field 19529 19530 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19531 defer func() { 19532 if r := recover(); r != nil { 19533 ec.Error(ctx, ec.Recover(ctx, r)) 19534 } 19535 }() 19536 res = ec._Query_ptrToSliceContainer(ctx, field) 19537 if res == graphql.Null { 19538 atomic.AddUint32(&fs.Invalids, 1) 19539 } 19540 return res 19541 } 19542 19543 rrm := func(ctx context.Context) graphql.Marshaler { 19544 return ec.OperationContext.RootResolverMiddleware(ctx, 19545 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19546 } 19547 19548 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19549 case "infinity": 19550 field := field 19551 19552 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19553 defer func() { 19554 if r := recover(); r != nil { 19555 ec.Error(ctx, ec.Recover(ctx, r)) 19556 } 19557 }() 19558 res = ec._Query_infinity(ctx, field) 19559 if res == graphql.Null { 19560 atomic.AddUint32(&fs.Invalids, 1) 19561 } 19562 return res 19563 } 19564 19565 rrm := func(ctx context.Context) graphql.Marshaler { 19566 return ec.OperationContext.RootResolverMiddleware(ctx, 19567 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19568 } 19569 19570 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19571 case "stringFromContextInterface": 19572 field := field 19573 19574 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19575 defer func() { 19576 if r := recover(); r != nil { 19577 ec.Error(ctx, ec.Recover(ctx, r)) 19578 } 19579 }() 19580 res = ec._Query_stringFromContextInterface(ctx, field) 19581 if res == graphql.Null { 19582 atomic.AddUint32(&fs.Invalids, 1) 19583 } 19584 return res 19585 } 19586 19587 rrm := func(ctx context.Context) graphql.Marshaler { 19588 return ec.OperationContext.RootResolverMiddleware(ctx, 19589 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19590 } 19591 19592 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19593 case "stringFromContextFunction": 19594 field := field 19595 19596 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19597 defer func() { 19598 if r := recover(); r != nil { 19599 ec.Error(ctx, ec.Recover(ctx, r)) 19600 } 19601 }() 19602 res = ec._Query_stringFromContextFunction(ctx, field) 19603 if res == graphql.Null { 19604 atomic.AddUint32(&fs.Invalids, 1) 19605 } 19606 return res 19607 } 19608 19609 rrm := func(ctx context.Context) graphql.Marshaler { 19610 return ec.OperationContext.RootResolverMiddleware(ctx, 19611 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19612 } 19613 19614 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19615 case "defaultScalar": 19616 field := field 19617 19618 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19619 defer func() { 19620 if r := recover(); r != nil { 19621 ec.Error(ctx, ec.Recover(ctx, r)) 19622 } 19623 }() 19624 res = ec._Query_defaultScalar(ctx, field) 19625 if res == graphql.Null { 19626 atomic.AddUint32(&fs.Invalids, 1) 19627 } 19628 return res 19629 } 19630 19631 rrm := func(ctx context.Context) graphql.Marshaler { 19632 return ec.OperationContext.RootResolverMiddleware(ctx, 19633 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19634 } 19635 19636 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19637 case "slices": 19638 field := field 19639 19640 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19641 defer func() { 19642 if r := recover(); r != nil { 19643 ec.Error(ctx, ec.Recover(ctx, r)) 19644 } 19645 }() 19646 res = ec._Query_slices(ctx, field) 19647 return res 19648 } 19649 19650 rrm := func(ctx context.Context) graphql.Marshaler { 19651 return ec.OperationContext.RootResolverMiddleware(ctx, 19652 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19653 } 19654 19655 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19656 case "scalarSlice": 19657 field := field 19658 19659 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19660 defer func() { 19661 if r := recover(); r != nil { 19662 ec.Error(ctx, ec.Recover(ctx, r)) 19663 } 19664 }() 19665 res = ec._Query_scalarSlice(ctx, field) 19666 if res == graphql.Null { 19667 atomic.AddUint32(&fs.Invalids, 1) 19668 } 19669 return res 19670 } 19671 19672 rrm := func(ctx context.Context) graphql.Marshaler { 19673 return ec.OperationContext.RootResolverMiddleware(ctx, 19674 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19675 } 19676 19677 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19678 case "fallback": 19679 field := field 19680 19681 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19682 defer func() { 19683 if r := recover(); r != nil { 19684 ec.Error(ctx, ec.Recover(ctx, r)) 19685 } 19686 }() 19687 res = ec._Query_fallback(ctx, field) 19688 if res == graphql.Null { 19689 atomic.AddUint32(&fs.Invalids, 1) 19690 } 19691 return res 19692 } 19693 19694 rrm := func(ctx context.Context) graphql.Marshaler { 19695 return ec.OperationContext.RootResolverMiddleware(ctx, 19696 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19697 } 19698 19699 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19700 case "optionalUnion": 19701 field := field 19702 19703 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19704 defer func() { 19705 if r := recover(); r != nil { 19706 ec.Error(ctx, ec.Recover(ctx, r)) 19707 } 19708 }() 19709 res = ec._Query_optionalUnion(ctx, field) 19710 return res 19711 } 19712 19713 rrm := func(ctx context.Context) graphql.Marshaler { 19714 return ec.OperationContext.RootResolverMiddleware(ctx, 19715 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19716 } 19717 19718 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19719 case "vOkCaseValue": 19720 field := field 19721 19722 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19723 defer func() { 19724 if r := recover(); r != nil { 19725 ec.Error(ctx, ec.Recover(ctx, r)) 19726 } 19727 }() 19728 res = ec._Query_vOkCaseValue(ctx, field) 19729 return res 19730 } 19731 19732 rrm := func(ctx context.Context) graphql.Marshaler { 19733 return ec.OperationContext.RootResolverMiddleware(ctx, 19734 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19735 } 19736 19737 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19738 case "vOkCaseNil": 19739 field := field 19740 19741 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19742 defer func() { 19743 if r := recover(); r != nil { 19744 ec.Error(ctx, ec.Recover(ctx, r)) 19745 } 19746 }() 19747 res = ec._Query_vOkCaseNil(ctx, field) 19748 return res 19749 } 19750 19751 rrm := func(ctx context.Context) graphql.Marshaler { 19752 return ec.OperationContext.RootResolverMiddleware(ctx, 19753 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19754 } 19755 19756 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19757 case "validType": 19758 field := field 19759 19760 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19761 defer func() { 19762 if r := recover(); r != nil { 19763 ec.Error(ctx, ec.Recover(ctx, r)) 19764 } 19765 }() 19766 res = ec._Query_validType(ctx, field) 19767 return res 19768 } 19769 19770 rrm := func(ctx context.Context) graphql.Marshaler { 19771 return ec.OperationContext.RootResolverMiddleware(ctx, 19772 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19773 } 19774 19775 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19776 case "variadicModel": 19777 field := field 19778 19779 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19780 defer func() { 19781 if r := recover(); r != nil { 19782 ec.Error(ctx, ec.Recover(ctx, r)) 19783 } 19784 }() 19785 res = ec._Query_variadicModel(ctx, field) 19786 return res 19787 } 19788 19789 rrm := func(ctx context.Context) graphql.Marshaler { 19790 return ec.OperationContext.RootResolverMiddleware(ctx, 19791 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19792 } 19793 19794 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19795 case "wrappedStruct": 19796 field := field 19797 19798 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19799 defer func() { 19800 if r := recover(); r != nil { 19801 ec.Error(ctx, ec.Recover(ctx, r)) 19802 } 19803 }() 19804 res = ec._Query_wrappedStruct(ctx, field) 19805 if res == graphql.Null { 19806 atomic.AddUint32(&fs.Invalids, 1) 19807 } 19808 return res 19809 } 19810 19811 rrm := func(ctx context.Context) graphql.Marshaler { 19812 return ec.OperationContext.RootResolverMiddleware(ctx, 19813 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19814 } 19815 19816 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19817 case "wrappedScalar": 19818 field := field 19819 19820 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19821 defer func() { 19822 if r := recover(); r != nil { 19823 ec.Error(ctx, ec.Recover(ctx, r)) 19824 } 19825 }() 19826 res = ec._Query_wrappedScalar(ctx, field) 19827 if res == graphql.Null { 19828 atomic.AddUint32(&fs.Invalids, 1) 19829 } 19830 return res 19831 } 19832 19833 rrm := func(ctx context.Context) graphql.Marshaler { 19834 return ec.OperationContext.RootResolverMiddleware(ctx, 19835 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19836 } 19837 19838 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19839 case "wrappedMap": 19840 field := field 19841 19842 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19843 defer func() { 19844 if r := recover(); r != nil { 19845 ec.Error(ctx, ec.Recover(ctx, r)) 19846 } 19847 }() 19848 res = ec._Query_wrappedMap(ctx, field) 19849 if res == graphql.Null { 19850 atomic.AddUint32(&fs.Invalids, 1) 19851 } 19852 return res 19853 } 19854 19855 rrm := func(ctx context.Context) graphql.Marshaler { 19856 return ec.OperationContext.RootResolverMiddleware(ctx, 19857 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19858 } 19859 19860 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19861 case "wrappedSlice": 19862 field := field 19863 19864 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 19865 defer func() { 19866 if r := recover(); r != nil { 19867 ec.Error(ctx, ec.Recover(ctx, r)) 19868 } 19869 }() 19870 res = ec._Query_wrappedSlice(ctx, field) 19871 if res == graphql.Null { 19872 atomic.AddUint32(&fs.Invalids, 1) 19873 } 19874 return res 19875 } 19876 19877 rrm := func(ctx context.Context) graphql.Marshaler { 19878 return ec.OperationContext.RootResolverMiddleware(ctx, 19879 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 19880 } 19881 19882 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 19883 case "__type": 19884 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 19885 return ec._Query___type(ctx, field) 19886 }) 19887 case "__schema": 19888 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 19889 return ec._Query___schema(ctx, field) 19890 }) 19891 default: 19892 panic("unknown field " + strconv.Quote(field.Name)) 19893 } 19894 } 19895 out.Dispatch(ctx) 19896 if out.Invalids > 0 { 19897 return graphql.Null 19898 } 19899 19900 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 19901 19902 for label, dfs := range deferred { 19903 ec.processDeferredGroup(graphql.DeferredGroup{ 19904 Label: label, 19905 Path: graphql.GetPath(ctx), 19906 FieldSet: dfs, 19907 Context: ctx, 19908 }) 19909 } 19910 19911 return out 19912 } 19913 19914 var rectangleImplementors = []string{"Rectangle", "Shape", "ShapeUnion"} 19915 19916 func (ec *executionContext) _Rectangle(ctx context.Context, sel ast.SelectionSet, obj *Rectangle) graphql.Marshaler { 19917 fields := graphql.CollectFields(ec.OperationContext, sel, rectangleImplementors) 19918 19919 out := graphql.NewFieldSet(fields) 19920 deferred := make(map[string]*graphql.FieldSet) 19921 for i, field := range fields { 19922 switch field.Name { 19923 case "__typename": 19924 out.Values[i] = graphql.MarshalString("Rectangle") 19925 case "length": 19926 out.Values[i] = ec._Rectangle_length(ctx, field, obj) 19927 case "width": 19928 out.Values[i] = ec._Rectangle_width(ctx, field, obj) 19929 case "area": 19930 out.Values[i] = ec._Rectangle_area(ctx, field, obj) 19931 case "coordinates": 19932 out.Values[i] = ec._Rectangle_coordinates(ctx, field, obj) 19933 default: 19934 panic("unknown field " + strconv.Quote(field.Name)) 19935 } 19936 } 19937 out.Dispatch(ctx) 19938 if out.Invalids > 0 { 19939 return graphql.Null 19940 } 19941 19942 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 19943 19944 for label, dfs := range deferred { 19945 ec.processDeferredGroup(graphql.DeferredGroup{ 19946 Label: label, 19947 Path: graphql.GetPath(ctx), 19948 FieldSet: dfs, 19949 Context: ctx, 19950 }) 19951 } 19952 19953 return out 19954 } 19955 19956 var sizeImplementors = []string{"Size"} 19957 19958 func (ec *executionContext) _Size(ctx context.Context, sel ast.SelectionSet, obj *Size) graphql.Marshaler { 19959 fields := graphql.CollectFields(ec.OperationContext, sel, sizeImplementors) 19960 19961 out := graphql.NewFieldSet(fields) 19962 deferred := make(map[string]*graphql.FieldSet) 19963 for i, field := range fields { 19964 switch field.Name { 19965 case "__typename": 19966 out.Values[i] = graphql.MarshalString("Size") 19967 case "height": 19968 out.Values[i] = ec._Size_height(ctx, field, obj) 19969 if out.Values[i] == graphql.Null { 19970 out.Invalids++ 19971 } 19972 case "weight": 19973 out.Values[i] = ec._Size_weight(ctx, field, obj) 19974 if out.Values[i] == graphql.Null { 19975 out.Invalids++ 19976 } 19977 default: 19978 panic("unknown field " + strconv.Quote(field.Name)) 19979 } 19980 } 19981 out.Dispatch(ctx) 19982 if out.Invalids > 0 { 19983 return graphql.Null 19984 } 19985 19986 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 19987 19988 for label, dfs := range deferred { 19989 ec.processDeferredGroup(graphql.DeferredGroup{ 19990 Label: label, 19991 Path: graphql.GetPath(ctx), 19992 FieldSet: dfs, 19993 Context: ctx, 19994 }) 19995 } 19996 19997 return out 19998 } 19999 20000 var slicesImplementors = []string{"Slices"} 20001 20002 func (ec *executionContext) _Slices(ctx context.Context, sel ast.SelectionSet, obj *Slices) graphql.Marshaler { 20003 fields := graphql.CollectFields(ec.OperationContext, sel, slicesImplementors) 20004 20005 out := graphql.NewFieldSet(fields) 20006 deferred := make(map[string]*graphql.FieldSet) 20007 for i, field := range fields { 20008 switch field.Name { 20009 case "__typename": 20010 out.Values[i] = graphql.MarshalString("Slices") 20011 case "test1": 20012 out.Values[i] = ec._Slices_test1(ctx, field, obj) 20013 case "test2": 20014 out.Values[i] = ec._Slices_test2(ctx, field, obj) 20015 case "test3": 20016 out.Values[i] = ec._Slices_test3(ctx, field, obj) 20017 if out.Values[i] == graphql.Null { 20018 out.Invalids++ 20019 } 20020 case "test4": 20021 out.Values[i] = ec._Slices_test4(ctx, field, obj) 20022 if out.Values[i] == graphql.Null { 20023 out.Invalids++ 20024 } 20025 default: 20026 panic("unknown field " + strconv.Quote(field.Name)) 20027 } 20028 } 20029 out.Dispatch(ctx) 20030 if out.Invalids > 0 { 20031 return graphql.Null 20032 } 20033 20034 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20035 20036 for label, dfs := range deferred { 20037 ec.processDeferredGroup(graphql.DeferredGroup{ 20038 Label: label, 20039 Path: graphql.GetPath(ctx), 20040 FieldSet: dfs, 20041 Context: ctx, 20042 }) 20043 } 20044 20045 return out 20046 } 20047 20048 var subscriptionImplementors = []string{"Subscription"} 20049 20050 func (ec *executionContext) _Subscription(ctx context.Context, sel ast.SelectionSet) func(ctx context.Context) graphql.Marshaler { 20051 fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionImplementors) 20052 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 20053 Object: "Subscription", 20054 }) 20055 if len(fields) != 1 { 20056 ec.Errorf(ctx, "must subscribe to exactly one stream") 20057 return nil 20058 } 20059 20060 switch fields[0].Name { 20061 case "updated": 20062 return ec._Subscription_updated(ctx, fields[0]) 20063 case "initPayload": 20064 return ec._Subscription_initPayload(ctx, fields[0]) 20065 case "directiveArg": 20066 return ec._Subscription_directiveArg(ctx, fields[0]) 20067 case "directiveNullableArg": 20068 return ec._Subscription_directiveNullableArg(ctx, fields[0]) 20069 case "directiveDouble": 20070 return ec._Subscription_directiveDouble(ctx, fields[0]) 20071 case "directiveUnimplemented": 20072 return ec._Subscription_directiveUnimplemented(ctx, fields[0]) 20073 case "issue896b": 20074 return ec._Subscription_issue896b(ctx, fields[0]) 20075 case "errorRequired": 20076 return ec._Subscription_errorRequired(ctx, fields[0]) 20077 default: 20078 panic("unknown field " + strconv.Quote(fields[0].Name)) 20079 } 20080 } 20081 20082 var userImplementors = []string{"User"} 20083 20084 func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *User) graphql.Marshaler { 20085 fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors) 20086 20087 out := graphql.NewFieldSet(fields) 20088 deferred := make(map[string]*graphql.FieldSet) 20089 for i, field := range fields { 20090 switch field.Name { 20091 case "__typename": 20092 out.Values[i] = graphql.MarshalString("User") 20093 case "id": 20094 out.Values[i] = ec._User_id(ctx, field, obj) 20095 if out.Values[i] == graphql.Null { 20096 atomic.AddUint32(&out.Invalids, 1) 20097 } 20098 case "friends": 20099 field := field 20100 20101 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 20102 defer func() { 20103 if r := recover(); r != nil { 20104 ec.Error(ctx, ec.Recover(ctx, r)) 20105 } 20106 }() 20107 res = ec._User_friends(ctx, field, obj) 20108 if res == graphql.Null { 20109 atomic.AddUint32(&fs.Invalids, 1) 20110 } 20111 return res 20112 } 20113 20114 if field.Deferrable != nil { 20115 dfs, ok := deferred[field.Deferrable.Label] 20116 di := 0 20117 if ok { 20118 dfs.AddField(field) 20119 di = len(dfs.Values) - 1 20120 } else { 20121 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 20122 deferred[field.Deferrable.Label] = dfs 20123 } 20124 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 20125 return innerFunc(ctx, dfs) 20126 }) 20127 20128 // don't run the out.Concurrently() call below 20129 out.Values[i] = graphql.Null 20130 continue 20131 } 20132 20133 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 20134 case "created": 20135 out.Values[i] = ec._User_created(ctx, field, obj) 20136 if out.Values[i] == graphql.Null { 20137 atomic.AddUint32(&out.Invalids, 1) 20138 } 20139 case "updated": 20140 out.Values[i] = ec._User_updated(ctx, field, obj) 20141 case "pets": 20142 field := field 20143 20144 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 20145 defer func() { 20146 if r := recover(); r != nil { 20147 ec.Error(ctx, ec.Recover(ctx, r)) 20148 } 20149 }() 20150 res = ec._User_pets(ctx, field, obj) 20151 return res 20152 } 20153 20154 if field.Deferrable != nil { 20155 dfs, ok := deferred[field.Deferrable.Label] 20156 di := 0 20157 if ok { 20158 dfs.AddField(field) 20159 di = len(dfs.Values) - 1 20160 } else { 20161 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 20162 deferred[field.Deferrable.Label] = dfs 20163 } 20164 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 20165 return innerFunc(ctx, dfs) 20166 }) 20167 20168 // don't run the out.Concurrently() call below 20169 out.Values[i] = graphql.Null 20170 continue 20171 } 20172 20173 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 20174 default: 20175 panic("unknown field " + strconv.Quote(field.Name)) 20176 } 20177 } 20178 out.Dispatch(ctx) 20179 if out.Invalids > 0 { 20180 return graphql.Null 20181 } 20182 20183 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20184 20185 for label, dfs := range deferred { 20186 ec.processDeferredGroup(graphql.DeferredGroup{ 20187 Label: label, 20188 Path: graphql.GetPath(ctx), 20189 FieldSet: dfs, 20190 Context: ctx, 20191 }) 20192 } 20193 20194 return out 20195 } 20196 20197 var vOkCaseNilImplementors = []string{"VOkCaseNil"} 20198 20199 func (ec *executionContext) _VOkCaseNil(ctx context.Context, sel ast.SelectionSet, obj *VOkCaseNil) graphql.Marshaler { 20200 fields := graphql.CollectFields(ec.OperationContext, sel, vOkCaseNilImplementors) 20201 20202 out := graphql.NewFieldSet(fields) 20203 deferred := make(map[string]*graphql.FieldSet) 20204 for i, field := range fields { 20205 switch field.Name { 20206 case "__typename": 20207 out.Values[i] = graphql.MarshalString("VOkCaseNil") 20208 case "value": 20209 out.Values[i] = ec._VOkCaseNil_value(ctx, field, obj) 20210 default: 20211 panic("unknown field " + strconv.Quote(field.Name)) 20212 } 20213 } 20214 out.Dispatch(ctx) 20215 if out.Invalids > 0 { 20216 return graphql.Null 20217 } 20218 20219 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20220 20221 for label, dfs := range deferred { 20222 ec.processDeferredGroup(graphql.DeferredGroup{ 20223 Label: label, 20224 Path: graphql.GetPath(ctx), 20225 FieldSet: dfs, 20226 Context: ctx, 20227 }) 20228 } 20229 20230 return out 20231 } 20232 20233 var vOkCaseValueImplementors = []string{"VOkCaseValue"} 20234 20235 func (ec *executionContext) _VOkCaseValue(ctx context.Context, sel ast.SelectionSet, obj *VOkCaseValue) graphql.Marshaler { 20236 fields := graphql.CollectFields(ec.OperationContext, sel, vOkCaseValueImplementors) 20237 20238 out := graphql.NewFieldSet(fields) 20239 deferred := make(map[string]*graphql.FieldSet) 20240 for i, field := range fields { 20241 switch field.Name { 20242 case "__typename": 20243 out.Values[i] = graphql.MarshalString("VOkCaseValue") 20244 case "value": 20245 out.Values[i] = ec._VOkCaseValue_value(ctx, field, obj) 20246 default: 20247 panic("unknown field " + strconv.Quote(field.Name)) 20248 } 20249 } 20250 out.Dispatch(ctx) 20251 if out.Invalids > 0 { 20252 return graphql.Null 20253 } 20254 20255 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20256 20257 for label, dfs := range deferred { 20258 ec.processDeferredGroup(graphql.DeferredGroup{ 20259 Label: label, 20260 Path: graphql.GetPath(ctx), 20261 FieldSet: dfs, 20262 Context: ctx, 20263 }) 20264 } 20265 20266 return out 20267 } 20268 20269 var validTypeImplementors = []string{"ValidType"} 20270 20271 func (ec *executionContext) _ValidType(ctx context.Context, sel ast.SelectionSet, obj *ValidType) graphql.Marshaler { 20272 fields := graphql.CollectFields(ec.OperationContext, sel, validTypeImplementors) 20273 20274 out := graphql.NewFieldSet(fields) 20275 deferred := make(map[string]*graphql.FieldSet) 20276 for i, field := range fields { 20277 switch field.Name { 20278 case "__typename": 20279 out.Values[i] = graphql.MarshalString("ValidType") 20280 case "differentCase": 20281 out.Values[i] = ec._ValidType_differentCase(ctx, field, obj) 20282 if out.Values[i] == graphql.Null { 20283 out.Invalids++ 20284 } 20285 case "different_case": 20286 out.Values[i] = ec._ValidType_different_case(ctx, field, obj) 20287 if out.Values[i] == graphql.Null { 20288 out.Invalids++ 20289 } 20290 case "validInputKeywords": 20291 out.Values[i] = ec._ValidType_validInputKeywords(ctx, field, obj) 20292 if out.Values[i] == graphql.Null { 20293 out.Invalids++ 20294 } 20295 case "validArgs": 20296 out.Values[i] = ec._ValidType_validArgs(ctx, field, obj) 20297 if out.Values[i] == graphql.Null { 20298 out.Invalids++ 20299 } 20300 default: 20301 panic("unknown field " + strconv.Quote(field.Name)) 20302 } 20303 } 20304 out.Dispatch(ctx) 20305 if out.Invalids > 0 { 20306 return graphql.Null 20307 } 20308 20309 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20310 20311 for label, dfs := range deferred { 20312 ec.processDeferredGroup(graphql.DeferredGroup{ 20313 Label: label, 20314 Path: graphql.GetPath(ctx), 20315 FieldSet: dfs, 20316 Context: ctx, 20317 }) 20318 } 20319 20320 return out 20321 } 20322 20323 var variadicModelImplementors = []string{"VariadicModel"} 20324 20325 func (ec *executionContext) _VariadicModel(ctx context.Context, sel ast.SelectionSet, obj *VariadicModel) graphql.Marshaler { 20326 fields := graphql.CollectFields(ec.OperationContext, sel, variadicModelImplementors) 20327 20328 out := graphql.NewFieldSet(fields) 20329 deferred := make(map[string]*graphql.FieldSet) 20330 for i, field := range fields { 20331 switch field.Name { 20332 case "__typename": 20333 out.Values[i] = graphql.MarshalString("VariadicModel") 20334 case "value": 20335 field := field 20336 20337 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 20338 defer func() { 20339 if r := recover(); r != nil { 20340 ec.Error(ctx, ec.Recover(ctx, r)) 20341 } 20342 }() 20343 res = ec._VariadicModel_value(ctx, field, obj) 20344 return res 20345 } 20346 20347 if field.Deferrable != nil { 20348 dfs, ok := deferred[field.Deferrable.Label] 20349 di := 0 20350 if ok { 20351 dfs.AddField(field) 20352 di = len(dfs.Values) - 1 20353 } else { 20354 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 20355 deferred[field.Deferrable.Label] = dfs 20356 } 20357 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 20358 return innerFunc(ctx, dfs) 20359 }) 20360 20361 // don't run the out.Concurrently() call below 20362 out.Values[i] = graphql.Null 20363 continue 20364 } 20365 20366 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 20367 default: 20368 panic("unknown field " + strconv.Quote(field.Name)) 20369 } 20370 } 20371 out.Dispatch(ctx) 20372 if out.Invalids > 0 { 20373 return graphql.Null 20374 } 20375 20376 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20377 20378 for label, dfs := range deferred { 20379 ec.processDeferredGroup(graphql.DeferredGroup{ 20380 Label: label, 20381 Path: graphql.GetPath(ctx), 20382 FieldSet: dfs, 20383 Context: ctx, 20384 }) 20385 } 20386 20387 return out 20388 } 20389 20390 var wrappedMapImplementors = []string{"WrappedMap"} 20391 20392 func (ec *executionContext) _WrappedMap(ctx context.Context, sel ast.SelectionSet, obj WrappedMap) graphql.Marshaler { 20393 fields := graphql.CollectFields(ec.OperationContext, sel, wrappedMapImplementors) 20394 20395 out := graphql.NewFieldSet(fields) 20396 deferred := make(map[string]*graphql.FieldSet) 20397 for i, field := range fields { 20398 switch field.Name { 20399 case "__typename": 20400 out.Values[i] = graphql.MarshalString("WrappedMap") 20401 case "get": 20402 field := field 20403 20404 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 20405 defer func() { 20406 if r := recover(); r != nil { 20407 ec.Error(ctx, ec.Recover(ctx, r)) 20408 } 20409 }() 20410 res = ec._WrappedMap_get(ctx, field, obj) 20411 if res == graphql.Null { 20412 atomic.AddUint32(&fs.Invalids, 1) 20413 } 20414 return res 20415 } 20416 20417 if field.Deferrable != nil { 20418 dfs, ok := deferred[field.Deferrable.Label] 20419 di := 0 20420 if ok { 20421 dfs.AddField(field) 20422 di = len(dfs.Values) - 1 20423 } else { 20424 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 20425 deferred[field.Deferrable.Label] = dfs 20426 } 20427 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 20428 return innerFunc(ctx, dfs) 20429 }) 20430 20431 // don't run the out.Concurrently() call below 20432 out.Values[i] = graphql.Null 20433 continue 20434 } 20435 20436 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 20437 default: 20438 panic("unknown field " + strconv.Quote(field.Name)) 20439 } 20440 } 20441 out.Dispatch(ctx) 20442 if out.Invalids > 0 { 20443 return graphql.Null 20444 } 20445 20446 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20447 20448 for label, dfs := range deferred { 20449 ec.processDeferredGroup(graphql.DeferredGroup{ 20450 Label: label, 20451 Path: graphql.GetPath(ctx), 20452 FieldSet: dfs, 20453 Context: ctx, 20454 }) 20455 } 20456 20457 return out 20458 } 20459 20460 var wrappedSliceImplementors = []string{"WrappedSlice"} 20461 20462 func (ec *executionContext) _WrappedSlice(ctx context.Context, sel ast.SelectionSet, obj WrappedSlice) graphql.Marshaler { 20463 fields := graphql.CollectFields(ec.OperationContext, sel, wrappedSliceImplementors) 20464 20465 out := graphql.NewFieldSet(fields) 20466 deferred := make(map[string]*graphql.FieldSet) 20467 for i, field := range fields { 20468 switch field.Name { 20469 case "__typename": 20470 out.Values[i] = graphql.MarshalString("WrappedSlice") 20471 case "get": 20472 field := field 20473 20474 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 20475 defer func() { 20476 if r := recover(); r != nil { 20477 ec.Error(ctx, ec.Recover(ctx, r)) 20478 } 20479 }() 20480 res = ec._WrappedSlice_get(ctx, field, obj) 20481 if res == graphql.Null { 20482 atomic.AddUint32(&fs.Invalids, 1) 20483 } 20484 return res 20485 } 20486 20487 if field.Deferrable != nil { 20488 dfs, ok := deferred[field.Deferrable.Label] 20489 di := 0 20490 if ok { 20491 dfs.AddField(field) 20492 di = len(dfs.Values) - 1 20493 } else { 20494 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 20495 deferred[field.Deferrable.Label] = dfs 20496 } 20497 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 20498 return innerFunc(ctx, dfs) 20499 }) 20500 20501 // don't run the out.Concurrently() call below 20502 out.Values[i] = graphql.Null 20503 continue 20504 } 20505 20506 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 20507 default: 20508 panic("unknown field " + strconv.Quote(field.Name)) 20509 } 20510 } 20511 out.Dispatch(ctx) 20512 if out.Invalids > 0 { 20513 return graphql.Null 20514 } 20515 20516 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20517 20518 for label, dfs := range deferred { 20519 ec.processDeferredGroup(graphql.DeferredGroup{ 20520 Label: label, 20521 Path: graphql.GetPath(ctx), 20522 FieldSet: dfs, 20523 Context: ctx, 20524 }) 20525 } 20526 20527 return out 20528 } 20529 20530 var wrappedStructImplementors = []string{"WrappedStruct"} 20531 20532 func (ec *executionContext) _WrappedStruct(ctx context.Context, sel ast.SelectionSet, obj *WrappedStruct) graphql.Marshaler { 20533 fields := graphql.CollectFields(ec.OperationContext, sel, wrappedStructImplementors) 20534 20535 out := graphql.NewFieldSet(fields) 20536 deferred := make(map[string]*graphql.FieldSet) 20537 for i, field := range fields { 20538 switch field.Name { 20539 case "__typename": 20540 out.Values[i] = graphql.MarshalString("WrappedStruct") 20541 case "name": 20542 out.Values[i] = ec._WrappedStruct_name(ctx, field, obj) 20543 if out.Values[i] == graphql.Null { 20544 out.Invalids++ 20545 } 20546 case "desc": 20547 out.Values[i] = ec._WrappedStruct_desc(ctx, field, obj) 20548 default: 20549 panic("unknown field " + strconv.Quote(field.Name)) 20550 } 20551 } 20552 out.Dispatch(ctx) 20553 if out.Invalids > 0 { 20554 return graphql.Null 20555 } 20556 20557 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20558 20559 for label, dfs := range deferred { 20560 ec.processDeferredGroup(graphql.DeferredGroup{ 20561 Label: label, 20562 Path: graphql.GetPath(ctx), 20563 FieldSet: dfs, 20564 Context: ctx, 20565 }) 20566 } 20567 20568 return out 20569 } 20570 20571 var xXItImplementors = []string{"XXIt"} 20572 20573 func (ec *executionContext) _XXIt(ctx context.Context, sel ast.SelectionSet, obj *XXIt) graphql.Marshaler { 20574 fields := graphql.CollectFields(ec.OperationContext, sel, xXItImplementors) 20575 20576 out := graphql.NewFieldSet(fields) 20577 deferred := make(map[string]*graphql.FieldSet) 20578 for i, field := range fields { 20579 switch field.Name { 20580 case "__typename": 20581 out.Values[i] = graphql.MarshalString("XXIt") 20582 case "id": 20583 out.Values[i] = ec._XXIt_id(ctx, field, obj) 20584 if out.Values[i] == graphql.Null { 20585 out.Invalids++ 20586 } 20587 default: 20588 panic("unknown field " + strconv.Quote(field.Name)) 20589 } 20590 } 20591 out.Dispatch(ctx) 20592 if out.Invalids > 0 { 20593 return graphql.Null 20594 } 20595 20596 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20597 20598 for label, dfs := range deferred { 20599 ec.processDeferredGroup(graphql.DeferredGroup{ 20600 Label: label, 20601 Path: graphql.GetPath(ctx), 20602 FieldSet: dfs, 20603 Context: ctx, 20604 }) 20605 } 20606 20607 return out 20608 } 20609 20610 var xxItImplementors = []string{"XxIt"} 20611 20612 func (ec *executionContext) _XxIt(ctx context.Context, sel ast.SelectionSet, obj *XxIt) graphql.Marshaler { 20613 fields := graphql.CollectFields(ec.OperationContext, sel, xxItImplementors) 20614 20615 out := graphql.NewFieldSet(fields) 20616 deferred := make(map[string]*graphql.FieldSet) 20617 for i, field := range fields { 20618 switch field.Name { 20619 case "__typename": 20620 out.Values[i] = graphql.MarshalString("XxIt") 20621 case "id": 20622 out.Values[i] = ec._XxIt_id(ctx, field, obj) 20623 if out.Values[i] == graphql.Null { 20624 out.Invalids++ 20625 } 20626 default: 20627 panic("unknown field " + strconv.Quote(field.Name)) 20628 } 20629 } 20630 out.Dispatch(ctx) 20631 if out.Invalids > 0 { 20632 return graphql.Null 20633 } 20634 20635 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20636 20637 for label, dfs := range deferred { 20638 ec.processDeferredGroup(graphql.DeferredGroup{ 20639 Label: label, 20640 Path: graphql.GetPath(ctx), 20641 FieldSet: dfs, 20642 Context: ctx, 20643 }) 20644 } 20645 20646 return out 20647 } 20648 20649 var __DirectiveImplementors = []string{"__Directive"} 20650 20651 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { 20652 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) 20653 20654 out := graphql.NewFieldSet(fields) 20655 deferred := make(map[string]*graphql.FieldSet) 20656 for i, field := range fields { 20657 switch field.Name { 20658 case "__typename": 20659 out.Values[i] = graphql.MarshalString("__Directive") 20660 case "name": 20661 out.Values[i] = ec.___Directive_name(ctx, field, obj) 20662 if out.Values[i] == graphql.Null { 20663 out.Invalids++ 20664 } 20665 case "description": 20666 out.Values[i] = ec.___Directive_description(ctx, field, obj) 20667 case "locations": 20668 out.Values[i] = ec.___Directive_locations(ctx, field, obj) 20669 if out.Values[i] == graphql.Null { 20670 out.Invalids++ 20671 } 20672 case "args": 20673 out.Values[i] = ec.___Directive_args(ctx, field, obj) 20674 if out.Values[i] == graphql.Null { 20675 out.Invalids++ 20676 } 20677 case "isRepeatable": 20678 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) 20679 if out.Values[i] == graphql.Null { 20680 out.Invalids++ 20681 } 20682 default: 20683 panic("unknown field " + strconv.Quote(field.Name)) 20684 } 20685 } 20686 out.Dispatch(ctx) 20687 if out.Invalids > 0 { 20688 return graphql.Null 20689 } 20690 20691 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20692 20693 for label, dfs := range deferred { 20694 ec.processDeferredGroup(graphql.DeferredGroup{ 20695 Label: label, 20696 Path: graphql.GetPath(ctx), 20697 FieldSet: dfs, 20698 Context: ctx, 20699 }) 20700 } 20701 20702 return out 20703 } 20704 20705 var __EnumValueImplementors = []string{"__EnumValue"} 20706 20707 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { 20708 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) 20709 20710 out := graphql.NewFieldSet(fields) 20711 deferred := make(map[string]*graphql.FieldSet) 20712 for i, field := range fields { 20713 switch field.Name { 20714 case "__typename": 20715 out.Values[i] = graphql.MarshalString("__EnumValue") 20716 case "name": 20717 out.Values[i] = ec.___EnumValue_name(ctx, field, obj) 20718 if out.Values[i] == graphql.Null { 20719 out.Invalids++ 20720 } 20721 case "description": 20722 out.Values[i] = ec.___EnumValue_description(ctx, field, obj) 20723 case "isDeprecated": 20724 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) 20725 if out.Values[i] == graphql.Null { 20726 out.Invalids++ 20727 } 20728 case "deprecationReason": 20729 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) 20730 default: 20731 panic("unknown field " + strconv.Quote(field.Name)) 20732 } 20733 } 20734 out.Dispatch(ctx) 20735 if out.Invalids > 0 { 20736 return graphql.Null 20737 } 20738 20739 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20740 20741 for label, dfs := range deferred { 20742 ec.processDeferredGroup(graphql.DeferredGroup{ 20743 Label: label, 20744 Path: graphql.GetPath(ctx), 20745 FieldSet: dfs, 20746 Context: ctx, 20747 }) 20748 } 20749 20750 return out 20751 } 20752 20753 var __FieldImplementors = []string{"__Field"} 20754 20755 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { 20756 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) 20757 20758 out := graphql.NewFieldSet(fields) 20759 deferred := make(map[string]*graphql.FieldSet) 20760 for i, field := range fields { 20761 switch field.Name { 20762 case "__typename": 20763 out.Values[i] = graphql.MarshalString("__Field") 20764 case "name": 20765 out.Values[i] = ec.___Field_name(ctx, field, obj) 20766 if out.Values[i] == graphql.Null { 20767 out.Invalids++ 20768 } 20769 case "description": 20770 out.Values[i] = ec.___Field_description(ctx, field, obj) 20771 case "args": 20772 out.Values[i] = ec.___Field_args(ctx, field, obj) 20773 if out.Values[i] == graphql.Null { 20774 out.Invalids++ 20775 } 20776 case "type": 20777 out.Values[i] = ec.___Field_type(ctx, field, obj) 20778 if out.Values[i] == graphql.Null { 20779 out.Invalids++ 20780 } 20781 case "isDeprecated": 20782 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) 20783 if out.Values[i] == graphql.Null { 20784 out.Invalids++ 20785 } 20786 case "deprecationReason": 20787 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) 20788 default: 20789 panic("unknown field " + strconv.Quote(field.Name)) 20790 } 20791 } 20792 out.Dispatch(ctx) 20793 if out.Invalids > 0 { 20794 return graphql.Null 20795 } 20796 20797 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20798 20799 for label, dfs := range deferred { 20800 ec.processDeferredGroup(graphql.DeferredGroup{ 20801 Label: label, 20802 Path: graphql.GetPath(ctx), 20803 FieldSet: dfs, 20804 Context: ctx, 20805 }) 20806 } 20807 20808 return out 20809 } 20810 20811 var __InputValueImplementors = []string{"__InputValue"} 20812 20813 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { 20814 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) 20815 20816 out := graphql.NewFieldSet(fields) 20817 deferred := make(map[string]*graphql.FieldSet) 20818 for i, field := range fields { 20819 switch field.Name { 20820 case "__typename": 20821 out.Values[i] = graphql.MarshalString("__InputValue") 20822 case "name": 20823 out.Values[i] = ec.___InputValue_name(ctx, field, obj) 20824 if out.Values[i] == graphql.Null { 20825 out.Invalids++ 20826 } 20827 case "description": 20828 out.Values[i] = ec.___InputValue_description(ctx, field, obj) 20829 case "type": 20830 out.Values[i] = ec.___InputValue_type(ctx, field, obj) 20831 if out.Values[i] == graphql.Null { 20832 out.Invalids++ 20833 } 20834 case "defaultValue": 20835 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) 20836 default: 20837 panic("unknown field " + strconv.Quote(field.Name)) 20838 } 20839 } 20840 out.Dispatch(ctx) 20841 if out.Invalids > 0 { 20842 return graphql.Null 20843 } 20844 20845 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20846 20847 for label, dfs := range deferred { 20848 ec.processDeferredGroup(graphql.DeferredGroup{ 20849 Label: label, 20850 Path: graphql.GetPath(ctx), 20851 FieldSet: dfs, 20852 Context: ctx, 20853 }) 20854 } 20855 20856 return out 20857 } 20858 20859 var __SchemaImplementors = []string{"__Schema"} 20860 20861 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { 20862 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) 20863 20864 out := graphql.NewFieldSet(fields) 20865 deferred := make(map[string]*graphql.FieldSet) 20866 for i, field := range fields { 20867 switch field.Name { 20868 case "__typename": 20869 out.Values[i] = graphql.MarshalString("__Schema") 20870 case "description": 20871 out.Values[i] = ec.___Schema_description(ctx, field, obj) 20872 case "types": 20873 out.Values[i] = ec.___Schema_types(ctx, field, obj) 20874 if out.Values[i] == graphql.Null { 20875 out.Invalids++ 20876 } 20877 case "queryType": 20878 out.Values[i] = ec.___Schema_queryType(ctx, field, obj) 20879 if out.Values[i] == graphql.Null { 20880 out.Invalids++ 20881 } 20882 case "mutationType": 20883 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) 20884 case "subscriptionType": 20885 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) 20886 case "directives": 20887 out.Values[i] = ec.___Schema_directives(ctx, field, obj) 20888 if out.Values[i] == graphql.Null { 20889 out.Invalids++ 20890 } 20891 default: 20892 panic("unknown field " + strconv.Quote(field.Name)) 20893 } 20894 } 20895 out.Dispatch(ctx) 20896 if out.Invalids > 0 { 20897 return graphql.Null 20898 } 20899 20900 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20901 20902 for label, dfs := range deferred { 20903 ec.processDeferredGroup(graphql.DeferredGroup{ 20904 Label: label, 20905 Path: graphql.GetPath(ctx), 20906 FieldSet: dfs, 20907 Context: ctx, 20908 }) 20909 } 20910 20911 return out 20912 } 20913 20914 var __TypeImplementors = []string{"__Type"} 20915 20916 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { 20917 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) 20918 20919 out := graphql.NewFieldSet(fields) 20920 deferred := make(map[string]*graphql.FieldSet) 20921 for i, field := range fields { 20922 switch field.Name { 20923 case "__typename": 20924 out.Values[i] = graphql.MarshalString("__Type") 20925 case "kind": 20926 out.Values[i] = ec.___Type_kind(ctx, field, obj) 20927 if out.Values[i] == graphql.Null { 20928 out.Invalids++ 20929 } 20930 case "name": 20931 out.Values[i] = ec.___Type_name(ctx, field, obj) 20932 case "description": 20933 out.Values[i] = ec.___Type_description(ctx, field, obj) 20934 case "fields": 20935 out.Values[i] = ec.___Type_fields(ctx, field, obj) 20936 case "interfaces": 20937 out.Values[i] = ec.___Type_interfaces(ctx, field, obj) 20938 case "possibleTypes": 20939 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) 20940 case "enumValues": 20941 out.Values[i] = ec.___Type_enumValues(ctx, field, obj) 20942 case "inputFields": 20943 out.Values[i] = ec.___Type_inputFields(ctx, field, obj) 20944 case "ofType": 20945 out.Values[i] = ec.___Type_ofType(ctx, field, obj) 20946 case "specifiedByURL": 20947 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) 20948 default: 20949 panic("unknown field " + strconv.Quote(field.Name)) 20950 } 20951 } 20952 out.Dispatch(ctx) 20953 if out.Invalids > 0 { 20954 return graphql.Null 20955 } 20956 20957 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20958 20959 for label, dfs := range deferred { 20960 ec.processDeferredGroup(graphql.DeferredGroup{ 20961 Label: label, 20962 Path: graphql.GetPath(ctx), 20963 FieldSet: dfs, 20964 Context: ctx, 20965 }) 20966 } 20967 20968 return out 20969 } 20970 20971 var asdfItImplementors = []string{"asdfIt"} 20972 20973 func (ec *executionContext) _asdfIt(ctx context.Context, sel ast.SelectionSet, obj *AsdfIt) graphql.Marshaler { 20974 fields := graphql.CollectFields(ec.OperationContext, sel, asdfItImplementors) 20975 20976 out := graphql.NewFieldSet(fields) 20977 deferred := make(map[string]*graphql.FieldSet) 20978 for i, field := range fields { 20979 switch field.Name { 20980 case "__typename": 20981 out.Values[i] = graphql.MarshalString("asdfIt") 20982 case "id": 20983 out.Values[i] = ec._asdfIt_id(ctx, field, obj) 20984 if out.Values[i] == graphql.Null { 20985 out.Invalids++ 20986 } 20987 default: 20988 panic("unknown field " + strconv.Quote(field.Name)) 20989 } 20990 } 20991 out.Dispatch(ctx) 20992 if out.Invalids > 0 { 20993 return graphql.Null 20994 } 20995 20996 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 20997 20998 for label, dfs := range deferred { 20999 ec.processDeferredGroup(graphql.DeferredGroup{ 21000 Label: label, 21001 Path: graphql.GetPath(ctx), 21002 FieldSet: dfs, 21003 Context: ctx, 21004 }) 21005 } 21006 21007 return out 21008 } 21009 21010 var iItImplementors = []string{"iIt"} 21011 21012 func (ec *executionContext) _iIt(ctx context.Context, sel ast.SelectionSet, obj *IIt) graphql.Marshaler { 21013 fields := graphql.CollectFields(ec.OperationContext, sel, iItImplementors) 21014 21015 out := graphql.NewFieldSet(fields) 21016 deferred := make(map[string]*graphql.FieldSet) 21017 for i, field := range fields { 21018 switch field.Name { 21019 case "__typename": 21020 out.Values[i] = graphql.MarshalString("iIt") 21021 case "id": 21022 out.Values[i] = ec._iIt_id(ctx, field, obj) 21023 if out.Values[i] == graphql.Null { 21024 out.Invalids++ 21025 } 21026 default: 21027 panic("unknown field " + strconv.Quote(field.Name)) 21028 } 21029 } 21030 out.Dispatch(ctx) 21031 if out.Invalids > 0 { 21032 return graphql.Null 21033 } 21034 21035 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 21036 21037 for label, dfs := range deferred { 21038 ec.processDeferredGroup(graphql.DeferredGroup{ 21039 Label: label, 21040 Path: graphql.GetPath(ctx), 21041 FieldSet: dfs, 21042 Context: ctx, 21043 }) 21044 } 21045 21046 return out 21047 } 21048 21049 // endregion **************************** object.gotpl **************************** 21050 21051 // region ***************************** type.gotpl ***************************** 21052 21053 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 21054 res, err := graphql.UnmarshalBoolean(v) 21055 return res, graphql.ErrorOnPath(ctx, err) 21056 } 21057 21058 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 21059 res := graphql.MarshalBoolean(v) 21060 if res == graphql.Null { 21061 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21062 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21063 } 21064 } 21065 return res 21066 } 21067 21068 func (ec *executionContext) unmarshalNBytes2ᚕbyte(ctx context.Context, v interface{}) ([]byte, error) { 21069 res, err := UnmarshalBytes(v) 21070 return res, graphql.ErrorOnPath(ctx, err) 21071 } 21072 21073 func (ec *executionContext) marshalNBytes2ᚕbyte(ctx context.Context, sel ast.SelectionSet, v []byte) graphql.Marshaler { 21074 if v == nil { 21075 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21076 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21077 } 21078 return graphql.Null 21079 } 21080 res := MarshalBytes(v) 21081 if res == graphql.Null { 21082 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21083 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21084 } 21085 } 21086 return res 21087 } 21088 21089 func (ec *executionContext) marshalNCheckIssue8962ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx context.Context, sel ast.SelectionSet, v *CheckIssue896) graphql.Marshaler { 21090 if v == nil { 21091 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21092 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21093 } 21094 return graphql.Null 21095 } 21096 return ec._CheckIssue896(ctx, sel, v) 21097 } 21098 21099 func (ec *executionContext) unmarshalNDefaultInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultInput(ctx context.Context, v interface{}) (DefaultInput, error) { 21100 res, err := ec.unmarshalInputDefaultInput(ctx, v) 21101 return res, graphql.ErrorOnPath(ctx, err) 21102 } 21103 21104 func (ec *executionContext) marshalNDefaultParametersMirror2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultParametersMirror(ctx context.Context, sel ast.SelectionSet, v DefaultParametersMirror) graphql.Marshaler { 21105 return ec._DefaultParametersMirror(ctx, sel, &v) 21106 } 21107 21108 func (ec *executionContext) marshalNDefaultParametersMirror2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultParametersMirror(ctx context.Context, sel ast.SelectionSet, v *DefaultParametersMirror) graphql.Marshaler { 21109 if v == nil { 21110 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21111 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21112 } 21113 return graphql.Null 21114 } 21115 return ec._DefaultParametersMirror(ctx, sel, v) 21116 } 21117 21118 func (ec *executionContext) unmarshalNDefaultScalarImplementation2string(ctx context.Context, v interface{}) (string, error) { 21119 res, err := graphql.UnmarshalString(v) 21120 return res, graphql.ErrorOnPath(ctx, err) 21121 } 21122 21123 func (ec *executionContext) marshalNDefaultScalarImplementation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 21124 res := graphql.MarshalString(v) 21125 if res == graphql.Null { 21126 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21127 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21128 } 21129 } 21130 return res 21131 } 21132 21133 func (ec *executionContext) marshalNDeferModel2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDeferModel(ctx context.Context, sel ast.SelectionSet, v *DeferModel) graphql.Marshaler { 21134 if v == nil { 21135 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21136 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21137 } 21138 return graphql.Null 21139 } 21140 return ec._DeferModel(ctx, sel, v) 21141 } 21142 21143 func (ec *executionContext) unmarshalNEmail2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx context.Context, v interface{}) (Email, error) { 21144 var res Email 21145 err := res.UnmarshalGQL(v) 21146 return res, graphql.ErrorOnPath(ctx, err) 21147 } 21148 21149 func (ec *executionContext) marshalNEmail2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx context.Context, sel ast.SelectionSet, v Email) graphql.Marshaler { 21150 return v 21151 } 21152 21153 func (ec *executionContext) unmarshalNEnumTest2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx context.Context, v interface{}) (EnumTest, error) { 21154 var res EnumTest 21155 err := res.UnmarshalGQL(v) 21156 return res, graphql.ErrorOnPath(ctx, err) 21157 } 21158 21159 func (ec *executionContext) marshalNEnumTest2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx context.Context, sel ast.SelectionSet, v EnumTest) graphql.Marshaler { 21160 return v 21161 } 21162 21163 func (ec *executionContext) marshalNError2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx context.Context, sel ast.SelectionSet, v Error) graphql.Marshaler { 21164 return ec._Error(ctx, sel, &v) 21165 } 21166 21167 func (ec *executionContext) marshalNError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx context.Context, sel ast.SelectionSet, v *Error) graphql.Marshaler { 21168 if v == nil { 21169 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21170 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21171 } 21172 return graphql.Null 21173 } 21174 return ec._Error(ctx, sel, v) 21175 } 21176 21177 func (ec *executionContext) unmarshalNFallbackToStringEncoding2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx context.Context, v interface{}) (FallbackToStringEncoding, error) { 21178 tmp, err := graphql.UnmarshalString(v) 21179 res := FallbackToStringEncoding(tmp) 21180 return res, graphql.ErrorOnPath(ctx, err) 21181 } 21182 21183 func (ec *executionContext) marshalNFallbackToStringEncoding2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx context.Context, sel ast.SelectionSet, v FallbackToStringEncoding) graphql.Marshaler { 21184 res := graphql.MarshalString(string(v)) 21185 if res == graphql.Null { 21186 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21187 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21188 } 21189 } 21190 return res 21191 } 21192 21193 func (ec *executionContext) unmarshalNFieldsOrderInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFieldsOrderInput(ctx context.Context, v interface{}) (FieldsOrderInput, error) { 21194 res, err := ec.unmarshalInputFieldsOrderInput(ctx, v) 21195 return res, graphql.ErrorOnPath(ctx, err) 21196 } 21197 21198 func (ec *executionContext) marshalNFieldsOrderPayload2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFieldsOrderPayload(ctx context.Context, sel ast.SelectionSet, v FieldsOrderPayload) graphql.Marshaler { 21199 return ec._FieldsOrderPayload(ctx, sel, &v) 21200 } 21201 21202 func (ec *executionContext) marshalNFieldsOrderPayload2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFieldsOrderPayload(ctx context.Context, sel ast.SelectionSet, v *FieldsOrderPayload) graphql.Marshaler { 21203 if v == nil { 21204 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21205 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21206 } 21207 return graphql.Null 21208 } 21209 return ec._FieldsOrderPayload(ctx, sel, v) 21210 } 21211 21212 func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { 21213 res, err := graphql.UnmarshalFloatContext(ctx, v) 21214 return res, graphql.ErrorOnPath(ctx, err) 21215 } 21216 21217 func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { 21218 res := graphql.MarshalFloatContext(v) 21219 if res == graphql.Null { 21220 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21221 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21222 } 21223 } 21224 return graphql.WrapContextMarshaler(ctx, res) 21225 } 21226 21227 func (ec *executionContext) unmarshalNID2int(ctx context.Context, v interface{}) (int, error) { 21228 res, err := graphql.UnmarshalIntID(v) 21229 return res, graphql.ErrorOnPath(ctx, err) 21230 } 21231 21232 func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 21233 res := graphql.MarshalIntID(v) 21234 if res == graphql.Null { 21235 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21236 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21237 } 21238 } 21239 return res 21240 } 21241 21242 func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { 21243 res, err := graphql.UnmarshalID(v) 21244 return res, graphql.ErrorOnPath(ctx, err) 21245 } 21246 21247 func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 21248 res := graphql.MarshalID(v) 21249 if res == graphql.Null { 21250 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21251 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21252 } 21253 } 21254 return res 21255 } 21256 21257 func (ec *executionContext) unmarshalNInnerDirectives2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx context.Context, v interface{}) (*InnerDirectives, error) { 21258 res, err := ec.unmarshalInputInnerDirectives(ctx, v) 21259 return &res, graphql.ErrorOnPath(ctx, err) 21260 } 21261 21262 func (ec *executionContext) unmarshalNInnerInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx context.Context, v interface{}) (InnerInput, error) { 21263 res, err := ec.unmarshalInputInnerInput(ctx, v) 21264 return res, graphql.ErrorOnPath(ctx, err) 21265 } 21266 21267 func (ec *executionContext) unmarshalNInnerInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx context.Context, v interface{}) (*InnerInput, error) { 21268 res, err := ec.unmarshalInputInnerInput(ctx, v) 21269 return &res, graphql.ErrorOnPath(ctx, err) 21270 } 21271 21272 func (ec *executionContext) marshalNInnerObject2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerObject(ctx context.Context, sel ast.SelectionSet, v *InnerObject) graphql.Marshaler { 21273 if v == nil { 21274 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21275 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21276 } 21277 return graphql.Null 21278 } 21279 return ec._InnerObject(ctx, sel, v) 21280 } 21281 21282 func (ec *executionContext) unmarshalNInputDirectives2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx context.Context, v interface{}) (InputDirectives, error) { 21283 res, err := ec.unmarshalInputInputDirectives(ctx, v) 21284 return res, graphql.ErrorOnPath(ctx, err) 21285 } 21286 21287 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { 21288 res, err := graphql.UnmarshalInt(v) 21289 return res, graphql.ErrorOnPath(ctx, err) 21290 } 21291 21292 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 21293 res := graphql.MarshalInt(v) 21294 if res == graphql.Null { 21295 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21296 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21297 } 21298 } 21299 return res 21300 } 21301 21302 func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v interface{}) (int32, error) { 21303 res, err := graphql.UnmarshalInt32(v) 21304 return res, graphql.ErrorOnPath(ctx, err) 21305 } 21306 21307 func (ec *executionContext) marshalNInt2int32(ctx context.Context, sel ast.SelectionSet, v int32) graphql.Marshaler { 21308 res := graphql.MarshalInt32(v) 21309 if res == graphql.Null { 21310 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21311 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21312 } 21313 } 21314 return res 21315 } 21316 21317 func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) { 21318 res, err := graphql.UnmarshalInt64(v) 21319 return res, graphql.ErrorOnPath(ctx, err) 21320 } 21321 21322 func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { 21323 res := graphql.MarshalInt64(v) 21324 if res == graphql.Null { 21325 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21326 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21327 } 21328 } 21329 return res 21330 } 21331 21332 func (ec *executionContext) marshalNLoopA2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐLoopA(ctx context.Context, sel ast.SelectionSet, v *LoopA) graphql.Marshaler { 21333 if v == nil { 21334 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21335 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21336 } 21337 return graphql.Null 21338 } 21339 return ec._LoopA(ctx, sel, v) 21340 } 21341 21342 func (ec *executionContext) marshalNLoopB2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐLoopB(ctx context.Context, sel ast.SelectionSet, v *LoopB) graphql.Marshaler { 21343 if v == nil { 21344 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21345 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21346 } 21347 return graphql.Null 21348 } 21349 return ec._LoopB(ctx, sel, v) 21350 } 21351 21352 func (ec *executionContext) unmarshalNMarshalPanic2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx context.Context, v interface{}) (MarshalPanic, error) { 21353 var res MarshalPanic 21354 err := res.UnmarshalGQL(v) 21355 return res, graphql.ErrorOnPath(ctx, err) 21356 } 21357 21358 func (ec *executionContext) marshalNMarshalPanic2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx context.Context, sel ast.SelectionSet, v MarshalPanic) graphql.Marshaler { 21359 return v 21360 } 21361 21362 func (ec *executionContext) unmarshalNMarshalPanic2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx context.Context, v interface{}) ([]MarshalPanic, error) { 21363 var vSlice []interface{} 21364 if v != nil { 21365 vSlice = graphql.CoerceList(v) 21366 } 21367 var err error 21368 res := make([]MarshalPanic, len(vSlice)) 21369 for i := range vSlice { 21370 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 21371 res[i], err = ec.unmarshalNMarshalPanic2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx, vSlice[i]) 21372 if err != nil { 21373 return nil, err 21374 } 21375 } 21376 return res, nil 21377 } 21378 21379 func (ec *executionContext) marshalNMarshalPanic2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx context.Context, sel ast.SelectionSet, v []MarshalPanic) graphql.Marshaler { 21380 ret := make(graphql.Array, len(v)) 21381 for i := range v { 21382 ret[i] = ec.marshalNMarshalPanic2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx, sel, v[i]) 21383 } 21384 21385 for _, e := range ret { 21386 if e == graphql.Null { 21387 return graphql.Null 21388 } 21389 } 21390 21391 return ret 21392 } 21393 21394 func (ec *executionContext) unmarshalNNestedInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedInput(ctx context.Context, v interface{}) (*NestedInput, error) { 21395 res, err := ec.unmarshalInputNestedInput(ctx, v) 21396 return &res, graphql.ErrorOnPath(ctx, err) 21397 } 21398 21399 func (ec *executionContext) marshalNNode2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNode(ctx context.Context, sel ast.SelectionSet, v Node) graphql.Marshaler { 21400 if v == nil { 21401 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21402 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21403 } 21404 return graphql.Null 21405 } 21406 return ec._Node(ctx, sel, v) 21407 } 21408 21409 func (ec *executionContext) unmarshalNOmittableInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOmittableInput(ctx context.Context, v interface{}) (OmittableInput, error) { 21410 res, err := ec.unmarshalInputOmittableInput(ctx, v) 21411 return res, graphql.ErrorOnPath(ctx, err) 21412 } 21413 21414 func (ec *executionContext) marshalNPet2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPet(ctx context.Context, sel ast.SelectionSet, v *Pet) graphql.Marshaler { 21415 if v == nil { 21416 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21417 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21418 } 21419 return graphql.Null 21420 } 21421 return ec._Pet(ctx, sel, v) 21422 } 21423 21424 func (ec *executionContext) marshalNPrimitive2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitive(ctx context.Context, sel ast.SelectionSet, v Primitive) graphql.Marshaler { 21425 return ec._Primitive(ctx, sel, &v) 21426 } 21427 21428 func (ec *executionContext) marshalNPrimitive2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveᚄ(ctx context.Context, sel ast.SelectionSet, v []Primitive) graphql.Marshaler { 21429 ret := make(graphql.Array, len(v)) 21430 var wg sync.WaitGroup 21431 isLen1 := len(v) == 1 21432 if !isLen1 { 21433 wg.Add(len(v)) 21434 } 21435 for i := range v { 21436 i := i 21437 fc := &graphql.FieldContext{ 21438 Index: &i, 21439 Result: &v[i], 21440 } 21441 ctx := graphql.WithFieldContext(ctx, fc) 21442 f := func(i int) { 21443 defer func() { 21444 if r := recover(); r != nil { 21445 ec.Error(ctx, ec.Recover(ctx, r)) 21446 ret = nil 21447 } 21448 }() 21449 if !isLen1 { 21450 defer wg.Done() 21451 } 21452 ret[i] = ec.marshalNPrimitive2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitive(ctx, sel, v[i]) 21453 } 21454 if isLen1 { 21455 f(i) 21456 } else { 21457 go f(i) 21458 } 21459 21460 } 21461 wg.Wait() 21462 21463 for _, e := range ret { 21464 if e == graphql.Null { 21465 return graphql.Null 21466 } 21467 } 21468 21469 return ret 21470 } 21471 21472 func (ec *executionContext) marshalNPrimitiveString2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveString(ctx context.Context, sel ast.SelectionSet, v PrimitiveString) graphql.Marshaler { 21473 return ec._PrimitiveString(ctx, sel, &v) 21474 } 21475 21476 func (ec *executionContext) marshalNPrimitiveString2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveStringᚄ(ctx context.Context, sel ast.SelectionSet, v []PrimitiveString) graphql.Marshaler { 21477 ret := make(graphql.Array, len(v)) 21478 var wg sync.WaitGroup 21479 isLen1 := len(v) == 1 21480 if !isLen1 { 21481 wg.Add(len(v)) 21482 } 21483 for i := range v { 21484 i := i 21485 fc := &graphql.FieldContext{ 21486 Index: &i, 21487 Result: &v[i], 21488 } 21489 ctx := graphql.WithFieldContext(ctx, fc) 21490 f := func(i int) { 21491 defer func() { 21492 if r := recover(); r != nil { 21493 ec.Error(ctx, ec.Recover(ctx, r)) 21494 ret = nil 21495 } 21496 }() 21497 if !isLen1 { 21498 defer wg.Done() 21499 } 21500 ret[i] = ec.marshalNPrimitiveString2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveString(ctx, sel, v[i]) 21501 } 21502 if isLen1 { 21503 f(i) 21504 } else { 21505 go f(i) 21506 } 21507 21508 } 21509 wg.Wait() 21510 21511 for _, e := range ret { 21512 if e == graphql.Null { 21513 return graphql.Null 21514 } 21515 } 21516 21517 return ret 21518 } 21519 21520 func (ec *executionContext) marshalNPtrToAnyContainer2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToAnyContainer(ctx context.Context, sel ast.SelectionSet, v PtrToAnyContainer) graphql.Marshaler { 21521 return ec._PtrToAnyContainer(ctx, sel, &v) 21522 } 21523 21524 func (ec *executionContext) marshalNPtrToAnyContainer2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToAnyContainer(ctx context.Context, sel ast.SelectionSet, v *PtrToAnyContainer) graphql.Marshaler { 21525 if v == nil { 21526 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21527 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21528 } 21529 return graphql.Null 21530 } 21531 return ec._PtrToAnyContainer(ctx, sel, v) 21532 } 21533 21534 func (ec *executionContext) marshalNPtrToPtrOuter2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v PtrToPtrOuter) graphql.Marshaler { 21535 return ec._PtrToPtrOuter(ctx, sel, &v) 21536 } 21537 21538 func (ec *executionContext) marshalNPtrToPtrOuter2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrOuter) graphql.Marshaler { 21539 if v == nil { 21540 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21541 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21542 } 21543 return graphql.Null 21544 } 21545 return ec._PtrToPtrOuter(ctx, sel, v) 21546 } 21547 21548 func (ec *executionContext) marshalNPtrToSliceContainer2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToSliceContainer(ctx context.Context, sel ast.SelectionSet, v PtrToSliceContainer) graphql.Marshaler { 21549 return ec._PtrToSliceContainer(ctx, sel, &v) 21550 } 21551 21552 func (ec *executionContext) marshalNPtrToSliceContainer2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToSliceContainer(ctx context.Context, sel ast.SelectionSet, v *PtrToSliceContainer) graphql.Marshaler { 21553 if v == nil { 21554 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21555 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21556 } 21557 return graphql.Null 21558 } 21559 return ec._PtrToSliceContainer(ctx, sel, v) 21560 } 21561 21562 func (ec *executionContext) unmarshalNRecursiveInputSlice2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx context.Context, v interface{}) (RecursiveInputSlice, error) { 21563 res, err := ec.unmarshalInputRecursiveInputSlice(ctx, v) 21564 return res, graphql.ErrorOnPath(ctx, err) 21565 } 21566 21567 func (ec *executionContext) marshalNShapeUnion2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShapeUnion(ctx context.Context, sel ast.SelectionSet, v ShapeUnion) graphql.Marshaler { 21568 if v == nil { 21569 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21570 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21571 } 21572 return graphql.Null 21573 } 21574 return ec._ShapeUnion(ctx, sel, v) 21575 } 21576 21577 func (ec *executionContext) marshalNSize2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSize(ctx context.Context, sel ast.SelectionSet, v *Size) graphql.Marshaler { 21578 if v == nil { 21579 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21580 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21581 } 21582 return graphql.Null 21583 } 21584 return ec._Size(ctx, sel, v) 21585 } 21586 21587 func (ec *executionContext) unmarshalNSpecialInput2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSpecialInput(ctx context.Context, v interface{}) (SpecialInput, error) { 21588 res, err := ec.unmarshalInputSpecialInput(ctx, v) 21589 return res, graphql.ErrorOnPath(ctx, err) 21590 } 21591 21592 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { 21593 res, err := graphql.UnmarshalString(v) 21594 return res, graphql.ErrorOnPath(ctx, err) 21595 } 21596 21597 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 21598 res := graphql.MarshalString(v) 21599 if res == graphql.Null { 21600 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21601 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21602 } 21603 } 21604 return res 21605 } 21606 21607 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 21608 var vSlice []interface{} 21609 if v != nil { 21610 vSlice = graphql.CoerceList(v) 21611 } 21612 var err error 21613 res := make([]string, len(vSlice)) 21614 for i := range vSlice { 21615 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 21616 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 21617 if err != nil { 21618 return nil, err 21619 } 21620 } 21621 return res, nil 21622 } 21623 21624 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 21625 ret := make(graphql.Array, len(v)) 21626 for i := range v { 21627 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 21628 } 21629 21630 for _, e := range ret { 21631 if e == graphql.Null { 21632 return graphql.Null 21633 } 21634 } 21635 21636 return ret 21637 } 21638 21639 func (ec *executionContext) unmarshalNString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { 21640 var vSlice []interface{} 21641 if v != nil { 21642 vSlice = graphql.CoerceList(v) 21643 } 21644 var err error 21645 res := make([]*string, len(vSlice)) 21646 for i := range vSlice { 21647 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 21648 res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) 21649 if err != nil { 21650 return nil, err 21651 } 21652 } 21653 return res, nil 21654 } 21655 21656 func (ec *executionContext) marshalNString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler { 21657 ret := make(graphql.Array, len(v)) 21658 for i := range v { 21659 ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i]) 21660 } 21661 21662 return ret 21663 } 21664 21665 func (ec *executionContext) unmarshalNString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 21666 res, err := graphql.UnmarshalString(v) 21667 return &res, graphql.ErrorOnPath(ctx, err) 21668 } 21669 21670 func (ec *executionContext) marshalNString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 21671 if v == nil { 21672 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21673 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21674 } 21675 return graphql.Null 21676 } 21677 res := graphql.MarshalString(*v) 21678 if res == graphql.Null { 21679 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21680 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21681 } 21682 } 21683 return res 21684 } 21685 21686 func (ec *executionContext) unmarshalNStringFromContextFunction2string(ctx context.Context, v interface{}) (string, error) { 21687 res, err := UnmarshalStringFromContextFunction(ctx, v) 21688 return res, graphql.ErrorOnPath(ctx, err) 21689 } 21690 21691 func (ec *executionContext) marshalNStringFromContextFunction2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 21692 res := MarshalStringFromContextFunction(v) 21693 if res == graphql.Null { 21694 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21695 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21696 } 21697 } 21698 return graphql.WrapContextMarshaler(ctx, res) 21699 } 21700 21701 func (ec *executionContext) unmarshalNStringFromContextInterface2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, v interface{}) (StringFromContextInterface, error) { 21702 var res StringFromContextInterface 21703 err := res.UnmarshalGQLContext(ctx, v) 21704 return res, graphql.ErrorOnPath(ctx, err) 21705 } 21706 21707 func (ec *executionContext) marshalNStringFromContextInterface2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, sel ast.SelectionSet, v StringFromContextInterface) graphql.Marshaler { 21708 return graphql.WrapContextMarshaler(ctx, v) 21709 } 21710 21711 func (ec *executionContext) unmarshalNStringFromContextInterface2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, v interface{}) (*StringFromContextInterface, error) { 21712 var res = new(StringFromContextInterface) 21713 err := res.UnmarshalGQLContext(ctx, v) 21714 return res, graphql.ErrorOnPath(ctx, err) 21715 } 21716 21717 func (ec *executionContext) marshalNStringFromContextInterface2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, sel ast.SelectionSet, v *StringFromContextInterface) graphql.Marshaler { 21718 if v == nil { 21719 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21720 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21721 } 21722 return graphql.Null 21723 } 21724 return graphql.WrapContextMarshaler(ctx, v) 21725 } 21726 21727 func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { 21728 res, err := graphql.UnmarshalTime(v) 21729 return res, graphql.ErrorOnPath(ctx, err) 21730 } 21731 21732 func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { 21733 res := graphql.MarshalTime(v) 21734 if res == graphql.Null { 21735 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21736 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21737 } 21738 } 21739 return res 21740 } 21741 21742 func (ec *executionContext) unmarshalNUUID2string(ctx context.Context, v interface{}) (string, error) { 21743 res, err := graphql.UnmarshalString(v) 21744 return res, graphql.ErrorOnPath(ctx, err) 21745 } 21746 21747 func (ec *executionContext) marshalNUUID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 21748 res := graphql.MarshalString(v) 21749 if res == graphql.Null { 21750 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21751 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21752 } 21753 } 21754 return res 21755 } 21756 21757 func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrOuter(ctx context.Context, v interface{}) (UpdatePtrToPtrOuter, error) { 21758 res, err := ec.unmarshalInputUpdatePtrToPtrOuter(ctx, v) 21759 return res, graphql.ErrorOnPath(ctx, err) 21760 } 21761 21762 func (ec *executionContext) marshalNUser2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUser(ctx context.Context, sel ast.SelectionSet, v User) graphql.Marshaler { 21763 return ec._User(ctx, sel, &v) 21764 } 21765 21766 func (ec *executionContext) marshalNUser2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUserᚄ(ctx context.Context, sel ast.SelectionSet, v []*User) graphql.Marshaler { 21767 ret := make(graphql.Array, len(v)) 21768 var wg sync.WaitGroup 21769 isLen1 := len(v) == 1 21770 if !isLen1 { 21771 wg.Add(len(v)) 21772 } 21773 for i := range v { 21774 i := i 21775 fc := &graphql.FieldContext{ 21776 Index: &i, 21777 Result: &v[i], 21778 } 21779 ctx := graphql.WithFieldContext(ctx, fc) 21780 f := func(i int) { 21781 defer func() { 21782 if r := recover(); r != nil { 21783 ec.Error(ctx, ec.Recover(ctx, r)) 21784 ret = nil 21785 } 21786 }() 21787 if !isLen1 { 21788 defer wg.Done() 21789 } 21790 ret[i] = ec.marshalNUser2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUser(ctx, sel, v[i]) 21791 } 21792 if isLen1 { 21793 f(i) 21794 } else { 21795 go f(i) 21796 } 21797 21798 } 21799 wg.Wait() 21800 21801 for _, e := range ret { 21802 if e == graphql.Null { 21803 return graphql.Null 21804 } 21805 } 21806 21807 return ret 21808 } 21809 21810 func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUser(ctx context.Context, sel ast.SelectionSet, v *User) graphql.Marshaler { 21811 if v == nil { 21812 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21813 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21814 } 21815 return graphql.Null 21816 } 21817 return ec._User(ctx, sel, v) 21818 } 21819 21820 func (ec *executionContext) marshalNWrappedMap2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedMap(ctx context.Context, sel ast.SelectionSet, v WrappedMap) graphql.Marshaler { 21821 if v == nil { 21822 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21823 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21824 } 21825 return graphql.Null 21826 } 21827 return ec._WrappedMap(ctx, sel, v) 21828 } 21829 21830 func (ec *executionContext) unmarshalNWrappedScalar2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, v interface{}) (otherpkg.Scalar, error) { 21831 tmp, err := graphql.UnmarshalString(v) 21832 res := otherpkg.Scalar(tmp) 21833 return res, graphql.ErrorOnPath(ctx, err) 21834 } 21835 21836 func (ec *executionContext) marshalNWrappedScalar2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, sel ast.SelectionSet, v otherpkg.Scalar) graphql.Marshaler { 21837 res := graphql.MarshalString(string(v)) 21838 if res == graphql.Null { 21839 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21840 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21841 } 21842 } 21843 return res 21844 } 21845 21846 func (ec *executionContext) marshalNWrappedSlice2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedSlice(ctx context.Context, sel ast.SelectionSet, v WrappedSlice) graphql.Marshaler { 21847 if v == nil { 21848 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21849 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21850 } 21851 return graphql.Null 21852 } 21853 return ec._WrappedSlice(ctx, sel, v) 21854 } 21855 21856 func (ec *executionContext) marshalNWrappedStruct2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedStruct(ctx context.Context, sel ast.SelectionSet, v WrappedStruct) graphql.Marshaler { 21857 return ec._WrappedStruct(ctx, sel, &v) 21858 } 21859 21860 func (ec *executionContext) marshalNWrappedStruct2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedStruct(ctx context.Context, sel ast.SelectionSet, v *WrappedStruct) graphql.Marshaler { 21861 if v == nil { 21862 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21863 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21864 } 21865 return graphql.Null 21866 } 21867 return ec._WrappedStruct(ctx, sel, v) 21868 } 21869 21870 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { 21871 return ec.___Directive(ctx, sel, &v) 21872 } 21873 21874 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { 21875 ret := make(graphql.Array, len(v)) 21876 var wg sync.WaitGroup 21877 isLen1 := len(v) == 1 21878 if !isLen1 { 21879 wg.Add(len(v)) 21880 } 21881 for i := range v { 21882 i := i 21883 fc := &graphql.FieldContext{ 21884 Index: &i, 21885 Result: &v[i], 21886 } 21887 ctx := graphql.WithFieldContext(ctx, fc) 21888 f := func(i int) { 21889 defer func() { 21890 if r := recover(); r != nil { 21891 ec.Error(ctx, ec.Recover(ctx, r)) 21892 ret = nil 21893 } 21894 }() 21895 if !isLen1 { 21896 defer wg.Done() 21897 } 21898 ret[i] = ec.marshalN__Directive2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) 21899 } 21900 if isLen1 { 21901 f(i) 21902 } else { 21903 go f(i) 21904 } 21905 21906 } 21907 wg.Wait() 21908 21909 for _, e := range ret { 21910 if e == graphql.Null { 21911 return graphql.Null 21912 } 21913 } 21914 21915 return ret 21916 } 21917 21918 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { 21919 res, err := graphql.UnmarshalString(v) 21920 return res, graphql.ErrorOnPath(ctx, err) 21921 } 21922 21923 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 21924 res := graphql.MarshalString(v) 21925 if res == graphql.Null { 21926 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 21927 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 21928 } 21929 } 21930 return res 21931 } 21932 21933 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 21934 var vSlice []interface{} 21935 if v != nil { 21936 vSlice = graphql.CoerceList(v) 21937 } 21938 var err error 21939 res := make([]string, len(vSlice)) 21940 for i := range vSlice { 21941 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 21942 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) 21943 if err != nil { 21944 return nil, err 21945 } 21946 } 21947 return res, nil 21948 } 21949 21950 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 21951 ret := make(graphql.Array, len(v)) 21952 var wg sync.WaitGroup 21953 isLen1 := len(v) == 1 21954 if !isLen1 { 21955 wg.Add(len(v)) 21956 } 21957 for i := range v { 21958 i := i 21959 fc := &graphql.FieldContext{ 21960 Index: &i, 21961 Result: &v[i], 21962 } 21963 ctx := graphql.WithFieldContext(ctx, fc) 21964 f := func(i int) { 21965 defer func() { 21966 if r := recover(); r != nil { 21967 ec.Error(ctx, ec.Recover(ctx, r)) 21968 ret = nil 21969 } 21970 }() 21971 if !isLen1 { 21972 defer wg.Done() 21973 } 21974 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) 21975 } 21976 if isLen1 { 21977 f(i) 21978 } else { 21979 go f(i) 21980 } 21981 21982 } 21983 wg.Wait() 21984 21985 for _, e := range ret { 21986 if e == graphql.Null { 21987 return graphql.Null 21988 } 21989 } 21990 21991 return ret 21992 } 21993 21994 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { 21995 return ec.___EnumValue(ctx, sel, &v) 21996 } 21997 21998 func (ec *executionContext) marshalN__Field2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { 21999 return ec.___Field(ctx, sel, &v) 22000 } 22001 22002 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { 22003 return ec.___InputValue(ctx, sel, &v) 22004 } 22005 22006 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 22007 ret := make(graphql.Array, len(v)) 22008 var wg sync.WaitGroup 22009 isLen1 := len(v) == 1 22010 if !isLen1 { 22011 wg.Add(len(v)) 22012 } 22013 for i := range v { 22014 i := i 22015 fc := &graphql.FieldContext{ 22016 Index: &i, 22017 Result: &v[i], 22018 } 22019 ctx := graphql.WithFieldContext(ctx, fc) 22020 f := func(i int) { 22021 defer func() { 22022 if r := recover(); r != nil { 22023 ec.Error(ctx, ec.Recover(ctx, r)) 22024 ret = nil 22025 } 22026 }() 22027 if !isLen1 { 22028 defer wg.Done() 22029 } 22030 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 22031 } 22032 if isLen1 { 22033 f(i) 22034 } else { 22035 go f(i) 22036 } 22037 22038 } 22039 wg.Wait() 22040 22041 for _, e := range ret { 22042 if e == graphql.Null { 22043 return graphql.Null 22044 } 22045 } 22046 22047 return ret 22048 } 22049 22050 func (ec *executionContext) marshalN__Type2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { 22051 return ec.___Type(ctx, sel, &v) 22052 } 22053 22054 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 22055 ret := make(graphql.Array, len(v)) 22056 var wg sync.WaitGroup 22057 isLen1 := len(v) == 1 22058 if !isLen1 { 22059 wg.Add(len(v)) 22060 } 22061 for i := range v { 22062 i := i 22063 fc := &graphql.FieldContext{ 22064 Index: &i, 22065 Result: &v[i], 22066 } 22067 ctx := graphql.WithFieldContext(ctx, fc) 22068 f := func(i int) { 22069 defer func() { 22070 if r := recover(); r != nil { 22071 ec.Error(ctx, ec.Recover(ctx, r)) 22072 ret = nil 22073 } 22074 }() 22075 if !isLen1 { 22076 defer wg.Done() 22077 } 22078 ret[i] = ec.marshalN__Type2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 22079 } 22080 if isLen1 { 22081 f(i) 22082 } else { 22083 go f(i) 22084 } 22085 22086 } 22087 wg.Wait() 22088 22089 for _, e := range ret { 22090 if e == graphql.Null { 22091 return graphql.Null 22092 } 22093 } 22094 22095 return ret 22096 } 22097 22098 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 22099 if v == nil { 22100 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 22101 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 22102 } 22103 return graphql.Null 22104 } 22105 return ec.___Type(ctx, sel, v) 22106 } 22107 22108 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { 22109 res, err := graphql.UnmarshalString(v) 22110 return res, graphql.ErrorOnPath(ctx, err) 22111 } 22112 22113 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 22114 res := graphql.MarshalString(v) 22115 if res == graphql.Null { 22116 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 22117 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 22118 } 22119 } 22120 return res 22121 } 22122 22123 func (ec *executionContext) marshalOAnimal2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐAnimal(ctx context.Context, sel ast.SelectionSet, v Animal) graphql.Marshaler { 22124 if v == nil { 22125 return graphql.Null 22126 } 22127 return ec._Animal(ctx, sel, v) 22128 } 22129 22130 func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (any, error) { 22131 if v == nil { 22132 return nil, nil 22133 } 22134 res, err := graphql.UnmarshalAny(v) 22135 return res, graphql.ErrorOnPath(ctx, err) 22136 } 22137 22138 func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v any) graphql.Marshaler { 22139 if v == nil { 22140 return graphql.Null 22141 } 22142 res := graphql.MarshalAny(v) 22143 return res 22144 } 22145 22146 func (ec *executionContext) unmarshalOAny2ᚖinterface(ctx context.Context, v interface{}) (*any, error) { 22147 if v == nil { 22148 return nil, nil 22149 } 22150 res, err := ec.unmarshalOAny2interface(ctx, v) 22151 return &res, graphql.ErrorOnPath(ctx, err) 22152 } 22153 22154 func (ec *executionContext) marshalOAny2ᚖinterface(ctx context.Context, sel ast.SelectionSet, v *any) graphql.Marshaler { 22155 return ec.marshalOAny2interface(ctx, sel, *v) 22156 } 22157 22158 func (ec *executionContext) marshalOAutobind2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐAutobind(ctx context.Context, sel ast.SelectionSet, v *Autobind) graphql.Marshaler { 22159 if v == nil { 22160 return graphql.Null 22161 } 22162 return ec._Autobind(ctx, sel, v) 22163 } 22164 22165 func (ec *executionContext) marshalOBackedByInterface2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐBackedByInterface(ctx context.Context, sel ast.SelectionSet, v BackedByInterface) graphql.Marshaler { 22166 if v == nil { 22167 return graphql.Null 22168 } 22169 return ec._BackedByInterface(ctx, sel, v) 22170 } 22171 22172 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 22173 res, err := graphql.UnmarshalBoolean(v) 22174 return res, graphql.ErrorOnPath(ctx, err) 22175 } 22176 22177 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 22178 res := graphql.MarshalBoolean(v) 22179 return res 22180 } 22181 22182 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { 22183 if v == nil { 22184 return nil, nil 22185 } 22186 res, err := graphql.UnmarshalBoolean(v) 22187 return &res, graphql.ErrorOnPath(ctx, err) 22188 } 22189 22190 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { 22191 if v == nil { 22192 return graphql.Null 22193 } 22194 res := graphql.MarshalBoolean(*v) 22195 return res 22196 } 22197 22198 func (ec *executionContext) unmarshalOChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { 22199 if v == nil { 22200 return nil, nil 22201 } 22202 return v.(map[string]interface{}), nil 22203 } 22204 22205 func (ec *executionContext) marshalOCheckIssue8962ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx context.Context, sel ast.SelectionSet, v []*CheckIssue896) graphql.Marshaler { 22206 if v == nil { 22207 return graphql.Null 22208 } 22209 ret := make(graphql.Array, len(v)) 22210 var wg sync.WaitGroup 22211 isLen1 := len(v) == 1 22212 if !isLen1 { 22213 wg.Add(len(v)) 22214 } 22215 for i := range v { 22216 i := i 22217 fc := &graphql.FieldContext{ 22218 Index: &i, 22219 Result: &v[i], 22220 } 22221 ctx := graphql.WithFieldContext(ctx, fc) 22222 f := func(i int) { 22223 defer func() { 22224 if r := recover(); r != nil { 22225 ec.Error(ctx, ec.Recover(ctx, r)) 22226 ret = nil 22227 } 22228 }() 22229 if !isLen1 { 22230 defer wg.Done() 22231 } 22232 ret[i] = ec.marshalOCheckIssue8962ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx, sel, v[i]) 22233 } 22234 if isLen1 { 22235 f(i) 22236 } else { 22237 go f(i) 22238 } 22239 22240 } 22241 wg.Wait() 22242 22243 return ret 22244 } 22245 22246 func (ec *executionContext) marshalOCheckIssue8962ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896ᚄ(ctx context.Context, sel ast.SelectionSet, v []*CheckIssue896) graphql.Marshaler { 22247 if v == nil { 22248 return graphql.Null 22249 } 22250 ret := make(graphql.Array, len(v)) 22251 var wg sync.WaitGroup 22252 isLen1 := len(v) == 1 22253 if !isLen1 { 22254 wg.Add(len(v)) 22255 } 22256 for i := range v { 22257 i := i 22258 fc := &graphql.FieldContext{ 22259 Index: &i, 22260 Result: &v[i], 22261 } 22262 ctx := graphql.WithFieldContext(ctx, fc) 22263 f := func(i int) { 22264 defer func() { 22265 if r := recover(); r != nil { 22266 ec.Error(ctx, ec.Recover(ctx, r)) 22267 ret = nil 22268 } 22269 }() 22270 if !isLen1 { 22271 defer wg.Done() 22272 } 22273 ret[i] = ec.marshalNCheckIssue8962ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx, sel, v[i]) 22274 } 22275 if isLen1 { 22276 f(i) 22277 } else { 22278 go f(i) 22279 } 22280 22281 } 22282 wg.Wait() 22283 22284 for _, e := range ret { 22285 if e == graphql.Null { 22286 return graphql.Null 22287 } 22288 } 22289 22290 return ret 22291 } 22292 22293 func (ec *executionContext) marshalOCheckIssue8962ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx context.Context, sel ast.SelectionSet, v *CheckIssue896) graphql.Marshaler { 22294 if v == nil { 22295 return graphql.Null 22296 } 22297 return ec._CheckIssue896(ctx, sel, v) 22298 } 22299 22300 func (ec *executionContext) marshalOCircle2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCircle(ctx context.Context, sel ast.SelectionSet, v *Circle) graphql.Marshaler { 22301 if v == nil { 22302 return graphql.Null 22303 } 22304 return ec._Circle(ctx, sel, v) 22305 } 22306 22307 func (ec *executionContext) marshalOCoordinates2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCoordinates(ctx context.Context, sel ast.SelectionSet, v Coordinates) graphql.Marshaler { 22308 return ec._Coordinates(ctx, sel, &v) 22309 } 22310 22311 func (ec *executionContext) unmarshalODefaultScalarImplementation2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 22312 if v == nil { 22313 return nil, nil 22314 } 22315 res, err := graphql.UnmarshalString(v) 22316 return &res, graphql.ErrorOnPath(ctx, err) 22317 } 22318 22319 func (ec *executionContext) marshalODefaultScalarImplementation2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 22320 if v == nil { 22321 return graphql.Null 22322 } 22323 res := graphql.MarshalString(*v) 22324 return res 22325 } 22326 22327 func (ec *executionContext) marshalODeferModel2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDeferModelᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeferModel) graphql.Marshaler { 22328 if v == nil { 22329 return graphql.Null 22330 } 22331 ret := make(graphql.Array, len(v)) 22332 var wg sync.WaitGroup 22333 isLen1 := len(v) == 1 22334 if !isLen1 { 22335 wg.Add(len(v)) 22336 } 22337 for i := range v { 22338 i := i 22339 fc := &graphql.FieldContext{ 22340 Index: &i, 22341 Result: &v[i], 22342 } 22343 ctx := graphql.WithFieldContext(ctx, fc) 22344 f := func(i int) { 22345 defer func() { 22346 if r := recover(); r != nil { 22347 ec.Error(ctx, ec.Recover(ctx, r)) 22348 ret = nil 22349 } 22350 }() 22351 if !isLen1 { 22352 defer wg.Done() 22353 } 22354 ret[i] = ec.marshalNDeferModel2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDeferModel(ctx, sel, v[i]) 22355 } 22356 if isLen1 { 22357 f(i) 22358 } else { 22359 go f(i) 22360 } 22361 22362 } 22363 wg.Wait() 22364 22365 for _, e := range ret { 22366 if e == graphql.Null { 22367 return graphql.Null 22368 } 22369 } 22370 22371 return ret 22372 } 22373 22374 func (ec *executionContext) marshalODeferModel2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDeferModel(ctx context.Context, sel ast.SelectionSet, v *DeferModel) graphql.Marshaler { 22375 if v == nil { 22376 return graphql.Null 22377 } 22378 return ec._DeferModel(ctx, sel, v) 22379 } 22380 22381 func (ec *executionContext) marshalODog2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDog(ctx context.Context, sel ast.SelectionSet, v *Dog) graphql.Marshaler { 22382 if v == nil { 22383 return graphql.Null 22384 } 22385 return ec._Dog(ctx, sel, v) 22386 } 22387 22388 func (ec *executionContext) marshalOEmbeddedCase12ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase1(ctx context.Context, sel ast.SelectionSet, v *EmbeddedCase1) graphql.Marshaler { 22389 if v == nil { 22390 return graphql.Null 22391 } 22392 return ec._EmbeddedCase1(ctx, sel, v) 22393 } 22394 22395 func (ec *executionContext) marshalOEmbeddedCase22ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase2(ctx context.Context, sel ast.SelectionSet, v *EmbeddedCase2) graphql.Marshaler { 22396 if v == nil { 22397 return graphql.Null 22398 } 22399 return ec._EmbeddedCase2(ctx, sel, v) 22400 } 22401 22402 func (ec *executionContext) marshalOEmbeddedCase32ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase3(ctx context.Context, sel ast.SelectionSet, v *EmbeddedCase3) graphql.Marshaler { 22403 if v == nil { 22404 return graphql.Null 22405 } 22406 return ec._EmbeddedCase3(ctx, sel, v) 22407 } 22408 22409 func (ec *executionContext) marshalOError2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx context.Context, sel ast.SelectionSet, v []*Error) graphql.Marshaler { 22410 if v == nil { 22411 return graphql.Null 22412 } 22413 ret := make(graphql.Array, len(v)) 22414 var wg sync.WaitGroup 22415 isLen1 := len(v) == 1 22416 if !isLen1 { 22417 wg.Add(len(v)) 22418 } 22419 for i := range v { 22420 i := i 22421 fc := &graphql.FieldContext{ 22422 Index: &i, 22423 Result: &v[i], 22424 } 22425 ctx := graphql.WithFieldContext(ctx, fc) 22426 f := func(i int) { 22427 defer func() { 22428 if r := recover(); r != nil { 22429 ec.Error(ctx, ec.Recover(ctx, r)) 22430 ret = nil 22431 } 22432 }() 22433 if !isLen1 { 22434 defer wg.Done() 22435 } 22436 ret[i] = ec.marshalOError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, sel, v[i]) 22437 } 22438 if isLen1 { 22439 f(i) 22440 } else { 22441 go f(i) 22442 } 22443 22444 } 22445 wg.Wait() 22446 22447 return ret 22448 } 22449 22450 func (ec *executionContext) marshalOError2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []*Error) graphql.Marshaler { 22451 if v == nil { 22452 return graphql.Null 22453 } 22454 ret := make(graphql.Array, len(v)) 22455 var wg sync.WaitGroup 22456 isLen1 := len(v) == 1 22457 if !isLen1 { 22458 wg.Add(len(v)) 22459 } 22460 for i := range v { 22461 i := i 22462 fc := &graphql.FieldContext{ 22463 Index: &i, 22464 Result: &v[i], 22465 } 22466 ctx := graphql.WithFieldContext(ctx, fc) 22467 f := func(i int) { 22468 defer func() { 22469 if r := recover(); r != nil { 22470 ec.Error(ctx, ec.Recover(ctx, r)) 22471 ret = nil 22472 } 22473 }() 22474 if !isLen1 { 22475 defer wg.Done() 22476 } 22477 ret[i] = ec.marshalNError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, sel, v[i]) 22478 } 22479 if isLen1 { 22480 f(i) 22481 } else { 22482 go f(i) 22483 } 22484 22485 } 22486 wg.Wait() 22487 22488 for _, e := range ret { 22489 if e == graphql.Null { 22490 return graphql.Null 22491 } 22492 } 22493 22494 return ret 22495 } 22496 22497 func (ec *executionContext) marshalOError2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx context.Context, sel ast.SelectionSet, v *Error) graphql.Marshaler { 22498 if v == nil { 22499 return graphql.Null 22500 } 22501 return ec._Error(ctx, sel, v) 22502 } 22503 22504 func (ec *executionContext) marshalOErrors2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐErrors(ctx context.Context, sel ast.SelectionSet, v *Errors) graphql.Marshaler { 22505 if v == nil { 22506 return graphql.Null 22507 } 22508 return ec._Errors(ctx, sel, v) 22509 } 22510 22511 func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v interface{}) (float64, error) { 22512 res, err := graphql.UnmarshalFloatContext(ctx, v) 22513 return res, graphql.ErrorOnPath(ctx, err) 22514 } 22515 22516 func (ec *executionContext) marshalOFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { 22517 res := graphql.MarshalFloatContext(v) 22518 return graphql.WrapContextMarshaler(ctx, res) 22519 } 22520 22521 func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 22522 if v == nil { 22523 return nil, nil 22524 } 22525 res, err := graphql.UnmarshalID(v) 22526 return &res, graphql.ErrorOnPath(ctx, err) 22527 } 22528 22529 func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 22530 if v == nil { 22531 return graphql.Null 22532 } 22533 res := graphql.MarshalID(*v) 22534 return res 22535 } 22536 22537 func (ec *executionContext) unmarshalOInnerDirectives2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx context.Context, v interface{}) (*InnerDirectives, error) { 22538 if v == nil { 22539 return nil, nil 22540 } 22541 res, err := ec.unmarshalInputInnerDirectives(ctx, v) 22542 return &res, graphql.ErrorOnPath(ctx, err) 22543 } 22544 22545 func (ec *executionContext) unmarshalOInputDirectives2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx context.Context, v interface{}) (*InputDirectives, error) { 22546 if v == nil { 22547 return nil, nil 22548 } 22549 res, err := ec.unmarshalInputInputDirectives(ctx, v) 22550 return &res, graphql.ErrorOnPath(ctx, err) 22551 } 22552 22553 func (ec *executionContext) unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputWithEnumValue(ctx context.Context, v interface{}) (*InputWithEnumValue, error) { 22554 if v == nil { 22555 return nil, nil 22556 } 22557 res, err := ec.unmarshalInputInputWithEnumValue(ctx, v) 22558 return &res, graphql.ErrorOnPath(ctx, err) 22559 } 22560 22561 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { 22562 if v == nil { 22563 return nil, nil 22564 } 22565 res, err := graphql.UnmarshalInt(v) 22566 return &res, graphql.ErrorOnPath(ctx, err) 22567 } 22568 22569 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { 22570 if v == nil { 22571 return graphql.Null 22572 } 22573 res := graphql.MarshalInt(*v) 22574 return res 22575 } 22576 22577 func (ec *executionContext) marshalOInvalidIdentifier2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋinvalidᚑpackagenameᚐInvalidIdentifier(ctx context.Context, sel ast.SelectionSet, v *invalid_packagename.InvalidIdentifier) graphql.Marshaler { 22578 if v == nil { 22579 return graphql.Null 22580 } 22581 return ec._InvalidIdentifier(ctx, sel, v) 22582 } 22583 22584 func (ec *executionContext) marshalOIt2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋintrospectionᚐIt(ctx context.Context, sel ast.SelectionSet, v *introspection1.It) graphql.Marshaler { 22585 if v == nil { 22586 return graphql.Null 22587 } 22588 return ec._It(ctx, sel, v) 22589 } 22590 22591 func (ec *executionContext) unmarshalOMapStringInterfaceInput2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { 22592 if v == nil { 22593 return nil, nil 22594 } 22595 return v.(map[string]interface{}), nil 22596 } 22597 22598 func (ec *executionContext) marshalOMapStringInterfaceType2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { 22599 if v == nil { 22600 return graphql.Null 22601 } 22602 return ec._MapStringInterfaceType(ctx, sel, v) 22603 } 22604 22605 func (ec *executionContext) marshalOModelMethods2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐModelMethods(ctx context.Context, sel ast.SelectionSet, v *ModelMethods) graphql.Marshaler { 22606 if v == nil { 22607 return graphql.Null 22608 } 22609 return ec._ModelMethods(ctx, sel, v) 22610 } 22611 22612 func (ec *executionContext) unmarshalONestedMapInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedMapInput(ctx context.Context, v interface{}) (*NestedMapInput, error) { 22613 if v == nil { 22614 return nil, nil 22615 } 22616 res, err := ec.unmarshalInputNestedMapInput(ctx, v) 22617 return &res, graphql.ErrorOnPath(ctx, err) 22618 } 22619 22620 func (ec *executionContext) marshalOObjectDirectives2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐObjectDirectives(ctx context.Context, sel ast.SelectionSet, v *ObjectDirectives) graphql.Marshaler { 22621 if v == nil { 22622 return graphql.Null 22623 } 22624 return ec._ObjectDirectives(ctx, sel, v) 22625 } 22626 22627 func (ec *executionContext) marshalOObjectDirectivesWithCustomGoModel2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐObjectDirectivesWithCustomGoModel(ctx context.Context, sel ast.SelectionSet, v *ObjectDirectivesWithCustomGoModel) graphql.Marshaler { 22628 if v == nil { 22629 return graphql.Null 22630 } 22631 return ec._ObjectDirectivesWithCustomGoModel(ctx, sel, v) 22632 } 22633 22634 func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) ([][]*OuterInput, error) { 22635 if v == nil { 22636 return nil, nil 22637 } 22638 var vSlice []interface{} 22639 if v != nil { 22640 vSlice = graphql.CoerceList(v) 22641 } 22642 var err error 22643 res := make([][]*OuterInput, len(vSlice)) 22644 for i := range vSlice { 22645 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 22646 res[i], err = ec.unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx, vSlice[i]) 22647 if err != nil { 22648 return nil, err 22649 } 22650 } 22651 return res, nil 22652 } 22653 22654 func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) ([]*OuterInput, error) { 22655 if v == nil { 22656 return nil, nil 22657 } 22658 var vSlice []interface{} 22659 if v != nil { 22660 vSlice = graphql.CoerceList(v) 22661 } 22662 var err error 22663 res := make([]*OuterInput, len(vSlice)) 22664 for i := range vSlice { 22665 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 22666 res[i], err = ec.unmarshalOOuterInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx, vSlice[i]) 22667 if err != nil { 22668 return nil, err 22669 } 22670 } 22671 return res, nil 22672 } 22673 22674 func (ec *executionContext) unmarshalOOuterInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) (*OuterInput, error) { 22675 if v == nil { 22676 return nil, nil 22677 } 22678 res, err := ec.unmarshalInputOuterInput(ctx, v) 22679 return &res, graphql.ErrorOnPath(ctx, err) 22680 } 22681 22682 func (ec *executionContext) marshalOOuterObject2ᚕᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx context.Context, sel ast.SelectionSet, v [][]*OuterObject) graphql.Marshaler { 22683 if v == nil { 22684 return graphql.Null 22685 } 22686 ret := make(graphql.Array, len(v)) 22687 var wg sync.WaitGroup 22688 isLen1 := len(v) == 1 22689 if !isLen1 { 22690 wg.Add(len(v)) 22691 } 22692 for i := range v { 22693 i := i 22694 fc := &graphql.FieldContext{ 22695 Index: &i, 22696 Result: &v[i], 22697 } 22698 ctx := graphql.WithFieldContext(ctx, fc) 22699 f := func(i int) { 22700 defer func() { 22701 if r := recover(); r != nil { 22702 ec.Error(ctx, ec.Recover(ctx, r)) 22703 ret = nil 22704 } 22705 }() 22706 if !isLen1 { 22707 defer wg.Done() 22708 } 22709 ret[i] = ec.marshalOOuterObject2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx, sel, v[i]) 22710 } 22711 if isLen1 { 22712 f(i) 22713 } else { 22714 go f(i) 22715 } 22716 22717 } 22718 wg.Wait() 22719 22720 return ret 22721 } 22722 22723 func (ec *executionContext) marshalOOuterObject2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx context.Context, sel ast.SelectionSet, v []*OuterObject) graphql.Marshaler { 22724 if v == nil { 22725 return graphql.Null 22726 } 22727 ret := make(graphql.Array, len(v)) 22728 var wg sync.WaitGroup 22729 isLen1 := len(v) == 1 22730 if !isLen1 { 22731 wg.Add(len(v)) 22732 } 22733 for i := range v { 22734 i := i 22735 fc := &graphql.FieldContext{ 22736 Index: &i, 22737 Result: &v[i], 22738 } 22739 ctx := graphql.WithFieldContext(ctx, fc) 22740 f := func(i int) { 22741 defer func() { 22742 if r := recover(); r != nil { 22743 ec.Error(ctx, ec.Recover(ctx, r)) 22744 ret = nil 22745 } 22746 }() 22747 if !isLen1 { 22748 defer wg.Done() 22749 } 22750 ret[i] = ec.marshalOOuterObject2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx, sel, v[i]) 22751 } 22752 if isLen1 { 22753 f(i) 22754 } else { 22755 go f(i) 22756 } 22757 22758 } 22759 wg.Wait() 22760 22761 return ret 22762 } 22763 22764 func (ec *executionContext) marshalOOuterObject2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx context.Context, sel ast.SelectionSet, v *OuterObject) graphql.Marshaler { 22765 if v == nil { 22766 return graphql.Null 22767 } 22768 return ec._OuterObject(ctx, sel, v) 22769 } 22770 22771 func (ec *executionContext) marshalOOverlappingFields2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOverlappingFields(ctx context.Context, sel ast.SelectionSet, v *OverlappingFields) graphql.Marshaler { 22772 if v == nil { 22773 return graphql.Null 22774 } 22775 return ec._OverlappingFields(ctx, sel, v) 22776 } 22777 22778 func (ec *executionContext) marshalOPanics2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPanics(ctx context.Context, sel ast.SelectionSet, v *Panics) graphql.Marshaler { 22779 if v == nil { 22780 return graphql.Null 22781 } 22782 return ec._Panics(ctx, sel, v) 22783 } 22784 22785 func (ec *executionContext) marshalOPet2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPetᚄ(ctx context.Context, sel ast.SelectionSet, v []*Pet) graphql.Marshaler { 22786 if v == nil { 22787 return graphql.Null 22788 } 22789 ret := make(graphql.Array, len(v)) 22790 var wg sync.WaitGroup 22791 isLen1 := len(v) == 1 22792 if !isLen1 { 22793 wg.Add(len(v)) 22794 } 22795 for i := range v { 22796 i := i 22797 fc := &graphql.FieldContext{ 22798 Index: &i, 22799 Result: &v[i], 22800 } 22801 ctx := graphql.WithFieldContext(ctx, fc) 22802 f := func(i int) { 22803 defer func() { 22804 if r := recover(); r != nil { 22805 ec.Error(ctx, ec.Recover(ctx, r)) 22806 ret = nil 22807 } 22808 }() 22809 if !isLen1 { 22810 defer wg.Done() 22811 } 22812 ret[i] = ec.marshalNPet2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPet(ctx, sel, v[i]) 22813 } 22814 if isLen1 { 22815 f(i) 22816 } else { 22817 go f(i) 22818 } 22819 22820 } 22821 wg.Wait() 22822 22823 for _, e := range ret { 22824 if e == graphql.Null { 22825 return graphql.Null 22826 } 22827 } 22828 22829 return ret 22830 } 22831 22832 func (ec *executionContext) marshalOPtrToPtrInner2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrInner) graphql.Marshaler { 22833 if v == nil { 22834 return graphql.Null 22835 } 22836 return ec._PtrToPtrInner(ctx, sel, v) 22837 } 22838 22839 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v **PtrToPtrInner) graphql.Marshaler { 22840 if v == nil { 22841 return graphql.Null 22842 } 22843 return ec.marshalOPtrToPtrInner2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 22844 } 22845 22846 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ***PtrToPtrInner) graphql.Marshaler { 22847 if v == nil { 22848 return graphql.Null 22849 } 22850 return ec.marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 22851 } 22852 22853 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ****PtrToPtrInner) graphql.Marshaler { 22854 if v == nil { 22855 return graphql.Null 22856 } 22857 return ec.marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 22858 } 22859 22860 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *****PtrToPtrInner) graphql.Marshaler { 22861 if v == nil { 22862 return graphql.Null 22863 } 22864 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 22865 } 22866 22867 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ******PtrToPtrInner) graphql.Marshaler { 22868 if v == nil { 22869 return graphql.Null 22870 } 22871 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 22872 } 22873 22874 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *******PtrToPtrInner) graphql.Marshaler { 22875 if v == nil { 22876 return graphql.Null 22877 } 22878 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 22879 } 22880 22881 func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSliceᚄ(ctx context.Context, v interface{}) ([]RecursiveInputSlice, error) { 22882 if v == nil { 22883 return nil, nil 22884 } 22885 var vSlice []interface{} 22886 if v != nil { 22887 vSlice = graphql.CoerceList(v) 22888 } 22889 var err error 22890 res := make([]RecursiveInputSlice, len(vSlice)) 22891 for i := range vSlice { 22892 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 22893 res[i], err = ec.unmarshalNRecursiveInputSlice2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx, vSlice[i]) 22894 if err != nil { 22895 return nil, err 22896 } 22897 } 22898 return res, nil 22899 } 22900 22901 func (ec *executionContext) unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx context.Context, v interface{}) (*RecursiveInputSlice, error) { 22902 if v == nil { 22903 return nil, nil 22904 } 22905 res, err := ec.unmarshalInputRecursiveInputSlice(ctx, v) 22906 return &res, graphql.ErrorOnPath(ctx, err) 22907 } 22908 22909 func (ec *executionContext) marshalOShape2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx context.Context, sel ast.SelectionSet, v Shape) graphql.Marshaler { 22910 if v == nil { 22911 return graphql.Null 22912 } 22913 return ec._Shape(ctx, sel, v) 22914 } 22915 22916 func (ec *executionContext) marshalOShape2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx context.Context, sel ast.SelectionSet, v []Shape) graphql.Marshaler { 22917 if v == nil { 22918 return graphql.Null 22919 } 22920 ret := make(graphql.Array, len(v)) 22921 var wg sync.WaitGroup 22922 isLen1 := len(v) == 1 22923 if !isLen1 { 22924 wg.Add(len(v)) 22925 } 22926 for i := range v { 22927 i := i 22928 fc := &graphql.FieldContext{ 22929 Index: &i, 22930 Result: &v[i], 22931 } 22932 ctx := graphql.WithFieldContext(ctx, fc) 22933 f := func(i int) { 22934 defer func() { 22935 if r := recover(); r != nil { 22936 ec.Error(ctx, ec.Recover(ctx, r)) 22937 ret = nil 22938 } 22939 }() 22940 if !isLen1 { 22941 defer wg.Done() 22942 } 22943 ret[i] = ec.marshalOShape2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx, sel, v[i]) 22944 } 22945 if isLen1 { 22946 f(i) 22947 } else { 22948 go f(i) 22949 } 22950 22951 } 22952 wg.Wait() 22953 22954 return ret 22955 } 22956 22957 func (ec *executionContext) marshalOSlices2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSlices(ctx context.Context, sel ast.SelectionSet, v *Slices) graphql.Marshaler { 22958 if v == nil { 22959 return graphql.Null 22960 } 22961 return ec._Slices(ctx, sel, v) 22962 } 22963 22964 func (ec *executionContext) unmarshalOStatus2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStatus(ctx context.Context, v interface{}) (*Status, error) { 22965 if v == nil { 22966 return nil, nil 22967 } 22968 var res = new(Status) 22969 err := res.UnmarshalGQL(v) 22970 return res, graphql.ErrorOnPath(ctx, err) 22971 } 22972 22973 func (ec *executionContext) marshalOStatus2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStatus(ctx context.Context, sel ast.SelectionSet, v *Status) graphql.Marshaler { 22974 if v == nil { 22975 return graphql.Null 22976 } 22977 return v 22978 } 22979 22980 func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { 22981 res, err := graphql.UnmarshalString(v) 22982 return res, graphql.ErrorOnPath(ctx, err) 22983 } 22984 22985 func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 22986 res := graphql.MarshalString(v) 22987 return res 22988 } 22989 22990 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 22991 if v == nil { 22992 return nil, nil 22993 } 22994 var vSlice []interface{} 22995 if v != nil { 22996 vSlice = graphql.CoerceList(v) 22997 } 22998 var err error 22999 res := make([]string, len(vSlice)) 23000 for i := range vSlice { 23001 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 23002 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 23003 if err != nil { 23004 return nil, err 23005 } 23006 } 23007 return res, nil 23008 } 23009 23010 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 23011 if v == nil { 23012 return graphql.Null 23013 } 23014 ret := make(graphql.Array, len(v)) 23015 for i := range v { 23016 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 23017 } 23018 23019 for _, e := range ret { 23020 if e == graphql.Null { 23021 return graphql.Null 23022 } 23023 } 23024 23025 return ret 23026 } 23027 23028 func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { 23029 if v == nil { 23030 return nil, nil 23031 } 23032 var vSlice []interface{} 23033 if v != nil { 23034 vSlice = graphql.CoerceList(v) 23035 } 23036 var err error 23037 res := make([]*string, len(vSlice)) 23038 for i := range vSlice { 23039 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 23040 res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) 23041 if err != nil { 23042 return nil, err 23043 } 23044 } 23045 return res, nil 23046 } 23047 23048 func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler { 23049 if v == nil { 23050 return graphql.Null 23051 } 23052 ret := make(graphql.Array, len(v)) 23053 for i := range v { 23054 ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i]) 23055 } 23056 23057 return ret 23058 } 23059 23060 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 23061 if v == nil { 23062 return nil, nil 23063 } 23064 res, err := graphql.UnmarshalString(v) 23065 return &res, graphql.ErrorOnPath(ctx, err) 23066 } 23067 23068 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 23069 if v == nil { 23070 return graphql.Null 23071 } 23072 res := graphql.MarshalString(*v) 23073 return res 23074 } 23075 23076 func (ec *executionContext) unmarshalOString2ᚖᚕstringᚄ(ctx context.Context, v interface{}) (*[]string, error) { 23077 if v == nil { 23078 return nil, nil 23079 } 23080 res, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) 23081 return &res, graphql.ErrorOnPath(ctx, err) 23082 } 23083 23084 func (ec *executionContext) marshalOString2ᚖᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v *[]string) graphql.Marshaler { 23085 return ec.marshalOString2ᚕstringᚄ(ctx, sel, *v) 23086 } 23087 23088 func (ec *executionContext) marshalOTestUnion2githubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐTestUnion(ctx context.Context, sel ast.SelectionSet, v TestUnion) graphql.Marshaler { 23089 if v == nil { 23090 return graphql.Null 23091 } 23092 return ec._TestUnion(ctx, sel, v) 23093 } 23094 23095 func (ec *executionContext) unmarshalOThirdParty2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx context.Context, v interface{}) (*ThirdParty, error) { 23096 if v == nil { 23097 return nil, nil 23098 } 23099 res, err := UnmarshalThirdParty(v) 23100 return &res, graphql.ErrorOnPath(ctx, err) 23101 } 23102 23103 func (ec *executionContext) marshalOThirdParty2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx context.Context, sel ast.SelectionSet, v *ThirdParty) graphql.Marshaler { 23104 if v == nil { 23105 return graphql.Null 23106 } 23107 res := MarshalThirdParty(*v) 23108 return res 23109 } 23110 23111 func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { 23112 if v == nil { 23113 return nil, nil 23114 } 23115 res, err := graphql.UnmarshalTime(v) 23116 return &res, graphql.ErrorOnPath(ctx, err) 23117 } 23118 23119 func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { 23120 if v == nil { 23121 return graphql.Null 23122 } 23123 res := graphql.MarshalTime(*v) 23124 return res 23125 } 23126 23127 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*UpdatePtrToPtrInner, error) { 23128 if v == nil { 23129 return nil, nil 23130 } 23131 res, err := ec.unmarshalInputUpdatePtrToPtrInner(ctx, v) 23132 return &res, graphql.ErrorOnPath(ctx, err) 23133 } 23134 23135 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (**UpdatePtrToPtrInner, error) { 23136 var pres *UpdatePtrToPtrInner 23137 if v != nil { 23138 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 23139 if err != nil { 23140 return nil, graphql.ErrorOnPath(ctx, err) 23141 } 23142 pres = res 23143 } 23144 return &pres, nil 23145 } 23146 23147 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (***UpdatePtrToPtrInner, error) { 23148 var pres **UpdatePtrToPtrInner 23149 if v != nil { 23150 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 23151 if err != nil { 23152 return nil, graphql.ErrorOnPath(ctx, err) 23153 } 23154 pres = res 23155 } 23156 return &pres, nil 23157 } 23158 23159 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (****UpdatePtrToPtrInner, error) { 23160 var pres ***UpdatePtrToPtrInner 23161 if v != nil { 23162 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 23163 if err != nil { 23164 return nil, graphql.ErrorOnPath(ctx, err) 23165 } 23166 pres = res 23167 } 23168 return &pres, nil 23169 } 23170 23171 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*****UpdatePtrToPtrInner, error) { 23172 var pres ****UpdatePtrToPtrInner 23173 if v != nil { 23174 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 23175 if err != nil { 23176 return nil, graphql.ErrorOnPath(ctx, err) 23177 } 23178 pres = res 23179 } 23180 return &pres, nil 23181 } 23182 23183 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (******UpdatePtrToPtrInner, error) { 23184 var pres *****UpdatePtrToPtrInner 23185 if v != nil { 23186 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 23187 if err != nil { 23188 return nil, graphql.ErrorOnPath(ctx, err) 23189 } 23190 pres = res 23191 } 23192 return &pres, nil 23193 } 23194 23195 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*******UpdatePtrToPtrInner, error) { 23196 var pres ******UpdatePtrToPtrInner 23197 if v != nil { 23198 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 23199 if err != nil { 23200 return nil, graphql.ErrorOnPath(ctx, err) 23201 } 23202 pres = res 23203 } 23204 return &pres, nil 23205 } 23206 23207 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (********UpdatePtrToPtrInner, error) { 23208 var pres *******UpdatePtrToPtrInner 23209 if v != nil { 23210 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 23211 if err != nil { 23212 return nil, graphql.ErrorOnPath(ctx, err) 23213 } 23214 pres = res 23215 } 23216 return &pres, nil 23217 } 23218 23219 func (ec *executionContext) marshalOVOkCaseNil2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVOkCaseNil(ctx context.Context, sel ast.SelectionSet, v *VOkCaseNil) graphql.Marshaler { 23220 if v == nil { 23221 return graphql.Null 23222 } 23223 return ec._VOkCaseNil(ctx, sel, v) 23224 } 23225 23226 func (ec *executionContext) marshalOVOkCaseValue2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVOkCaseValue(ctx context.Context, sel ast.SelectionSet, v *VOkCaseValue) graphql.Marshaler { 23227 if v == nil { 23228 return graphql.Null 23229 } 23230 return ec._VOkCaseValue(ctx, sel, v) 23231 } 23232 23233 func (ec *executionContext) unmarshalOValidInput2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidInput(ctx context.Context, v interface{}) (*ValidInput, error) { 23234 if v == nil { 23235 return nil, nil 23236 } 23237 res, err := ec.unmarshalInputValidInput(ctx, v) 23238 return &res, graphql.ErrorOnPath(ctx, err) 23239 } 23240 23241 func (ec *executionContext) marshalOValidType2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidType(ctx context.Context, sel ast.SelectionSet, v *ValidType) graphql.Marshaler { 23242 if v == nil { 23243 return graphql.Null 23244 } 23245 return ec._ValidType(ctx, sel, v) 23246 } 23247 23248 func (ec *executionContext) marshalOVariadicModel2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVariadicModel(ctx context.Context, sel ast.SelectionSet, v *VariadicModel) graphql.Marshaler { 23249 if v == nil { 23250 return graphql.Null 23251 } 23252 return ec._VariadicModel(ctx, sel, v) 23253 } 23254 23255 func (ec *executionContext) unmarshalOWrappedScalar2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, v interface{}) (*otherpkg.Scalar, error) { 23256 if v == nil { 23257 return nil, nil 23258 } 23259 tmp, err := graphql.UnmarshalString(v) 23260 res := otherpkg.Scalar(tmp) 23261 return &res, graphql.ErrorOnPath(ctx, err) 23262 } 23263 23264 func (ec *executionContext) marshalOWrappedScalar2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, sel ast.SelectionSet, v *otherpkg.Scalar) graphql.Marshaler { 23265 if v == nil { 23266 return graphql.Null 23267 } 23268 res := graphql.MarshalString(string(*v)) 23269 return res 23270 } 23271 23272 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { 23273 if v == nil { 23274 return graphql.Null 23275 } 23276 ret := make(graphql.Array, len(v)) 23277 var wg sync.WaitGroup 23278 isLen1 := len(v) == 1 23279 if !isLen1 { 23280 wg.Add(len(v)) 23281 } 23282 for i := range v { 23283 i := i 23284 fc := &graphql.FieldContext{ 23285 Index: &i, 23286 Result: &v[i], 23287 } 23288 ctx := graphql.WithFieldContext(ctx, fc) 23289 f := func(i int) { 23290 defer func() { 23291 if r := recover(); r != nil { 23292 ec.Error(ctx, ec.Recover(ctx, r)) 23293 ret = nil 23294 } 23295 }() 23296 if !isLen1 { 23297 defer wg.Done() 23298 } 23299 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) 23300 } 23301 if isLen1 { 23302 f(i) 23303 } else { 23304 go f(i) 23305 } 23306 23307 } 23308 wg.Wait() 23309 23310 for _, e := range ret { 23311 if e == graphql.Null { 23312 return graphql.Null 23313 } 23314 } 23315 23316 return ret 23317 } 23318 23319 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { 23320 if v == nil { 23321 return graphql.Null 23322 } 23323 ret := make(graphql.Array, len(v)) 23324 var wg sync.WaitGroup 23325 isLen1 := len(v) == 1 23326 if !isLen1 { 23327 wg.Add(len(v)) 23328 } 23329 for i := range v { 23330 i := i 23331 fc := &graphql.FieldContext{ 23332 Index: &i, 23333 Result: &v[i], 23334 } 23335 ctx := graphql.WithFieldContext(ctx, fc) 23336 f := func(i int) { 23337 defer func() { 23338 if r := recover(); r != nil { 23339 ec.Error(ctx, ec.Recover(ctx, r)) 23340 ret = nil 23341 } 23342 }() 23343 if !isLen1 { 23344 defer wg.Done() 23345 } 23346 ret[i] = ec.marshalN__Field2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) 23347 } 23348 if isLen1 { 23349 f(i) 23350 } else { 23351 go f(i) 23352 } 23353 23354 } 23355 wg.Wait() 23356 23357 for _, e := range ret { 23358 if e == graphql.Null { 23359 return graphql.Null 23360 } 23361 } 23362 23363 return ret 23364 } 23365 23366 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 23367 if v == nil { 23368 return graphql.Null 23369 } 23370 ret := make(graphql.Array, len(v)) 23371 var wg sync.WaitGroup 23372 isLen1 := len(v) == 1 23373 if !isLen1 { 23374 wg.Add(len(v)) 23375 } 23376 for i := range v { 23377 i := i 23378 fc := &graphql.FieldContext{ 23379 Index: &i, 23380 Result: &v[i], 23381 } 23382 ctx := graphql.WithFieldContext(ctx, fc) 23383 f := func(i int) { 23384 defer func() { 23385 if r := recover(); r != nil { 23386 ec.Error(ctx, ec.Recover(ctx, r)) 23387 ret = nil 23388 } 23389 }() 23390 if !isLen1 { 23391 defer wg.Done() 23392 } 23393 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 23394 } 23395 if isLen1 { 23396 f(i) 23397 } else { 23398 go f(i) 23399 } 23400 23401 } 23402 wg.Wait() 23403 23404 for _, e := range ret { 23405 if e == graphql.Null { 23406 return graphql.Null 23407 } 23408 } 23409 23410 return ret 23411 } 23412 23413 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { 23414 if v == nil { 23415 return graphql.Null 23416 } 23417 return ec.___Schema(ctx, sel, v) 23418 } 23419 23420 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 23421 if v == nil { 23422 return graphql.Null 23423 } 23424 ret := make(graphql.Array, len(v)) 23425 var wg sync.WaitGroup 23426 isLen1 := len(v) == 1 23427 if !isLen1 { 23428 wg.Add(len(v)) 23429 } 23430 for i := range v { 23431 i := i 23432 fc := &graphql.FieldContext{ 23433 Index: &i, 23434 Result: &v[i], 23435 } 23436 ctx := graphql.WithFieldContext(ctx, fc) 23437 f := func(i int) { 23438 defer func() { 23439 if r := recover(); r != nil { 23440 ec.Error(ctx, ec.Recover(ctx, r)) 23441 ret = nil 23442 } 23443 }() 23444 if !isLen1 { 23445 defer wg.Done() 23446 } 23447 ret[i] = ec.marshalN__Type2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 23448 } 23449 if isLen1 { 23450 f(i) 23451 } else { 23452 go f(i) 23453 } 23454 23455 } 23456 wg.Wait() 23457 23458 for _, e := range ret { 23459 if e == graphql.Null { 23460 return graphql.Null 23461 } 23462 } 23463 23464 return ret 23465 } 23466 23467 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 23468 if v == nil { 23469 return graphql.Null 23470 } 23471 return ec.___Type(ctx, sel, v) 23472 } 23473 23474 // endregion ***************************** type.gotpl *****************************