github.com/senomas/gqlgen@v0.17.11-0.20220626120754-9aee61b0716a/codegen/testserver/singlefile/generated.go (about) 1 // Code generated by github.com/99designs/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/99designs/gqlgen/codegen/testserver/singlefile/introspection" 18 invalid_packagename "github.com/99designs/gqlgen/codegen/testserver/singlefile/invalid-packagename" 19 "github.com/99designs/gqlgen/codegen/testserver/singlefile/otherpkg" 20 "github.com/99designs/gqlgen/graphql" 21 "github.com/99designs/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 Errors() ErrorsResolver 46 ForcedResolver() ForcedResolverResolver 47 ModelMethods() ModelMethodsResolver 48 Mutation() MutationResolver 49 OverlappingFields() OverlappingFieldsResolver 50 Panics() PanicsResolver 51 Pet() PetResolver 52 Primitive() PrimitiveResolver 53 PrimitiveString() PrimitiveStringResolver 54 Query() QueryResolver 55 Subscription() SubscriptionResolver 56 User() UserResolver 57 WrappedMap() WrappedMapResolver 58 WrappedSlice() WrappedSliceResolver 59 } 60 61 type DirectiveRoot struct { 62 Custom func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 63 Directive1 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 64 Directive2 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 65 Directive3 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 66 Length func(ctx context.Context, obj interface{}, next graphql.Resolver, min int, max *int, message *string) (res interface{}, err error) 67 Logged func(ctx context.Context, obj interface{}, next graphql.Resolver, id string) (res interface{}, err error) 68 MakeNil func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 69 MakeTypedNil func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 70 Order1 func(ctx context.Context, obj interface{}, next graphql.Resolver, location string) (res interface{}, err error) 71 Order2 func(ctx context.Context, obj interface{}, next graphql.Resolver, location string) (res interface{}, err error) 72 Range func(ctx context.Context, obj interface{}, next graphql.Resolver, min *int, max *int) (res interface{}, err error) 73 ToNull func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 74 Unimplemented func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 75 } 76 77 type ComplexityRoot struct { 78 A struct { 79 ID func(childComplexity int) int 80 } 81 82 AIt struct { 83 ID func(childComplexity int) int 84 } 85 86 AbIt struct { 87 ID func(childComplexity int) int 88 } 89 90 Autobind struct { 91 IdInt func(childComplexity int) int 92 IdStr func(childComplexity int) int 93 Int func(childComplexity int) int 94 Int32 func(childComplexity int) int 95 Int64 func(childComplexity int) int 96 } 97 98 B struct { 99 ID func(childComplexity int) int 100 } 101 102 BackedByInterface struct { 103 ID func(childComplexity int) int 104 ThisShouldBind func(childComplexity int) int 105 ThisShouldBindWithError func(childComplexity int) int 106 } 107 108 Cat struct { 109 CatBreed func(childComplexity int) int 110 Species func(childComplexity int) int 111 } 112 113 CheckIssue896 struct { 114 ID func(childComplexity int) int 115 } 116 117 Circle struct { 118 Area func(childComplexity int) int 119 Coordinates func(childComplexity int) int 120 Radius func(childComplexity int) int 121 } 122 123 ConcreteNodeA struct { 124 Child func(childComplexity int) int 125 ID func(childComplexity int) int 126 Name func(childComplexity int) int 127 } 128 129 ConcreteNodeInterface struct { 130 Child func(childComplexity int) int 131 ID func(childComplexity int) int 132 } 133 134 Content_Post struct { 135 Foo func(childComplexity int) int 136 } 137 138 Content_User struct { 139 Foo func(childComplexity int) int 140 } 141 142 Coordinates struct { 143 X func(childComplexity int) int 144 Y func(childComplexity int) int 145 } 146 147 DefaultParametersMirror struct { 148 FalsyBoolean func(childComplexity int) int 149 TruthyBoolean func(childComplexity int) int 150 } 151 152 Dog struct { 153 DogBreed func(childComplexity int) int 154 Species func(childComplexity int) int 155 } 156 157 EmbeddedCase1 struct { 158 ExportedEmbeddedPointerExportedMethod func(childComplexity int) int 159 } 160 161 EmbeddedCase2 struct { 162 UnexportedEmbeddedPointerExportedMethod func(childComplexity int) int 163 } 164 165 EmbeddedCase3 struct { 166 UnexportedEmbeddedInterfaceExportedMethod func(childComplexity int) int 167 } 168 169 EmbeddedDefaultScalar struct { 170 Value func(childComplexity int) int 171 } 172 173 EmbeddedPointer struct { 174 ID func(childComplexity int) int 175 Title func(childComplexity int) int 176 } 177 178 Error struct { 179 ErrorOnNonRequiredField func(childComplexity int) int 180 ErrorOnRequiredField func(childComplexity int) int 181 ID func(childComplexity int) int 182 NilOnRequiredField func(childComplexity int) int 183 } 184 185 Errors struct { 186 A func(childComplexity int) int 187 B func(childComplexity int) int 188 C func(childComplexity int) int 189 D func(childComplexity int) int 190 E func(childComplexity int) int 191 } 192 193 ForcedResolver struct { 194 Field func(childComplexity int) int 195 } 196 197 InnerObject struct { 198 ID func(childComplexity int) int 199 } 200 201 InvalidIdentifier struct { 202 ID func(childComplexity int) int 203 } 204 205 It struct { 206 ID func(childComplexity int) int 207 } 208 209 LoopA struct { 210 B func(childComplexity int) int 211 } 212 213 LoopB struct { 214 A func(childComplexity int) int 215 } 216 217 Map struct { 218 ID func(childComplexity int) int 219 } 220 221 MapStringInterfaceType struct { 222 A func(childComplexity int) int 223 B func(childComplexity int) int 224 } 225 226 ModelMethods struct { 227 NoContext func(childComplexity int) int 228 ResolverField func(childComplexity int) int 229 WithContext func(childComplexity int) int 230 } 231 232 Mutation struct { 233 DefaultInput func(childComplexity int, input DefaultInput) int 234 UpdatePtrToPtr func(childComplexity int, input UpdatePtrToPtrOuter) int 235 UpdateSomething func(childComplexity int, input SpecialInput) int 236 } 237 238 ObjectDirectives struct { 239 NullableText func(childComplexity int) int 240 Order func(childComplexity int) int 241 Text func(childComplexity int) int 242 } 243 244 ObjectDirectivesWithCustomGoModel struct { 245 NullableText func(childComplexity int) int 246 } 247 248 OuterObject struct { 249 Inner func(childComplexity int) int 250 } 251 252 OverlappingFields struct { 253 Foo func(childComplexity int) int 254 NewFoo func(childComplexity int) int 255 OldFoo func(childComplexity int) int 256 } 257 258 Panics struct { 259 ArgUnmarshal func(childComplexity int, u []MarshalPanic) int 260 FieldFuncMarshal func(childComplexity int, u []MarshalPanic) int 261 FieldScalarMarshal func(childComplexity int) int 262 } 263 264 Pet struct { 265 Friends func(childComplexity int, limit *int) int 266 ID func(childComplexity int) int 267 } 268 269 Primitive struct { 270 Squared func(childComplexity int) int 271 Value func(childComplexity int) int 272 } 273 274 PrimitiveString struct { 275 Doubled func(childComplexity int) int 276 Len func(childComplexity int) int 277 Value func(childComplexity int) int 278 } 279 280 PtrToPtrInner struct { 281 Key func(childComplexity int) int 282 Value func(childComplexity int) int 283 } 284 285 PtrToPtrOuter struct { 286 Inner func(childComplexity int) int 287 Name func(childComplexity int) int 288 StupidInner func(childComplexity int) int 289 } 290 291 PtrToSliceContainer struct { 292 PtrToSlice func(childComplexity int) int 293 } 294 295 Query struct { 296 Animal func(childComplexity int) int 297 Autobind func(childComplexity int) int 298 Collision func(childComplexity int) int 299 DefaultParameters func(childComplexity int, falsyBoolean *bool, truthyBoolean *bool) int 300 DefaultScalar func(childComplexity int, arg string) int 301 DeprecatedField func(childComplexity int) int 302 DirectiveArg func(childComplexity int, arg string) int 303 DirectiveDouble func(childComplexity int) int 304 DirectiveField func(childComplexity int) int 305 DirectiveFieldDef func(childComplexity int, ret string) int 306 DirectiveInput func(childComplexity int, arg InputDirectives) int 307 DirectiveInputNullable func(childComplexity int, arg *InputDirectives) int 308 DirectiveInputType func(childComplexity int, arg InnerInput) int 309 DirectiveNullableArg func(childComplexity int, arg *int, arg2 *int, arg3 *string) int 310 DirectiveObject func(childComplexity int) int 311 DirectiveObjectWithCustomGoModel func(childComplexity int) int 312 DirectiveUnimplemented func(childComplexity int) int 313 EmbeddedCase1 func(childComplexity int) int 314 EmbeddedCase2 func(childComplexity int) int 315 EmbeddedCase3 func(childComplexity int) int 316 EnumInInput func(childComplexity int, input *InputWithEnumValue) int 317 ErrorBubble func(childComplexity int) int 318 ErrorBubbleList func(childComplexity int) int 319 ErrorList func(childComplexity int) int 320 Errors func(childComplexity int) int 321 Fallback func(childComplexity int, arg FallbackToStringEncoding) int 322 Infinity func(childComplexity int) int 323 InputNullableSlice func(childComplexity int, arg []string) int 324 InputSlice func(childComplexity int, arg []string) int 325 InvalidIdentifier func(childComplexity int) int 326 Issue896a func(childComplexity int) int 327 MapInput func(childComplexity int, input map[string]interface{}) int 328 MapNestedStringInterface func(childComplexity int, in *NestedMapInput) int 329 MapStringInterface func(childComplexity int, in map[string]interface{}) int 330 ModelMethods func(childComplexity int) int 331 NestedInputs func(childComplexity int, input [][]*OuterInput) int 332 NestedOutputs func(childComplexity int) int 333 NoShape func(childComplexity int) int 334 NoShapeTypedNil func(childComplexity int) int 335 Node func(childComplexity int) int 336 NotAnInterface func(childComplexity int) int 337 NullableArg func(childComplexity int, arg *int) int 338 OptionalUnion func(childComplexity int) int 339 Overlapping func(childComplexity int) int 340 Panics func(childComplexity int) int 341 PrimitiveObject func(childComplexity int) int 342 PrimitiveStringObject func(childComplexity int) int 343 PtrToSliceContainer func(childComplexity int) int 344 Recursive func(childComplexity int, input *RecursiveInputSlice) int 345 ScalarSlice func(childComplexity int) int 346 ShapeUnion func(childComplexity int) int 347 Shapes func(childComplexity int) int 348 Slices func(childComplexity int) int 349 StringFromContextFunction func(childComplexity int) int 350 StringFromContextInterface func(childComplexity int) int 351 User func(childComplexity int, id int) int 352 VOkCaseNil func(childComplexity int) int 353 VOkCaseValue func(childComplexity int) int 354 Valid func(childComplexity int) int 355 ValidType func(childComplexity int) int 356 VariadicModel func(childComplexity int) int 357 WrappedMap func(childComplexity int) int 358 WrappedScalar func(childComplexity int) int 359 WrappedSlice func(childComplexity int) int 360 WrappedStruct func(childComplexity int) int 361 } 362 363 Rectangle struct { 364 Area func(childComplexity int) int 365 Coordinates func(childComplexity int) int 366 Length func(childComplexity int) int 367 Width func(childComplexity int) int 368 } 369 370 Slices struct { 371 Test1 func(childComplexity int) int 372 Test2 func(childComplexity int) int 373 Test3 func(childComplexity int) int 374 Test4 func(childComplexity int) int 375 } 376 377 Subscription struct { 378 DirectiveArg func(childComplexity int, arg string) int 379 DirectiveDouble func(childComplexity int) int 380 DirectiveNullableArg func(childComplexity int, arg *int, arg2 *int, arg3 *string) int 381 DirectiveUnimplemented func(childComplexity int) int 382 ErrorRequired func(childComplexity int) int 383 InitPayload func(childComplexity int) int 384 Issue896b func(childComplexity int) int 385 Updated func(childComplexity int) int 386 } 387 388 User struct { 389 Created func(childComplexity int) int 390 Friends func(childComplexity int) int 391 ID func(childComplexity int) int 392 Pets func(childComplexity int, limit *int) int 393 Updated func(childComplexity int) int 394 } 395 396 VOkCaseNil struct { 397 Value func(childComplexity int) int 398 } 399 400 VOkCaseValue struct { 401 Value func(childComplexity int) int 402 } 403 404 ValidType struct { 405 DifferentCase func(childComplexity int) int 406 DifferentCaseOld func(childComplexity int) int 407 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 408 ValidInputKeywords func(childComplexity int, input *ValidInput) int 409 } 410 411 VariadicModel struct { 412 Value func(childComplexity int, rank int) int 413 } 414 415 WrappedMap struct { 416 Get func(childComplexity int, key string) int 417 } 418 419 WrappedSlice struct { 420 Get func(childComplexity int, idx int) int 421 } 422 423 WrappedStruct struct { 424 Desc func(childComplexity int) int 425 Name func(childComplexity int) int 426 } 427 428 XXIt struct { 429 ID func(childComplexity int) int 430 } 431 432 XxIt struct { 433 ID func(childComplexity int) int 434 } 435 436 AsdfIt struct { 437 ID func(childComplexity int) int 438 } 439 440 IIt struct { 441 ID func(childComplexity int) int 442 } 443 } 444 445 type BackedByInterfaceResolver interface { 446 ID(ctx context.Context, obj BackedByInterface) (string, error) 447 } 448 type ErrorsResolver interface { 449 A(ctx context.Context, obj *Errors) (*Error, error) 450 B(ctx context.Context, obj *Errors) (*Error, error) 451 C(ctx context.Context, obj *Errors) (*Error, error) 452 D(ctx context.Context, obj *Errors) (*Error, error) 453 E(ctx context.Context, obj *Errors) (*Error, error) 454 } 455 type ForcedResolverResolver interface { 456 Field(ctx context.Context, obj *ForcedResolver) (*Circle, error) 457 } 458 type ModelMethodsResolver interface { 459 ResolverField(ctx context.Context, obj *ModelMethods) (bool, error) 460 } 461 type MutationResolver interface { 462 DefaultInput(ctx context.Context, input DefaultInput) (*DefaultParametersMirror, error) 463 UpdateSomething(ctx context.Context, input SpecialInput) (string, error) 464 UpdatePtrToPtr(ctx context.Context, input UpdatePtrToPtrOuter) (*PtrToPtrOuter, error) 465 } 466 type OverlappingFieldsResolver interface { 467 OldFoo(ctx context.Context, obj *OverlappingFields) (int, error) 468 } 469 type PanicsResolver interface { 470 FieldScalarMarshal(ctx context.Context, obj *Panics) ([]MarshalPanic, error) 471 472 ArgUnmarshal(ctx context.Context, obj *Panics, u []MarshalPanic) (bool, error) 473 } 474 type PetResolver interface { 475 Friends(ctx context.Context, obj *Pet, limit *int) ([]*Pet, error) 476 } 477 type PrimitiveResolver interface { 478 Value(ctx context.Context, obj *Primitive) (int, error) 479 } 480 type PrimitiveStringResolver interface { 481 Value(ctx context.Context, obj *PrimitiveString) (string, error) 482 483 Len(ctx context.Context, obj *PrimitiveString) (int, error) 484 } 485 type QueryResolver interface { 486 InvalidIdentifier(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) 487 Collision(ctx context.Context) (*introspection1.It, error) 488 MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) 489 Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) 490 NestedInputs(ctx context.Context, input [][]*OuterInput) (*bool, error) 491 NestedOutputs(ctx context.Context) ([][]*OuterObject, error) 492 ModelMethods(ctx context.Context) (*ModelMethods, error) 493 User(ctx context.Context, id int) (*User, error) 494 NullableArg(ctx context.Context, arg *int) (*string, error) 495 InputSlice(ctx context.Context, arg []string) (bool, error) 496 InputNullableSlice(ctx context.Context, arg []string) (bool, error) 497 ShapeUnion(ctx context.Context) (ShapeUnion, error) 498 Autobind(ctx context.Context) (*Autobind, error) 499 DeprecatedField(ctx context.Context) (string, error) 500 Overlapping(ctx context.Context) (*OverlappingFields, error) 501 DefaultParameters(ctx context.Context, falsyBoolean *bool, truthyBoolean *bool) (*DefaultParametersMirror, error) 502 DirectiveArg(ctx context.Context, arg string) (*string, error) 503 DirectiveNullableArg(ctx context.Context, arg *int, arg2 *int, arg3 *string) (*string, error) 504 DirectiveInputNullable(ctx context.Context, arg *InputDirectives) (*string, error) 505 DirectiveInput(ctx context.Context, arg InputDirectives) (*string, error) 506 DirectiveInputType(ctx context.Context, arg InnerInput) (*string, error) 507 DirectiveObject(ctx context.Context) (*ObjectDirectives, error) 508 DirectiveObjectWithCustomGoModel(ctx context.Context) (*ObjectDirectivesWithCustomGoModel, error) 509 DirectiveFieldDef(ctx context.Context, ret string) (string, error) 510 DirectiveField(ctx context.Context) (*string, error) 511 DirectiveDouble(ctx context.Context) (*string, error) 512 DirectiveUnimplemented(ctx context.Context) (*string, error) 513 EmbeddedCase1(ctx context.Context) (*EmbeddedCase1, error) 514 EmbeddedCase2(ctx context.Context) (*EmbeddedCase2, error) 515 EmbeddedCase3(ctx context.Context) (*EmbeddedCase3, error) 516 EnumInInput(ctx context.Context, input *InputWithEnumValue) (EnumTest, error) 517 Shapes(ctx context.Context) ([]Shape, error) 518 NoShape(ctx context.Context) (Shape, error) 519 Node(ctx context.Context) (Node, error) 520 NoShapeTypedNil(ctx context.Context) (Shape, error) 521 Animal(ctx context.Context) (Animal, error) 522 NotAnInterface(ctx context.Context) (BackedByInterface, error) 523 Issue896a(ctx context.Context) ([]*CheckIssue896, error) 524 MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) 525 MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) 526 ErrorBubble(ctx context.Context) (*Error, error) 527 ErrorBubbleList(ctx context.Context) ([]*Error, error) 528 ErrorList(ctx context.Context) ([]*Error, error) 529 Errors(ctx context.Context) (*Errors, error) 530 Valid(ctx context.Context) (string, error) 531 Panics(ctx context.Context) (*Panics, error) 532 PrimitiveObject(ctx context.Context) ([]Primitive, error) 533 PrimitiveStringObject(ctx context.Context) ([]PrimitiveString, error) 534 PtrToSliceContainer(ctx context.Context) (*PtrToSliceContainer, error) 535 Infinity(ctx context.Context) (float64, error) 536 StringFromContextInterface(ctx context.Context) (*StringFromContextInterface, error) 537 StringFromContextFunction(ctx context.Context) (string, error) 538 DefaultScalar(ctx context.Context, arg string) (string, error) 539 Slices(ctx context.Context) (*Slices, error) 540 ScalarSlice(ctx context.Context) ([]byte, error) 541 Fallback(ctx context.Context, arg FallbackToStringEncoding) (FallbackToStringEncoding, error) 542 OptionalUnion(ctx context.Context) (TestUnion, error) 543 VOkCaseValue(ctx context.Context) (*VOkCaseValue, error) 544 VOkCaseNil(ctx context.Context) (*VOkCaseNil, error) 545 ValidType(ctx context.Context) (*ValidType, error) 546 VariadicModel(ctx context.Context) (*VariadicModel, error) 547 WrappedStruct(ctx context.Context) (*WrappedStruct, error) 548 WrappedScalar(ctx context.Context) (otherpkg.Scalar, error) 549 WrappedMap(ctx context.Context) (WrappedMap, error) 550 WrappedSlice(ctx context.Context) (WrappedSlice, error) 551 } 552 type SubscriptionResolver interface { 553 Updated(ctx context.Context) (<-chan string, error) 554 InitPayload(ctx context.Context) (<-chan string, error) 555 DirectiveArg(ctx context.Context, arg string) (<-chan *string, error) 556 DirectiveNullableArg(ctx context.Context, arg *int, arg2 *int, arg3 *string) (<-chan *string, error) 557 DirectiveDouble(ctx context.Context) (<-chan *string, error) 558 DirectiveUnimplemented(ctx context.Context) (<-chan *string, error) 559 Issue896b(ctx context.Context) (<-chan []*CheckIssue896, error) 560 ErrorRequired(ctx context.Context) (<-chan *Error, error) 561 } 562 type UserResolver interface { 563 Friends(ctx context.Context, obj *User) ([]*User, error) 564 565 Pets(ctx context.Context, obj *User, limit *int) ([]*Pet, error) 566 } 567 type WrappedMapResolver interface { 568 Get(ctx context.Context, obj WrappedMap, key string) (string, error) 569 } 570 type WrappedSliceResolver interface { 571 Get(ctx context.Context, obj WrappedSlice, idx int) (string, error) 572 } 573 574 type executableSchema struct { 575 resolvers ResolverRoot 576 directives DirectiveRoot 577 complexity ComplexityRoot 578 } 579 580 func (e *executableSchema) Schema() *ast.Schema { 581 return parsedSchema 582 } 583 584 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { 585 ec := executionContext{nil, e} 586 _ = ec 587 switch typeName + "." + field { 588 589 case "A.id": 590 if e.complexity.A.ID == nil { 591 break 592 } 593 594 return e.complexity.A.ID(childComplexity), true 595 596 case "AIt.id": 597 if e.complexity.AIt.ID == nil { 598 break 599 } 600 601 return e.complexity.AIt.ID(childComplexity), true 602 603 case "AbIt.id": 604 if e.complexity.AbIt.ID == nil { 605 break 606 } 607 608 return e.complexity.AbIt.ID(childComplexity), true 609 610 case "Autobind.idInt": 611 if e.complexity.Autobind.IdInt == nil { 612 break 613 } 614 615 return e.complexity.Autobind.IdInt(childComplexity), true 616 617 case "Autobind.idStr": 618 if e.complexity.Autobind.IdStr == nil { 619 break 620 } 621 622 return e.complexity.Autobind.IdStr(childComplexity), true 623 624 case "Autobind.int": 625 if e.complexity.Autobind.Int == nil { 626 break 627 } 628 629 return e.complexity.Autobind.Int(childComplexity), true 630 631 case "Autobind.int32": 632 if e.complexity.Autobind.Int32 == nil { 633 break 634 } 635 636 return e.complexity.Autobind.Int32(childComplexity), true 637 638 case "Autobind.int64": 639 if e.complexity.Autobind.Int64 == nil { 640 break 641 } 642 643 return e.complexity.Autobind.Int64(childComplexity), true 644 645 case "B.id": 646 if e.complexity.B.ID == nil { 647 break 648 } 649 650 return e.complexity.B.ID(childComplexity), true 651 652 case "BackedByInterface.id": 653 if e.complexity.BackedByInterface.ID == nil { 654 break 655 } 656 657 return e.complexity.BackedByInterface.ID(childComplexity), true 658 659 case "BackedByInterface.thisShouldBind": 660 if e.complexity.BackedByInterface.ThisShouldBind == nil { 661 break 662 } 663 664 return e.complexity.BackedByInterface.ThisShouldBind(childComplexity), true 665 666 case "BackedByInterface.thisShouldBindWithError": 667 if e.complexity.BackedByInterface.ThisShouldBindWithError == nil { 668 break 669 } 670 671 return e.complexity.BackedByInterface.ThisShouldBindWithError(childComplexity), true 672 673 case "Cat.catBreed": 674 if e.complexity.Cat.CatBreed == nil { 675 break 676 } 677 678 return e.complexity.Cat.CatBreed(childComplexity), true 679 680 case "Cat.species": 681 if e.complexity.Cat.Species == nil { 682 break 683 } 684 685 return e.complexity.Cat.Species(childComplexity), true 686 687 case "CheckIssue896.id": 688 if e.complexity.CheckIssue896.ID == nil { 689 break 690 } 691 692 return e.complexity.CheckIssue896.ID(childComplexity), true 693 694 case "Circle.area": 695 if e.complexity.Circle.Area == nil { 696 break 697 } 698 699 return e.complexity.Circle.Area(childComplexity), true 700 701 case "Circle.coordinates": 702 if e.complexity.Circle.Coordinates == nil { 703 break 704 } 705 706 return e.complexity.Circle.Coordinates(childComplexity), true 707 708 case "Circle.radius": 709 if e.complexity.Circle.Radius == nil { 710 break 711 } 712 713 return e.complexity.Circle.Radius(childComplexity), true 714 715 case "ConcreteNodeA.child": 716 if e.complexity.ConcreteNodeA.Child == nil { 717 break 718 } 719 720 return e.complexity.ConcreteNodeA.Child(childComplexity), true 721 722 case "ConcreteNodeA.id": 723 if e.complexity.ConcreteNodeA.ID == nil { 724 break 725 } 726 727 return e.complexity.ConcreteNodeA.ID(childComplexity), true 728 729 case "ConcreteNodeA.name": 730 if e.complexity.ConcreteNodeA.Name == nil { 731 break 732 } 733 734 return e.complexity.ConcreteNodeA.Name(childComplexity), true 735 736 case "ConcreteNodeInterface.child": 737 if e.complexity.ConcreteNodeInterface.Child == nil { 738 break 739 } 740 741 return e.complexity.ConcreteNodeInterface.Child(childComplexity), true 742 743 case "ConcreteNodeInterface.id": 744 if e.complexity.ConcreteNodeInterface.ID == nil { 745 break 746 } 747 748 return e.complexity.ConcreteNodeInterface.ID(childComplexity), true 749 750 case "Content_Post.foo": 751 if e.complexity.Content_Post.Foo == nil { 752 break 753 } 754 755 return e.complexity.Content_Post.Foo(childComplexity), true 756 757 case "Content_User.foo": 758 if e.complexity.Content_User.Foo == nil { 759 break 760 } 761 762 return e.complexity.Content_User.Foo(childComplexity), true 763 764 case "Coordinates.x": 765 if e.complexity.Coordinates.X == nil { 766 break 767 } 768 769 return e.complexity.Coordinates.X(childComplexity), true 770 771 case "Coordinates.y": 772 if e.complexity.Coordinates.Y == nil { 773 break 774 } 775 776 return e.complexity.Coordinates.Y(childComplexity), true 777 778 case "DefaultParametersMirror.falsyBoolean": 779 if e.complexity.DefaultParametersMirror.FalsyBoolean == nil { 780 break 781 } 782 783 return e.complexity.DefaultParametersMirror.FalsyBoolean(childComplexity), true 784 785 case "DefaultParametersMirror.truthyBoolean": 786 if e.complexity.DefaultParametersMirror.TruthyBoolean == nil { 787 break 788 } 789 790 return e.complexity.DefaultParametersMirror.TruthyBoolean(childComplexity), true 791 792 case "Dog.dogBreed": 793 if e.complexity.Dog.DogBreed == nil { 794 break 795 } 796 797 return e.complexity.Dog.DogBreed(childComplexity), true 798 799 case "Dog.species": 800 if e.complexity.Dog.Species == nil { 801 break 802 } 803 804 return e.complexity.Dog.Species(childComplexity), true 805 806 case "EmbeddedCase1.exportedEmbeddedPointerExportedMethod": 807 if e.complexity.EmbeddedCase1.ExportedEmbeddedPointerExportedMethod == nil { 808 break 809 } 810 811 return e.complexity.EmbeddedCase1.ExportedEmbeddedPointerExportedMethod(childComplexity), true 812 813 case "EmbeddedCase2.unexportedEmbeddedPointerExportedMethod": 814 if e.complexity.EmbeddedCase2.UnexportedEmbeddedPointerExportedMethod == nil { 815 break 816 } 817 818 return e.complexity.EmbeddedCase2.UnexportedEmbeddedPointerExportedMethod(childComplexity), true 819 820 case "EmbeddedCase3.unexportedEmbeddedInterfaceExportedMethod": 821 if e.complexity.EmbeddedCase3.UnexportedEmbeddedInterfaceExportedMethod == nil { 822 break 823 } 824 825 return e.complexity.EmbeddedCase3.UnexportedEmbeddedInterfaceExportedMethod(childComplexity), true 826 827 case "EmbeddedDefaultScalar.value": 828 if e.complexity.EmbeddedDefaultScalar.Value == nil { 829 break 830 } 831 832 return e.complexity.EmbeddedDefaultScalar.Value(childComplexity), true 833 834 case "EmbeddedPointer.ID": 835 if e.complexity.EmbeddedPointer.ID == nil { 836 break 837 } 838 839 return e.complexity.EmbeddedPointer.ID(childComplexity), true 840 841 case "EmbeddedPointer.Title": 842 if e.complexity.EmbeddedPointer.Title == nil { 843 break 844 } 845 846 return e.complexity.EmbeddedPointer.Title(childComplexity), true 847 848 case "Error.errorOnNonRequiredField": 849 if e.complexity.Error.ErrorOnNonRequiredField == nil { 850 break 851 } 852 853 return e.complexity.Error.ErrorOnNonRequiredField(childComplexity), true 854 855 case "Error.errorOnRequiredField": 856 if e.complexity.Error.ErrorOnRequiredField == nil { 857 break 858 } 859 860 return e.complexity.Error.ErrorOnRequiredField(childComplexity), true 861 862 case "Error.id": 863 if e.complexity.Error.ID == nil { 864 break 865 } 866 867 return e.complexity.Error.ID(childComplexity), true 868 869 case "Error.nilOnRequiredField": 870 if e.complexity.Error.NilOnRequiredField == nil { 871 break 872 } 873 874 return e.complexity.Error.NilOnRequiredField(childComplexity), true 875 876 case "Errors.a": 877 if e.complexity.Errors.A == nil { 878 break 879 } 880 881 return e.complexity.Errors.A(childComplexity), true 882 883 case "Errors.b": 884 if e.complexity.Errors.B == nil { 885 break 886 } 887 888 return e.complexity.Errors.B(childComplexity), true 889 890 case "Errors.c": 891 if e.complexity.Errors.C == nil { 892 break 893 } 894 895 return e.complexity.Errors.C(childComplexity), true 896 897 case "Errors.d": 898 if e.complexity.Errors.D == nil { 899 break 900 } 901 902 return e.complexity.Errors.D(childComplexity), true 903 904 case "Errors.e": 905 if e.complexity.Errors.E == nil { 906 break 907 } 908 909 return e.complexity.Errors.E(childComplexity), true 910 911 case "ForcedResolver.field": 912 if e.complexity.ForcedResolver.Field == nil { 913 break 914 } 915 916 return e.complexity.ForcedResolver.Field(childComplexity), true 917 918 case "InnerObject.id": 919 if e.complexity.InnerObject.ID == nil { 920 break 921 } 922 923 return e.complexity.InnerObject.ID(childComplexity), true 924 925 case "InvalidIdentifier.id": 926 if e.complexity.InvalidIdentifier.ID == nil { 927 break 928 } 929 930 return e.complexity.InvalidIdentifier.ID(childComplexity), true 931 932 case "It.id": 933 if e.complexity.It.ID == nil { 934 break 935 } 936 937 return e.complexity.It.ID(childComplexity), true 938 939 case "LoopA.b": 940 if e.complexity.LoopA.B == nil { 941 break 942 } 943 944 return e.complexity.LoopA.B(childComplexity), true 945 946 case "LoopB.a": 947 if e.complexity.LoopB.A == nil { 948 break 949 } 950 951 return e.complexity.LoopB.A(childComplexity), true 952 953 case "Map.id": 954 if e.complexity.Map.ID == nil { 955 break 956 } 957 958 return e.complexity.Map.ID(childComplexity), true 959 960 case "MapStringInterfaceType.a": 961 if e.complexity.MapStringInterfaceType.A == nil { 962 break 963 } 964 965 return e.complexity.MapStringInterfaceType.A(childComplexity), true 966 967 case "MapStringInterfaceType.b": 968 if e.complexity.MapStringInterfaceType.B == nil { 969 break 970 } 971 972 return e.complexity.MapStringInterfaceType.B(childComplexity), true 973 974 case "ModelMethods.noContext": 975 if e.complexity.ModelMethods.NoContext == nil { 976 break 977 } 978 979 return e.complexity.ModelMethods.NoContext(childComplexity), true 980 981 case "ModelMethods.resolverField": 982 if e.complexity.ModelMethods.ResolverField == nil { 983 break 984 } 985 986 return e.complexity.ModelMethods.ResolverField(childComplexity), true 987 988 case "ModelMethods.withContext": 989 if e.complexity.ModelMethods.WithContext == nil { 990 break 991 } 992 993 return e.complexity.ModelMethods.WithContext(childComplexity), true 994 995 case "Mutation.defaultInput": 996 if e.complexity.Mutation.DefaultInput == nil { 997 break 998 } 999 1000 args, err := ec.field_Mutation_defaultInput_args(context.TODO(), rawArgs) 1001 if err != nil { 1002 return 0, false 1003 } 1004 1005 return e.complexity.Mutation.DefaultInput(childComplexity, args["input"].(DefaultInput)), true 1006 1007 case "Mutation.updatePtrToPtr": 1008 if e.complexity.Mutation.UpdatePtrToPtr == nil { 1009 break 1010 } 1011 1012 args, err := ec.field_Mutation_updatePtrToPtr_args(context.TODO(), rawArgs) 1013 if err != nil { 1014 return 0, false 1015 } 1016 1017 return e.complexity.Mutation.UpdatePtrToPtr(childComplexity, args["input"].(UpdatePtrToPtrOuter)), true 1018 1019 case "Mutation.updateSomething": 1020 if e.complexity.Mutation.UpdateSomething == nil { 1021 break 1022 } 1023 1024 args, err := ec.field_Mutation_updateSomething_args(context.TODO(), rawArgs) 1025 if err != nil { 1026 return 0, false 1027 } 1028 1029 return e.complexity.Mutation.UpdateSomething(childComplexity, args["input"].(SpecialInput)), true 1030 1031 case "ObjectDirectives.nullableText": 1032 if e.complexity.ObjectDirectives.NullableText == nil { 1033 break 1034 } 1035 1036 return e.complexity.ObjectDirectives.NullableText(childComplexity), true 1037 1038 case "ObjectDirectives.order": 1039 if e.complexity.ObjectDirectives.Order == nil { 1040 break 1041 } 1042 1043 return e.complexity.ObjectDirectives.Order(childComplexity), true 1044 1045 case "ObjectDirectives.text": 1046 if e.complexity.ObjectDirectives.Text == nil { 1047 break 1048 } 1049 1050 return e.complexity.ObjectDirectives.Text(childComplexity), true 1051 1052 case "ObjectDirectivesWithCustomGoModel.nullableText": 1053 if e.complexity.ObjectDirectivesWithCustomGoModel.NullableText == nil { 1054 break 1055 } 1056 1057 return e.complexity.ObjectDirectivesWithCustomGoModel.NullableText(childComplexity), true 1058 1059 case "OuterObject.inner": 1060 if e.complexity.OuterObject.Inner == nil { 1061 break 1062 } 1063 1064 return e.complexity.OuterObject.Inner(childComplexity), true 1065 1066 case "OverlappingFields.oneFoo", "OverlappingFields.twoFoo": 1067 if e.complexity.OverlappingFields.Foo == nil { 1068 break 1069 } 1070 1071 return e.complexity.OverlappingFields.Foo(childComplexity), true 1072 1073 case "OverlappingFields.newFoo", "OverlappingFields.new_foo": 1074 if e.complexity.OverlappingFields.NewFoo == nil { 1075 break 1076 } 1077 1078 return e.complexity.OverlappingFields.NewFoo(childComplexity), true 1079 1080 case "OverlappingFields.oldFoo": 1081 if e.complexity.OverlappingFields.OldFoo == nil { 1082 break 1083 } 1084 1085 return e.complexity.OverlappingFields.OldFoo(childComplexity), true 1086 1087 case "Panics.argUnmarshal": 1088 if e.complexity.Panics.ArgUnmarshal == nil { 1089 break 1090 } 1091 1092 args, err := ec.field_Panics_argUnmarshal_args(context.TODO(), rawArgs) 1093 if err != nil { 1094 return 0, false 1095 } 1096 1097 return e.complexity.Panics.ArgUnmarshal(childComplexity, args["u"].([]MarshalPanic)), true 1098 1099 case "Panics.fieldFuncMarshal": 1100 if e.complexity.Panics.FieldFuncMarshal == nil { 1101 break 1102 } 1103 1104 args, err := ec.field_Panics_fieldFuncMarshal_args(context.TODO(), rawArgs) 1105 if err != nil { 1106 return 0, false 1107 } 1108 1109 return e.complexity.Panics.FieldFuncMarshal(childComplexity, args["u"].([]MarshalPanic)), true 1110 1111 case "Panics.fieldScalarMarshal": 1112 if e.complexity.Panics.FieldScalarMarshal == nil { 1113 break 1114 } 1115 1116 return e.complexity.Panics.FieldScalarMarshal(childComplexity), true 1117 1118 case "Pet.friends": 1119 if e.complexity.Pet.Friends == nil { 1120 break 1121 } 1122 1123 args, err := ec.field_Pet_friends_args(context.TODO(), rawArgs) 1124 if err != nil { 1125 return 0, false 1126 } 1127 1128 return e.complexity.Pet.Friends(childComplexity, args["limit"].(*int)), true 1129 1130 case "Pet.id": 1131 if e.complexity.Pet.ID == nil { 1132 break 1133 } 1134 1135 return e.complexity.Pet.ID(childComplexity), true 1136 1137 case "Primitive.squared": 1138 if e.complexity.Primitive.Squared == nil { 1139 break 1140 } 1141 1142 return e.complexity.Primitive.Squared(childComplexity), true 1143 1144 case "Primitive.value": 1145 if e.complexity.Primitive.Value == nil { 1146 break 1147 } 1148 1149 return e.complexity.Primitive.Value(childComplexity), true 1150 1151 case "PrimitiveString.doubled": 1152 if e.complexity.PrimitiveString.Doubled == nil { 1153 break 1154 } 1155 1156 return e.complexity.PrimitiveString.Doubled(childComplexity), true 1157 1158 case "PrimitiveString.len": 1159 if e.complexity.PrimitiveString.Len == nil { 1160 break 1161 } 1162 1163 return e.complexity.PrimitiveString.Len(childComplexity), true 1164 1165 case "PrimitiveString.value": 1166 if e.complexity.PrimitiveString.Value == nil { 1167 break 1168 } 1169 1170 return e.complexity.PrimitiveString.Value(childComplexity), true 1171 1172 case "PtrToPtrInner.key": 1173 if e.complexity.PtrToPtrInner.Key == nil { 1174 break 1175 } 1176 1177 return e.complexity.PtrToPtrInner.Key(childComplexity), true 1178 1179 case "PtrToPtrInner.value": 1180 if e.complexity.PtrToPtrInner.Value == nil { 1181 break 1182 } 1183 1184 return e.complexity.PtrToPtrInner.Value(childComplexity), true 1185 1186 case "PtrToPtrOuter.inner": 1187 if e.complexity.PtrToPtrOuter.Inner == nil { 1188 break 1189 } 1190 1191 return e.complexity.PtrToPtrOuter.Inner(childComplexity), true 1192 1193 case "PtrToPtrOuter.name": 1194 if e.complexity.PtrToPtrOuter.Name == nil { 1195 break 1196 } 1197 1198 return e.complexity.PtrToPtrOuter.Name(childComplexity), true 1199 1200 case "PtrToPtrOuter.stupidInner": 1201 if e.complexity.PtrToPtrOuter.StupidInner == nil { 1202 break 1203 } 1204 1205 return e.complexity.PtrToPtrOuter.StupidInner(childComplexity), true 1206 1207 case "PtrToSliceContainer.ptrToSlice": 1208 if e.complexity.PtrToSliceContainer.PtrToSlice == nil { 1209 break 1210 } 1211 1212 return e.complexity.PtrToSliceContainer.PtrToSlice(childComplexity), true 1213 1214 case "Query.animal": 1215 if e.complexity.Query.Animal == nil { 1216 break 1217 } 1218 1219 return e.complexity.Query.Animal(childComplexity), true 1220 1221 case "Query.autobind": 1222 if e.complexity.Query.Autobind == nil { 1223 break 1224 } 1225 1226 return e.complexity.Query.Autobind(childComplexity), true 1227 1228 case "Query.collision": 1229 if e.complexity.Query.Collision == nil { 1230 break 1231 } 1232 1233 return e.complexity.Query.Collision(childComplexity), true 1234 1235 case "Query.defaultParameters": 1236 if e.complexity.Query.DefaultParameters == nil { 1237 break 1238 } 1239 1240 args, err := ec.field_Query_defaultParameters_args(context.TODO(), rawArgs) 1241 if err != nil { 1242 return 0, false 1243 } 1244 1245 return e.complexity.Query.DefaultParameters(childComplexity, args["falsyBoolean"].(*bool), args["truthyBoolean"].(*bool)), true 1246 1247 case "Query.defaultScalar": 1248 if e.complexity.Query.DefaultScalar == nil { 1249 break 1250 } 1251 1252 args, err := ec.field_Query_defaultScalar_args(context.TODO(), rawArgs) 1253 if err != nil { 1254 return 0, false 1255 } 1256 1257 return e.complexity.Query.DefaultScalar(childComplexity, args["arg"].(string)), true 1258 1259 case "Query.deprecatedField": 1260 if e.complexity.Query.DeprecatedField == nil { 1261 break 1262 } 1263 1264 return e.complexity.Query.DeprecatedField(childComplexity), true 1265 1266 case "Query.directiveArg": 1267 if e.complexity.Query.DirectiveArg == nil { 1268 break 1269 } 1270 1271 args, err := ec.field_Query_directiveArg_args(context.TODO(), rawArgs) 1272 if err != nil { 1273 return 0, false 1274 } 1275 1276 return e.complexity.Query.DirectiveArg(childComplexity, args["arg"].(string)), true 1277 1278 case "Query.directiveDouble": 1279 if e.complexity.Query.DirectiveDouble == nil { 1280 break 1281 } 1282 1283 return e.complexity.Query.DirectiveDouble(childComplexity), true 1284 1285 case "Query.directiveField": 1286 if e.complexity.Query.DirectiveField == nil { 1287 break 1288 } 1289 1290 return e.complexity.Query.DirectiveField(childComplexity), true 1291 1292 case "Query.directiveFieldDef": 1293 if e.complexity.Query.DirectiveFieldDef == nil { 1294 break 1295 } 1296 1297 args, err := ec.field_Query_directiveFieldDef_args(context.TODO(), rawArgs) 1298 if err != nil { 1299 return 0, false 1300 } 1301 1302 return e.complexity.Query.DirectiveFieldDef(childComplexity, args["ret"].(string)), true 1303 1304 case "Query.directiveInput": 1305 if e.complexity.Query.DirectiveInput == nil { 1306 break 1307 } 1308 1309 args, err := ec.field_Query_directiveInput_args(context.TODO(), rawArgs) 1310 if err != nil { 1311 return 0, false 1312 } 1313 1314 return e.complexity.Query.DirectiveInput(childComplexity, args["arg"].(InputDirectives)), true 1315 1316 case "Query.directiveInputNullable": 1317 if e.complexity.Query.DirectiveInputNullable == nil { 1318 break 1319 } 1320 1321 args, err := ec.field_Query_directiveInputNullable_args(context.TODO(), rawArgs) 1322 if err != nil { 1323 return 0, false 1324 } 1325 1326 return e.complexity.Query.DirectiveInputNullable(childComplexity, args["arg"].(*InputDirectives)), true 1327 1328 case "Query.directiveInputType": 1329 if e.complexity.Query.DirectiveInputType == nil { 1330 break 1331 } 1332 1333 args, err := ec.field_Query_directiveInputType_args(context.TODO(), rawArgs) 1334 if err != nil { 1335 return 0, false 1336 } 1337 1338 return e.complexity.Query.DirectiveInputType(childComplexity, args["arg"].(InnerInput)), true 1339 1340 case "Query.directiveNullableArg": 1341 if e.complexity.Query.DirectiveNullableArg == nil { 1342 break 1343 } 1344 1345 args, err := ec.field_Query_directiveNullableArg_args(context.TODO(), rawArgs) 1346 if err != nil { 1347 return 0, false 1348 } 1349 1350 return e.complexity.Query.DirectiveNullableArg(childComplexity, args["arg"].(*int), args["arg2"].(*int), args["arg3"].(*string)), true 1351 1352 case "Query.directiveObject": 1353 if e.complexity.Query.DirectiveObject == nil { 1354 break 1355 } 1356 1357 return e.complexity.Query.DirectiveObject(childComplexity), true 1358 1359 case "Query.directiveObjectWithCustomGoModel": 1360 if e.complexity.Query.DirectiveObjectWithCustomGoModel == nil { 1361 break 1362 } 1363 1364 return e.complexity.Query.DirectiveObjectWithCustomGoModel(childComplexity), true 1365 1366 case "Query.directiveUnimplemented": 1367 if e.complexity.Query.DirectiveUnimplemented == nil { 1368 break 1369 } 1370 1371 return e.complexity.Query.DirectiveUnimplemented(childComplexity), true 1372 1373 case "Query.embeddedCase1": 1374 if e.complexity.Query.EmbeddedCase1 == nil { 1375 break 1376 } 1377 1378 return e.complexity.Query.EmbeddedCase1(childComplexity), true 1379 1380 case "Query.embeddedCase2": 1381 if e.complexity.Query.EmbeddedCase2 == nil { 1382 break 1383 } 1384 1385 return e.complexity.Query.EmbeddedCase2(childComplexity), true 1386 1387 case "Query.embeddedCase3": 1388 if e.complexity.Query.EmbeddedCase3 == nil { 1389 break 1390 } 1391 1392 return e.complexity.Query.EmbeddedCase3(childComplexity), true 1393 1394 case "Query.enumInInput": 1395 if e.complexity.Query.EnumInInput == nil { 1396 break 1397 } 1398 1399 args, err := ec.field_Query_enumInInput_args(context.TODO(), rawArgs) 1400 if err != nil { 1401 return 0, false 1402 } 1403 1404 return e.complexity.Query.EnumInInput(childComplexity, args["input"].(*InputWithEnumValue)), true 1405 1406 case "Query.errorBubble": 1407 if e.complexity.Query.ErrorBubble == nil { 1408 break 1409 } 1410 1411 return e.complexity.Query.ErrorBubble(childComplexity), true 1412 1413 case "Query.errorBubbleList": 1414 if e.complexity.Query.ErrorBubbleList == nil { 1415 break 1416 } 1417 1418 return e.complexity.Query.ErrorBubbleList(childComplexity), true 1419 1420 case "Query.errorList": 1421 if e.complexity.Query.ErrorList == nil { 1422 break 1423 } 1424 1425 return e.complexity.Query.ErrorList(childComplexity), true 1426 1427 case "Query.errors": 1428 if e.complexity.Query.Errors == nil { 1429 break 1430 } 1431 1432 return e.complexity.Query.Errors(childComplexity), true 1433 1434 case "Query.fallback": 1435 if e.complexity.Query.Fallback == nil { 1436 break 1437 } 1438 1439 args, err := ec.field_Query_fallback_args(context.TODO(), rawArgs) 1440 if err != nil { 1441 return 0, false 1442 } 1443 1444 return e.complexity.Query.Fallback(childComplexity, args["arg"].(FallbackToStringEncoding)), true 1445 1446 case "Query.infinity": 1447 if e.complexity.Query.Infinity == nil { 1448 break 1449 } 1450 1451 return e.complexity.Query.Infinity(childComplexity), true 1452 1453 case "Query.inputNullableSlice": 1454 if e.complexity.Query.InputNullableSlice == nil { 1455 break 1456 } 1457 1458 args, err := ec.field_Query_inputNullableSlice_args(context.TODO(), rawArgs) 1459 if err != nil { 1460 return 0, false 1461 } 1462 1463 return e.complexity.Query.InputNullableSlice(childComplexity, args["arg"].([]string)), true 1464 1465 case "Query.inputSlice": 1466 if e.complexity.Query.InputSlice == nil { 1467 break 1468 } 1469 1470 args, err := ec.field_Query_inputSlice_args(context.TODO(), rawArgs) 1471 if err != nil { 1472 return 0, false 1473 } 1474 1475 return e.complexity.Query.InputSlice(childComplexity, args["arg"].([]string)), true 1476 1477 case "Query.invalidIdentifier": 1478 if e.complexity.Query.InvalidIdentifier == nil { 1479 break 1480 } 1481 1482 return e.complexity.Query.InvalidIdentifier(childComplexity), true 1483 1484 case "Query.issue896a": 1485 if e.complexity.Query.Issue896a == nil { 1486 break 1487 } 1488 1489 return e.complexity.Query.Issue896a(childComplexity), true 1490 1491 case "Query.mapInput": 1492 if e.complexity.Query.MapInput == nil { 1493 break 1494 } 1495 1496 args, err := ec.field_Query_mapInput_args(context.TODO(), rawArgs) 1497 if err != nil { 1498 return 0, false 1499 } 1500 1501 return e.complexity.Query.MapInput(childComplexity, args["input"].(map[string]interface{})), true 1502 1503 case "Query.mapNestedStringInterface": 1504 if e.complexity.Query.MapNestedStringInterface == nil { 1505 break 1506 } 1507 1508 args, err := ec.field_Query_mapNestedStringInterface_args(context.TODO(), rawArgs) 1509 if err != nil { 1510 return 0, false 1511 } 1512 1513 return e.complexity.Query.MapNestedStringInterface(childComplexity, args["in"].(*NestedMapInput)), true 1514 1515 case "Query.mapStringInterface": 1516 if e.complexity.Query.MapStringInterface == nil { 1517 break 1518 } 1519 1520 args, err := ec.field_Query_mapStringInterface_args(context.TODO(), rawArgs) 1521 if err != nil { 1522 return 0, false 1523 } 1524 1525 return e.complexity.Query.MapStringInterface(childComplexity, args["in"].(map[string]interface{})), true 1526 1527 case "Query.modelMethods": 1528 if e.complexity.Query.ModelMethods == nil { 1529 break 1530 } 1531 1532 return e.complexity.Query.ModelMethods(childComplexity), true 1533 1534 case "Query.nestedInputs": 1535 if e.complexity.Query.NestedInputs == nil { 1536 break 1537 } 1538 1539 args, err := ec.field_Query_nestedInputs_args(context.TODO(), rawArgs) 1540 if err != nil { 1541 return 0, false 1542 } 1543 1544 return e.complexity.Query.NestedInputs(childComplexity, args["input"].([][]*OuterInput)), true 1545 1546 case "Query.nestedOutputs": 1547 if e.complexity.Query.NestedOutputs == nil { 1548 break 1549 } 1550 1551 return e.complexity.Query.NestedOutputs(childComplexity), true 1552 1553 case "Query.noShape": 1554 if e.complexity.Query.NoShape == nil { 1555 break 1556 } 1557 1558 return e.complexity.Query.NoShape(childComplexity), true 1559 1560 case "Query.noShapeTypedNil": 1561 if e.complexity.Query.NoShapeTypedNil == nil { 1562 break 1563 } 1564 1565 return e.complexity.Query.NoShapeTypedNil(childComplexity), true 1566 1567 case "Query.node": 1568 if e.complexity.Query.Node == nil { 1569 break 1570 } 1571 1572 return e.complexity.Query.Node(childComplexity), true 1573 1574 case "Query.notAnInterface": 1575 if e.complexity.Query.NotAnInterface == nil { 1576 break 1577 } 1578 1579 return e.complexity.Query.NotAnInterface(childComplexity), true 1580 1581 case "Query.nullableArg": 1582 if e.complexity.Query.NullableArg == nil { 1583 break 1584 } 1585 1586 args, err := ec.field_Query_nullableArg_args(context.TODO(), rawArgs) 1587 if err != nil { 1588 return 0, false 1589 } 1590 1591 return e.complexity.Query.NullableArg(childComplexity, args["arg"].(*int)), true 1592 1593 case "Query.optionalUnion": 1594 if e.complexity.Query.OptionalUnion == nil { 1595 break 1596 } 1597 1598 return e.complexity.Query.OptionalUnion(childComplexity), true 1599 1600 case "Query.overlapping": 1601 if e.complexity.Query.Overlapping == nil { 1602 break 1603 } 1604 1605 return e.complexity.Query.Overlapping(childComplexity), true 1606 1607 case "Query.panics": 1608 if e.complexity.Query.Panics == nil { 1609 break 1610 } 1611 1612 return e.complexity.Query.Panics(childComplexity), true 1613 1614 case "Query.primitiveObject": 1615 if e.complexity.Query.PrimitiveObject == nil { 1616 break 1617 } 1618 1619 return e.complexity.Query.PrimitiveObject(childComplexity), true 1620 1621 case "Query.primitiveStringObject": 1622 if e.complexity.Query.PrimitiveStringObject == nil { 1623 break 1624 } 1625 1626 return e.complexity.Query.PrimitiveStringObject(childComplexity), true 1627 1628 case "Query.ptrToSliceContainer": 1629 if e.complexity.Query.PtrToSliceContainer == nil { 1630 break 1631 } 1632 1633 return e.complexity.Query.PtrToSliceContainer(childComplexity), true 1634 1635 case "Query.recursive": 1636 if e.complexity.Query.Recursive == nil { 1637 break 1638 } 1639 1640 args, err := ec.field_Query_recursive_args(context.TODO(), rawArgs) 1641 if err != nil { 1642 return 0, false 1643 } 1644 1645 return e.complexity.Query.Recursive(childComplexity, args["input"].(*RecursiveInputSlice)), true 1646 1647 case "Query.scalarSlice": 1648 if e.complexity.Query.ScalarSlice == nil { 1649 break 1650 } 1651 1652 return e.complexity.Query.ScalarSlice(childComplexity), true 1653 1654 case "Query.shapeUnion": 1655 if e.complexity.Query.ShapeUnion == nil { 1656 break 1657 } 1658 1659 return e.complexity.Query.ShapeUnion(childComplexity), true 1660 1661 case "Query.shapes": 1662 if e.complexity.Query.Shapes == nil { 1663 break 1664 } 1665 1666 return e.complexity.Query.Shapes(childComplexity), true 1667 1668 case "Query.slices": 1669 if e.complexity.Query.Slices == nil { 1670 break 1671 } 1672 1673 return e.complexity.Query.Slices(childComplexity), true 1674 1675 case "Query.stringFromContextFunction": 1676 if e.complexity.Query.StringFromContextFunction == nil { 1677 break 1678 } 1679 1680 return e.complexity.Query.StringFromContextFunction(childComplexity), true 1681 1682 case "Query.stringFromContextInterface": 1683 if e.complexity.Query.StringFromContextInterface == nil { 1684 break 1685 } 1686 1687 return e.complexity.Query.StringFromContextInterface(childComplexity), true 1688 1689 case "Query.user": 1690 if e.complexity.Query.User == nil { 1691 break 1692 } 1693 1694 args, err := ec.field_Query_user_args(context.TODO(), rawArgs) 1695 if err != nil { 1696 return 0, false 1697 } 1698 1699 return e.complexity.Query.User(childComplexity, args["id"].(int)), true 1700 1701 case "Query.vOkCaseNil": 1702 if e.complexity.Query.VOkCaseNil == nil { 1703 break 1704 } 1705 1706 return e.complexity.Query.VOkCaseNil(childComplexity), true 1707 1708 case "Query.vOkCaseValue": 1709 if e.complexity.Query.VOkCaseValue == nil { 1710 break 1711 } 1712 1713 return e.complexity.Query.VOkCaseValue(childComplexity), true 1714 1715 case "Query.valid": 1716 if e.complexity.Query.Valid == nil { 1717 break 1718 } 1719 1720 return e.complexity.Query.Valid(childComplexity), true 1721 1722 case "Query.validType": 1723 if e.complexity.Query.ValidType == nil { 1724 break 1725 } 1726 1727 return e.complexity.Query.ValidType(childComplexity), true 1728 1729 case "Query.variadicModel": 1730 if e.complexity.Query.VariadicModel == nil { 1731 break 1732 } 1733 1734 return e.complexity.Query.VariadicModel(childComplexity), true 1735 1736 case "Query.wrappedMap": 1737 if e.complexity.Query.WrappedMap == nil { 1738 break 1739 } 1740 1741 return e.complexity.Query.WrappedMap(childComplexity), true 1742 1743 case "Query.wrappedScalar": 1744 if e.complexity.Query.WrappedScalar == nil { 1745 break 1746 } 1747 1748 return e.complexity.Query.WrappedScalar(childComplexity), true 1749 1750 case "Query.wrappedSlice": 1751 if e.complexity.Query.WrappedSlice == nil { 1752 break 1753 } 1754 1755 return e.complexity.Query.WrappedSlice(childComplexity), true 1756 1757 case "Query.wrappedStruct": 1758 if e.complexity.Query.WrappedStruct == nil { 1759 break 1760 } 1761 1762 return e.complexity.Query.WrappedStruct(childComplexity), true 1763 1764 case "Rectangle.area": 1765 if e.complexity.Rectangle.Area == nil { 1766 break 1767 } 1768 1769 return e.complexity.Rectangle.Area(childComplexity), true 1770 1771 case "Rectangle.coordinates": 1772 if e.complexity.Rectangle.Coordinates == nil { 1773 break 1774 } 1775 1776 return e.complexity.Rectangle.Coordinates(childComplexity), true 1777 1778 case "Rectangle.length": 1779 if e.complexity.Rectangle.Length == nil { 1780 break 1781 } 1782 1783 return e.complexity.Rectangle.Length(childComplexity), true 1784 1785 case "Rectangle.width": 1786 if e.complexity.Rectangle.Width == nil { 1787 break 1788 } 1789 1790 return e.complexity.Rectangle.Width(childComplexity), true 1791 1792 case "Slices.test1": 1793 if e.complexity.Slices.Test1 == nil { 1794 break 1795 } 1796 1797 return e.complexity.Slices.Test1(childComplexity), true 1798 1799 case "Slices.test2": 1800 if e.complexity.Slices.Test2 == nil { 1801 break 1802 } 1803 1804 return e.complexity.Slices.Test2(childComplexity), true 1805 1806 case "Slices.test3": 1807 if e.complexity.Slices.Test3 == nil { 1808 break 1809 } 1810 1811 return e.complexity.Slices.Test3(childComplexity), true 1812 1813 case "Slices.test4": 1814 if e.complexity.Slices.Test4 == nil { 1815 break 1816 } 1817 1818 return e.complexity.Slices.Test4(childComplexity), true 1819 1820 case "Subscription.directiveArg": 1821 if e.complexity.Subscription.DirectiveArg == nil { 1822 break 1823 } 1824 1825 args, err := ec.field_Subscription_directiveArg_args(context.TODO(), rawArgs) 1826 if err != nil { 1827 return 0, false 1828 } 1829 1830 return e.complexity.Subscription.DirectiveArg(childComplexity, args["arg"].(string)), true 1831 1832 case "Subscription.directiveDouble": 1833 if e.complexity.Subscription.DirectiveDouble == nil { 1834 break 1835 } 1836 1837 return e.complexity.Subscription.DirectiveDouble(childComplexity), true 1838 1839 case "Subscription.directiveNullableArg": 1840 if e.complexity.Subscription.DirectiveNullableArg == nil { 1841 break 1842 } 1843 1844 args, err := ec.field_Subscription_directiveNullableArg_args(context.TODO(), rawArgs) 1845 if err != nil { 1846 return 0, false 1847 } 1848 1849 return e.complexity.Subscription.DirectiveNullableArg(childComplexity, args["arg"].(*int), args["arg2"].(*int), args["arg3"].(*string)), true 1850 1851 case "Subscription.directiveUnimplemented": 1852 if e.complexity.Subscription.DirectiveUnimplemented == nil { 1853 break 1854 } 1855 1856 return e.complexity.Subscription.DirectiveUnimplemented(childComplexity), true 1857 1858 case "Subscription.errorRequired": 1859 if e.complexity.Subscription.ErrorRequired == nil { 1860 break 1861 } 1862 1863 return e.complexity.Subscription.ErrorRequired(childComplexity), true 1864 1865 case "Subscription.initPayload": 1866 if e.complexity.Subscription.InitPayload == nil { 1867 break 1868 } 1869 1870 return e.complexity.Subscription.InitPayload(childComplexity), true 1871 1872 case "Subscription.issue896b": 1873 if e.complexity.Subscription.Issue896b == nil { 1874 break 1875 } 1876 1877 return e.complexity.Subscription.Issue896b(childComplexity), true 1878 1879 case "Subscription.updated": 1880 if e.complexity.Subscription.Updated == nil { 1881 break 1882 } 1883 1884 return e.complexity.Subscription.Updated(childComplexity), true 1885 1886 case "User.created": 1887 if e.complexity.User.Created == nil { 1888 break 1889 } 1890 1891 return e.complexity.User.Created(childComplexity), true 1892 1893 case "User.friends": 1894 if e.complexity.User.Friends == nil { 1895 break 1896 } 1897 1898 return e.complexity.User.Friends(childComplexity), true 1899 1900 case "User.id": 1901 if e.complexity.User.ID == nil { 1902 break 1903 } 1904 1905 return e.complexity.User.ID(childComplexity), true 1906 1907 case "User.pets": 1908 if e.complexity.User.Pets == nil { 1909 break 1910 } 1911 1912 args, err := ec.field_User_pets_args(context.TODO(), rawArgs) 1913 if err != nil { 1914 return 0, false 1915 } 1916 1917 return e.complexity.User.Pets(childComplexity, args["limit"].(*int)), true 1918 1919 case "User.updated": 1920 if e.complexity.User.Updated == nil { 1921 break 1922 } 1923 1924 return e.complexity.User.Updated(childComplexity), true 1925 1926 case "VOkCaseNil.value": 1927 if e.complexity.VOkCaseNil.Value == nil { 1928 break 1929 } 1930 1931 return e.complexity.VOkCaseNil.Value(childComplexity), true 1932 1933 case "VOkCaseValue.value": 1934 if e.complexity.VOkCaseValue.Value == nil { 1935 break 1936 } 1937 1938 return e.complexity.VOkCaseValue.Value(childComplexity), true 1939 1940 case "ValidType.differentCase": 1941 if e.complexity.ValidType.DifferentCase == nil { 1942 break 1943 } 1944 1945 return e.complexity.ValidType.DifferentCase(childComplexity), true 1946 1947 case "ValidType.different_case": 1948 if e.complexity.ValidType.DifferentCaseOld == nil { 1949 break 1950 } 1951 1952 return e.complexity.ValidType.DifferentCaseOld(childComplexity), true 1953 1954 case "ValidType.validArgs": 1955 if e.complexity.ValidType.ValidArgs == nil { 1956 break 1957 } 1958 1959 args, err := ec.field_ValidType_validArgs_args(context.TODO(), rawArgs) 1960 if err != nil { 1961 return 0, false 1962 } 1963 1964 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 1965 1966 case "ValidType.validInputKeywords": 1967 if e.complexity.ValidType.ValidInputKeywords == nil { 1968 break 1969 } 1970 1971 args, err := ec.field_ValidType_validInputKeywords_args(context.TODO(), rawArgs) 1972 if err != nil { 1973 return 0, false 1974 } 1975 1976 return e.complexity.ValidType.ValidInputKeywords(childComplexity, args["input"].(*ValidInput)), true 1977 1978 case "VariadicModel.value": 1979 if e.complexity.VariadicModel.Value == nil { 1980 break 1981 } 1982 1983 args, err := ec.field_VariadicModel_value_args(context.TODO(), rawArgs) 1984 if err != nil { 1985 return 0, false 1986 } 1987 1988 return e.complexity.VariadicModel.Value(childComplexity, args["rank"].(int)), true 1989 1990 case "WrappedMap.get": 1991 if e.complexity.WrappedMap.Get == nil { 1992 break 1993 } 1994 1995 args, err := ec.field_WrappedMap_get_args(context.TODO(), rawArgs) 1996 if err != nil { 1997 return 0, false 1998 } 1999 2000 return e.complexity.WrappedMap.Get(childComplexity, args["key"].(string)), true 2001 2002 case "WrappedSlice.get": 2003 if e.complexity.WrappedSlice.Get == nil { 2004 break 2005 } 2006 2007 args, err := ec.field_WrappedSlice_get_args(context.TODO(), rawArgs) 2008 if err != nil { 2009 return 0, false 2010 } 2011 2012 return e.complexity.WrappedSlice.Get(childComplexity, args["idx"].(int)), true 2013 2014 case "WrappedStruct.desc": 2015 if e.complexity.WrappedStruct.Desc == nil { 2016 break 2017 } 2018 2019 return e.complexity.WrappedStruct.Desc(childComplexity), true 2020 2021 case "WrappedStruct.name": 2022 if e.complexity.WrappedStruct.Name == nil { 2023 break 2024 } 2025 2026 return e.complexity.WrappedStruct.Name(childComplexity), true 2027 2028 case "XXIt.id": 2029 if e.complexity.XXIt.ID == nil { 2030 break 2031 } 2032 2033 return e.complexity.XXIt.ID(childComplexity), true 2034 2035 case "XxIt.id": 2036 if e.complexity.XxIt.ID == nil { 2037 break 2038 } 2039 2040 return e.complexity.XxIt.ID(childComplexity), true 2041 2042 case "asdfIt.id": 2043 if e.complexity.AsdfIt.ID == nil { 2044 break 2045 } 2046 2047 return e.complexity.AsdfIt.ID(childComplexity), true 2048 2049 case "iIt.id": 2050 if e.complexity.IIt.ID == nil { 2051 break 2052 } 2053 2054 return e.complexity.IIt.ID(childComplexity), true 2055 2056 } 2057 return 0, false 2058 } 2059 2060 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { 2061 rc := graphql.GetOperationContext(ctx) 2062 ec := executionContext{rc, e} 2063 inputUnmarshalMap := graphql.BuildUnmarshalerMap( 2064 ec.unmarshalInputDefaultInput, 2065 ec.unmarshalInputInnerDirectives, 2066 ec.unmarshalInputInnerInput, 2067 ec.unmarshalInputInputDirectives, 2068 ec.unmarshalInputInputWithEnumValue, 2069 ec.unmarshalInputNestedInput, 2070 ec.unmarshalInputNestedMapInput, 2071 ec.unmarshalInputOuterInput, 2072 ec.unmarshalInputRecursiveInputSlice, 2073 ec.unmarshalInputSpecialInput, 2074 ec.unmarshalInputUpdatePtrToPtrInner, 2075 ec.unmarshalInputUpdatePtrToPtrOuter, 2076 ec.unmarshalInputValidInput, 2077 ) 2078 first := true 2079 2080 switch rc.Operation.Operation { 2081 case ast.Query: 2082 return func(ctx context.Context) *graphql.Response { 2083 if !first { 2084 return nil 2085 } 2086 first = false 2087 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 2088 data := ec._Query(ctx, rc.Operation.SelectionSet) 2089 var buf bytes.Buffer 2090 data.MarshalGQL(&buf) 2091 2092 return &graphql.Response{ 2093 Data: buf.Bytes(), 2094 } 2095 } 2096 case ast.Mutation: 2097 return func(ctx context.Context) *graphql.Response { 2098 if !first { 2099 return nil 2100 } 2101 first = false 2102 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 2103 data := ec._Mutation(ctx, rc.Operation.SelectionSet) 2104 var buf bytes.Buffer 2105 data.MarshalGQL(&buf) 2106 2107 return &graphql.Response{ 2108 Data: buf.Bytes(), 2109 } 2110 } 2111 case ast.Subscription: 2112 next := ec._Subscription(ctx, rc.Operation.SelectionSet) 2113 2114 var buf bytes.Buffer 2115 return func(ctx context.Context) *graphql.Response { 2116 buf.Reset() 2117 data := next(ctx) 2118 2119 if data == nil { 2120 return nil 2121 } 2122 data.MarshalGQL(&buf) 2123 2124 return &graphql.Response{ 2125 Data: buf.Bytes(), 2126 } 2127 } 2128 2129 default: 2130 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) 2131 } 2132 } 2133 2134 type executionContext struct { 2135 *graphql.OperationContext 2136 *executableSchema 2137 } 2138 2139 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { 2140 if ec.DisableIntrospection { 2141 return nil, errors.New("introspection disabled") 2142 } 2143 return introspection.WrapSchema(parsedSchema), nil 2144 } 2145 2146 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { 2147 if ec.DisableIntrospection { 2148 return nil, errors.New("introspection disabled") 2149 } 2150 return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil 2151 } 2152 2153 //go:embed "builtinscalar.graphql" "complexity.graphql" "defaults.graphql" "directive.graphql" "embedded.graphql" "enum.graphql" "interfaces.graphql" "issue896.graphql" "loops.graphql" "maps.graphql" "mutation_with_custom_scalar.graphql" "nulls.graphql" "panics.graphql" "primitive_objects.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" 2154 var sourcesFS embed.FS 2155 2156 func sourceData(filename string) string { 2157 data, err := sourcesFS.ReadFile(filename) 2158 if err != nil { 2159 panic(fmt.Sprintf("codegen problem: %s not available", filename)) 2160 } 2161 return string(data) 2162 } 2163 2164 var sources = []*ast.Source{ 2165 {Name: "builtinscalar.graphql", Input: sourceData("builtinscalar.graphql"), BuiltIn: false}, 2166 {Name: "complexity.graphql", Input: sourceData("complexity.graphql"), BuiltIn: false}, 2167 {Name: "defaults.graphql", Input: sourceData("defaults.graphql"), BuiltIn: false}, 2168 {Name: "directive.graphql", Input: sourceData("directive.graphql"), BuiltIn: false}, 2169 {Name: "embedded.graphql", Input: sourceData("embedded.graphql"), BuiltIn: false}, 2170 {Name: "enum.graphql", Input: sourceData("enum.graphql"), BuiltIn: false}, 2171 {Name: "interfaces.graphql", Input: sourceData("interfaces.graphql"), BuiltIn: false}, 2172 {Name: "issue896.graphql", Input: sourceData("issue896.graphql"), BuiltIn: false}, 2173 {Name: "loops.graphql", Input: sourceData("loops.graphql"), BuiltIn: false}, 2174 {Name: "maps.graphql", Input: sourceData("maps.graphql"), BuiltIn: false}, 2175 {Name: "mutation_with_custom_scalar.graphql", Input: sourceData("mutation_with_custom_scalar.graphql"), BuiltIn: false}, 2176 {Name: "nulls.graphql", Input: sourceData("nulls.graphql"), BuiltIn: false}, 2177 {Name: "panics.graphql", Input: sourceData("panics.graphql"), BuiltIn: false}, 2178 {Name: "primitive_objects.graphql", Input: sourceData("primitive_objects.graphql"), BuiltIn: false}, 2179 {Name: "ptr_to_ptr_input.graphql", Input: sourceData("ptr_to_ptr_input.graphql"), BuiltIn: false}, 2180 {Name: "ptr_to_slice.graphql", Input: sourceData("ptr_to_slice.graphql"), BuiltIn: false}, 2181 {Name: "scalar_context.graphql", Input: sourceData("scalar_context.graphql"), BuiltIn: false}, 2182 {Name: "scalar_default.graphql", Input: sourceData("scalar_default.graphql"), BuiltIn: false}, 2183 {Name: "schema.graphql", Input: sourceData("schema.graphql"), BuiltIn: false}, 2184 {Name: "slices.graphql", Input: sourceData("slices.graphql"), BuiltIn: false}, 2185 {Name: "typefallback.graphql", Input: sourceData("typefallback.graphql"), BuiltIn: false}, 2186 {Name: "useptr.graphql", Input: sourceData("useptr.graphql"), BuiltIn: false}, 2187 {Name: "v-ok.graphql", Input: sourceData("v-ok.graphql"), BuiltIn: false}, 2188 {Name: "validtypes.graphql", Input: sourceData("validtypes.graphql"), BuiltIn: false}, 2189 {Name: "variadic.graphql", Input: sourceData("variadic.graphql"), BuiltIn: false}, 2190 {Name: "weird_type_cases.graphql", Input: sourceData("weird_type_cases.graphql"), BuiltIn: false}, 2191 {Name: "wrapped_type.graphql", Input: sourceData("wrapped_type.graphql"), BuiltIn: false}, 2192 } 2193 var parsedSchema = gqlparser.MustLoadSchema(sources...) 2194 2195 // endregion ************************** generated!.gotpl ************************** 2196 2197 // region ***************************** args.gotpl ***************************** 2198 2199 func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2200 var err error 2201 args := map[string]interface{}{} 2202 var arg0 int 2203 if tmp, ok := rawArgs["min"]; ok { 2204 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min")) 2205 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 2206 if err != nil { 2207 return nil, err 2208 } 2209 } 2210 args["min"] = arg0 2211 var arg1 *int 2212 if tmp, ok := rawArgs["max"]; ok { 2213 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max")) 2214 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2215 if err != nil { 2216 return nil, err 2217 } 2218 } 2219 args["max"] = arg1 2220 var arg2 *string 2221 if tmp, ok := rawArgs["message"]; ok { 2222 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) 2223 arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2224 if err != nil { 2225 return nil, err 2226 } 2227 } 2228 args["message"] = arg2 2229 return args, nil 2230 } 2231 2232 func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2233 var err error 2234 args := map[string]interface{}{} 2235 var arg0 string 2236 if tmp, ok := rawArgs["id"]; ok { 2237 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2238 arg0, err = ec.unmarshalNUUID2string(ctx, tmp) 2239 if err != nil { 2240 return nil, err 2241 } 2242 } 2243 args["id"] = arg0 2244 return args, nil 2245 } 2246 2247 func (ec *executionContext) dir_order1_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2248 var err error 2249 args := map[string]interface{}{} 2250 var arg0 string 2251 if tmp, ok := rawArgs["location"]; ok { 2252 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location")) 2253 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2254 if err != nil { 2255 return nil, err 2256 } 2257 } 2258 args["location"] = arg0 2259 return args, nil 2260 } 2261 2262 func (ec *executionContext) dir_order2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2263 var err error 2264 args := map[string]interface{}{} 2265 var arg0 string 2266 if tmp, ok := rawArgs["location"]; ok { 2267 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location")) 2268 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2269 if err != nil { 2270 return nil, err 2271 } 2272 } 2273 args["location"] = arg0 2274 return args, nil 2275 } 2276 2277 func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2278 var err error 2279 args := map[string]interface{}{} 2280 var arg0 *int 2281 if tmp, ok := rawArgs["min"]; ok { 2282 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min")) 2283 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2284 if err != nil { 2285 return nil, err 2286 } 2287 } 2288 args["min"] = arg0 2289 var arg1 *int 2290 if tmp, ok := rawArgs["max"]; ok { 2291 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max")) 2292 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2293 if err != nil { 2294 return nil, err 2295 } 2296 } 2297 args["max"] = arg1 2298 return args, nil 2299 } 2300 2301 func (ec *executionContext) field_Mutation_defaultInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2302 var err error 2303 args := map[string]interface{}{} 2304 var arg0 DefaultInput 2305 if tmp, ok := rawArgs["input"]; ok { 2306 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2307 arg0, err = ec.unmarshalNDefaultInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultInput(ctx, tmp) 2308 if err != nil { 2309 return nil, err 2310 } 2311 } 2312 args["input"] = arg0 2313 return args, nil 2314 } 2315 2316 func (ec *executionContext) field_Mutation_updatePtrToPtr_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2317 var err error 2318 args := map[string]interface{}{} 2319 var arg0 UpdatePtrToPtrOuter 2320 if tmp, ok := rawArgs["input"]; ok { 2321 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2322 arg0, err = ec.unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrOuter(ctx, tmp) 2323 if err != nil { 2324 return nil, err 2325 } 2326 } 2327 args["input"] = arg0 2328 return args, nil 2329 } 2330 2331 func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2332 var err error 2333 args := map[string]interface{}{} 2334 var arg0 SpecialInput 2335 if tmp, ok := rawArgs["input"]; ok { 2336 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2337 arg0, err = ec.unmarshalNSpecialInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSpecialInput(ctx, tmp) 2338 if err != nil { 2339 return nil, err 2340 } 2341 } 2342 args["input"] = arg0 2343 return args, nil 2344 } 2345 2346 func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2347 var err error 2348 args := map[string]interface{}{} 2349 var arg0 []MarshalPanic 2350 if tmp, ok := rawArgs["u"]; ok { 2351 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("u")) 2352 arg0, err = ec.unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx, tmp) 2353 if err != nil { 2354 return nil, err 2355 } 2356 } 2357 args["u"] = arg0 2358 return args, nil 2359 } 2360 2361 func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2362 var err error 2363 args := map[string]interface{}{} 2364 var arg0 []MarshalPanic 2365 if tmp, ok := rawArgs["u"]; ok { 2366 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("u")) 2367 arg0, err = ec.unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx, tmp) 2368 if err != nil { 2369 return nil, err 2370 } 2371 } 2372 args["u"] = arg0 2373 return args, nil 2374 } 2375 2376 func (ec *executionContext) field_Pet_friends_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2377 var err error 2378 args := map[string]interface{}{} 2379 var arg0 *int 2380 if tmp, ok := rawArgs["limit"]; ok { 2381 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) 2382 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2383 if err != nil { 2384 return nil, err 2385 } 2386 } 2387 args["limit"] = arg0 2388 return args, nil 2389 } 2390 2391 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2392 var err error 2393 args := map[string]interface{}{} 2394 var arg0 string 2395 if tmp, ok := rawArgs["name"]; ok { 2396 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 2397 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2398 if err != nil { 2399 return nil, err 2400 } 2401 } 2402 args["name"] = arg0 2403 return args, nil 2404 } 2405 2406 func (ec *executionContext) field_Query_defaultParameters_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2407 var err error 2408 args := map[string]interface{}{} 2409 var arg0 *bool 2410 if tmp, ok := rawArgs["falsyBoolean"]; ok { 2411 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("falsyBoolean")) 2412 arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) 2413 if err != nil { 2414 return nil, err 2415 } 2416 } 2417 args["falsyBoolean"] = arg0 2418 var arg1 *bool 2419 if tmp, ok := rawArgs["truthyBoolean"]; ok { 2420 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("truthyBoolean")) 2421 arg1, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) 2422 if err != nil { 2423 return nil, err 2424 } 2425 } 2426 args["truthyBoolean"] = arg1 2427 return args, nil 2428 } 2429 2430 func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2431 var err error 2432 args := map[string]interface{}{} 2433 var arg0 string 2434 if tmp, ok := rawArgs["arg"]; ok { 2435 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2436 arg0, err = ec.unmarshalNDefaultScalarImplementation2string(ctx, tmp) 2437 if err != nil { 2438 return nil, err 2439 } 2440 } 2441 args["arg"] = arg0 2442 return args, nil 2443 } 2444 2445 func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2446 var err error 2447 args := map[string]interface{}{} 2448 var arg0 string 2449 if tmp, ok := rawArgs["arg"]; ok { 2450 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2451 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, tmp) } 2452 directive1 := func(ctx context.Context) (interface{}, error) { 2453 min, err := ec.unmarshalNInt2int(ctx, 1) 2454 if err != nil { 2455 return nil, err 2456 } 2457 max, err := ec.unmarshalOInt2ᚖint(ctx, 255) 2458 if err != nil { 2459 return nil, err 2460 } 2461 message, err := ec.unmarshalOString2ᚖstring(ctx, "invalid length") 2462 if err != nil { 2463 return nil, err 2464 } 2465 if ec.directives.Length == nil { 2466 return nil, errors.New("directive length is not implemented") 2467 } 2468 return ec.directives.Length(ctx, rawArgs, directive0, min, max, message) 2469 } 2470 2471 tmp, err = directive1(ctx) 2472 if err != nil { 2473 return nil, graphql.ErrorOnPath(ctx, err) 2474 } 2475 if data, ok := tmp.(string); ok { 2476 arg0 = data 2477 } else { 2478 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp)) 2479 } 2480 } 2481 args["arg"] = arg0 2482 return args, nil 2483 } 2484 2485 func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2486 var err error 2487 args := map[string]interface{}{} 2488 var arg0 string 2489 if tmp, ok := rawArgs["ret"]; ok { 2490 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ret")) 2491 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2492 if err != nil { 2493 return nil, err 2494 } 2495 } 2496 args["ret"] = arg0 2497 return args, nil 2498 } 2499 2500 func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2501 var err error 2502 args := map[string]interface{}{} 2503 var arg0 *InputDirectives 2504 if tmp, ok := rawArgs["arg"]; ok { 2505 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2506 arg0, err = ec.unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx, tmp) 2507 if err != nil { 2508 return nil, err 2509 } 2510 } 2511 args["arg"] = arg0 2512 return args, nil 2513 } 2514 2515 func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2516 var err error 2517 args := map[string]interface{}{} 2518 var arg0 InnerInput 2519 if tmp, ok := rawArgs["arg"]; ok { 2520 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2521 directive0 := func(ctx context.Context) (interface{}, error) { 2522 return ec.unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx, tmp) 2523 } 2524 directive1 := func(ctx context.Context) (interface{}, error) { 2525 if ec.directives.Custom == nil { 2526 return nil, errors.New("directive custom is not implemented") 2527 } 2528 return ec.directives.Custom(ctx, rawArgs, directive0) 2529 } 2530 2531 tmp, err = directive1(ctx) 2532 if err != nil { 2533 return nil, graphql.ErrorOnPath(ctx, err) 2534 } 2535 if data, ok := tmp.(InnerInput); ok { 2536 arg0 = data 2537 } else { 2538 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be github.com/99designs/gqlgen/codegen/testserver/singlefile.InnerInput`, tmp)) 2539 } 2540 } 2541 args["arg"] = arg0 2542 return args, nil 2543 } 2544 2545 func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2546 var err error 2547 args := map[string]interface{}{} 2548 var arg0 InputDirectives 2549 if tmp, ok := rawArgs["arg"]; ok { 2550 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2551 arg0, err = ec.unmarshalNInputDirectives2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx, tmp) 2552 if err != nil { 2553 return nil, err 2554 } 2555 } 2556 args["arg"] = arg0 2557 return args, nil 2558 } 2559 2560 func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2561 var err error 2562 args := map[string]interface{}{} 2563 var arg0 *int 2564 if tmp, ok := rawArgs["arg"]; ok { 2565 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2566 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } 2567 directive1 := func(ctx context.Context) (interface{}, error) { 2568 min, err := ec.unmarshalOInt2ᚖint(ctx, 0) 2569 if err != nil { 2570 return nil, err 2571 } 2572 if ec.directives.Range == nil { 2573 return nil, errors.New("directive range is not implemented") 2574 } 2575 return ec.directives.Range(ctx, rawArgs, directive0, min, nil) 2576 } 2577 2578 tmp, err = directive1(ctx) 2579 if err != nil { 2580 return nil, graphql.ErrorOnPath(ctx, err) 2581 } 2582 if data, ok := tmp.(*int); ok { 2583 arg0 = data 2584 } else if tmp == nil { 2585 arg0 = nil 2586 } else { 2587 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *int`, tmp)) 2588 } 2589 } 2590 args["arg"] = arg0 2591 var arg1 *int 2592 if tmp, ok := rawArgs["arg2"]; ok { 2593 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg2")) 2594 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } 2595 directive1 := func(ctx context.Context) (interface{}, error) { 2596 min, err := ec.unmarshalOInt2ᚖint(ctx, 0) 2597 if err != nil { 2598 return nil, err 2599 } 2600 if ec.directives.Range == nil { 2601 return nil, errors.New("directive range is not implemented") 2602 } 2603 return ec.directives.Range(ctx, rawArgs, directive0, min, nil) 2604 } 2605 2606 tmp, err = directive1(ctx) 2607 if err != nil { 2608 return nil, graphql.ErrorOnPath(ctx, err) 2609 } 2610 if data, ok := tmp.(*int); ok { 2611 arg1 = data 2612 } else if tmp == nil { 2613 arg1 = nil 2614 } else { 2615 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *int`, tmp)) 2616 } 2617 } 2618 args["arg2"] = arg1 2619 var arg2 *string 2620 if tmp, ok := rawArgs["arg3"]; ok { 2621 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg3")) 2622 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, tmp) } 2623 directive1 := func(ctx context.Context) (interface{}, error) { 2624 if ec.directives.ToNull == nil { 2625 return nil, errors.New("directive toNull is not implemented") 2626 } 2627 return ec.directives.ToNull(ctx, rawArgs, directive0) 2628 } 2629 2630 tmp, err = directive1(ctx) 2631 if err != nil { 2632 return nil, graphql.ErrorOnPath(ctx, err) 2633 } 2634 if data, ok := tmp.(*string); ok { 2635 arg2 = data 2636 } else if tmp == nil { 2637 arg2 = nil 2638 } else { 2639 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp)) 2640 } 2641 } 2642 args["arg3"] = arg2 2643 return args, nil 2644 } 2645 2646 func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2647 var err error 2648 args := map[string]interface{}{} 2649 var arg0 *InputWithEnumValue 2650 if tmp, ok := rawArgs["input"]; ok { 2651 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2652 arg0, err = ec.unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputWithEnumValue(ctx, tmp) 2653 if err != nil { 2654 return nil, err 2655 } 2656 } 2657 args["input"] = arg0 2658 return args, nil 2659 } 2660 2661 func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2662 var err error 2663 args := map[string]interface{}{} 2664 var arg0 FallbackToStringEncoding 2665 if tmp, ok := rawArgs["arg"]; ok { 2666 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2667 arg0, err = ec.unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx, tmp) 2668 if err != nil { 2669 return nil, err 2670 } 2671 } 2672 args["arg"] = arg0 2673 return args, nil 2674 } 2675 2676 func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2677 var err error 2678 args := map[string]interface{}{} 2679 var arg0 []string 2680 if tmp, ok := rawArgs["arg"]; ok { 2681 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2682 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) 2683 if err != nil { 2684 return nil, err 2685 } 2686 } 2687 args["arg"] = arg0 2688 return args, nil 2689 } 2690 2691 func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2692 var err error 2693 args := map[string]interface{}{} 2694 var arg0 []string 2695 if tmp, ok := rawArgs["arg"]; ok { 2696 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2697 arg0, err = ec.unmarshalNString2ᚕstringᚄ(ctx, tmp) 2698 if err != nil { 2699 return nil, err 2700 } 2701 } 2702 args["arg"] = arg0 2703 return args, nil 2704 } 2705 2706 func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2707 var err error 2708 args := map[string]interface{}{} 2709 var arg0 map[string]interface{} 2710 if tmp, ok := rawArgs["input"]; ok { 2711 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2712 arg0, err = ec.unmarshalOChanges2map(ctx, tmp) 2713 if err != nil { 2714 return nil, err 2715 } 2716 } 2717 args["input"] = arg0 2718 return args, nil 2719 } 2720 2721 func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2722 var err error 2723 args := map[string]interface{}{} 2724 var arg0 *NestedMapInput 2725 if tmp, ok := rawArgs["in"]; ok { 2726 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("in")) 2727 arg0, err = ec.unmarshalONestedMapInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedMapInput(ctx, tmp) 2728 if err != nil { 2729 return nil, err 2730 } 2731 } 2732 args["in"] = arg0 2733 return args, nil 2734 } 2735 2736 func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2737 var err error 2738 args := map[string]interface{}{} 2739 var arg0 map[string]interface{} 2740 if tmp, ok := rawArgs["in"]; ok { 2741 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("in")) 2742 arg0, err = ec.unmarshalOMapStringInterfaceInput2map(ctx, tmp) 2743 if err != nil { 2744 return nil, err 2745 } 2746 } 2747 args["in"] = arg0 2748 return args, nil 2749 } 2750 2751 func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2752 var err error 2753 args := map[string]interface{}{} 2754 var arg0 [][]*OuterInput 2755 if tmp, ok := rawArgs["input"]; ok { 2756 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2757 arg0, err = ec.unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx, tmp) 2758 if err != nil { 2759 return nil, err 2760 } 2761 } 2762 args["input"] = arg0 2763 return args, nil 2764 } 2765 2766 func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2767 var err error 2768 args := map[string]interface{}{} 2769 var arg0 *int 2770 if tmp, ok := rawArgs["arg"]; ok { 2771 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2772 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2773 if err != nil { 2774 return nil, err 2775 } 2776 } 2777 args["arg"] = arg0 2778 return args, nil 2779 } 2780 2781 func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2782 var err error 2783 args := map[string]interface{}{} 2784 var arg0 *RecursiveInputSlice 2785 if tmp, ok := rawArgs["input"]; ok { 2786 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 2787 arg0, err = ec.unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx, tmp) 2788 if err != nil { 2789 return nil, err 2790 } 2791 } 2792 args["input"] = arg0 2793 return args, nil 2794 } 2795 2796 func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2797 var err error 2798 args := map[string]interface{}{} 2799 var arg0 int 2800 if tmp, ok := rawArgs["id"]; ok { 2801 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2802 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 2803 if err != nil { 2804 return nil, err 2805 } 2806 } 2807 args["id"] = arg0 2808 return args, nil 2809 } 2810 2811 func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2812 var err error 2813 args := map[string]interface{}{} 2814 var arg0 string 2815 if tmp, ok := rawArgs["arg"]; ok { 2816 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2817 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, tmp) } 2818 directive1 := func(ctx context.Context) (interface{}, error) { 2819 min, err := ec.unmarshalNInt2int(ctx, 1) 2820 if err != nil { 2821 return nil, err 2822 } 2823 max, err := ec.unmarshalOInt2ᚖint(ctx, 255) 2824 if err != nil { 2825 return nil, err 2826 } 2827 message, err := ec.unmarshalOString2ᚖstring(ctx, "invalid length") 2828 if err != nil { 2829 return nil, err 2830 } 2831 if ec.directives.Length == nil { 2832 return nil, errors.New("directive length is not implemented") 2833 } 2834 return ec.directives.Length(ctx, rawArgs, directive0, min, max, message) 2835 } 2836 2837 tmp, err = directive1(ctx) 2838 if err != nil { 2839 return nil, graphql.ErrorOnPath(ctx, err) 2840 } 2841 if data, ok := tmp.(string); ok { 2842 arg0 = data 2843 } else { 2844 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp)) 2845 } 2846 } 2847 args["arg"] = arg0 2848 return args, nil 2849 } 2850 2851 func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2852 var err error 2853 args := map[string]interface{}{} 2854 var arg0 *int 2855 if tmp, ok := rawArgs["arg"]; ok { 2856 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) 2857 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } 2858 directive1 := func(ctx context.Context) (interface{}, error) { 2859 min, err := ec.unmarshalOInt2ᚖint(ctx, 0) 2860 if err != nil { 2861 return nil, err 2862 } 2863 if ec.directives.Range == nil { 2864 return nil, errors.New("directive range is not implemented") 2865 } 2866 return ec.directives.Range(ctx, rawArgs, directive0, min, nil) 2867 } 2868 2869 tmp, err = directive1(ctx) 2870 if err != nil { 2871 return nil, graphql.ErrorOnPath(ctx, err) 2872 } 2873 if data, ok := tmp.(*int); ok { 2874 arg0 = data 2875 } else if tmp == nil { 2876 arg0 = nil 2877 } else { 2878 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *int`, tmp)) 2879 } 2880 } 2881 args["arg"] = arg0 2882 var arg1 *int 2883 if tmp, ok := rawArgs["arg2"]; ok { 2884 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg2")) 2885 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } 2886 directive1 := func(ctx context.Context) (interface{}, error) { 2887 min, err := ec.unmarshalOInt2ᚖint(ctx, 0) 2888 if err != nil { 2889 return nil, err 2890 } 2891 if ec.directives.Range == nil { 2892 return nil, errors.New("directive range is not implemented") 2893 } 2894 return ec.directives.Range(ctx, rawArgs, directive0, min, nil) 2895 } 2896 2897 tmp, err = directive1(ctx) 2898 if err != nil { 2899 return nil, graphql.ErrorOnPath(ctx, err) 2900 } 2901 if data, ok := tmp.(*int); ok { 2902 arg1 = data 2903 } else if tmp == nil { 2904 arg1 = nil 2905 } else { 2906 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *int`, tmp)) 2907 } 2908 } 2909 args["arg2"] = arg1 2910 var arg2 *string 2911 if tmp, ok := rawArgs["arg3"]; ok { 2912 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("arg3")) 2913 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, tmp) } 2914 directive1 := func(ctx context.Context) (interface{}, error) { 2915 if ec.directives.ToNull == nil { 2916 return nil, errors.New("directive toNull is not implemented") 2917 } 2918 return ec.directives.ToNull(ctx, rawArgs, directive0) 2919 } 2920 2921 tmp, err = directive1(ctx) 2922 if err != nil { 2923 return nil, graphql.ErrorOnPath(ctx, err) 2924 } 2925 if data, ok := tmp.(*string); ok { 2926 arg2 = data 2927 } else if tmp == nil { 2928 arg2 = nil 2929 } else { 2930 return nil, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp)) 2931 } 2932 } 2933 args["arg3"] = arg2 2934 return args, nil 2935 } 2936 2937 func (ec *executionContext) field_User_pets_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2938 var err error 2939 args := map[string]interface{}{} 2940 var arg0 *int 2941 if tmp, ok := rawArgs["limit"]; ok { 2942 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) 2943 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 2944 if err != nil { 2945 return nil, err 2946 } 2947 } 2948 args["limit"] = arg0 2949 return args, nil 2950 } 2951 2952 func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2953 var err error 2954 args := map[string]interface{}{} 2955 var arg0 string 2956 if tmp, ok := rawArgs["break"]; ok { 2957 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("break")) 2958 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2959 if err != nil { 2960 return nil, err 2961 } 2962 } 2963 args["break"] = arg0 2964 var arg1 string 2965 if tmp, ok := rawArgs["default"]; ok { 2966 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) 2967 arg1, err = ec.unmarshalNString2string(ctx, tmp) 2968 if err != nil { 2969 return nil, err 2970 } 2971 } 2972 args["default"] = arg1 2973 var arg2 string 2974 if tmp, ok := rawArgs["func"]; ok { 2975 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("func")) 2976 arg2, err = ec.unmarshalNString2string(ctx, tmp) 2977 if err != nil { 2978 return nil, err 2979 } 2980 } 2981 args["func"] = arg2 2982 var arg3 string 2983 if tmp, ok := rawArgs["interface"]; ok { 2984 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interface")) 2985 arg3, err = ec.unmarshalNString2string(ctx, tmp) 2986 if err != nil { 2987 return nil, err 2988 } 2989 } 2990 args["interface"] = arg3 2991 var arg4 string 2992 if tmp, ok := rawArgs["select"]; ok { 2993 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("select")) 2994 arg4, err = ec.unmarshalNString2string(ctx, tmp) 2995 if err != nil { 2996 return nil, err 2997 } 2998 } 2999 args["select"] = arg4 3000 var arg5 string 3001 if tmp, ok := rawArgs["case"]; ok { 3002 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("case")) 3003 arg5, err = ec.unmarshalNString2string(ctx, tmp) 3004 if err != nil { 3005 return nil, err 3006 } 3007 } 3008 args["case"] = arg5 3009 var arg6 string 3010 if tmp, ok := rawArgs["defer"]; ok { 3011 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defer")) 3012 arg6, err = ec.unmarshalNString2string(ctx, tmp) 3013 if err != nil { 3014 return nil, err 3015 } 3016 } 3017 args["defer"] = arg6 3018 var arg7 string 3019 if tmp, ok := rawArgs["go"]; ok { 3020 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("go")) 3021 arg7, err = ec.unmarshalNString2string(ctx, tmp) 3022 if err != nil { 3023 return nil, err 3024 } 3025 } 3026 args["go"] = arg7 3027 var arg8 string 3028 if tmp, ok := rawArgs["map"]; ok { 3029 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) 3030 arg8, err = ec.unmarshalNString2string(ctx, tmp) 3031 if err != nil { 3032 return nil, err 3033 } 3034 } 3035 args["map"] = arg8 3036 var arg9 string 3037 if tmp, ok := rawArgs["struct"]; ok { 3038 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("struct")) 3039 arg9, err = ec.unmarshalNString2string(ctx, tmp) 3040 if err != nil { 3041 return nil, err 3042 } 3043 } 3044 args["struct"] = arg9 3045 var arg10 string 3046 if tmp, ok := rawArgs["chan"]; ok { 3047 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chan")) 3048 arg10, err = ec.unmarshalNString2string(ctx, tmp) 3049 if err != nil { 3050 return nil, err 3051 } 3052 } 3053 args["chan"] = arg10 3054 var arg11 string 3055 if tmp, ok := rawArgs["else"]; ok { 3056 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("else")) 3057 arg11, err = ec.unmarshalNString2string(ctx, tmp) 3058 if err != nil { 3059 return nil, err 3060 } 3061 } 3062 args["else"] = arg11 3063 var arg12 string 3064 if tmp, ok := rawArgs["goto"]; ok { 3065 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("goto")) 3066 arg12, err = ec.unmarshalNString2string(ctx, tmp) 3067 if err != nil { 3068 return nil, err 3069 } 3070 } 3071 args["goto"] = arg12 3072 var arg13 string 3073 if tmp, ok := rawArgs["package"]; ok { 3074 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("package")) 3075 arg13, err = ec.unmarshalNString2string(ctx, tmp) 3076 if err != nil { 3077 return nil, err 3078 } 3079 } 3080 args["package"] = arg13 3081 var arg14 string 3082 if tmp, ok := rawArgs["switch"]; ok { 3083 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("switch")) 3084 arg14, err = ec.unmarshalNString2string(ctx, tmp) 3085 if err != nil { 3086 return nil, err 3087 } 3088 } 3089 args["switch"] = arg14 3090 var arg15 string 3091 if tmp, ok := rawArgs["const"]; ok { 3092 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("const")) 3093 arg15, err = ec.unmarshalNString2string(ctx, tmp) 3094 if err != nil { 3095 return nil, err 3096 } 3097 } 3098 args["const"] = arg15 3099 var arg16 string 3100 if tmp, ok := rawArgs["fallthrough"]; ok { 3101 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fallthrough")) 3102 arg16, err = ec.unmarshalNString2string(ctx, tmp) 3103 if err != nil { 3104 return nil, err 3105 } 3106 } 3107 args["fallthrough"] = arg16 3108 var arg17 string 3109 if tmp, ok := rawArgs["if"]; ok { 3110 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("if")) 3111 arg17, err = ec.unmarshalNString2string(ctx, tmp) 3112 if err != nil { 3113 return nil, err 3114 } 3115 } 3116 args["if"] = arg17 3117 var arg18 string 3118 if tmp, ok := rawArgs["range"]; ok { 3119 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("range")) 3120 arg18, err = ec.unmarshalNString2string(ctx, tmp) 3121 if err != nil { 3122 return nil, err 3123 } 3124 } 3125 args["range"] = arg18 3126 var arg19 string 3127 if tmp, ok := rawArgs["type"]; ok { 3128 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) 3129 arg19, err = ec.unmarshalNString2string(ctx, tmp) 3130 if err != nil { 3131 return nil, err 3132 } 3133 } 3134 args["type"] = arg19 3135 var arg20 string 3136 if tmp, ok := rawArgs["continue"]; ok { 3137 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue")) 3138 arg20, err = ec.unmarshalNString2string(ctx, tmp) 3139 if err != nil { 3140 return nil, err 3141 } 3142 } 3143 args["continue"] = arg20 3144 var arg21 string 3145 if tmp, ok := rawArgs["for"]; ok { 3146 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("for")) 3147 arg21, err = ec.unmarshalNString2string(ctx, tmp) 3148 if err != nil { 3149 return nil, err 3150 } 3151 } 3152 args["for"] = arg21 3153 var arg22 string 3154 if tmp, ok := rawArgs["import"]; ok { 3155 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import")) 3156 arg22, err = ec.unmarshalNString2string(ctx, tmp) 3157 if err != nil { 3158 return nil, err 3159 } 3160 } 3161 args["import"] = arg22 3162 var arg23 string 3163 if tmp, ok := rawArgs["return"]; ok { 3164 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("return")) 3165 arg23, err = ec.unmarshalNString2string(ctx, tmp) 3166 if err != nil { 3167 return nil, err 3168 } 3169 } 3170 args["return"] = arg23 3171 var arg24 string 3172 if tmp, ok := rawArgs["var"]; ok { 3173 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("var")) 3174 arg24, err = ec.unmarshalNString2string(ctx, tmp) 3175 if err != nil { 3176 return nil, err 3177 } 3178 } 3179 args["var"] = arg24 3180 var arg25 string 3181 if tmp, ok := rawArgs["_"]; ok { 3182 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_")) 3183 arg25, err = ec.unmarshalNString2string(ctx, tmp) 3184 if err != nil { 3185 return nil, err 3186 } 3187 } 3188 args["_"] = arg25 3189 return args, nil 3190 } 3191 3192 func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3193 var err error 3194 args := map[string]interface{}{} 3195 var arg0 *ValidInput 3196 if tmp, ok := rawArgs["input"]; ok { 3197 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) 3198 arg0, err = ec.unmarshalOValidInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidInput(ctx, tmp) 3199 if err != nil { 3200 return nil, err 3201 } 3202 } 3203 args["input"] = arg0 3204 return args, nil 3205 } 3206 3207 func (ec *executionContext) field_VariadicModel_value_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3208 var err error 3209 args := map[string]interface{}{} 3210 var arg0 int 3211 if tmp, ok := rawArgs["rank"]; ok { 3212 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rank")) 3213 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 3214 if err != nil { 3215 return nil, err 3216 } 3217 } 3218 args["rank"] = arg0 3219 return args, nil 3220 } 3221 3222 func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3223 var err error 3224 args := map[string]interface{}{} 3225 var arg0 string 3226 if tmp, ok := rawArgs["key"]; ok { 3227 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 3228 arg0, err = ec.unmarshalNString2string(ctx, tmp) 3229 if err != nil { 3230 return nil, err 3231 } 3232 } 3233 args["key"] = arg0 3234 return args, nil 3235 } 3236 3237 func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3238 var err error 3239 args := map[string]interface{}{} 3240 var arg0 int 3241 if tmp, ok := rawArgs["idx"]; ok { 3242 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idx")) 3243 arg0, err = ec.unmarshalNInt2int(ctx, tmp) 3244 if err != nil { 3245 return nil, err 3246 } 3247 } 3248 args["idx"] = arg0 3249 return args, nil 3250 } 3251 3252 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3253 var err error 3254 args := map[string]interface{}{} 3255 var arg0 bool 3256 if tmp, ok := rawArgs["includeDeprecated"]; ok { 3257 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 3258 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 3259 if err != nil { 3260 return nil, err 3261 } 3262 } 3263 args["includeDeprecated"] = arg0 3264 return args, nil 3265 } 3266 3267 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 3268 var err error 3269 args := map[string]interface{}{} 3270 var arg0 bool 3271 if tmp, ok := rawArgs["includeDeprecated"]; ok { 3272 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 3273 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 3274 if err != nil { 3275 return nil, err 3276 } 3277 } 3278 args["includeDeprecated"] = arg0 3279 return args, nil 3280 } 3281 3282 // endregion ***************************** args.gotpl ***************************** 3283 3284 // region ************************** directives.gotpl ************************** 3285 3286 func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) interface{} { 3287 fc := graphql.GetFieldContext(ctx) 3288 for _, d := range fc.Field.Directives { 3289 switch d.Name { 3290 case "logged": 3291 rawArgs := d.ArgumentMap(ec.Variables) 3292 args, err := ec.dir_logged_args(ctx, rawArgs) 3293 if err != nil { 3294 ec.Error(ctx, err) 3295 return nil 3296 } 3297 n := next 3298 next = func(ctx context.Context) (interface{}, error) { 3299 if ec.directives.Logged == nil { 3300 return nil, errors.New("directive logged is not implemented") 3301 } 3302 return ec.directives.Logged(ctx, obj, n, args["id"].(string)) 3303 } 3304 } 3305 } 3306 res, err := ec.ResolverMiddleware(ctx, next) 3307 if err != nil { 3308 ec.Error(ctx, err) 3309 return nil 3310 } 3311 return res 3312 } 3313 3314 // endregion ************************** directives.gotpl ************************** 3315 3316 // region **************************** field.gotpl ***************************** 3317 3318 func (ec *executionContext) _A_id(ctx context.Context, field graphql.CollectedField, obj *A) (ret graphql.Marshaler) { 3319 fc, err := ec.fieldContext_A_id(ctx, field) 3320 if err != nil { 3321 return graphql.Null 3322 } 3323 ctx = graphql.WithFieldContext(ctx, fc) 3324 defer func() { 3325 if r := recover(); r != nil { 3326 ec.Error(ctx, ec.Recover(ctx, r)) 3327 ret = graphql.Null 3328 } 3329 }() 3330 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3331 ctx = rctx // use context from middleware stack in children 3332 return obj.ID, nil 3333 }) 3334 3335 if resTmp == nil { 3336 if !graphql.HasFieldError(ctx, fc) { 3337 ec.Errorf(ctx, "must not be null") 3338 } 3339 return graphql.Null 3340 } 3341 res := resTmp.(string) 3342 fc.Result = res 3343 return ec.marshalNID2string(ctx, field.Selections, res) 3344 } 3345 3346 func (ec *executionContext) fieldContext_A_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3347 fc = &graphql.FieldContext{ 3348 Object: "A", 3349 Field: field, 3350 IsMethod: false, 3351 IsResolver: false, 3352 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3353 return nil, errors.New("field of type ID does not have child fields") 3354 }, 3355 } 3356 return fc, nil 3357 } 3358 3359 func (ec *executionContext) _AIt_id(ctx context.Context, field graphql.CollectedField, obj *AIt) (ret graphql.Marshaler) { 3360 fc, err := ec.fieldContext_AIt_id(ctx, field) 3361 if err != nil { 3362 return graphql.Null 3363 } 3364 ctx = graphql.WithFieldContext(ctx, fc) 3365 defer func() { 3366 if r := recover(); r != nil { 3367 ec.Error(ctx, ec.Recover(ctx, r)) 3368 ret = graphql.Null 3369 } 3370 }() 3371 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3372 ctx = rctx // use context from middleware stack in children 3373 return obj.ID, nil 3374 }) 3375 3376 if resTmp == nil { 3377 if !graphql.HasFieldError(ctx, fc) { 3378 ec.Errorf(ctx, "must not be null") 3379 } 3380 return graphql.Null 3381 } 3382 res := resTmp.(string) 3383 fc.Result = res 3384 return ec.marshalNID2string(ctx, field.Selections, res) 3385 } 3386 3387 func (ec *executionContext) fieldContext_AIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3388 fc = &graphql.FieldContext{ 3389 Object: "AIt", 3390 Field: field, 3391 IsMethod: false, 3392 IsResolver: false, 3393 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3394 return nil, errors.New("field of type ID does not have child fields") 3395 }, 3396 } 3397 return fc, nil 3398 } 3399 3400 func (ec *executionContext) _AbIt_id(ctx context.Context, field graphql.CollectedField, obj *AbIt) (ret graphql.Marshaler) { 3401 fc, err := ec.fieldContext_AbIt_id(ctx, field) 3402 if err != nil { 3403 return graphql.Null 3404 } 3405 ctx = graphql.WithFieldContext(ctx, fc) 3406 defer func() { 3407 if r := recover(); r != nil { 3408 ec.Error(ctx, ec.Recover(ctx, r)) 3409 ret = graphql.Null 3410 } 3411 }() 3412 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3413 ctx = rctx // use context from middleware stack in children 3414 return obj.ID, nil 3415 }) 3416 3417 if resTmp == nil { 3418 if !graphql.HasFieldError(ctx, fc) { 3419 ec.Errorf(ctx, "must not be null") 3420 } 3421 return graphql.Null 3422 } 3423 res := resTmp.(string) 3424 fc.Result = res 3425 return ec.marshalNID2string(ctx, field.Selections, res) 3426 } 3427 3428 func (ec *executionContext) fieldContext_AbIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3429 fc = &graphql.FieldContext{ 3430 Object: "AbIt", 3431 Field: field, 3432 IsMethod: false, 3433 IsResolver: false, 3434 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3435 return nil, errors.New("field of type ID does not have child fields") 3436 }, 3437 } 3438 return fc, nil 3439 } 3440 3441 func (ec *executionContext) _Autobind_int(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3442 fc, err := ec.fieldContext_Autobind_int(ctx, field) 3443 if err != nil { 3444 return graphql.Null 3445 } 3446 ctx = graphql.WithFieldContext(ctx, fc) 3447 defer func() { 3448 if r := recover(); r != nil { 3449 ec.Error(ctx, ec.Recover(ctx, r)) 3450 ret = graphql.Null 3451 } 3452 }() 3453 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3454 ctx = rctx // use context from middleware stack in children 3455 return obj.Int, nil 3456 }) 3457 3458 if resTmp == nil { 3459 if !graphql.HasFieldError(ctx, fc) { 3460 ec.Errorf(ctx, "must not be null") 3461 } 3462 return graphql.Null 3463 } 3464 res := resTmp.(int) 3465 fc.Result = res 3466 return ec.marshalNInt2int(ctx, field.Selections, res) 3467 } 3468 3469 func (ec *executionContext) fieldContext_Autobind_int(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3470 fc = &graphql.FieldContext{ 3471 Object: "Autobind", 3472 Field: field, 3473 IsMethod: false, 3474 IsResolver: false, 3475 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3476 return nil, errors.New("field of type Int does not have child fields") 3477 }, 3478 } 3479 return fc, nil 3480 } 3481 3482 func (ec *executionContext) _Autobind_int32(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3483 fc, err := ec.fieldContext_Autobind_int32(ctx, field) 3484 if err != nil { 3485 return graphql.Null 3486 } 3487 ctx = graphql.WithFieldContext(ctx, fc) 3488 defer func() { 3489 if r := recover(); r != nil { 3490 ec.Error(ctx, ec.Recover(ctx, r)) 3491 ret = graphql.Null 3492 } 3493 }() 3494 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3495 ctx = rctx // use context from middleware stack in children 3496 return obj.Int32, nil 3497 }) 3498 3499 if resTmp == nil { 3500 if !graphql.HasFieldError(ctx, fc) { 3501 ec.Errorf(ctx, "must not be null") 3502 } 3503 return graphql.Null 3504 } 3505 res := resTmp.(int32) 3506 fc.Result = res 3507 return ec.marshalNInt2int32(ctx, field.Selections, res) 3508 } 3509 3510 func (ec *executionContext) fieldContext_Autobind_int32(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3511 fc = &graphql.FieldContext{ 3512 Object: "Autobind", 3513 Field: field, 3514 IsMethod: false, 3515 IsResolver: false, 3516 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3517 return nil, errors.New("field of type Int does not have child fields") 3518 }, 3519 } 3520 return fc, nil 3521 } 3522 3523 func (ec *executionContext) _Autobind_int64(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3524 fc, err := ec.fieldContext_Autobind_int64(ctx, field) 3525 if err != nil { 3526 return graphql.Null 3527 } 3528 ctx = graphql.WithFieldContext(ctx, fc) 3529 defer func() { 3530 if r := recover(); r != nil { 3531 ec.Error(ctx, ec.Recover(ctx, r)) 3532 ret = graphql.Null 3533 } 3534 }() 3535 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3536 ctx = rctx // use context from middleware stack in children 3537 return obj.Int64, nil 3538 }) 3539 3540 if resTmp == nil { 3541 if !graphql.HasFieldError(ctx, fc) { 3542 ec.Errorf(ctx, "must not be null") 3543 } 3544 return graphql.Null 3545 } 3546 res := resTmp.(int64) 3547 fc.Result = res 3548 return ec.marshalNInt2int64(ctx, field.Selections, res) 3549 } 3550 3551 func (ec *executionContext) fieldContext_Autobind_int64(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3552 fc = &graphql.FieldContext{ 3553 Object: "Autobind", 3554 Field: field, 3555 IsMethod: false, 3556 IsResolver: false, 3557 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3558 return nil, errors.New("field of type Int does not have child fields") 3559 }, 3560 } 3561 return fc, nil 3562 } 3563 3564 func (ec *executionContext) _Autobind_idStr(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3565 fc, err := ec.fieldContext_Autobind_idStr(ctx, field) 3566 if err != nil { 3567 return graphql.Null 3568 } 3569 ctx = graphql.WithFieldContext(ctx, fc) 3570 defer func() { 3571 if r := recover(); r != nil { 3572 ec.Error(ctx, ec.Recover(ctx, r)) 3573 ret = graphql.Null 3574 } 3575 }() 3576 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3577 ctx = rctx // use context from middleware stack in children 3578 return obj.IdStr, nil 3579 }) 3580 3581 if resTmp == nil { 3582 if !graphql.HasFieldError(ctx, fc) { 3583 ec.Errorf(ctx, "must not be null") 3584 } 3585 return graphql.Null 3586 } 3587 res := resTmp.(string) 3588 fc.Result = res 3589 return ec.marshalNID2string(ctx, field.Selections, res) 3590 } 3591 3592 func (ec *executionContext) fieldContext_Autobind_idStr(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3593 fc = &graphql.FieldContext{ 3594 Object: "Autobind", 3595 Field: field, 3596 IsMethod: false, 3597 IsResolver: false, 3598 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3599 return nil, errors.New("field of type ID does not have child fields") 3600 }, 3601 } 3602 return fc, nil 3603 } 3604 3605 func (ec *executionContext) _Autobind_idInt(ctx context.Context, field graphql.CollectedField, obj *Autobind) (ret graphql.Marshaler) { 3606 fc, err := ec.fieldContext_Autobind_idInt(ctx, field) 3607 if err != nil { 3608 return graphql.Null 3609 } 3610 ctx = graphql.WithFieldContext(ctx, fc) 3611 defer func() { 3612 if r := recover(); r != nil { 3613 ec.Error(ctx, ec.Recover(ctx, r)) 3614 ret = graphql.Null 3615 } 3616 }() 3617 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3618 ctx = rctx // use context from middleware stack in children 3619 return obj.IdInt, nil 3620 }) 3621 3622 if resTmp == nil { 3623 if !graphql.HasFieldError(ctx, fc) { 3624 ec.Errorf(ctx, "must not be null") 3625 } 3626 return graphql.Null 3627 } 3628 res := resTmp.(int) 3629 fc.Result = res 3630 return ec.marshalNID2int(ctx, field.Selections, res) 3631 } 3632 3633 func (ec *executionContext) fieldContext_Autobind_idInt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3634 fc = &graphql.FieldContext{ 3635 Object: "Autobind", 3636 Field: field, 3637 IsMethod: false, 3638 IsResolver: false, 3639 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3640 return nil, errors.New("field of type ID does not have child fields") 3641 }, 3642 } 3643 return fc, nil 3644 } 3645 3646 func (ec *executionContext) _B_id(ctx context.Context, field graphql.CollectedField, obj *B) (ret graphql.Marshaler) { 3647 fc, err := ec.fieldContext_B_id(ctx, field) 3648 if err != nil { 3649 return graphql.Null 3650 } 3651 ctx = graphql.WithFieldContext(ctx, fc) 3652 defer func() { 3653 if r := recover(); r != nil { 3654 ec.Error(ctx, ec.Recover(ctx, r)) 3655 ret = graphql.Null 3656 } 3657 }() 3658 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3659 ctx = rctx // use context from middleware stack in children 3660 return obj.ID, nil 3661 }) 3662 3663 if resTmp == nil { 3664 if !graphql.HasFieldError(ctx, fc) { 3665 ec.Errorf(ctx, "must not be null") 3666 } 3667 return graphql.Null 3668 } 3669 res := resTmp.(string) 3670 fc.Result = res 3671 return ec.marshalNID2string(ctx, field.Selections, res) 3672 } 3673 3674 func (ec *executionContext) fieldContext_B_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3675 fc = &graphql.FieldContext{ 3676 Object: "B", 3677 Field: field, 3678 IsMethod: false, 3679 IsResolver: false, 3680 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3681 return nil, errors.New("field of type ID does not have child fields") 3682 }, 3683 } 3684 return fc, nil 3685 } 3686 3687 func (ec *executionContext) _BackedByInterface_id(ctx context.Context, field graphql.CollectedField, obj BackedByInterface) (ret graphql.Marshaler) { 3688 fc, err := ec.fieldContext_BackedByInterface_id(ctx, field) 3689 if err != nil { 3690 return graphql.Null 3691 } 3692 ctx = graphql.WithFieldContext(ctx, fc) 3693 defer func() { 3694 if r := recover(); r != nil { 3695 ec.Error(ctx, ec.Recover(ctx, r)) 3696 ret = graphql.Null 3697 } 3698 }() 3699 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3700 ctx = rctx // use context from middleware stack in children 3701 return ec.resolvers.BackedByInterface().ID(rctx, obj) 3702 }) 3703 3704 if resTmp == nil { 3705 if !graphql.HasFieldError(ctx, fc) { 3706 ec.Errorf(ctx, "must not be null") 3707 } 3708 return graphql.Null 3709 } 3710 res := resTmp.(string) 3711 fc.Result = res 3712 return ec.marshalNString2string(ctx, field.Selections, res) 3713 } 3714 3715 func (ec *executionContext) fieldContext_BackedByInterface_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3716 fc = &graphql.FieldContext{ 3717 Object: "BackedByInterface", 3718 Field: field, 3719 IsMethod: true, 3720 IsResolver: true, 3721 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3722 return nil, errors.New("field of type String does not have child fields") 3723 }, 3724 } 3725 return fc, nil 3726 } 3727 3728 func (ec *executionContext) _BackedByInterface_thisShouldBind(ctx context.Context, field graphql.CollectedField, obj BackedByInterface) (ret graphql.Marshaler) { 3729 fc, err := ec.fieldContext_BackedByInterface_thisShouldBind(ctx, field) 3730 if err != nil { 3731 return graphql.Null 3732 } 3733 ctx = graphql.WithFieldContext(ctx, fc) 3734 defer func() { 3735 if r := recover(); r != nil { 3736 ec.Error(ctx, ec.Recover(ctx, r)) 3737 ret = graphql.Null 3738 } 3739 }() 3740 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3741 ctx = rctx // use context from middleware stack in children 3742 return obj.ThisShouldBind(), nil 3743 }) 3744 3745 if resTmp == nil { 3746 if !graphql.HasFieldError(ctx, fc) { 3747 ec.Errorf(ctx, "must not be null") 3748 } 3749 return graphql.Null 3750 } 3751 res := resTmp.(string) 3752 fc.Result = res 3753 return ec.marshalNString2string(ctx, field.Selections, res) 3754 } 3755 3756 func (ec *executionContext) fieldContext_BackedByInterface_thisShouldBind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3757 fc = &graphql.FieldContext{ 3758 Object: "BackedByInterface", 3759 Field: field, 3760 IsMethod: true, 3761 IsResolver: false, 3762 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3763 return nil, errors.New("field of type String does not have child fields") 3764 }, 3765 } 3766 return fc, nil 3767 } 3768 3769 func (ec *executionContext) _BackedByInterface_thisShouldBindWithError(ctx context.Context, field graphql.CollectedField, obj BackedByInterface) (ret graphql.Marshaler) { 3770 fc, err := ec.fieldContext_BackedByInterface_thisShouldBindWithError(ctx, field) 3771 if err != nil { 3772 return graphql.Null 3773 } 3774 ctx = graphql.WithFieldContext(ctx, fc) 3775 defer func() { 3776 if r := recover(); r != nil { 3777 ec.Error(ctx, ec.Recover(ctx, r)) 3778 ret = graphql.Null 3779 } 3780 }() 3781 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3782 ctx = rctx // use context from middleware stack in children 3783 return obj.ThisShouldBindWithError() 3784 }) 3785 3786 if resTmp == nil { 3787 if !graphql.HasFieldError(ctx, fc) { 3788 ec.Errorf(ctx, "must not be null") 3789 } 3790 return graphql.Null 3791 } 3792 res := resTmp.(string) 3793 fc.Result = res 3794 return ec.marshalNString2string(ctx, field.Selections, res) 3795 } 3796 3797 func (ec *executionContext) fieldContext_BackedByInterface_thisShouldBindWithError(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3798 fc = &graphql.FieldContext{ 3799 Object: "BackedByInterface", 3800 Field: field, 3801 IsMethod: true, 3802 IsResolver: false, 3803 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3804 return nil, errors.New("field of type String does not have child fields") 3805 }, 3806 } 3807 return fc, nil 3808 } 3809 3810 func (ec *executionContext) _Cat_species(ctx context.Context, field graphql.CollectedField, obj *Cat) (ret graphql.Marshaler) { 3811 fc, err := ec.fieldContext_Cat_species(ctx, field) 3812 if err != nil { 3813 return graphql.Null 3814 } 3815 ctx = graphql.WithFieldContext(ctx, fc) 3816 defer func() { 3817 if r := recover(); r != nil { 3818 ec.Error(ctx, ec.Recover(ctx, r)) 3819 ret = graphql.Null 3820 } 3821 }() 3822 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3823 ctx = rctx // use context from middleware stack in children 3824 return obj.Species, nil 3825 }) 3826 3827 if resTmp == nil { 3828 if !graphql.HasFieldError(ctx, fc) { 3829 ec.Errorf(ctx, "must not be null") 3830 } 3831 return graphql.Null 3832 } 3833 res := resTmp.(string) 3834 fc.Result = res 3835 return ec.marshalNString2string(ctx, field.Selections, res) 3836 } 3837 3838 func (ec *executionContext) fieldContext_Cat_species(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3839 fc = &graphql.FieldContext{ 3840 Object: "Cat", 3841 Field: field, 3842 IsMethod: false, 3843 IsResolver: false, 3844 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3845 return nil, errors.New("field of type String does not have child fields") 3846 }, 3847 } 3848 return fc, nil 3849 } 3850 3851 func (ec *executionContext) _Cat_catBreed(ctx context.Context, field graphql.CollectedField, obj *Cat) (ret graphql.Marshaler) { 3852 fc, err := ec.fieldContext_Cat_catBreed(ctx, field) 3853 if err != nil { 3854 return graphql.Null 3855 } 3856 ctx = graphql.WithFieldContext(ctx, fc) 3857 defer func() { 3858 if r := recover(); r != nil { 3859 ec.Error(ctx, ec.Recover(ctx, r)) 3860 ret = graphql.Null 3861 } 3862 }() 3863 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3864 ctx = rctx // use context from middleware stack in children 3865 return obj.CatBreed, nil 3866 }) 3867 3868 if resTmp == nil { 3869 if !graphql.HasFieldError(ctx, fc) { 3870 ec.Errorf(ctx, "must not be null") 3871 } 3872 return graphql.Null 3873 } 3874 res := resTmp.(string) 3875 fc.Result = res 3876 return ec.marshalNString2string(ctx, field.Selections, res) 3877 } 3878 3879 func (ec *executionContext) fieldContext_Cat_catBreed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3880 fc = &graphql.FieldContext{ 3881 Object: "Cat", 3882 Field: field, 3883 IsMethod: false, 3884 IsResolver: false, 3885 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3886 return nil, errors.New("field of type String does not have child fields") 3887 }, 3888 } 3889 return fc, nil 3890 } 3891 3892 func (ec *executionContext) _CheckIssue896_id(ctx context.Context, field graphql.CollectedField, obj *CheckIssue896) (ret graphql.Marshaler) { 3893 fc, err := ec.fieldContext_CheckIssue896_id(ctx, field) 3894 if err != nil { 3895 return graphql.Null 3896 } 3897 ctx = graphql.WithFieldContext(ctx, fc) 3898 defer func() { 3899 if r := recover(); r != nil { 3900 ec.Error(ctx, ec.Recover(ctx, r)) 3901 ret = graphql.Null 3902 } 3903 }() 3904 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3905 ctx = rctx // use context from middleware stack in children 3906 return obj.ID, nil 3907 }) 3908 3909 if resTmp == nil { 3910 return graphql.Null 3911 } 3912 res := resTmp.(*int) 3913 fc.Result = res 3914 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 3915 } 3916 3917 func (ec *executionContext) fieldContext_CheckIssue896_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3918 fc = &graphql.FieldContext{ 3919 Object: "CheckIssue896", 3920 Field: field, 3921 IsMethod: false, 3922 IsResolver: false, 3923 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3924 return nil, errors.New("field of type Int does not have child fields") 3925 }, 3926 } 3927 return fc, nil 3928 } 3929 3930 func (ec *executionContext) _Circle_radius(ctx context.Context, field graphql.CollectedField, obj *Circle) (ret graphql.Marshaler) { 3931 fc, err := ec.fieldContext_Circle_radius(ctx, field) 3932 if err != nil { 3933 return graphql.Null 3934 } 3935 ctx = graphql.WithFieldContext(ctx, fc) 3936 defer func() { 3937 if r := recover(); r != nil { 3938 ec.Error(ctx, ec.Recover(ctx, r)) 3939 ret = graphql.Null 3940 } 3941 }() 3942 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3943 ctx = rctx // use context from middleware stack in children 3944 return obj.Radius, nil 3945 }) 3946 3947 if resTmp == nil { 3948 return graphql.Null 3949 } 3950 res := resTmp.(float64) 3951 fc.Result = res 3952 return ec.marshalOFloat2float64(ctx, field.Selections, res) 3953 } 3954 3955 func (ec *executionContext) fieldContext_Circle_radius(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3956 fc = &graphql.FieldContext{ 3957 Object: "Circle", 3958 Field: field, 3959 IsMethod: false, 3960 IsResolver: false, 3961 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3962 return nil, errors.New("field of type Float does not have child fields") 3963 }, 3964 } 3965 return fc, nil 3966 } 3967 3968 func (ec *executionContext) _Circle_area(ctx context.Context, field graphql.CollectedField, obj *Circle) (ret graphql.Marshaler) { 3969 fc, err := ec.fieldContext_Circle_area(ctx, field) 3970 if err != nil { 3971 return graphql.Null 3972 } 3973 ctx = graphql.WithFieldContext(ctx, fc) 3974 defer func() { 3975 if r := recover(); r != nil { 3976 ec.Error(ctx, ec.Recover(ctx, r)) 3977 ret = graphql.Null 3978 } 3979 }() 3980 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 3981 ctx = rctx // use context from middleware stack in children 3982 return obj.Area(), nil 3983 }) 3984 3985 if resTmp == nil { 3986 return graphql.Null 3987 } 3988 res := resTmp.(float64) 3989 fc.Result = res 3990 return ec.marshalOFloat2float64(ctx, field.Selections, res) 3991 } 3992 3993 func (ec *executionContext) fieldContext_Circle_area(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3994 fc = &graphql.FieldContext{ 3995 Object: "Circle", 3996 Field: field, 3997 IsMethod: true, 3998 IsResolver: false, 3999 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4000 return nil, errors.New("field of type Float does not have child fields") 4001 }, 4002 } 4003 return fc, nil 4004 } 4005 4006 func (ec *executionContext) _Circle_coordinates(ctx context.Context, field graphql.CollectedField, obj *Circle) (ret graphql.Marshaler) { 4007 fc, err := ec.fieldContext_Circle_coordinates(ctx, field) 4008 if err != nil { 4009 return graphql.Null 4010 } 4011 ctx = graphql.WithFieldContext(ctx, fc) 4012 defer func() { 4013 if r := recover(); r != nil { 4014 ec.Error(ctx, ec.Recover(ctx, r)) 4015 ret = graphql.Null 4016 } 4017 }() 4018 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4019 ctx = rctx // use context from middleware stack in children 4020 return obj.Coordinates, nil 4021 }) 4022 4023 if resTmp == nil { 4024 return graphql.Null 4025 } 4026 res := resTmp.(Coordinates) 4027 fc.Result = res 4028 return ec.marshalOCoordinates2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCoordinates(ctx, field.Selections, res) 4029 } 4030 4031 func (ec *executionContext) fieldContext_Circle_coordinates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4032 fc = &graphql.FieldContext{ 4033 Object: "Circle", 4034 Field: field, 4035 IsMethod: false, 4036 IsResolver: false, 4037 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4038 switch field.Name { 4039 case "x": 4040 return ec.fieldContext_Coordinates_x(ctx, field) 4041 case "y": 4042 return ec.fieldContext_Coordinates_y(ctx, field) 4043 } 4044 return nil, fmt.Errorf("no field named %q was found under type Coordinates", field.Name) 4045 }, 4046 } 4047 return fc, nil 4048 } 4049 4050 func (ec *executionContext) _ConcreteNodeA_id(ctx context.Context, field graphql.CollectedField, obj *ConcreteNodeA) (ret graphql.Marshaler) { 4051 fc, err := ec.fieldContext_ConcreteNodeA_id(ctx, field) 4052 if err != nil { 4053 return graphql.Null 4054 } 4055 ctx = graphql.WithFieldContext(ctx, fc) 4056 defer func() { 4057 if r := recover(); r != nil { 4058 ec.Error(ctx, ec.Recover(ctx, r)) 4059 ret = graphql.Null 4060 } 4061 }() 4062 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4063 ctx = rctx // use context from middleware stack in children 4064 return obj.ID, nil 4065 }) 4066 4067 if resTmp == nil { 4068 if !graphql.HasFieldError(ctx, fc) { 4069 ec.Errorf(ctx, "must not be null") 4070 } 4071 return graphql.Null 4072 } 4073 res := resTmp.(string) 4074 fc.Result = res 4075 return ec.marshalNID2string(ctx, field.Selections, res) 4076 } 4077 4078 func (ec *executionContext) fieldContext_ConcreteNodeA_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4079 fc = &graphql.FieldContext{ 4080 Object: "ConcreteNodeA", 4081 Field: field, 4082 IsMethod: false, 4083 IsResolver: false, 4084 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4085 return nil, errors.New("field of type ID does not have child fields") 4086 }, 4087 } 4088 return fc, nil 4089 } 4090 4091 func (ec *executionContext) _ConcreteNodeA_child(ctx context.Context, field graphql.CollectedField, obj *ConcreteNodeA) (ret graphql.Marshaler) { 4092 fc, err := ec.fieldContext_ConcreteNodeA_child(ctx, field) 4093 if err != nil { 4094 return graphql.Null 4095 } 4096 ctx = graphql.WithFieldContext(ctx, fc) 4097 defer func() { 4098 if r := recover(); r != nil { 4099 ec.Error(ctx, ec.Recover(ctx, r)) 4100 ret = graphql.Null 4101 } 4102 }() 4103 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4104 ctx = rctx // use context from middleware stack in children 4105 return obj.Child() 4106 }) 4107 4108 if resTmp == nil { 4109 if !graphql.HasFieldError(ctx, fc) { 4110 ec.Errorf(ctx, "must not be null") 4111 } 4112 return graphql.Null 4113 } 4114 res := resTmp.(Node) 4115 fc.Result = res 4116 return ec.marshalNNode2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNode(ctx, field.Selections, res) 4117 } 4118 4119 func (ec *executionContext) fieldContext_ConcreteNodeA_child(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4120 fc = &graphql.FieldContext{ 4121 Object: "ConcreteNodeA", 4122 Field: field, 4123 IsMethod: true, 4124 IsResolver: false, 4125 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4126 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 4127 }, 4128 } 4129 return fc, nil 4130 } 4131 4132 func (ec *executionContext) _ConcreteNodeA_name(ctx context.Context, field graphql.CollectedField, obj *ConcreteNodeA) (ret graphql.Marshaler) { 4133 fc, err := ec.fieldContext_ConcreteNodeA_name(ctx, field) 4134 if err != nil { 4135 return graphql.Null 4136 } 4137 ctx = graphql.WithFieldContext(ctx, fc) 4138 defer func() { 4139 if r := recover(); r != nil { 4140 ec.Error(ctx, ec.Recover(ctx, r)) 4141 ret = graphql.Null 4142 } 4143 }() 4144 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4145 ctx = rctx // use context from middleware stack in children 4146 return obj.Name, nil 4147 }) 4148 4149 if resTmp == nil { 4150 if !graphql.HasFieldError(ctx, fc) { 4151 ec.Errorf(ctx, "must not be null") 4152 } 4153 return graphql.Null 4154 } 4155 res := resTmp.(string) 4156 fc.Result = res 4157 return ec.marshalNString2string(ctx, field.Selections, res) 4158 } 4159 4160 func (ec *executionContext) fieldContext_ConcreteNodeA_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4161 fc = &graphql.FieldContext{ 4162 Object: "ConcreteNodeA", 4163 Field: field, 4164 IsMethod: false, 4165 IsResolver: false, 4166 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4167 return nil, errors.New("field of type String does not have child fields") 4168 }, 4169 } 4170 return fc, nil 4171 } 4172 4173 func (ec *executionContext) _ConcreteNodeInterface_id(ctx context.Context, field graphql.CollectedField, obj ConcreteNodeInterface) (ret graphql.Marshaler) { 4174 fc, err := ec.fieldContext_ConcreteNodeInterface_id(ctx, field) 4175 if err != nil { 4176 return graphql.Null 4177 } 4178 ctx = graphql.WithFieldContext(ctx, fc) 4179 defer func() { 4180 if r := recover(); r != nil { 4181 ec.Error(ctx, ec.Recover(ctx, r)) 4182 ret = graphql.Null 4183 } 4184 }() 4185 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4186 ctx = rctx // use context from middleware stack in children 4187 return obj.ID(), nil 4188 }) 4189 4190 if resTmp == nil { 4191 if !graphql.HasFieldError(ctx, fc) { 4192 ec.Errorf(ctx, "must not be null") 4193 } 4194 return graphql.Null 4195 } 4196 res := resTmp.(string) 4197 fc.Result = res 4198 return ec.marshalNID2string(ctx, field.Selections, res) 4199 } 4200 4201 func (ec *executionContext) fieldContext_ConcreteNodeInterface_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4202 fc = &graphql.FieldContext{ 4203 Object: "ConcreteNodeInterface", 4204 Field: field, 4205 IsMethod: true, 4206 IsResolver: false, 4207 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4208 return nil, errors.New("field of type ID does not have child fields") 4209 }, 4210 } 4211 return fc, nil 4212 } 4213 4214 func (ec *executionContext) _ConcreteNodeInterface_child(ctx context.Context, field graphql.CollectedField, obj ConcreteNodeInterface) (ret graphql.Marshaler) { 4215 fc, err := ec.fieldContext_ConcreteNodeInterface_child(ctx, field) 4216 if err != nil { 4217 return graphql.Null 4218 } 4219 ctx = graphql.WithFieldContext(ctx, fc) 4220 defer func() { 4221 if r := recover(); r != nil { 4222 ec.Error(ctx, ec.Recover(ctx, r)) 4223 ret = graphql.Null 4224 } 4225 }() 4226 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4227 ctx = rctx // use context from middleware stack in children 4228 return obj.Child() 4229 }) 4230 4231 if resTmp == nil { 4232 if !graphql.HasFieldError(ctx, fc) { 4233 ec.Errorf(ctx, "must not be null") 4234 } 4235 return graphql.Null 4236 } 4237 res := resTmp.(Node) 4238 fc.Result = res 4239 return ec.marshalNNode2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNode(ctx, field.Selections, res) 4240 } 4241 4242 func (ec *executionContext) fieldContext_ConcreteNodeInterface_child(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4243 fc = &graphql.FieldContext{ 4244 Object: "ConcreteNodeInterface", 4245 Field: field, 4246 IsMethod: true, 4247 IsResolver: false, 4248 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4249 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 4250 }, 4251 } 4252 return fc, nil 4253 } 4254 4255 func (ec *executionContext) _Content_Post_foo(ctx context.Context, field graphql.CollectedField, obj *ContentPost) (ret graphql.Marshaler) { 4256 fc, err := ec.fieldContext_Content_Post_foo(ctx, field) 4257 if err != nil { 4258 return graphql.Null 4259 } 4260 ctx = graphql.WithFieldContext(ctx, fc) 4261 defer func() { 4262 if r := recover(); r != nil { 4263 ec.Error(ctx, ec.Recover(ctx, r)) 4264 ret = graphql.Null 4265 } 4266 }() 4267 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4268 ctx = rctx // use context from middleware stack in children 4269 return obj.Foo, nil 4270 }) 4271 4272 if resTmp == nil { 4273 return graphql.Null 4274 } 4275 res := resTmp.(*string) 4276 fc.Result = res 4277 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4278 } 4279 4280 func (ec *executionContext) fieldContext_Content_Post_foo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4281 fc = &graphql.FieldContext{ 4282 Object: "Content_Post", 4283 Field: field, 4284 IsMethod: false, 4285 IsResolver: false, 4286 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4287 return nil, errors.New("field of type String does not have child fields") 4288 }, 4289 } 4290 return fc, nil 4291 } 4292 4293 func (ec *executionContext) _Content_User_foo(ctx context.Context, field graphql.CollectedField, obj *ContentUser) (ret graphql.Marshaler) { 4294 fc, err := ec.fieldContext_Content_User_foo(ctx, field) 4295 if err != nil { 4296 return graphql.Null 4297 } 4298 ctx = graphql.WithFieldContext(ctx, fc) 4299 defer func() { 4300 if r := recover(); r != nil { 4301 ec.Error(ctx, ec.Recover(ctx, r)) 4302 ret = graphql.Null 4303 } 4304 }() 4305 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4306 ctx = rctx // use context from middleware stack in children 4307 return obj.Foo, nil 4308 }) 4309 4310 if resTmp == nil { 4311 return graphql.Null 4312 } 4313 res := resTmp.(*string) 4314 fc.Result = res 4315 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4316 } 4317 4318 func (ec *executionContext) fieldContext_Content_User_foo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4319 fc = &graphql.FieldContext{ 4320 Object: "Content_User", 4321 Field: field, 4322 IsMethod: false, 4323 IsResolver: false, 4324 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4325 return nil, errors.New("field of type String does not have child fields") 4326 }, 4327 } 4328 return fc, nil 4329 } 4330 4331 func (ec *executionContext) _Coordinates_x(ctx context.Context, field graphql.CollectedField, obj *Coordinates) (ret graphql.Marshaler) { 4332 fc, err := ec.fieldContext_Coordinates_x(ctx, field) 4333 if err != nil { 4334 return graphql.Null 4335 } 4336 ctx = graphql.WithFieldContext(ctx, fc) 4337 defer func() { 4338 if r := recover(); r != nil { 4339 ec.Error(ctx, ec.Recover(ctx, r)) 4340 ret = graphql.Null 4341 } 4342 }() 4343 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4344 ctx = rctx // use context from middleware stack in children 4345 return obj.X, nil 4346 }) 4347 4348 if resTmp == nil { 4349 if !graphql.HasFieldError(ctx, fc) { 4350 ec.Errorf(ctx, "must not be null") 4351 } 4352 return graphql.Null 4353 } 4354 res := resTmp.(float64) 4355 fc.Result = res 4356 return ec.marshalNFloat2float64(ctx, field.Selections, res) 4357 } 4358 4359 func (ec *executionContext) fieldContext_Coordinates_x(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4360 fc = &graphql.FieldContext{ 4361 Object: "Coordinates", 4362 Field: field, 4363 IsMethod: false, 4364 IsResolver: false, 4365 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4366 return nil, errors.New("field of type Float does not have child fields") 4367 }, 4368 } 4369 return fc, nil 4370 } 4371 4372 func (ec *executionContext) _Coordinates_y(ctx context.Context, field graphql.CollectedField, obj *Coordinates) (ret graphql.Marshaler) { 4373 fc, err := ec.fieldContext_Coordinates_y(ctx, field) 4374 if err != nil { 4375 return graphql.Null 4376 } 4377 ctx = graphql.WithFieldContext(ctx, fc) 4378 defer func() { 4379 if r := recover(); r != nil { 4380 ec.Error(ctx, ec.Recover(ctx, r)) 4381 ret = graphql.Null 4382 } 4383 }() 4384 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4385 ctx = rctx // use context from middleware stack in children 4386 return obj.Y, nil 4387 }) 4388 4389 if resTmp == nil { 4390 if !graphql.HasFieldError(ctx, fc) { 4391 ec.Errorf(ctx, "must not be null") 4392 } 4393 return graphql.Null 4394 } 4395 res := resTmp.(float64) 4396 fc.Result = res 4397 return ec.marshalNFloat2float64(ctx, field.Selections, res) 4398 } 4399 4400 func (ec *executionContext) fieldContext_Coordinates_y(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4401 fc = &graphql.FieldContext{ 4402 Object: "Coordinates", 4403 Field: field, 4404 IsMethod: false, 4405 IsResolver: false, 4406 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4407 return nil, errors.New("field of type Float does not have child fields") 4408 }, 4409 } 4410 return fc, nil 4411 } 4412 4413 func (ec *executionContext) _DefaultParametersMirror_falsyBoolean(ctx context.Context, field graphql.CollectedField, obj *DefaultParametersMirror) (ret graphql.Marshaler) { 4414 fc, err := ec.fieldContext_DefaultParametersMirror_falsyBoolean(ctx, field) 4415 if err != nil { 4416 return graphql.Null 4417 } 4418 ctx = graphql.WithFieldContext(ctx, fc) 4419 defer func() { 4420 if r := recover(); r != nil { 4421 ec.Error(ctx, ec.Recover(ctx, r)) 4422 ret = graphql.Null 4423 } 4424 }() 4425 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4426 ctx = rctx // use context from middleware stack in children 4427 return obj.FalsyBoolean, nil 4428 }) 4429 4430 if resTmp == nil { 4431 return graphql.Null 4432 } 4433 res := resTmp.(*bool) 4434 fc.Result = res 4435 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 4436 } 4437 4438 func (ec *executionContext) fieldContext_DefaultParametersMirror_falsyBoolean(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4439 fc = &graphql.FieldContext{ 4440 Object: "DefaultParametersMirror", 4441 Field: field, 4442 IsMethod: false, 4443 IsResolver: false, 4444 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4445 return nil, errors.New("field of type Boolean does not have child fields") 4446 }, 4447 } 4448 return fc, nil 4449 } 4450 4451 func (ec *executionContext) _DefaultParametersMirror_truthyBoolean(ctx context.Context, field graphql.CollectedField, obj *DefaultParametersMirror) (ret graphql.Marshaler) { 4452 fc, err := ec.fieldContext_DefaultParametersMirror_truthyBoolean(ctx, field) 4453 if err != nil { 4454 return graphql.Null 4455 } 4456 ctx = graphql.WithFieldContext(ctx, fc) 4457 defer func() { 4458 if r := recover(); r != nil { 4459 ec.Error(ctx, ec.Recover(ctx, r)) 4460 ret = graphql.Null 4461 } 4462 }() 4463 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4464 ctx = rctx // use context from middleware stack in children 4465 return obj.TruthyBoolean, nil 4466 }) 4467 4468 if resTmp == nil { 4469 return graphql.Null 4470 } 4471 res := resTmp.(*bool) 4472 fc.Result = res 4473 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 4474 } 4475 4476 func (ec *executionContext) fieldContext_DefaultParametersMirror_truthyBoolean(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4477 fc = &graphql.FieldContext{ 4478 Object: "DefaultParametersMirror", 4479 Field: field, 4480 IsMethod: false, 4481 IsResolver: false, 4482 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4483 return nil, errors.New("field of type Boolean does not have child fields") 4484 }, 4485 } 4486 return fc, nil 4487 } 4488 4489 func (ec *executionContext) _Dog_species(ctx context.Context, field graphql.CollectedField, obj *Dog) (ret graphql.Marshaler) { 4490 fc, err := ec.fieldContext_Dog_species(ctx, field) 4491 if err != nil { 4492 return graphql.Null 4493 } 4494 ctx = graphql.WithFieldContext(ctx, fc) 4495 defer func() { 4496 if r := recover(); r != nil { 4497 ec.Error(ctx, ec.Recover(ctx, r)) 4498 ret = graphql.Null 4499 } 4500 }() 4501 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4502 ctx = rctx // use context from middleware stack in children 4503 return obj.Species, nil 4504 }) 4505 4506 if resTmp == nil { 4507 if !graphql.HasFieldError(ctx, fc) { 4508 ec.Errorf(ctx, "must not be null") 4509 } 4510 return graphql.Null 4511 } 4512 res := resTmp.(string) 4513 fc.Result = res 4514 return ec.marshalNString2string(ctx, field.Selections, res) 4515 } 4516 4517 func (ec *executionContext) fieldContext_Dog_species(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4518 fc = &graphql.FieldContext{ 4519 Object: "Dog", 4520 Field: field, 4521 IsMethod: false, 4522 IsResolver: false, 4523 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4524 return nil, errors.New("field of type String does not have child fields") 4525 }, 4526 } 4527 return fc, nil 4528 } 4529 4530 func (ec *executionContext) _Dog_dogBreed(ctx context.Context, field graphql.CollectedField, obj *Dog) (ret graphql.Marshaler) { 4531 fc, err := ec.fieldContext_Dog_dogBreed(ctx, field) 4532 if err != nil { 4533 return graphql.Null 4534 } 4535 ctx = graphql.WithFieldContext(ctx, fc) 4536 defer func() { 4537 if r := recover(); r != nil { 4538 ec.Error(ctx, ec.Recover(ctx, r)) 4539 ret = graphql.Null 4540 } 4541 }() 4542 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4543 ctx = rctx // use context from middleware stack in children 4544 return obj.DogBreed, nil 4545 }) 4546 4547 if resTmp == nil { 4548 if !graphql.HasFieldError(ctx, fc) { 4549 ec.Errorf(ctx, "must not be null") 4550 } 4551 return graphql.Null 4552 } 4553 res := resTmp.(string) 4554 fc.Result = res 4555 return ec.marshalNString2string(ctx, field.Selections, res) 4556 } 4557 4558 func (ec *executionContext) fieldContext_Dog_dogBreed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4559 fc = &graphql.FieldContext{ 4560 Object: "Dog", 4561 Field: field, 4562 IsMethod: false, 4563 IsResolver: false, 4564 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4565 return nil, errors.New("field of type String does not have child fields") 4566 }, 4567 } 4568 return fc, nil 4569 } 4570 4571 func (ec *executionContext) _EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx context.Context, field graphql.CollectedField, obj *EmbeddedCase1) (ret graphql.Marshaler) { 4572 fc, err := ec.fieldContext_EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx, field) 4573 if err != nil { 4574 return graphql.Null 4575 } 4576 ctx = graphql.WithFieldContext(ctx, fc) 4577 defer func() { 4578 if r := recover(); r != nil { 4579 ec.Error(ctx, ec.Recover(ctx, r)) 4580 ret = graphql.Null 4581 } 4582 }() 4583 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4584 ctx = rctx // use context from middleware stack in children 4585 return obj.ExportedEmbeddedPointerExportedMethod(), nil 4586 }) 4587 4588 if resTmp == nil { 4589 if !graphql.HasFieldError(ctx, fc) { 4590 ec.Errorf(ctx, "must not be null") 4591 } 4592 return graphql.Null 4593 } 4594 res := resTmp.(string) 4595 fc.Result = res 4596 return ec.marshalNString2string(ctx, field.Selections, res) 4597 } 4598 4599 func (ec *executionContext) fieldContext_EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4600 fc = &graphql.FieldContext{ 4601 Object: "EmbeddedCase1", 4602 Field: field, 4603 IsMethod: true, 4604 IsResolver: false, 4605 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4606 return nil, errors.New("field of type String does not have child fields") 4607 }, 4608 } 4609 return fc, nil 4610 } 4611 4612 func (ec *executionContext) _EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx context.Context, field graphql.CollectedField, obj *EmbeddedCase2) (ret graphql.Marshaler) { 4613 fc, err := ec.fieldContext_EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx, field) 4614 if err != nil { 4615 return graphql.Null 4616 } 4617 ctx = graphql.WithFieldContext(ctx, fc) 4618 defer func() { 4619 if r := recover(); r != nil { 4620 ec.Error(ctx, ec.Recover(ctx, r)) 4621 ret = graphql.Null 4622 } 4623 }() 4624 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4625 ctx = rctx // use context from middleware stack in children 4626 return obj.UnexportedEmbeddedPointerExportedMethod(), nil 4627 }) 4628 4629 if resTmp == nil { 4630 if !graphql.HasFieldError(ctx, fc) { 4631 ec.Errorf(ctx, "must not be null") 4632 } 4633 return graphql.Null 4634 } 4635 res := resTmp.(string) 4636 fc.Result = res 4637 return ec.marshalNString2string(ctx, field.Selections, res) 4638 } 4639 4640 func (ec *executionContext) fieldContext_EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4641 fc = &graphql.FieldContext{ 4642 Object: "EmbeddedCase2", 4643 Field: field, 4644 IsMethod: true, 4645 IsResolver: false, 4646 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4647 return nil, errors.New("field of type String does not have child fields") 4648 }, 4649 } 4650 return fc, nil 4651 } 4652 4653 func (ec *executionContext) _EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx context.Context, field graphql.CollectedField, obj *EmbeddedCase3) (ret graphql.Marshaler) { 4654 fc, err := ec.fieldContext_EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx, field) 4655 if err != nil { 4656 return graphql.Null 4657 } 4658 ctx = graphql.WithFieldContext(ctx, fc) 4659 defer func() { 4660 if r := recover(); r != nil { 4661 ec.Error(ctx, ec.Recover(ctx, r)) 4662 ret = graphql.Null 4663 } 4664 }() 4665 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4666 ctx = rctx // use context from middleware stack in children 4667 return obj.UnexportedEmbeddedInterfaceExportedMethod(), nil 4668 }) 4669 4670 if resTmp == nil { 4671 if !graphql.HasFieldError(ctx, fc) { 4672 ec.Errorf(ctx, "must not be null") 4673 } 4674 return graphql.Null 4675 } 4676 res := resTmp.(string) 4677 fc.Result = res 4678 return ec.marshalNString2string(ctx, field.Selections, res) 4679 } 4680 4681 func (ec *executionContext) fieldContext_EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4682 fc = &graphql.FieldContext{ 4683 Object: "EmbeddedCase3", 4684 Field: field, 4685 IsMethod: true, 4686 IsResolver: false, 4687 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4688 return nil, errors.New("field of type String does not have child fields") 4689 }, 4690 } 4691 return fc, nil 4692 } 4693 4694 func (ec *executionContext) _EmbeddedDefaultScalar_value(ctx context.Context, field graphql.CollectedField, obj *EmbeddedDefaultScalar) (ret graphql.Marshaler) { 4695 fc, err := ec.fieldContext_EmbeddedDefaultScalar_value(ctx, field) 4696 if err != nil { 4697 return graphql.Null 4698 } 4699 ctx = graphql.WithFieldContext(ctx, fc) 4700 defer func() { 4701 if r := recover(); r != nil { 4702 ec.Error(ctx, ec.Recover(ctx, r)) 4703 ret = graphql.Null 4704 } 4705 }() 4706 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4707 ctx = rctx // use context from middleware stack in children 4708 return obj.Value, nil 4709 }) 4710 4711 if resTmp == nil { 4712 return graphql.Null 4713 } 4714 res := resTmp.(*string) 4715 fc.Result = res 4716 return ec.marshalODefaultScalarImplementation2ᚖstring(ctx, field.Selections, res) 4717 } 4718 4719 func (ec *executionContext) fieldContext_EmbeddedDefaultScalar_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4720 fc = &graphql.FieldContext{ 4721 Object: "EmbeddedDefaultScalar", 4722 Field: field, 4723 IsMethod: false, 4724 IsResolver: false, 4725 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4726 return nil, errors.New("field of type DefaultScalarImplementation does not have child fields") 4727 }, 4728 } 4729 return fc, nil 4730 } 4731 4732 func (ec *executionContext) _EmbeddedPointer_ID(ctx context.Context, field graphql.CollectedField, obj *EmbeddedPointerModel) (ret graphql.Marshaler) { 4733 fc, err := ec.fieldContext_EmbeddedPointer_ID(ctx, field) 4734 if err != nil { 4735 return graphql.Null 4736 } 4737 ctx = graphql.WithFieldContext(ctx, fc) 4738 defer func() { 4739 if r := recover(); r != nil { 4740 ec.Error(ctx, ec.Recover(ctx, r)) 4741 ret = graphql.Null 4742 } 4743 }() 4744 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4745 ctx = rctx // use context from middleware stack in children 4746 return obj.ID, nil 4747 }) 4748 4749 if resTmp == nil { 4750 return graphql.Null 4751 } 4752 res := resTmp.(string) 4753 fc.Result = res 4754 return ec.marshalOString2string(ctx, field.Selections, res) 4755 } 4756 4757 func (ec *executionContext) fieldContext_EmbeddedPointer_ID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4758 fc = &graphql.FieldContext{ 4759 Object: "EmbeddedPointer", 4760 Field: field, 4761 IsMethod: false, 4762 IsResolver: false, 4763 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4764 return nil, errors.New("field of type String does not have child fields") 4765 }, 4766 } 4767 return fc, nil 4768 } 4769 4770 func (ec *executionContext) _EmbeddedPointer_Title(ctx context.Context, field graphql.CollectedField, obj *EmbeddedPointerModel) (ret graphql.Marshaler) { 4771 fc, err := ec.fieldContext_EmbeddedPointer_Title(ctx, field) 4772 if err != nil { 4773 return graphql.Null 4774 } 4775 ctx = graphql.WithFieldContext(ctx, fc) 4776 defer func() { 4777 if r := recover(); r != nil { 4778 ec.Error(ctx, ec.Recover(ctx, r)) 4779 ret = graphql.Null 4780 } 4781 }() 4782 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4783 ctx = rctx // use context from middleware stack in children 4784 return obj.Title, nil 4785 }) 4786 4787 if resTmp == nil { 4788 return graphql.Null 4789 } 4790 res := resTmp.(string) 4791 fc.Result = res 4792 return ec.marshalOString2string(ctx, field.Selections, res) 4793 } 4794 4795 func (ec *executionContext) fieldContext_EmbeddedPointer_Title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4796 fc = &graphql.FieldContext{ 4797 Object: "EmbeddedPointer", 4798 Field: field, 4799 IsMethod: false, 4800 IsResolver: false, 4801 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4802 return nil, errors.New("field of type String does not have child fields") 4803 }, 4804 } 4805 return fc, nil 4806 } 4807 4808 func (ec *executionContext) _Error_id(ctx context.Context, field graphql.CollectedField, obj *Error) (ret graphql.Marshaler) { 4809 fc, err := ec.fieldContext_Error_id(ctx, field) 4810 if err != nil { 4811 return graphql.Null 4812 } 4813 ctx = graphql.WithFieldContext(ctx, fc) 4814 defer func() { 4815 if r := recover(); r != nil { 4816 ec.Error(ctx, ec.Recover(ctx, r)) 4817 ret = graphql.Null 4818 } 4819 }() 4820 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4821 ctx = rctx // use context from middleware stack in children 4822 return obj.ID, nil 4823 }) 4824 4825 if resTmp == nil { 4826 if !graphql.HasFieldError(ctx, fc) { 4827 ec.Errorf(ctx, "must not be null") 4828 } 4829 return graphql.Null 4830 } 4831 res := resTmp.(string) 4832 fc.Result = res 4833 return ec.marshalNID2string(ctx, field.Selections, res) 4834 } 4835 4836 func (ec *executionContext) fieldContext_Error_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4837 fc = &graphql.FieldContext{ 4838 Object: "Error", 4839 Field: field, 4840 IsMethod: false, 4841 IsResolver: false, 4842 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4843 return nil, errors.New("field of type ID does not have child fields") 4844 }, 4845 } 4846 return fc, nil 4847 } 4848 4849 func (ec *executionContext) _Error_errorOnNonRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) (ret graphql.Marshaler) { 4850 fc, err := ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 4851 if err != nil { 4852 return graphql.Null 4853 } 4854 ctx = graphql.WithFieldContext(ctx, fc) 4855 defer func() { 4856 if r := recover(); r != nil { 4857 ec.Error(ctx, ec.Recover(ctx, r)) 4858 ret = graphql.Null 4859 } 4860 }() 4861 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4862 ctx = rctx // use context from middleware stack in children 4863 return obj.ErrorOnNonRequiredField() 4864 }) 4865 4866 if resTmp == nil { 4867 return graphql.Null 4868 } 4869 res := resTmp.(string) 4870 fc.Result = res 4871 return ec.marshalOString2string(ctx, field.Selections, res) 4872 } 4873 4874 func (ec *executionContext) fieldContext_Error_errorOnNonRequiredField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4875 fc = &graphql.FieldContext{ 4876 Object: "Error", 4877 Field: field, 4878 IsMethod: true, 4879 IsResolver: false, 4880 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4881 return nil, errors.New("field of type String does not have child fields") 4882 }, 4883 } 4884 return fc, nil 4885 } 4886 4887 func (ec *executionContext) _Error_errorOnRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) (ret graphql.Marshaler) { 4888 fc, err := ec.fieldContext_Error_errorOnRequiredField(ctx, field) 4889 if err != nil { 4890 return graphql.Null 4891 } 4892 ctx = graphql.WithFieldContext(ctx, fc) 4893 defer func() { 4894 if r := recover(); r != nil { 4895 ec.Error(ctx, ec.Recover(ctx, r)) 4896 ret = graphql.Null 4897 } 4898 }() 4899 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4900 ctx = rctx // use context from middleware stack in children 4901 return obj.ErrorOnRequiredField() 4902 }) 4903 4904 if resTmp == nil { 4905 if !graphql.HasFieldError(ctx, fc) { 4906 ec.Errorf(ctx, "must not be null") 4907 } 4908 return graphql.Null 4909 } 4910 res := resTmp.(string) 4911 fc.Result = res 4912 return ec.marshalNString2string(ctx, field.Selections, res) 4913 } 4914 4915 func (ec *executionContext) fieldContext_Error_errorOnRequiredField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4916 fc = &graphql.FieldContext{ 4917 Object: "Error", 4918 Field: field, 4919 IsMethod: true, 4920 IsResolver: false, 4921 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4922 return nil, errors.New("field of type String does not have child fields") 4923 }, 4924 } 4925 return fc, nil 4926 } 4927 4928 func (ec *executionContext) _Error_nilOnRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) (ret graphql.Marshaler) { 4929 fc, err := ec.fieldContext_Error_nilOnRequiredField(ctx, field) 4930 if err != nil { 4931 return graphql.Null 4932 } 4933 ctx = graphql.WithFieldContext(ctx, fc) 4934 defer func() { 4935 if r := recover(); r != nil { 4936 ec.Error(ctx, ec.Recover(ctx, r)) 4937 ret = graphql.Null 4938 } 4939 }() 4940 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4941 ctx = rctx // use context from middleware stack in children 4942 return obj.NilOnRequiredField(), nil 4943 }) 4944 4945 if resTmp == nil { 4946 if !graphql.HasFieldError(ctx, fc) { 4947 ec.Errorf(ctx, "must not be null") 4948 } 4949 return graphql.Null 4950 } 4951 res := resTmp.(*string) 4952 fc.Result = res 4953 return ec.marshalNString2ᚖstring(ctx, field.Selections, res) 4954 } 4955 4956 func (ec *executionContext) fieldContext_Error_nilOnRequiredField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4957 fc = &graphql.FieldContext{ 4958 Object: "Error", 4959 Field: field, 4960 IsMethod: true, 4961 IsResolver: false, 4962 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4963 return nil, errors.New("field of type String does not have child fields") 4964 }, 4965 } 4966 return fc, nil 4967 } 4968 4969 func (ec *executionContext) _Errors_a(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 4970 fc, err := ec.fieldContext_Errors_a(ctx, field) 4971 if err != nil { 4972 return graphql.Null 4973 } 4974 ctx = graphql.WithFieldContext(ctx, fc) 4975 defer func() { 4976 if r := recover(); r != nil { 4977 ec.Error(ctx, ec.Recover(ctx, r)) 4978 ret = graphql.Null 4979 } 4980 }() 4981 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 4982 ctx = rctx // use context from middleware stack in children 4983 return ec.resolvers.Errors().A(rctx, obj) 4984 }) 4985 4986 if resTmp == nil { 4987 if !graphql.HasFieldError(ctx, fc) { 4988 ec.Errorf(ctx, "must not be null") 4989 } 4990 return graphql.Null 4991 } 4992 res := resTmp.(*Error) 4993 fc.Result = res 4994 return ec.marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 4995 } 4996 4997 func (ec *executionContext) fieldContext_Errors_a(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4998 fc = &graphql.FieldContext{ 4999 Object: "Errors", 5000 Field: field, 5001 IsMethod: true, 5002 IsResolver: true, 5003 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5004 switch field.Name { 5005 case "id": 5006 return ec.fieldContext_Error_id(ctx, field) 5007 case "errorOnNonRequiredField": 5008 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5009 case "errorOnRequiredField": 5010 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5011 case "nilOnRequiredField": 5012 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5013 } 5014 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5015 }, 5016 } 5017 return fc, nil 5018 } 5019 5020 func (ec *executionContext) _Errors_b(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5021 fc, err := ec.fieldContext_Errors_b(ctx, field) 5022 if err != nil { 5023 return graphql.Null 5024 } 5025 ctx = graphql.WithFieldContext(ctx, fc) 5026 defer func() { 5027 if r := recover(); r != nil { 5028 ec.Error(ctx, ec.Recover(ctx, r)) 5029 ret = graphql.Null 5030 } 5031 }() 5032 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5033 ctx = rctx // use context from middleware stack in children 5034 return ec.resolvers.Errors().B(rctx, obj) 5035 }) 5036 5037 if resTmp == nil { 5038 if !graphql.HasFieldError(ctx, fc) { 5039 ec.Errorf(ctx, "must not be null") 5040 } 5041 return graphql.Null 5042 } 5043 res := resTmp.(*Error) 5044 fc.Result = res 5045 return ec.marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5046 } 5047 5048 func (ec *executionContext) fieldContext_Errors_b(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5049 fc = &graphql.FieldContext{ 5050 Object: "Errors", 5051 Field: field, 5052 IsMethod: true, 5053 IsResolver: true, 5054 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5055 switch field.Name { 5056 case "id": 5057 return ec.fieldContext_Error_id(ctx, field) 5058 case "errorOnNonRequiredField": 5059 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5060 case "errorOnRequiredField": 5061 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5062 case "nilOnRequiredField": 5063 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5064 } 5065 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5066 }, 5067 } 5068 return fc, nil 5069 } 5070 5071 func (ec *executionContext) _Errors_c(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5072 fc, err := ec.fieldContext_Errors_c(ctx, field) 5073 if err != nil { 5074 return graphql.Null 5075 } 5076 ctx = graphql.WithFieldContext(ctx, fc) 5077 defer func() { 5078 if r := recover(); r != nil { 5079 ec.Error(ctx, ec.Recover(ctx, r)) 5080 ret = graphql.Null 5081 } 5082 }() 5083 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5084 ctx = rctx // use context from middleware stack in children 5085 return ec.resolvers.Errors().C(rctx, obj) 5086 }) 5087 5088 if resTmp == nil { 5089 if !graphql.HasFieldError(ctx, fc) { 5090 ec.Errorf(ctx, "must not be null") 5091 } 5092 return graphql.Null 5093 } 5094 res := resTmp.(*Error) 5095 fc.Result = res 5096 return ec.marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5097 } 5098 5099 func (ec *executionContext) fieldContext_Errors_c(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5100 fc = &graphql.FieldContext{ 5101 Object: "Errors", 5102 Field: field, 5103 IsMethod: true, 5104 IsResolver: true, 5105 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5106 switch field.Name { 5107 case "id": 5108 return ec.fieldContext_Error_id(ctx, field) 5109 case "errorOnNonRequiredField": 5110 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5111 case "errorOnRequiredField": 5112 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5113 case "nilOnRequiredField": 5114 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5115 } 5116 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5117 }, 5118 } 5119 return fc, nil 5120 } 5121 5122 func (ec *executionContext) _Errors_d(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5123 fc, err := ec.fieldContext_Errors_d(ctx, field) 5124 if err != nil { 5125 return graphql.Null 5126 } 5127 ctx = graphql.WithFieldContext(ctx, fc) 5128 defer func() { 5129 if r := recover(); r != nil { 5130 ec.Error(ctx, ec.Recover(ctx, r)) 5131 ret = graphql.Null 5132 } 5133 }() 5134 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5135 ctx = rctx // use context from middleware stack in children 5136 return ec.resolvers.Errors().D(rctx, obj) 5137 }) 5138 5139 if resTmp == nil { 5140 if !graphql.HasFieldError(ctx, fc) { 5141 ec.Errorf(ctx, "must not be null") 5142 } 5143 return graphql.Null 5144 } 5145 res := resTmp.(*Error) 5146 fc.Result = res 5147 return ec.marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5148 } 5149 5150 func (ec *executionContext) fieldContext_Errors_d(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5151 fc = &graphql.FieldContext{ 5152 Object: "Errors", 5153 Field: field, 5154 IsMethod: true, 5155 IsResolver: true, 5156 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5157 switch field.Name { 5158 case "id": 5159 return ec.fieldContext_Error_id(ctx, field) 5160 case "errorOnNonRequiredField": 5161 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5162 case "errorOnRequiredField": 5163 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5164 case "nilOnRequiredField": 5165 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5166 } 5167 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5168 }, 5169 } 5170 return fc, nil 5171 } 5172 5173 func (ec *executionContext) _Errors_e(ctx context.Context, field graphql.CollectedField, obj *Errors) (ret graphql.Marshaler) { 5174 fc, err := ec.fieldContext_Errors_e(ctx, field) 5175 if err != nil { 5176 return graphql.Null 5177 } 5178 ctx = graphql.WithFieldContext(ctx, fc) 5179 defer func() { 5180 if r := recover(); r != nil { 5181 ec.Error(ctx, ec.Recover(ctx, r)) 5182 ret = graphql.Null 5183 } 5184 }() 5185 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5186 ctx = rctx // use context from middleware stack in children 5187 return ec.resolvers.Errors().E(rctx, obj) 5188 }) 5189 5190 if resTmp == nil { 5191 if !graphql.HasFieldError(ctx, fc) { 5192 ec.Errorf(ctx, "must not be null") 5193 } 5194 return graphql.Null 5195 } 5196 res := resTmp.(*Error) 5197 fc.Result = res 5198 return ec.marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 5199 } 5200 5201 func (ec *executionContext) fieldContext_Errors_e(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5202 fc = &graphql.FieldContext{ 5203 Object: "Errors", 5204 Field: field, 5205 IsMethod: true, 5206 IsResolver: true, 5207 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5208 switch field.Name { 5209 case "id": 5210 return ec.fieldContext_Error_id(ctx, field) 5211 case "errorOnNonRequiredField": 5212 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 5213 case "errorOnRequiredField": 5214 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 5215 case "nilOnRequiredField": 5216 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 5217 } 5218 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 5219 }, 5220 } 5221 return fc, nil 5222 } 5223 5224 func (ec *executionContext) _ForcedResolver_field(ctx context.Context, field graphql.CollectedField, obj *ForcedResolver) (ret graphql.Marshaler) { 5225 fc, err := ec.fieldContext_ForcedResolver_field(ctx, field) 5226 if err != nil { 5227 return graphql.Null 5228 } 5229 ctx = graphql.WithFieldContext(ctx, fc) 5230 defer func() { 5231 if r := recover(); r != nil { 5232 ec.Error(ctx, ec.Recover(ctx, r)) 5233 ret = graphql.Null 5234 } 5235 }() 5236 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5237 ctx = rctx // use context from middleware stack in children 5238 return ec.resolvers.ForcedResolver().Field(rctx, obj) 5239 }) 5240 5241 if resTmp == nil { 5242 return graphql.Null 5243 } 5244 res := resTmp.(*Circle) 5245 fc.Result = res 5246 return ec.marshalOCircle2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCircle(ctx, field.Selections, res) 5247 } 5248 5249 func (ec *executionContext) fieldContext_ForcedResolver_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5250 fc = &graphql.FieldContext{ 5251 Object: "ForcedResolver", 5252 Field: field, 5253 IsMethod: true, 5254 IsResolver: true, 5255 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5256 switch field.Name { 5257 case "radius": 5258 return ec.fieldContext_Circle_radius(ctx, field) 5259 case "area": 5260 return ec.fieldContext_Circle_area(ctx, field) 5261 case "coordinates": 5262 return ec.fieldContext_Circle_coordinates(ctx, field) 5263 } 5264 return nil, fmt.Errorf("no field named %q was found under type Circle", field.Name) 5265 }, 5266 } 5267 return fc, nil 5268 } 5269 5270 func (ec *executionContext) _InnerObject_id(ctx context.Context, field graphql.CollectedField, obj *InnerObject) (ret graphql.Marshaler) { 5271 fc, err := ec.fieldContext_InnerObject_id(ctx, field) 5272 if err != nil { 5273 return graphql.Null 5274 } 5275 ctx = graphql.WithFieldContext(ctx, fc) 5276 defer func() { 5277 if r := recover(); r != nil { 5278 ec.Error(ctx, ec.Recover(ctx, r)) 5279 ret = graphql.Null 5280 } 5281 }() 5282 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5283 ctx = rctx // use context from middleware stack in children 5284 return obj.ID, nil 5285 }) 5286 5287 if resTmp == nil { 5288 if !graphql.HasFieldError(ctx, fc) { 5289 ec.Errorf(ctx, "must not be null") 5290 } 5291 return graphql.Null 5292 } 5293 res := resTmp.(int) 5294 fc.Result = res 5295 return ec.marshalNInt2int(ctx, field.Selections, res) 5296 } 5297 5298 func (ec *executionContext) fieldContext_InnerObject_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5299 fc = &graphql.FieldContext{ 5300 Object: "InnerObject", 5301 Field: field, 5302 IsMethod: false, 5303 IsResolver: false, 5304 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5305 return nil, errors.New("field of type Int does not have child fields") 5306 }, 5307 } 5308 return fc, nil 5309 } 5310 5311 func (ec *executionContext) _InvalidIdentifier_id(ctx context.Context, field graphql.CollectedField, obj *invalid_packagename.InvalidIdentifier) (ret graphql.Marshaler) { 5312 fc, err := ec.fieldContext_InvalidIdentifier_id(ctx, field) 5313 if err != nil { 5314 return graphql.Null 5315 } 5316 ctx = graphql.WithFieldContext(ctx, fc) 5317 defer func() { 5318 if r := recover(); r != nil { 5319 ec.Error(ctx, ec.Recover(ctx, r)) 5320 ret = graphql.Null 5321 } 5322 }() 5323 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5324 ctx = rctx // use context from middleware stack in children 5325 return obj.ID, nil 5326 }) 5327 5328 if resTmp == nil { 5329 if !graphql.HasFieldError(ctx, fc) { 5330 ec.Errorf(ctx, "must not be null") 5331 } 5332 return graphql.Null 5333 } 5334 res := resTmp.(int) 5335 fc.Result = res 5336 return ec.marshalNInt2int(ctx, field.Selections, res) 5337 } 5338 5339 func (ec *executionContext) fieldContext_InvalidIdentifier_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5340 fc = &graphql.FieldContext{ 5341 Object: "InvalidIdentifier", 5342 Field: field, 5343 IsMethod: false, 5344 IsResolver: false, 5345 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5346 return nil, errors.New("field of type Int does not have child fields") 5347 }, 5348 } 5349 return fc, nil 5350 } 5351 5352 func (ec *executionContext) _It_id(ctx context.Context, field graphql.CollectedField, obj *introspection1.It) (ret graphql.Marshaler) { 5353 fc, err := ec.fieldContext_It_id(ctx, field) 5354 if err != nil { 5355 return graphql.Null 5356 } 5357 ctx = graphql.WithFieldContext(ctx, fc) 5358 defer func() { 5359 if r := recover(); r != nil { 5360 ec.Error(ctx, ec.Recover(ctx, r)) 5361 ret = graphql.Null 5362 } 5363 }() 5364 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5365 ctx = rctx // use context from middleware stack in children 5366 return obj.ID, nil 5367 }) 5368 5369 if resTmp == nil { 5370 if !graphql.HasFieldError(ctx, fc) { 5371 ec.Errorf(ctx, "must not be null") 5372 } 5373 return graphql.Null 5374 } 5375 res := resTmp.(string) 5376 fc.Result = res 5377 return ec.marshalNID2string(ctx, field.Selections, res) 5378 } 5379 5380 func (ec *executionContext) fieldContext_It_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5381 fc = &graphql.FieldContext{ 5382 Object: "It", 5383 Field: field, 5384 IsMethod: false, 5385 IsResolver: false, 5386 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5387 return nil, errors.New("field of type ID does not have child fields") 5388 }, 5389 } 5390 return fc, nil 5391 } 5392 5393 func (ec *executionContext) _LoopA_b(ctx context.Context, field graphql.CollectedField, obj *LoopA) (ret graphql.Marshaler) { 5394 fc, err := ec.fieldContext_LoopA_b(ctx, field) 5395 if err != nil { 5396 return graphql.Null 5397 } 5398 ctx = graphql.WithFieldContext(ctx, fc) 5399 defer func() { 5400 if r := recover(); r != nil { 5401 ec.Error(ctx, ec.Recover(ctx, r)) 5402 ret = graphql.Null 5403 } 5404 }() 5405 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5406 ctx = rctx // use context from middleware stack in children 5407 return obj.B, nil 5408 }) 5409 5410 if resTmp == nil { 5411 if !graphql.HasFieldError(ctx, fc) { 5412 ec.Errorf(ctx, "must not be null") 5413 } 5414 return graphql.Null 5415 } 5416 res := resTmp.(*LoopB) 5417 fc.Result = res 5418 return ec.marshalNLoopB2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐLoopB(ctx, field.Selections, res) 5419 } 5420 5421 func (ec *executionContext) fieldContext_LoopA_b(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5422 fc = &graphql.FieldContext{ 5423 Object: "LoopA", 5424 Field: field, 5425 IsMethod: false, 5426 IsResolver: false, 5427 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5428 switch field.Name { 5429 case "a": 5430 return ec.fieldContext_LoopB_a(ctx, field) 5431 } 5432 return nil, fmt.Errorf("no field named %q was found under type LoopB", field.Name) 5433 }, 5434 } 5435 return fc, nil 5436 } 5437 5438 func (ec *executionContext) _LoopB_a(ctx context.Context, field graphql.CollectedField, obj *LoopB) (ret graphql.Marshaler) { 5439 fc, err := ec.fieldContext_LoopB_a(ctx, field) 5440 if err != nil { 5441 return graphql.Null 5442 } 5443 ctx = graphql.WithFieldContext(ctx, fc) 5444 defer func() { 5445 if r := recover(); r != nil { 5446 ec.Error(ctx, ec.Recover(ctx, r)) 5447 ret = graphql.Null 5448 } 5449 }() 5450 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5451 ctx = rctx // use context from middleware stack in children 5452 return obj.A, nil 5453 }) 5454 5455 if resTmp == nil { 5456 if !graphql.HasFieldError(ctx, fc) { 5457 ec.Errorf(ctx, "must not be null") 5458 } 5459 return graphql.Null 5460 } 5461 res := resTmp.(*LoopA) 5462 fc.Result = res 5463 return ec.marshalNLoopA2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐLoopA(ctx, field.Selections, res) 5464 } 5465 5466 func (ec *executionContext) fieldContext_LoopB_a(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5467 fc = &graphql.FieldContext{ 5468 Object: "LoopB", 5469 Field: field, 5470 IsMethod: false, 5471 IsResolver: false, 5472 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5473 switch field.Name { 5474 case "b": 5475 return ec.fieldContext_LoopA_b(ctx, field) 5476 } 5477 return nil, fmt.Errorf("no field named %q was found under type LoopA", field.Name) 5478 }, 5479 } 5480 return fc, nil 5481 } 5482 5483 func (ec *executionContext) _Map_id(ctx context.Context, field graphql.CollectedField, obj *Map) (ret graphql.Marshaler) { 5484 fc, err := ec.fieldContext_Map_id(ctx, field) 5485 if err != nil { 5486 return graphql.Null 5487 } 5488 ctx = graphql.WithFieldContext(ctx, fc) 5489 defer func() { 5490 if r := recover(); r != nil { 5491 ec.Error(ctx, ec.Recover(ctx, r)) 5492 ret = graphql.Null 5493 } 5494 }() 5495 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5496 ctx = rctx // use context from middleware stack in children 5497 return obj.ID, nil 5498 }) 5499 5500 if resTmp == nil { 5501 if !graphql.HasFieldError(ctx, fc) { 5502 ec.Errorf(ctx, "must not be null") 5503 } 5504 return graphql.Null 5505 } 5506 res := resTmp.(string) 5507 fc.Result = res 5508 return ec.marshalNID2string(ctx, field.Selections, res) 5509 } 5510 5511 func (ec *executionContext) fieldContext_Map_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5512 fc = &graphql.FieldContext{ 5513 Object: "Map", 5514 Field: field, 5515 IsMethod: false, 5516 IsResolver: false, 5517 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5518 return nil, errors.New("field of type ID does not have child fields") 5519 }, 5520 } 5521 return fc, nil 5522 } 5523 5524 func (ec *executionContext) _MapStringInterfaceType_a(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { 5525 fc, err := ec.fieldContext_MapStringInterfaceType_a(ctx, field) 5526 if err != nil { 5527 return graphql.Null 5528 } 5529 ctx = graphql.WithFieldContext(ctx, fc) 5530 defer func() { 5531 if r := recover(); r != nil { 5532 ec.Error(ctx, ec.Recover(ctx, r)) 5533 ret = graphql.Null 5534 } 5535 }() 5536 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5537 ctx = rctx // use context from middleware stack in children 5538 switch v := obj["a"].(type) { 5539 case *string: 5540 return v, nil 5541 case string: 5542 return &v, nil 5543 case nil: 5544 return (*string)(nil), nil 5545 default: 5546 return nil, fmt.Errorf("unexpected type %T for field %s", v, "a") 5547 } 5548 }) 5549 5550 if resTmp == nil { 5551 return graphql.Null 5552 } 5553 res := resTmp.(*string) 5554 fc.Result = res 5555 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5556 } 5557 5558 func (ec *executionContext) fieldContext_MapStringInterfaceType_a(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5559 fc = &graphql.FieldContext{ 5560 Object: "MapStringInterfaceType", 5561 Field: field, 5562 IsMethod: false, 5563 IsResolver: false, 5564 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5565 return nil, errors.New("field of type String does not have child fields") 5566 }, 5567 } 5568 return fc, nil 5569 } 5570 5571 func (ec *executionContext) _MapStringInterfaceType_b(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { 5572 fc, err := ec.fieldContext_MapStringInterfaceType_b(ctx, field) 5573 if err != nil { 5574 return graphql.Null 5575 } 5576 ctx = graphql.WithFieldContext(ctx, fc) 5577 defer func() { 5578 if r := recover(); r != nil { 5579 ec.Error(ctx, ec.Recover(ctx, r)) 5580 ret = graphql.Null 5581 } 5582 }() 5583 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5584 ctx = rctx // use context from middleware stack in children 5585 switch v := obj["b"].(type) { 5586 case *int: 5587 return v, nil 5588 case int: 5589 return &v, nil 5590 case nil: 5591 return (*int)(nil), nil 5592 default: 5593 return nil, fmt.Errorf("unexpected type %T for field %s", v, "b") 5594 } 5595 }) 5596 5597 if resTmp == nil { 5598 return graphql.Null 5599 } 5600 res := resTmp.(*int) 5601 fc.Result = res 5602 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 5603 } 5604 5605 func (ec *executionContext) fieldContext_MapStringInterfaceType_b(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5606 fc = &graphql.FieldContext{ 5607 Object: "MapStringInterfaceType", 5608 Field: field, 5609 IsMethod: false, 5610 IsResolver: false, 5611 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5612 return nil, errors.New("field of type Int does not have child fields") 5613 }, 5614 } 5615 return fc, nil 5616 } 5617 5618 func (ec *executionContext) _ModelMethods_resolverField(ctx context.Context, field graphql.CollectedField, obj *ModelMethods) (ret graphql.Marshaler) { 5619 fc, err := ec.fieldContext_ModelMethods_resolverField(ctx, field) 5620 if err != nil { 5621 return graphql.Null 5622 } 5623 ctx = graphql.WithFieldContext(ctx, fc) 5624 defer func() { 5625 if r := recover(); r != nil { 5626 ec.Error(ctx, ec.Recover(ctx, r)) 5627 ret = graphql.Null 5628 } 5629 }() 5630 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5631 ctx = rctx // use context from middleware stack in children 5632 return ec.resolvers.ModelMethods().ResolverField(rctx, obj) 5633 }) 5634 5635 if resTmp == nil { 5636 if !graphql.HasFieldError(ctx, fc) { 5637 ec.Errorf(ctx, "must not be null") 5638 } 5639 return graphql.Null 5640 } 5641 res := resTmp.(bool) 5642 fc.Result = res 5643 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 5644 } 5645 5646 func (ec *executionContext) fieldContext_ModelMethods_resolverField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5647 fc = &graphql.FieldContext{ 5648 Object: "ModelMethods", 5649 Field: field, 5650 IsMethod: true, 5651 IsResolver: true, 5652 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5653 return nil, errors.New("field of type Boolean does not have child fields") 5654 }, 5655 } 5656 return fc, nil 5657 } 5658 5659 func (ec *executionContext) _ModelMethods_noContext(ctx context.Context, field graphql.CollectedField, obj *ModelMethods) (ret graphql.Marshaler) { 5660 fc, err := ec.fieldContext_ModelMethods_noContext(ctx, field) 5661 if err != nil { 5662 return graphql.Null 5663 } 5664 ctx = graphql.WithFieldContext(ctx, fc) 5665 defer func() { 5666 if r := recover(); r != nil { 5667 ec.Error(ctx, ec.Recover(ctx, r)) 5668 ret = graphql.Null 5669 } 5670 }() 5671 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5672 ctx = rctx // use context from middleware stack in children 5673 return obj.NoContext(), nil 5674 }) 5675 5676 if resTmp == nil { 5677 if !graphql.HasFieldError(ctx, fc) { 5678 ec.Errorf(ctx, "must not be null") 5679 } 5680 return graphql.Null 5681 } 5682 res := resTmp.(bool) 5683 fc.Result = res 5684 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 5685 } 5686 5687 func (ec *executionContext) fieldContext_ModelMethods_noContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5688 fc = &graphql.FieldContext{ 5689 Object: "ModelMethods", 5690 Field: field, 5691 IsMethod: true, 5692 IsResolver: false, 5693 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5694 return nil, errors.New("field of type Boolean does not have child fields") 5695 }, 5696 } 5697 return fc, nil 5698 } 5699 5700 func (ec *executionContext) _ModelMethods_withContext(ctx context.Context, field graphql.CollectedField, obj *ModelMethods) (ret graphql.Marshaler) { 5701 fc, err := ec.fieldContext_ModelMethods_withContext(ctx, field) 5702 if err != nil { 5703 return graphql.Null 5704 } 5705 ctx = graphql.WithFieldContext(ctx, fc) 5706 defer func() { 5707 if r := recover(); r != nil { 5708 ec.Error(ctx, ec.Recover(ctx, r)) 5709 ret = graphql.Null 5710 } 5711 }() 5712 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5713 ctx = rctx // use context from middleware stack in children 5714 return obj.WithContext(ctx), nil 5715 }) 5716 5717 if resTmp == nil { 5718 if !graphql.HasFieldError(ctx, fc) { 5719 ec.Errorf(ctx, "must not be null") 5720 } 5721 return graphql.Null 5722 } 5723 res := resTmp.(bool) 5724 fc.Result = res 5725 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 5726 } 5727 5728 func (ec *executionContext) fieldContext_ModelMethods_withContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5729 fc = &graphql.FieldContext{ 5730 Object: "ModelMethods", 5731 Field: field, 5732 IsMethod: true, 5733 IsResolver: false, 5734 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5735 return nil, errors.New("field of type Boolean does not have child fields") 5736 }, 5737 } 5738 return fc, nil 5739 } 5740 5741 func (ec *executionContext) _Mutation_defaultInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5742 fc, err := ec.fieldContext_Mutation_defaultInput(ctx, field) 5743 if err != nil { 5744 return graphql.Null 5745 } 5746 ctx = graphql.WithFieldContext(ctx, fc) 5747 defer func() { 5748 if r := recover(); r != nil { 5749 ec.Error(ctx, ec.Recover(ctx, r)) 5750 ret = graphql.Null 5751 } 5752 }() 5753 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 5754 ctx = rctx // use context from middleware stack in children 5755 return ec.resolvers.Mutation().DefaultInput(rctx, fc.Args["input"].(DefaultInput)) 5756 }) 5757 5758 if resTmp == nil { 5759 if !graphql.HasFieldError(ctx, fc) { 5760 ec.Errorf(ctx, "must not be null") 5761 } 5762 return graphql.Null 5763 } 5764 res := resTmp.(*DefaultParametersMirror) 5765 fc.Result = res 5766 return ec.marshalNDefaultParametersMirror2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultParametersMirror(ctx, field.Selections, res) 5767 } 5768 5769 func (ec *executionContext) fieldContext_Mutation_defaultInput(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5770 fc = &graphql.FieldContext{ 5771 Object: "Mutation", 5772 Field: field, 5773 IsMethod: true, 5774 IsResolver: true, 5775 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5776 switch field.Name { 5777 case "falsyBoolean": 5778 return ec.fieldContext_DefaultParametersMirror_falsyBoolean(ctx, field) 5779 case "truthyBoolean": 5780 return ec.fieldContext_DefaultParametersMirror_truthyBoolean(ctx, field) 5781 } 5782 return nil, fmt.Errorf("no field named %q was found under type DefaultParametersMirror", field.Name) 5783 }, 5784 } 5785 defer func() { 5786 if r := recover(); r != nil { 5787 err = ec.Recover(ctx, r) 5788 ec.Error(ctx, err) 5789 } 5790 }() 5791 ctx = graphql.WithFieldContext(ctx, fc) 5792 if fc.Args, err = ec.field_Mutation_defaultInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5793 ec.Error(ctx, err) 5794 return 5795 } 5796 return fc, nil 5797 } 5798 5799 func (ec *executionContext) _Mutation_updateSomething(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5800 fc, err := ec.fieldContext_Mutation_updateSomething(ctx, field) 5801 if err != nil { 5802 return graphql.Null 5803 } 5804 ctx = graphql.WithFieldContext(ctx, fc) 5805 defer func() { 5806 if r := recover(); r != nil { 5807 ec.Error(ctx, ec.Recover(ctx, r)) 5808 ret = graphql.Null 5809 } 5810 }() 5811 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 5812 ctx = rctx // use context from middleware stack in children 5813 return ec.resolvers.Mutation().UpdateSomething(rctx, fc.Args["input"].(SpecialInput)) 5814 }) 5815 5816 if resTmp == nil { 5817 if !graphql.HasFieldError(ctx, fc) { 5818 ec.Errorf(ctx, "must not be null") 5819 } 5820 return graphql.Null 5821 } 5822 res := resTmp.(string) 5823 fc.Result = res 5824 return ec.marshalNString2string(ctx, field.Selections, res) 5825 } 5826 5827 func (ec *executionContext) fieldContext_Mutation_updateSomething(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5828 fc = &graphql.FieldContext{ 5829 Object: "Mutation", 5830 Field: field, 5831 IsMethod: true, 5832 IsResolver: true, 5833 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5834 return nil, errors.New("field of type String does not have child fields") 5835 }, 5836 } 5837 defer func() { 5838 if r := recover(); r != nil { 5839 err = ec.Recover(ctx, r) 5840 ec.Error(ctx, err) 5841 } 5842 }() 5843 ctx = graphql.WithFieldContext(ctx, fc) 5844 if fc.Args, err = ec.field_Mutation_updateSomething_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5845 ec.Error(ctx, err) 5846 return 5847 } 5848 return fc, nil 5849 } 5850 5851 func (ec *executionContext) _Mutation_updatePtrToPtr(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5852 fc, err := ec.fieldContext_Mutation_updatePtrToPtr(ctx, field) 5853 if err != nil { 5854 return graphql.Null 5855 } 5856 ctx = graphql.WithFieldContext(ctx, fc) 5857 defer func() { 5858 if r := recover(); r != nil { 5859 ec.Error(ctx, ec.Recover(ctx, r)) 5860 ret = graphql.Null 5861 } 5862 }() 5863 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 5864 ctx = rctx // use context from middleware stack in children 5865 return ec.resolvers.Mutation().UpdatePtrToPtr(rctx, fc.Args["input"].(UpdatePtrToPtrOuter)) 5866 }) 5867 5868 if resTmp == nil { 5869 if !graphql.HasFieldError(ctx, fc) { 5870 ec.Errorf(ctx, "must not be null") 5871 } 5872 return graphql.Null 5873 } 5874 res := resTmp.(*PtrToPtrOuter) 5875 fc.Result = res 5876 return ec.marshalNPtrToPtrOuter2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrOuter(ctx, field.Selections, res) 5877 } 5878 5879 func (ec *executionContext) fieldContext_Mutation_updatePtrToPtr(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5880 fc = &graphql.FieldContext{ 5881 Object: "Mutation", 5882 Field: field, 5883 IsMethod: true, 5884 IsResolver: true, 5885 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5886 switch field.Name { 5887 case "name": 5888 return ec.fieldContext_PtrToPtrOuter_name(ctx, field) 5889 case "inner": 5890 return ec.fieldContext_PtrToPtrOuter_inner(ctx, field) 5891 case "stupidInner": 5892 return ec.fieldContext_PtrToPtrOuter_stupidInner(ctx, field) 5893 } 5894 return nil, fmt.Errorf("no field named %q was found under type PtrToPtrOuter", field.Name) 5895 }, 5896 } 5897 defer func() { 5898 if r := recover(); r != nil { 5899 err = ec.Recover(ctx, r) 5900 ec.Error(ctx, err) 5901 } 5902 }() 5903 ctx = graphql.WithFieldContext(ctx, fc) 5904 if fc.Args, err = ec.field_Mutation_updatePtrToPtr_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5905 ec.Error(ctx, err) 5906 return 5907 } 5908 return fc, nil 5909 } 5910 5911 func (ec *executionContext) _ObjectDirectives_text(ctx context.Context, field graphql.CollectedField, obj *ObjectDirectives) (ret graphql.Marshaler) { 5912 fc, err := ec.fieldContext_ObjectDirectives_text(ctx, field) 5913 if err != nil { 5914 return graphql.Null 5915 } 5916 ctx = graphql.WithFieldContext(ctx, fc) 5917 defer func() { 5918 if r := recover(); r != nil { 5919 ec.Error(ctx, ec.Recover(ctx, r)) 5920 ret = graphql.Null 5921 } 5922 }() 5923 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5924 directive0 := func(rctx context.Context) (interface{}, error) { 5925 ctx = rctx // use context from middleware stack in children 5926 return obj.Text, nil 5927 } 5928 directive1 := func(ctx context.Context) (interface{}, error) { 5929 min, err := ec.unmarshalNInt2int(ctx, 0) 5930 if err != nil { 5931 return nil, err 5932 } 5933 max, err := ec.unmarshalOInt2ᚖint(ctx, 7) 5934 if err != nil { 5935 return nil, err 5936 } 5937 message, err := ec.unmarshalOString2ᚖstring(ctx, "not valid") 5938 if err != nil { 5939 return nil, err 5940 } 5941 if ec.directives.Length == nil { 5942 return nil, errors.New("directive length is not implemented") 5943 } 5944 return ec.directives.Length(ctx, obj, directive0, min, max, message) 5945 } 5946 5947 tmp, err := directive1(rctx) 5948 if err != nil { 5949 return nil, graphql.ErrorOnPath(ctx, err) 5950 } 5951 if tmp == nil { 5952 return nil, nil 5953 } 5954 if data, ok := tmp.(string); ok { 5955 return data, nil 5956 } 5957 return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 5958 }) 5959 5960 if resTmp == nil { 5961 if !graphql.HasFieldError(ctx, fc) { 5962 ec.Errorf(ctx, "must not be null") 5963 } 5964 return graphql.Null 5965 } 5966 res := resTmp.(string) 5967 fc.Result = res 5968 return ec.marshalNString2string(ctx, field.Selections, res) 5969 } 5970 5971 func (ec *executionContext) fieldContext_ObjectDirectives_text(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5972 fc = &graphql.FieldContext{ 5973 Object: "ObjectDirectives", 5974 Field: field, 5975 IsMethod: false, 5976 IsResolver: false, 5977 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5978 return nil, errors.New("field of type String does not have child fields") 5979 }, 5980 } 5981 return fc, nil 5982 } 5983 5984 func (ec *executionContext) _ObjectDirectives_nullableText(ctx context.Context, field graphql.CollectedField, obj *ObjectDirectives) (ret graphql.Marshaler) { 5985 fc, err := ec.fieldContext_ObjectDirectives_nullableText(ctx, field) 5986 if err != nil { 5987 return graphql.Null 5988 } 5989 ctx = graphql.WithFieldContext(ctx, fc) 5990 defer func() { 5991 if r := recover(); r != nil { 5992 ec.Error(ctx, ec.Recover(ctx, r)) 5993 ret = graphql.Null 5994 } 5995 }() 5996 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 5997 directive0 := func(rctx context.Context) (interface{}, error) { 5998 ctx = rctx // use context from middleware stack in children 5999 return obj.NullableText, nil 6000 } 6001 directive1 := func(ctx context.Context) (interface{}, error) { 6002 if ec.directives.ToNull == nil { 6003 return nil, errors.New("directive toNull is not implemented") 6004 } 6005 return ec.directives.ToNull(ctx, obj, directive0) 6006 } 6007 6008 tmp, err := directive1(rctx) 6009 if err != nil { 6010 return nil, graphql.ErrorOnPath(ctx, err) 6011 } 6012 if tmp == nil { 6013 return nil, nil 6014 } 6015 if data, ok := tmp.(*string); ok { 6016 return data, nil 6017 } 6018 return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 6019 }) 6020 6021 if resTmp == nil { 6022 return graphql.Null 6023 } 6024 res := resTmp.(*string) 6025 fc.Result = res 6026 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6027 } 6028 6029 func (ec *executionContext) fieldContext_ObjectDirectives_nullableText(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6030 fc = &graphql.FieldContext{ 6031 Object: "ObjectDirectives", 6032 Field: field, 6033 IsMethod: false, 6034 IsResolver: false, 6035 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6036 return nil, errors.New("field of type String does not have child fields") 6037 }, 6038 } 6039 return fc, nil 6040 } 6041 6042 func (ec *executionContext) _ObjectDirectives_order(ctx context.Context, field graphql.CollectedField, obj *ObjectDirectives) (ret graphql.Marshaler) { 6043 fc, err := ec.fieldContext_ObjectDirectives_order(ctx, field) 6044 if err != nil { 6045 return graphql.Null 6046 } 6047 ctx = graphql.WithFieldContext(ctx, fc) 6048 defer func() { 6049 if r := recover(); r != nil { 6050 ec.Error(ctx, ec.Recover(ctx, r)) 6051 ret = graphql.Null 6052 } 6053 }() 6054 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6055 ctx = rctx // use context from middleware stack in children 6056 return obj.Order, nil 6057 }) 6058 6059 if resTmp == nil { 6060 if !graphql.HasFieldError(ctx, fc) { 6061 ec.Errorf(ctx, "must not be null") 6062 } 6063 return graphql.Null 6064 } 6065 res := resTmp.([]string) 6066 fc.Result = res 6067 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 6068 } 6069 6070 func (ec *executionContext) fieldContext_ObjectDirectives_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6071 fc = &graphql.FieldContext{ 6072 Object: "ObjectDirectives", 6073 Field: field, 6074 IsMethod: false, 6075 IsResolver: false, 6076 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6077 return nil, errors.New("field of type String does not have child fields") 6078 }, 6079 } 6080 return fc, nil 6081 } 6082 6083 func (ec *executionContext) _ObjectDirectivesWithCustomGoModel_nullableText(ctx context.Context, field graphql.CollectedField, obj *ObjectDirectivesWithCustomGoModel) (ret graphql.Marshaler) { 6084 fc, err := ec.fieldContext_ObjectDirectivesWithCustomGoModel_nullableText(ctx, field) 6085 if err != nil { 6086 return graphql.Null 6087 } 6088 ctx = graphql.WithFieldContext(ctx, fc) 6089 defer func() { 6090 if r := recover(); r != nil { 6091 ec.Error(ctx, ec.Recover(ctx, r)) 6092 ret = graphql.Null 6093 } 6094 }() 6095 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6096 directive0 := func(rctx context.Context) (interface{}, error) { 6097 ctx = rctx // use context from middleware stack in children 6098 return obj.NullableText, nil 6099 } 6100 directive1 := func(ctx context.Context) (interface{}, error) { 6101 if ec.directives.ToNull == nil { 6102 return nil, errors.New("directive toNull is not implemented") 6103 } 6104 return ec.directives.ToNull(ctx, obj, directive0) 6105 } 6106 6107 tmp, err := directive1(rctx) 6108 if err != nil { 6109 return nil, graphql.ErrorOnPath(ctx, err) 6110 } 6111 if tmp == nil { 6112 return nil, nil 6113 } 6114 if data, ok := tmp.(string); ok { 6115 return data, nil 6116 } 6117 return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 6118 }) 6119 6120 if resTmp == nil { 6121 return graphql.Null 6122 } 6123 res := resTmp.(string) 6124 fc.Result = res 6125 return ec.marshalOString2string(ctx, field.Selections, res) 6126 } 6127 6128 func (ec *executionContext) fieldContext_ObjectDirectivesWithCustomGoModel_nullableText(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6129 fc = &graphql.FieldContext{ 6130 Object: "ObjectDirectivesWithCustomGoModel", 6131 Field: field, 6132 IsMethod: false, 6133 IsResolver: false, 6134 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6135 return nil, errors.New("field of type String does not have child fields") 6136 }, 6137 } 6138 return fc, nil 6139 } 6140 6141 func (ec *executionContext) _OuterObject_inner(ctx context.Context, field graphql.CollectedField, obj *OuterObject) (ret graphql.Marshaler) { 6142 fc, err := ec.fieldContext_OuterObject_inner(ctx, field) 6143 if err != nil { 6144 return graphql.Null 6145 } 6146 ctx = graphql.WithFieldContext(ctx, fc) 6147 defer func() { 6148 if r := recover(); r != nil { 6149 ec.Error(ctx, ec.Recover(ctx, r)) 6150 ret = graphql.Null 6151 } 6152 }() 6153 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6154 ctx = rctx // use context from middleware stack in children 6155 return obj.Inner, nil 6156 }) 6157 6158 if resTmp == nil { 6159 if !graphql.HasFieldError(ctx, fc) { 6160 ec.Errorf(ctx, "must not be null") 6161 } 6162 return graphql.Null 6163 } 6164 res := resTmp.(*InnerObject) 6165 fc.Result = res 6166 return ec.marshalNInnerObject2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerObject(ctx, field.Selections, res) 6167 } 6168 6169 func (ec *executionContext) fieldContext_OuterObject_inner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6170 fc = &graphql.FieldContext{ 6171 Object: "OuterObject", 6172 Field: field, 6173 IsMethod: false, 6174 IsResolver: false, 6175 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6176 switch field.Name { 6177 case "id": 6178 return ec.fieldContext_InnerObject_id(ctx, field) 6179 } 6180 return nil, fmt.Errorf("no field named %q was found under type InnerObject", field.Name) 6181 }, 6182 } 6183 return fc, nil 6184 } 6185 6186 func (ec *executionContext) _OverlappingFields_oneFoo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6187 fc, err := ec.fieldContext_OverlappingFields_oneFoo(ctx, field) 6188 if err != nil { 6189 return graphql.Null 6190 } 6191 ctx = graphql.WithFieldContext(ctx, fc) 6192 defer func() { 6193 if r := recover(); r != nil { 6194 ec.Error(ctx, ec.Recover(ctx, r)) 6195 ret = graphql.Null 6196 } 6197 }() 6198 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6199 ctx = rctx // use context from middleware stack in children 6200 return obj.Foo, nil 6201 }) 6202 6203 if resTmp == nil { 6204 if !graphql.HasFieldError(ctx, fc) { 6205 ec.Errorf(ctx, "must not be null") 6206 } 6207 return graphql.Null 6208 } 6209 res := resTmp.(int) 6210 fc.Result = res 6211 return ec.marshalNInt2int(ctx, field.Selections, res) 6212 } 6213 6214 func (ec *executionContext) fieldContext_OverlappingFields_oneFoo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6215 fc = &graphql.FieldContext{ 6216 Object: "OverlappingFields", 6217 Field: field, 6218 IsMethod: false, 6219 IsResolver: false, 6220 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6221 return nil, errors.New("field of type Int does not have child fields") 6222 }, 6223 } 6224 return fc, nil 6225 } 6226 6227 func (ec *executionContext) _OverlappingFields_twoFoo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6228 fc, err := ec.fieldContext_OverlappingFields_twoFoo(ctx, field) 6229 if err != nil { 6230 return graphql.Null 6231 } 6232 ctx = graphql.WithFieldContext(ctx, fc) 6233 defer func() { 6234 if r := recover(); r != nil { 6235 ec.Error(ctx, ec.Recover(ctx, r)) 6236 ret = graphql.Null 6237 } 6238 }() 6239 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6240 ctx = rctx // use context from middleware stack in children 6241 return obj.Foo, nil 6242 }) 6243 6244 if resTmp == nil { 6245 if !graphql.HasFieldError(ctx, fc) { 6246 ec.Errorf(ctx, "must not be null") 6247 } 6248 return graphql.Null 6249 } 6250 res := resTmp.(int) 6251 fc.Result = res 6252 return ec.marshalNInt2int(ctx, field.Selections, res) 6253 } 6254 6255 func (ec *executionContext) fieldContext_OverlappingFields_twoFoo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6256 fc = &graphql.FieldContext{ 6257 Object: "OverlappingFields", 6258 Field: field, 6259 IsMethod: false, 6260 IsResolver: false, 6261 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6262 return nil, errors.New("field of type Int does not have child fields") 6263 }, 6264 } 6265 return fc, nil 6266 } 6267 6268 func (ec *executionContext) _OverlappingFields_oldFoo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6269 fc, err := ec.fieldContext_OverlappingFields_oldFoo(ctx, field) 6270 if err != nil { 6271 return graphql.Null 6272 } 6273 ctx = graphql.WithFieldContext(ctx, fc) 6274 defer func() { 6275 if r := recover(); r != nil { 6276 ec.Error(ctx, ec.Recover(ctx, r)) 6277 ret = graphql.Null 6278 } 6279 }() 6280 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6281 ctx = rctx // use context from middleware stack in children 6282 return ec.resolvers.OverlappingFields().OldFoo(rctx, obj) 6283 }) 6284 6285 if resTmp == nil { 6286 if !graphql.HasFieldError(ctx, fc) { 6287 ec.Errorf(ctx, "must not be null") 6288 } 6289 return graphql.Null 6290 } 6291 res := resTmp.(int) 6292 fc.Result = res 6293 return ec.marshalNInt2int(ctx, field.Selections, res) 6294 } 6295 6296 func (ec *executionContext) fieldContext_OverlappingFields_oldFoo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6297 fc = &graphql.FieldContext{ 6298 Object: "OverlappingFields", 6299 Field: field, 6300 IsMethod: true, 6301 IsResolver: true, 6302 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6303 return nil, errors.New("field of type Int does not have child fields") 6304 }, 6305 } 6306 return fc, nil 6307 } 6308 6309 func (ec *executionContext) _OverlappingFields_newFoo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6310 fc, err := ec.fieldContext_OverlappingFields_newFoo(ctx, field) 6311 if err != nil { 6312 return graphql.Null 6313 } 6314 ctx = graphql.WithFieldContext(ctx, fc) 6315 defer func() { 6316 if r := recover(); r != nil { 6317 ec.Error(ctx, ec.Recover(ctx, r)) 6318 ret = graphql.Null 6319 } 6320 }() 6321 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6322 ctx = rctx // use context from middleware stack in children 6323 return obj.NewFoo, nil 6324 }) 6325 6326 if resTmp == nil { 6327 if !graphql.HasFieldError(ctx, fc) { 6328 ec.Errorf(ctx, "must not be null") 6329 } 6330 return graphql.Null 6331 } 6332 res := resTmp.(int) 6333 fc.Result = res 6334 return ec.marshalNInt2int(ctx, field.Selections, res) 6335 } 6336 6337 func (ec *executionContext) fieldContext_OverlappingFields_newFoo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6338 fc = &graphql.FieldContext{ 6339 Object: "OverlappingFields", 6340 Field: field, 6341 IsMethod: false, 6342 IsResolver: false, 6343 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6344 return nil, errors.New("field of type Int does not have child fields") 6345 }, 6346 } 6347 return fc, nil 6348 } 6349 6350 func (ec *executionContext) _OverlappingFields_new_foo(ctx context.Context, field graphql.CollectedField, obj *OverlappingFields) (ret graphql.Marshaler) { 6351 fc, err := ec.fieldContext_OverlappingFields_new_foo(ctx, field) 6352 if err != nil { 6353 return graphql.Null 6354 } 6355 ctx = graphql.WithFieldContext(ctx, fc) 6356 defer func() { 6357 if r := recover(); r != nil { 6358 ec.Error(ctx, ec.Recover(ctx, r)) 6359 ret = graphql.Null 6360 } 6361 }() 6362 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6363 ctx = rctx // use context from middleware stack in children 6364 return obj.NewFoo, nil 6365 }) 6366 6367 if resTmp == nil { 6368 if !graphql.HasFieldError(ctx, fc) { 6369 ec.Errorf(ctx, "must not be null") 6370 } 6371 return graphql.Null 6372 } 6373 res := resTmp.(int) 6374 fc.Result = res 6375 return ec.marshalNInt2int(ctx, field.Selections, res) 6376 } 6377 6378 func (ec *executionContext) fieldContext_OverlappingFields_new_foo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6379 fc = &graphql.FieldContext{ 6380 Object: "OverlappingFields", 6381 Field: field, 6382 IsMethod: false, 6383 IsResolver: false, 6384 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6385 return nil, errors.New("field of type Int does not have child fields") 6386 }, 6387 } 6388 return fc, nil 6389 } 6390 6391 func (ec *executionContext) _Panics_fieldScalarMarshal(ctx context.Context, field graphql.CollectedField, obj *Panics) (ret graphql.Marshaler) { 6392 fc, err := ec.fieldContext_Panics_fieldScalarMarshal(ctx, field) 6393 if err != nil { 6394 return graphql.Null 6395 } 6396 ctx = graphql.WithFieldContext(ctx, fc) 6397 defer func() { 6398 if r := recover(); r != nil { 6399 ec.Error(ctx, ec.Recover(ctx, r)) 6400 ret = graphql.Null 6401 } 6402 }() 6403 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6404 ctx = rctx // use context from middleware stack in children 6405 return ec.resolvers.Panics().FieldScalarMarshal(rctx, obj) 6406 }) 6407 6408 if resTmp == nil { 6409 if !graphql.HasFieldError(ctx, fc) { 6410 ec.Errorf(ctx, "must not be null") 6411 } 6412 return graphql.Null 6413 } 6414 res := resTmp.([]MarshalPanic) 6415 fc.Result = res 6416 return ec.marshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx, field.Selections, res) 6417 } 6418 6419 func (ec *executionContext) fieldContext_Panics_fieldScalarMarshal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6420 fc = &graphql.FieldContext{ 6421 Object: "Panics", 6422 Field: field, 6423 IsMethod: true, 6424 IsResolver: true, 6425 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6426 return nil, errors.New("field of type MarshalPanic does not have child fields") 6427 }, 6428 } 6429 return fc, nil 6430 } 6431 6432 func (ec *executionContext) _Panics_fieldFuncMarshal(ctx context.Context, field graphql.CollectedField, obj *Panics) (ret graphql.Marshaler) { 6433 fc, err := ec.fieldContext_Panics_fieldFuncMarshal(ctx, field) 6434 if err != nil { 6435 return graphql.Null 6436 } 6437 ctx = graphql.WithFieldContext(ctx, fc) 6438 defer func() { 6439 if r := recover(); r != nil { 6440 ec.Error(ctx, ec.Recover(ctx, r)) 6441 ret = graphql.Null 6442 } 6443 }() 6444 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6445 ctx = rctx // use context from middleware stack in children 6446 return obj.FieldFuncMarshal(ctx, fc.Args["u"].([]MarshalPanic)), nil 6447 }) 6448 6449 if resTmp == nil { 6450 if !graphql.HasFieldError(ctx, fc) { 6451 ec.Errorf(ctx, "must not be null") 6452 } 6453 return graphql.Null 6454 } 6455 res := resTmp.([]MarshalPanic) 6456 fc.Result = res 6457 return ec.marshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx, field.Selections, res) 6458 } 6459 6460 func (ec *executionContext) fieldContext_Panics_fieldFuncMarshal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6461 fc = &graphql.FieldContext{ 6462 Object: "Panics", 6463 Field: field, 6464 IsMethod: true, 6465 IsResolver: false, 6466 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6467 return nil, errors.New("field of type MarshalPanic does not have child fields") 6468 }, 6469 } 6470 defer func() { 6471 if r := recover(); r != nil { 6472 err = ec.Recover(ctx, r) 6473 ec.Error(ctx, err) 6474 } 6475 }() 6476 ctx = graphql.WithFieldContext(ctx, fc) 6477 if fc.Args, err = ec.field_Panics_fieldFuncMarshal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6478 ec.Error(ctx, err) 6479 return 6480 } 6481 return fc, nil 6482 } 6483 6484 func (ec *executionContext) _Panics_argUnmarshal(ctx context.Context, field graphql.CollectedField, obj *Panics) (ret graphql.Marshaler) { 6485 fc, err := ec.fieldContext_Panics_argUnmarshal(ctx, field) 6486 if err != nil { 6487 return graphql.Null 6488 } 6489 ctx = graphql.WithFieldContext(ctx, fc) 6490 defer func() { 6491 if r := recover(); r != nil { 6492 ec.Error(ctx, ec.Recover(ctx, r)) 6493 ret = graphql.Null 6494 } 6495 }() 6496 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6497 ctx = rctx // use context from middleware stack in children 6498 return ec.resolvers.Panics().ArgUnmarshal(rctx, obj, fc.Args["u"].([]MarshalPanic)) 6499 }) 6500 6501 if resTmp == nil { 6502 if !graphql.HasFieldError(ctx, fc) { 6503 ec.Errorf(ctx, "must not be null") 6504 } 6505 return graphql.Null 6506 } 6507 res := resTmp.(bool) 6508 fc.Result = res 6509 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 6510 } 6511 6512 func (ec *executionContext) fieldContext_Panics_argUnmarshal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6513 fc = &graphql.FieldContext{ 6514 Object: "Panics", 6515 Field: field, 6516 IsMethod: true, 6517 IsResolver: true, 6518 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6519 return nil, errors.New("field of type Boolean does not have child fields") 6520 }, 6521 } 6522 defer func() { 6523 if r := recover(); r != nil { 6524 err = ec.Recover(ctx, r) 6525 ec.Error(ctx, err) 6526 } 6527 }() 6528 ctx = graphql.WithFieldContext(ctx, fc) 6529 if fc.Args, err = ec.field_Panics_argUnmarshal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6530 ec.Error(ctx, err) 6531 return 6532 } 6533 return fc, nil 6534 } 6535 6536 func (ec *executionContext) _Pet_id(ctx context.Context, field graphql.CollectedField, obj *Pet) (ret graphql.Marshaler) { 6537 fc, err := ec.fieldContext_Pet_id(ctx, field) 6538 if err != nil { 6539 return graphql.Null 6540 } 6541 ctx = graphql.WithFieldContext(ctx, fc) 6542 defer func() { 6543 if r := recover(); r != nil { 6544 ec.Error(ctx, ec.Recover(ctx, r)) 6545 ret = graphql.Null 6546 } 6547 }() 6548 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6549 ctx = rctx // use context from middleware stack in children 6550 return obj.ID, nil 6551 }) 6552 6553 if resTmp == nil { 6554 if !graphql.HasFieldError(ctx, fc) { 6555 ec.Errorf(ctx, "must not be null") 6556 } 6557 return graphql.Null 6558 } 6559 res := resTmp.(int) 6560 fc.Result = res 6561 return ec.marshalNInt2int(ctx, field.Selections, res) 6562 } 6563 6564 func (ec *executionContext) fieldContext_Pet_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6565 fc = &graphql.FieldContext{ 6566 Object: "Pet", 6567 Field: field, 6568 IsMethod: false, 6569 IsResolver: false, 6570 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6571 return nil, errors.New("field of type Int does not have child fields") 6572 }, 6573 } 6574 return fc, nil 6575 } 6576 6577 func (ec *executionContext) _Pet_friends(ctx context.Context, field graphql.CollectedField, obj *Pet) (ret graphql.Marshaler) { 6578 fc, err := ec.fieldContext_Pet_friends(ctx, field) 6579 if err != nil { 6580 return graphql.Null 6581 } 6582 ctx = graphql.WithFieldContext(ctx, fc) 6583 defer func() { 6584 if r := recover(); r != nil { 6585 ec.Error(ctx, ec.Recover(ctx, r)) 6586 ret = graphql.Null 6587 } 6588 }() 6589 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6590 ctx = rctx // use context from middleware stack in children 6591 return ec.resolvers.Pet().Friends(rctx, obj, fc.Args["limit"].(*int)) 6592 }) 6593 6594 if resTmp == nil { 6595 return graphql.Null 6596 } 6597 res := resTmp.([]*Pet) 6598 fc.Result = res 6599 return ec.marshalOPet2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPetᚄ(ctx, field.Selections, res) 6600 } 6601 6602 func (ec *executionContext) fieldContext_Pet_friends(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6603 fc = &graphql.FieldContext{ 6604 Object: "Pet", 6605 Field: field, 6606 IsMethod: true, 6607 IsResolver: true, 6608 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6609 switch field.Name { 6610 case "id": 6611 return ec.fieldContext_Pet_id(ctx, field) 6612 case "friends": 6613 return ec.fieldContext_Pet_friends(ctx, field) 6614 } 6615 return nil, fmt.Errorf("no field named %q was found under type Pet", field.Name) 6616 }, 6617 } 6618 defer func() { 6619 if r := recover(); r != nil { 6620 err = ec.Recover(ctx, r) 6621 ec.Error(ctx, err) 6622 } 6623 }() 6624 ctx = graphql.WithFieldContext(ctx, fc) 6625 if fc.Args, err = ec.field_Pet_friends_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6626 ec.Error(ctx, err) 6627 return 6628 } 6629 return fc, nil 6630 } 6631 6632 func (ec *executionContext) _Primitive_value(ctx context.Context, field graphql.CollectedField, obj *Primitive) (ret graphql.Marshaler) { 6633 fc, err := ec.fieldContext_Primitive_value(ctx, field) 6634 if err != nil { 6635 return graphql.Null 6636 } 6637 ctx = graphql.WithFieldContext(ctx, fc) 6638 defer func() { 6639 if r := recover(); r != nil { 6640 ec.Error(ctx, ec.Recover(ctx, r)) 6641 ret = graphql.Null 6642 } 6643 }() 6644 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6645 ctx = rctx // use context from middleware stack in children 6646 return ec.resolvers.Primitive().Value(rctx, obj) 6647 }) 6648 6649 if resTmp == nil { 6650 if !graphql.HasFieldError(ctx, fc) { 6651 ec.Errorf(ctx, "must not be null") 6652 } 6653 return graphql.Null 6654 } 6655 res := resTmp.(int) 6656 fc.Result = res 6657 return ec.marshalNInt2int(ctx, field.Selections, res) 6658 } 6659 6660 func (ec *executionContext) fieldContext_Primitive_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6661 fc = &graphql.FieldContext{ 6662 Object: "Primitive", 6663 Field: field, 6664 IsMethod: true, 6665 IsResolver: true, 6666 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6667 return nil, errors.New("field of type Int does not have child fields") 6668 }, 6669 } 6670 return fc, nil 6671 } 6672 6673 func (ec *executionContext) _Primitive_squared(ctx context.Context, field graphql.CollectedField, obj *Primitive) (ret graphql.Marshaler) { 6674 fc, err := ec.fieldContext_Primitive_squared(ctx, field) 6675 if err != nil { 6676 return graphql.Null 6677 } 6678 ctx = graphql.WithFieldContext(ctx, fc) 6679 defer func() { 6680 if r := recover(); r != nil { 6681 ec.Error(ctx, ec.Recover(ctx, r)) 6682 ret = graphql.Null 6683 } 6684 }() 6685 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6686 ctx = rctx // use context from middleware stack in children 6687 return obj.Squared(), nil 6688 }) 6689 6690 if resTmp == nil { 6691 if !graphql.HasFieldError(ctx, fc) { 6692 ec.Errorf(ctx, "must not be null") 6693 } 6694 return graphql.Null 6695 } 6696 res := resTmp.(int) 6697 fc.Result = res 6698 return ec.marshalNInt2int(ctx, field.Selections, res) 6699 } 6700 6701 func (ec *executionContext) fieldContext_Primitive_squared(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6702 fc = &graphql.FieldContext{ 6703 Object: "Primitive", 6704 Field: field, 6705 IsMethod: true, 6706 IsResolver: false, 6707 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6708 return nil, errors.New("field of type Int does not have child fields") 6709 }, 6710 } 6711 return fc, nil 6712 } 6713 6714 func (ec *executionContext) _PrimitiveString_value(ctx context.Context, field graphql.CollectedField, obj *PrimitiveString) (ret graphql.Marshaler) { 6715 fc, err := ec.fieldContext_PrimitiveString_value(ctx, field) 6716 if err != nil { 6717 return graphql.Null 6718 } 6719 ctx = graphql.WithFieldContext(ctx, fc) 6720 defer func() { 6721 if r := recover(); r != nil { 6722 ec.Error(ctx, ec.Recover(ctx, r)) 6723 ret = graphql.Null 6724 } 6725 }() 6726 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6727 ctx = rctx // use context from middleware stack in children 6728 return ec.resolvers.PrimitiveString().Value(rctx, obj) 6729 }) 6730 6731 if resTmp == nil { 6732 if !graphql.HasFieldError(ctx, fc) { 6733 ec.Errorf(ctx, "must not be null") 6734 } 6735 return graphql.Null 6736 } 6737 res := resTmp.(string) 6738 fc.Result = res 6739 return ec.marshalNString2string(ctx, field.Selections, res) 6740 } 6741 6742 func (ec *executionContext) fieldContext_PrimitiveString_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6743 fc = &graphql.FieldContext{ 6744 Object: "PrimitiveString", 6745 Field: field, 6746 IsMethod: true, 6747 IsResolver: true, 6748 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6749 return nil, errors.New("field of type String does not have child fields") 6750 }, 6751 } 6752 return fc, nil 6753 } 6754 6755 func (ec *executionContext) _PrimitiveString_doubled(ctx context.Context, field graphql.CollectedField, obj *PrimitiveString) (ret graphql.Marshaler) { 6756 fc, err := ec.fieldContext_PrimitiveString_doubled(ctx, field) 6757 if err != nil { 6758 return graphql.Null 6759 } 6760 ctx = graphql.WithFieldContext(ctx, fc) 6761 defer func() { 6762 if r := recover(); r != nil { 6763 ec.Error(ctx, ec.Recover(ctx, r)) 6764 ret = graphql.Null 6765 } 6766 }() 6767 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6768 ctx = rctx // use context from middleware stack in children 6769 return obj.Doubled(), nil 6770 }) 6771 6772 if resTmp == nil { 6773 if !graphql.HasFieldError(ctx, fc) { 6774 ec.Errorf(ctx, "must not be null") 6775 } 6776 return graphql.Null 6777 } 6778 res := resTmp.(string) 6779 fc.Result = res 6780 return ec.marshalNString2string(ctx, field.Selections, res) 6781 } 6782 6783 func (ec *executionContext) fieldContext_PrimitiveString_doubled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6784 fc = &graphql.FieldContext{ 6785 Object: "PrimitiveString", 6786 Field: field, 6787 IsMethod: true, 6788 IsResolver: false, 6789 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6790 return nil, errors.New("field of type String does not have child fields") 6791 }, 6792 } 6793 return fc, nil 6794 } 6795 6796 func (ec *executionContext) _PrimitiveString_len(ctx context.Context, field graphql.CollectedField, obj *PrimitiveString) (ret graphql.Marshaler) { 6797 fc, err := ec.fieldContext_PrimitiveString_len(ctx, field) 6798 if err != nil { 6799 return graphql.Null 6800 } 6801 ctx = graphql.WithFieldContext(ctx, fc) 6802 defer func() { 6803 if r := recover(); r != nil { 6804 ec.Error(ctx, ec.Recover(ctx, r)) 6805 ret = graphql.Null 6806 } 6807 }() 6808 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6809 ctx = rctx // use context from middleware stack in children 6810 return ec.resolvers.PrimitiveString().Len(rctx, obj) 6811 }) 6812 6813 if resTmp == nil { 6814 if !graphql.HasFieldError(ctx, fc) { 6815 ec.Errorf(ctx, "must not be null") 6816 } 6817 return graphql.Null 6818 } 6819 res := resTmp.(int) 6820 fc.Result = res 6821 return ec.marshalNInt2int(ctx, field.Selections, res) 6822 } 6823 6824 func (ec *executionContext) fieldContext_PrimitiveString_len(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6825 fc = &graphql.FieldContext{ 6826 Object: "PrimitiveString", 6827 Field: field, 6828 IsMethod: true, 6829 IsResolver: true, 6830 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6831 return nil, errors.New("field of type Int does not have child fields") 6832 }, 6833 } 6834 return fc, nil 6835 } 6836 6837 func (ec *executionContext) _PtrToPtrInner_key(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrInner) (ret graphql.Marshaler) { 6838 fc, err := ec.fieldContext_PtrToPtrInner_key(ctx, field) 6839 if err != nil { 6840 return graphql.Null 6841 } 6842 ctx = graphql.WithFieldContext(ctx, fc) 6843 defer func() { 6844 if r := recover(); r != nil { 6845 ec.Error(ctx, ec.Recover(ctx, r)) 6846 ret = graphql.Null 6847 } 6848 }() 6849 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6850 ctx = rctx // use context from middleware stack in children 6851 return obj.Key, nil 6852 }) 6853 6854 if resTmp == nil { 6855 if !graphql.HasFieldError(ctx, fc) { 6856 ec.Errorf(ctx, "must not be null") 6857 } 6858 return graphql.Null 6859 } 6860 res := resTmp.(string) 6861 fc.Result = res 6862 return ec.marshalNString2string(ctx, field.Selections, res) 6863 } 6864 6865 func (ec *executionContext) fieldContext_PtrToPtrInner_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6866 fc = &graphql.FieldContext{ 6867 Object: "PtrToPtrInner", 6868 Field: field, 6869 IsMethod: false, 6870 IsResolver: false, 6871 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6872 return nil, errors.New("field of type String does not have child fields") 6873 }, 6874 } 6875 return fc, nil 6876 } 6877 6878 func (ec *executionContext) _PtrToPtrInner_value(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrInner) (ret graphql.Marshaler) { 6879 fc, err := ec.fieldContext_PtrToPtrInner_value(ctx, field) 6880 if err != nil { 6881 return graphql.Null 6882 } 6883 ctx = graphql.WithFieldContext(ctx, fc) 6884 defer func() { 6885 if r := recover(); r != nil { 6886 ec.Error(ctx, ec.Recover(ctx, r)) 6887 ret = graphql.Null 6888 } 6889 }() 6890 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6891 ctx = rctx // use context from middleware stack in children 6892 return obj.Value, nil 6893 }) 6894 6895 if resTmp == nil { 6896 if !graphql.HasFieldError(ctx, fc) { 6897 ec.Errorf(ctx, "must not be null") 6898 } 6899 return graphql.Null 6900 } 6901 res := resTmp.(string) 6902 fc.Result = res 6903 return ec.marshalNString2string(ctx, field.Selections, res) 6904 } 6905 6906 func (ec *executionContext) fieldContext_PtrToPtrInner_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6907 fc = &graphql.FieldContext{ 6908 Object: "PtrToPtrInner", 6909 Field: field, 6910 IsMethod: false, 6911 IsResolver: false, 6912 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6913 return nil, errors.New("field of type String does not have child fields") 6914 }, 6915 } 6916 return fc, nil 6917 } 6918 6919 func (ec *executionContext) _PtrToPtrOuter_name(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) { 6920 fc, err := ec.fieldContext_PtrToPtrOuter_name(ctx, field) 6921 if err != nil { 6922 return graphql.Null 6923 } 6924 ctx = graphql.WithFieldContext(ctx, fc) 6925 defer func() { 6926 if r := recover(); r != nil { 6927 ec.Error(ctx, ec.Recover(ctx, r)) 6928 ret = graphql.Null 6929 } 6930 }() 6931 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6932 ctx = rctx // use context from middleware stack in children 6933 return obj.Name, nil 6934 }) 6935 6936 if resTmp == nil { 6937 if !graphql.HasFieldError(ctx, fc) { 6938 ec.Errorf(ctx, "must not be null") 6939 } 6940 return graphql.Null 6941 } 6942 res := resTmp.(string) 6943 fc.Result = res 6944 return ec.marshalNString2string(ctx, field.Selections, res) 6945 } 6946 6947 func (ec *executionContext) fieldContext_PtrToPtrOuter_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6948 fc = &graphql.FieldContext{ 6949 Object: "PtrToPtrOuter", 6950 Field: field, 6951 IsMethod: false, 6952 IsResolver: false, 6953 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6954 return nil, errors.New("field of type String does not have child fields") 6955 }, 6956 } 6957 return fc, nil 6958 } 6959 6960 func (ec *executionContext) _PtrToPtrOuter_inner(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) { 6961 fc, err := ec.fieldContext_PtrToPtrOuter_inner(ctx, field) 6962 if err != nil { 6963 return graphql.Null 6964 } 6965 ctx = graphql.WithFieldContext(ctx, fc) 6966 defer func() { 6967 if r := recover(); r != nil { 6968 ec.Error(ctx, ec.Recover(ctx, r)) 6969 ret = graphql.Null 6970 } 6971 }() 6972 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 6973 ctx = rctx // use context from middleware stack in children 6974 return obj.Inner, nil 6975 }) 6976 6977 if resTmp == nil { 6978 return graphql.Null 6979 } 6980 res := resTmp.(*PtrToPtrInner) 6981 fc.Result = res 6982 return ec.marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, field.Selections, res) 6983 } 6984 6985 func (ec *executionContext) fieldContext_PtrToPtrOuter_inner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6986 fc = &graphql.FieldContext{ 6987 Object: "PtrToPtrOuter", 6988 Field: field, 6989 IsMethod: false, 6990 IsResolver: false, 6991 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6992 switch field.Name { 6993 case "key": 6994 return ec.fieldContext_PtrToPtrInner_key(ctx, field) 6995 case "value": 6996 return ec.fieldContext_PtrToPtrInner_value(ctx, field) 6997 } 6998 return nil, fmt.Errorf("no field named %q was found under type PtrToPtrInner", field.Name) 6999 }, 7000 } 7001 return fc, nil 7002 } 7003 7004 func (ec *executionContext) _PtrToPtrOuter_stupidInner(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) { 7005 fc, err := ec.fieldContext_PtrToPtrOuter_stupidInner(ctx, field) 7006 if err != nil { 7007 return graphql.Null 7008 } 7009 ctx = graphql.WithFieldContext(ctx, fc) 7010 defer func() { 7011 if r := recover(); r != nil { 7012 ec.Error(ctx, ec.Recover(ctx, r)) 7013 ret = graphql.Null 7014 } 7015 }() 7016 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7017 ctx = rctx // use context from middleware stack in children 7018 return obj.StupidInner, nil 7019 }) 7020 7021 if resTmp == nil { 7022 return graphql.Null 7023 } 7024 res := resTmp.(*******PtrToPtrInner) 7025 fc.Result = res 7026 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, field.Selections, res) 7027 } 7028 7029 func (ec *executionContext) fieldContext_PtrToPtrOuter_stupidInner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7030 fc = &graphql.FieldContext{ 7031 Object: "PtrToPtrOuter", 7032 Field: field, 7033 IsMethod: false, 7034 IsResolver: false, 7035 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7036 switch field.Name { 7037 case "key": 7038 return ec.fieldContext_PtrToPtrInner_key(ctx, field) 7039 case "value": 7040 return ec.fieldContext_PtrToPtrInner_value(ctx, field) 7041 } 7042 return nil, fmt.Errorf("no field named %q was found under type PtrToPtrInner", field.Name) 7043 }, 7044 } 7045 return fc, nil 7046 } 7047 7048 func (ec *executionContext) _PtrToSliceContainer_ptrToSlice(ctx context.Context, field graphql.CollectedField, obj *PtrToSliceContainer) (ret graphql.Marshaler) { 7049 fc, err := ec.fieldContext_PtrToSliceContainer_ptrToSlice(ctx, field) 7050 if err != nil { 7051 return graphql.Null 7052 } 7053 ctx = graphql.WithFieldContext(ctx, fc) 7054 defer func() { 7055 if r := recover(); r != nil { 7056 ec.Error(ctx, ec.Recover(ctx, r)) 7057 ret = graphql.Null 7058 } 7059 }() 7060 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 7061 ctx = rctx // use context from middleware stack in children 7062 return obj.PtrToSlice, nil 7063 }) 7064 7065 if resTmp == nil { 7066 return graphql.Null 7067 } 7068 res := resTmp.(*[]string) 7069 fc.Result = res 7070 return ec.marshalOString2ᚖᚕstringᚄ(ctx, field.Selections, res) 7071 } 7072 7073 func (ec *executionContext) fieldContext_PtrToSliceContainer_ptrToSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7074 fc = &graphql.FieldContext{ 7075 Object: "PtrToSliceContainer", 7076 Field: field, 7077 IsMethod: false, 7078 IsResolver: false, 7079 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7080 return nil, errors.New("field of type String does not have child fields") 7081 }, 7082 } 7083 return fc, nil 7084 } 7085 7086 func (ec *executionContext) _Query_invalidIdentifier(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7087 fc, err := ec.fieldContext_Query_invalidIdentifier(ctx, field) 7088 if err != nil { 7089 return graphql.Null 7090 } 7091 ctx = graphql.WithFieldContext(ctx, fc) 7092 defer func() { 7093 if r := recover(); r != nil { 7094 ec.Error(ctx, ec.Recover(ctx, r)) 7095 ret = graphql.Null 7096 } 7097 }() 7098 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7099 ctx = rctx // use context from middleware stack in children 7100 return ec.resolvers.Query().InvalidIdentifier(rctx) 7101 }) 7102 7103 if resTmp == nil { 7104 return graphql.Null 7105 } 7106 res := resTmp.(*invalid_packagename.InvalidIdentifier) 7107 fc.Result = res 7108 return ec.marshalOInvalidIdentifier2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋinvalidᚑpackagenameᚐInvalidIdentifier(ctx, field.Selections, res) 7109 } 7110 7111 func (ec *executionContext) fieldContext_Query_invalidIdentifier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7112 fc = &graphql.FieldContext{ 7113 Object: "Query", 7114 Field: field, 7115 IsMethod: true, 7116 IsResolver: true, 7117 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7118 switch field.Name { 7119 case "id": 7120 return ec.fieldContext_InvalidIdentifier_id(ctx, field) 7121 } 7122 return nil, fmt.Errorf("no field named %q was found under type InvalidIdentifier", field.Name) 7123 }, 7124 } 7125 return fc, nil 7126 } 7127 7128 func (ec *executionContext) _Query_collision(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7129 fc, err := ec.fieldContext_Query_collision(ctx, field) 7130 if err != nil { 7131 return graphql.Null 7132 } 7133 ctx = graphql.WithFieldContext(ctx, fc) 7134 defer func() { 7135 if r := recover(); r != nil { 7136 ec.Error(ctx, ec.Recover(ctx, r)) 7137 ret = graphql.Null 7138 } 7139 }() 7140 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7141 ctx = rctx // use context from middleware stack in children 7142 return ec.resolvers.Query().Collision(rctx) 7143 }) 7144 7145 if resTmp == nil { 7146 return graphql.Null 7147 } 7148 res := resTmp.(*introspection1.It) 7149 fc.Result = res 7150 return ec.marshalOIt2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋintrospectionᚐIt(ctx, field.Selections, res) 7151 } 7152 7153 func (ec *executionContext) fieldContext_Query_collision(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7154 fc = &graphql.FieldContext{ 7155 Object: "Query", 7156 Field: field, 7157 IsMethod: true, 7158 IsResolver: true, 7159 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7160 switch field.Name { 7161 case "id": 7162 return ec.fieldContext_It_id(ctx, field) 7163 } 7164 return nil, fmt.Errorf("no field named %q was found under type It", field.Name) 7165 }, 7166 } 7167 return fc, nil 7168 } 7169 7170 func (ec *executionContext) _Query_mapInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7171 fc, err := ec.fieldContext_Query_mapInput(ctx, field) 7172 if err != nil { 7173 return graphql.Null 7174 } 7175 ctx = graphql.WithFieldContext(ctx, fc) 7176 defer func() { 7177 if r := recover(); r != nil { 7178 ec.Error(ctx, ec.Recover(ctx, r)) 7179 ret = graphql.Null 7180 } 7181 }() 7182 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7183 ctx = rctx // use context from middleware stack in children 7184 return ec.resolvers.Query().MapInput(rctx, fc.Args["input"].(map[string]interface{})) 7185 }) 7186 7187 if resTmp == nil { 7188 return graphql.Null 7189 } 7190 res := resTmp.(*bool) 7191 fc.Result = res 7192 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7193 } 7194 7195 func (ec *executionContext) fieldContext_Query_mapInput(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7196 fc = &graphql.FieldContext{ 7197 Object: "Query", 7198 Field: field, 7199 IsMethod: true, 7200 IsResolver: true, 7201 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7202 return nil, errors.New("field of type Boolean does not have child fields") 7203 }, 7204 } 7205 defer func() { 7206 if r := recover(); r != nil { 7207 err = ec.Recover(ctx, r) 7208 ec.Error(ctx, err) 7209 } 7210 }() 7211 ctx = graphql.WithFieldContext(ctx, fc) 7212 if fc.Args, err = ec.field_Query_mapInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7213 ec.Error(ctx, err) 7214 return 7215 } 7216 return fc, nil 7217 } 7218 7219 func (ec *executionContext) _Query_recursive(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7220 fc, err := ec.fieldContext_Query_recursive(ctx, field) 7221 if err != nil { 7222 return graphql.Null 7223 } 7224 ctx = graphql.WithFieldContext(ctx, fc) 7225 defer func() { 7226 if r := recover(); r != nil { 7227 ec.Error(ctx, ec.Recover(ctx, r)) 7228 ret = graphql.Null 7229 } 7230 }() 7231 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7232 ctx = rctx // use context from middleware stack in children 7233 return ec.resolvers.Query().Recursive(rctx, fc.Args["input"].(*RecursiveInputSlice)) 7234 }) 7235 7236 if resTmp == nil { 7237 return graphql.Null 7238 } 7239 res := resTmp.(*bool) 7240 fc.Result = res 7241 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7242 } 7243 7244 func (ec *executionContext) fieldContext_Query_recursive(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7245 fc = &graphql.FieldContext{ 7246 Object: "Query", 7247 Field: field, 7248 IsMethod: true, 7249 IsResolver: true, 7250 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7251 return nil, errors.New("field of type Boolean does not have child fields") 7252 }, 7253 } 7254 defer func() { 7255 if r := recover(); r != nil { 7256 err = ec.Recover(ctx, r) 7257 ec.Error(ctx, err) 7258 } 7259 }() 7260 ctx = graphql.WithFieldContext(ctx, fc) 7261 if fc.Args, err = ec.field_Query_recursive_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7262 ec.Error(ctx, err) 7263 return 7264 } 7265 return fc, nil 7266 } 7267 7268 func (ec *executionContext) _Query_nestedInputs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7269 fc, err := ec.fieldContext_Query_nestedInputs(ctx, field) 7270 if err != nil { 7271 return graphql.Null 7272 } 7273 ctx = graphql.WithFieldContext(ctx, fc) 7274 defer func() { 7275 if r := recover(); r != nil { 7276 ec.Error(ctx, ec.Recover(ctx, r)) 7277 ret = graphql.Null 7278 } 7279 }() 7280 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7281 ctx = rctx // use context from middleware stack in children 7282 return ec.resolvers.Query().NestedInputs(rctx, fc.Args["input"].([][]*OuterInput)) 7283 }) 7284 7285 if resTmp == nil { 7286 return graphql.Null 7287 } 7288 res := resTmp.(*bool) 7289 fc.Result = res 7290 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7291 } 7292 7293 func (ec *executionContext) fieldContext_Query_nestedInputs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7294 fc = &graphql.FieldContext{ 7295 Object: "Query", 7296 Field: field, 7297 IsMethod: true, 7298 IsResolver: true, 7299 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7300 return nil, errors.New("field of type Boolean does not have child fields") 7301 }, 7302 } 7303 defer func() { 7304 if r := recover(); r != nil { 7305 err = ec.Recover(ctx, r) 7306 ec.Error(ctx, err) 7307 } 7308 }() 7309 ctx = graphql.WithFieldContext(ctx, fc) 7310 if fc.Args, err = ec.field_Query_nestedInputs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7311 ec.Error(ctx, err) 7312 return 7313 } 7314 return fc, nil 7315 } 7316 7317 func (ec *executionContext) _Query_nestedOutputs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7318 fc, err := ec.fieldContext_Query_nestedOutputs(ctx, field) 7319 if err != nil { 7320 return graphql.Null 7321 } 7322 ctx = graphql.WithFieldContext(ctx, fc) 7323 defer func() { 7324 if r := recover(); r != nil { 7325 ec.Error(ctx, ec.Recover(ctx, r)) 7326 ret = graphql.Null 7327 } 7328 }() 7329 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7330 ctx = rctx // use context from middleware stack in children 7331 return ec.resolvers.Query().NestedOutputs(rctx) 7332 }) 7333 7334 if resTmp == nil { 7335 return graphql.Null 7336 } 7337 res := resTmp.([][]*OuterObject) 7338 fc.Result = res 7339 return ec.marshalOOuterObject2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx, field.Selections, res) 7340 } 7341 7342 func (ec *executionContext) fieldContext_Query_nestedOutputs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7343 fc = &graphql.FieldContext{ 7344 Object: "Query", 7345 Field: field, 7346 IsMethod: true, 7347 IsResolver: true, 7348 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7349 switch field.Name { 7350 case "inner": 7351 return ec.fieldContext_OuterObject_inner(ctx, field) 7352 } 7353 return nil, fmt.Errorf("no field named %q was found under type OuterObject", field.Name) 7354 }, 7355 } 7356 return fc, nil 7357 } 7358 7359 func (ec *executionContext) _Query_modelMethods(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7360 fc, err := ec.fieldContext_Query_modelMethods(ctx, field) 7361 if err != nil { 7362 return graphql.Null 7363 } 7364 ctx = graphql.WithFieldContext(ctx, fc) 7365 defer func() { 7366 if r := recover(); r != nil { 7367 ec.Error(ctx, ec.Recover(ctx, r)) 7368 ret = graphql.Null 7369 } 7370 }() 7371 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7372 ctx = rctx // use context from middleware stack in children 7373 return ec.resolvers.Query().ModelMethods(rctx) 7374 }) 7375 7376 if resTmp == nil { 7377 return graphql.Null 7378 } 7379 res := resTmp.(*ModelMethods) 7380 fc.Result = res 7381 return ec.marshalOModelMethods2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐModelMethods(ctx, field.Selections, res) 7382 } 7383 7384 func (ec *executionContext) fieldContext_Query_modelMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7385 fc = &graphql.FieldContext{ 7386 Object: "Query", 7387 Field: field, 7388 IsMethod: true, 7389 IsResolver: true, 7390 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7391 switch field.Name { 7392 case "resolverField": 7393 return ec.fieldContext_ModelMethods_resolverField(ctx, field) 7394 case "noContext": 7395 return ec.fieldContext_ModelMethods_noContext(ctx, field) 7396 case "withContext": 7397 return ec.fieldContext_ModelMethods_withContext(ctx, field) 7398 } 7399 return nil, fmt.Errorf("no field named %q was found under type ModelMethods", field.Name) 7400 }, 7401 } 7402 return fc, nil 7403 } 7404 7405 func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7406 fc, err := ec.fieldContext_Query_user(ctx, field) 7407 if err != nil { 7408 return graphql.Null 7409 } 7410 ctx = graphql.WithFieldContext(ctx, fc) 7411 defer func() { 7412 if r := recover(); r != nil { 7413 ec.Error(ctx, ec.Recover(ctx, r)) 7414 ret = graphql.Null 7415 } 7416 }() 7417 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7418 ctx = rctx // use context from middleware stack in children 7419 return ec.resolvers.Query().User(rctx, fc.Args["id"].(int)) 7420 }) 7421 7422 if resTmp == nil { 7423 if !graphql.HasFieldError(ctx, fc) { 7424 ec.Errorf(ctx, "must not be null") 7425 } 7426 return graphql.Null 7427 } 7428 res := resTmp.(*User) 7429 fc.Result = res 7430 return ec.marshalNUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUser(ctx, field.Selections, res) 7431 } 7432 7433 func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7434 fc = &graphql.FieldContext{ 7435 Object: "Query", 7436 Field: field, 7437 IsMethod: true, 7438 IsResolver: true, 7439 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7440 switch field.Name { 7441 case "id": 7442 return ec.fieldContext_User_id(ctx, field) 7443 case "friends": 7444 return ec.fieldContext_User_friends(ctx, field) 7445 case "created": 7446 return ec.fieldContext_User_created(ctx, field) 7447 case "updated": 7448 return ec.fieldContext_User_updated(ctx, field) 7449 case "pets": 7450 return ec.fieldContext_User_pets(ctx, field) 7451 } 7452 return nil, fmt.Errorf("no field named %q was found under type User", field.Name) 7453 }, 7454 } 7455 defer func() { 7456 if r := recover(); r != nil { 7457 err = ec.Recover(ctx, r) 7458 ec.Error(ctx, err) 7459 } 7460 }() 7461 ctx = graphql.WithFieldContext(ctx, fc) 7462 if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7463 ec.Error(ctx, err) 7464 return 7465 } 7466 return fc, nil 7467 } 7468 7469 func (ec *executionContext) _Query_nullableArg(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7470 fc, err := ec.fieldContext_Query_nullableArg(ctx, field) 7471 if err != nil { 7472 return graphql.Null 7473 } 7474 ctx = graphql.WithFieldContext(ctx, fc) 7475 defer func() { 7476 if r := recover(); r != nil { 7477 ec.Error(ctx, ec.Recover(ctx, r)) 7478 ret = graphql.Null 7479 } 7480 }() 7481 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7482 ctx = rctx // use context from middleware stack in children 7483 return ec.resolvers.Query().NullableArg(rctx, fc.Args["arg"].(*int)) 7484 }) 7485 7486 if resTmp == nil { 7487 return graphql.Null 7488 } 7489 res := resTmp.(*string) 7490 fc.Result = res 7491 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7492 } 7493 7494 func (ec *executionContext) fieldContext_Query_nullableArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7495 fc = &graphql.FieldContext{ 7496 Object: "Query", 7497 Field: field, 7498 IsMethod: true, 7499 IsResolver: true, 7500 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7501 return nil, errors.New("field of type String does not have child fields") 7502 }, 7503 } 7504 defer func() { 7505 if r := recover(); r != nil { 7506 err = ec.Recover(ctx, r) 7507 ec.Error(ctx, err) 7508 } 7509 }() 7510 ctx = graphql.WithFieldContext(ctx, fc) 7511 if fc.Args, err = ec.field_Query_nullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7512 ec.Error(ctx, err) 7513 return 7514 } 7515 return fc, nil 7516 } 7517 7518 func (ec *executionContext) _Query_inputSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7519 fc, err := ec.fieldContext_Query_inputSlice(ctx, field) 7520 if err != nil { 7521 return graphql.Null 7522 } 7523 ctx = graphql.WithFieldContext(ctx, fc) 7524 defer func() { 7525 if r := recover(); r != nil { 7526 ec.Error(ctx, ec.Recover(ctx, r)) 7527 ret = graphql.Null 7528 } 7529 }() 7530 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7531 ctx = rctx // use context from middleware stack in children 7532 return ec.resolvers.Query().InputSlice(rctx, fc.Args["arg"].([]string)) 7533 }) 7534 7535 if resTmp == nil { 7536 if !graphql.HasFieldError(ctx, fc) { 7537 ec.Errorf(ctx, "must not be null") 7538 } 7539 return graphql.Null 7540 } 7541 res := resTmp.(bool) 7542 fc.Result = res 7543 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 7544 } 7545 7546 func (ec *executionContext) fieldContext_Query_inputSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7547 fc = &graphql.FieldContext{ 7548 Object: "Query", 7549 Field: field, 7550 IsMethod: true, 7551 IsResolver: true, 7552 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7553 return nil, errors.New("field of type Boolean does not have child fields") 7554 }, 7555 } 7556 defer func() { 7557 if r := recover(); r != nil { 7558 err = ec.Recover(ctx, r) 7559 ec.Error(ctx, err) 7560 } 7561 }() 7562 ctx = graphql.WithFieldContext(ctx, fc) 7563 if fc.Args, err = ec.field_Query_inputSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7564 ec.Error(ctx, err) 7565 return 7566 } 7567 return fc, nil 7568 } 7569 7570 func (ec *executionContext) _Query_inputNullableSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7571 fc, err := ec.fieldContext_Query_inputNullableSlice(ctx, field) 7572 if err != nil { 7573 return graphql.Null 7574 } 7575 ctx = graphql.WithFieldContext(ctx, fc) 7576 defer func() { 7577 if r := recover(); r != nil { 7578 ec.Error(ctx, ec.Recover(ctx, r)) 7579 ret = graphql.Null 7580 } 7581 }() 7582 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7583 ctx = rctx // use context from middleware stack in children 7584 return ec.resolvers.Query().InputNullableSlice(rctx, fc.Args["arg"].([]string)) 7585 }) 7586 7587 if resTmp == nil { 7588 if !graphql.HasFieldError(ctx, fc) { 7589 ec.Errorf(ctx, "must not be null") 7590 } 7591 return graphql.Null 7592 } 7593 res := resTmp.(bool) 7594 fc.Result = res 7595 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 7596 } 7597 7598 func (ec *executionContext) fieldContext_Query_inputNullableSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7599 fc = &graphql.FieldContext{ 7600 Object: "Query", 7601 Field: field, 7602 IsMethod: true, 7603 IsResolver: true, 7604 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7605 return nil, errors.New("field of type Boolean does not have child fields") 7606 }, 7607 } 7608 defer func() { 7609 if r := recover(); r != nil { 7610 err = ec.Recover(ctx, r) 7611 ec.Error(ctx, err) 7612 } 7613 }() 7614 ctx = graphql.WithFieldContext(ctx, fc) 7615 if fc.Args, err = ec.field_Query_inputNullableSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7616 ec.Error(ctx, err) 7617 return 7618 } 7619 return fc, nil 7620 } 7621 7622 func (ec *executionContext) _Query_shapeUnion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7623 fc, err := ec.fieldContext_Query_shapeUnion(ctx, field) 7624 if err != nil { 7625 return graphql.Null 7626 } 7627 ctx = graphql.WithFieldContext(ctx, fc) 7628 defer func() { 7629 if r := recover(); r != nil { 7630 ec.Error(ctx, ec.Recover(ctx, r)) 7631 ret = graphql.Null 7632 } 7633 }() 7634 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7635 ctx = rctx // use context from middleware stack in children 7636 return ec.resolvers.Query().ShapeUnion(rctx) 7637 }) 7638 7639 if resTmp == nil { 7640 if !graphql.HasFieldError(ctx, fc) { 7641 ec.Errorf(ctx, "must not be null") 7642 } 7643 return graphql.Null 7644 } 7645 res := resTmp.(ShapeUnion) 7646 fc.Result = res 7647 return ec.marshalNShapeUnion2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShapeUnion(ctx, field.Selections, res) 7648 } 7649 7650 func (ec *executionContext) fieldContext_Query_shapeUnion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7651 fc = &graphql.FieldContext{ 7652 Object: "Query", 7653 Field: field, 7654 IsMethod: true, 7655 IsResolver: true, 7656 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7657 return nil, errors.New("field of type ShapeUnion does not have child fields") 7658 }, 7659 } 7660 return fc, nil 7661 } 7662 7663 func (ec *executionContext) _Query_autobind(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7664 fc, err := ec.fieldContext_Query_autobind(ctx, field) 7665 if err != nil { 7666 return graphql.Null 7667 } 7668 ctx = graphql.WithFieldContext(ctx, fc) 7669 defer func() { 7670 if r := recover(); r != nil { 7671 ec.Error(ctx, ec.Recover(ctx, r)) 7672 ret = graphql.Null 7673 } 7674 }() 7675 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7676 ctx = rctx // use context from middleware stack in children 7677 return ec.resolvers.Query().Autobind(rctx) 7678 }) 7679 7680 if resTmp == nil { 7681 return graphql.Null 7682 } 7683 res := resTmp.(*Autobind) 7684 fc.Result = res 7685 return ec.marshalOAutobind2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐAutobind(ctx, field.Selections, res) 7686 } 7687 7688 func (ec *executionContext) fieldContext_Query_autobind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7689 fc = &graphql.FieldContext{ 7690 Object: "Query", 7691 Field: field, 7692 IsMethod: true, 7693 IsResolver: true, 7694 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7695 switch field.Name { 7696 case "int": 7697 return ec.fieldContext_Autobind_int(ctx, field) 7698 case "int32": 7699 return ec.fieldContext_Autobind_int32(ctx, field) 7700 case "int64": 7701 return ec.fieldContext_Autobind_int64(ctx, field) 7702 case "idStr": 7703 return ec.fieldContext_Autobind_idStr(ctx, field) 7704 case "idInt": 7705 return ec.fieldContext_Autobind_idInt(ctx, field) 7706 } 7707 return nil, fmt.Errorf("no field named %q was found under type Autobind", field.Name) 7708 }, 7709 } 7710 return fc, nil 7711 } 7712 7713 func (ec *executionContext) _Query_deprecatedField(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7714 fc, err := ec.fieldContext_Query_deprecatedField(ctx, field) 7715 if err != nil { 7716 return graphql.Null 7717 } 7718 ctx = graphql.WithFieldContext(ctx, fc) 7719 defer func() { 7720 if r := recover(); r != nil { 7721 ec.Error(ctx, ec.Recover(ctx, r)) 7722 ret = graphql.Null 7723 } 7724 }() 7725 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7726 ctx = rctx // use context from middleware stack in children 7727 return ec.resolvers.Query().DeprecatedField(rctx) 7728 }) 7729 7730 if resTmp == nil { 7731 if !graphql.HasFieldError(ctx, fc) { 7732 ec.Errorf(ctx, "must not be null") 7733 } 7734 return graphql.Null 7735 } 7736 res := resTmp.(string) 7737 fc.Result = res 7738 return ec.marshalNString2string(ctx, field.Selections, res) 7739 } 7740 7741 func (ec *executionContext) fieldContext_Query_deprecatedField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7742 fc = &graphql.FieldContext{ 7743 Object: "Query", 7744 Field: field, 7745 IsMethod: true, 7746 IsResolver: true, 7747 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7748 return nil, errors.New("field of type String does not have child fields") 7749 }, 7750 } 7751 return fc, nil 7752 } 7753 7754 func (ec *executionContext) _Query_overlapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7755 fc, err := ec.fieldContext_Query_overlapping(ctx, field) 7756 if err != nil { 7757 return graphql.Null 7758 } 7759 ctx = graphql.WithFieldContext(ctx, fc) 7760 defer func() { 7761 if r := recover(); r != nil { 7762 ec.Error(ctx, ec.Recover(ctx, r)) 7763 ret = graphql.Null 7764 } 7765 }() 7766 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7767 ctx = rctx // use context from middleware stack in children 7768 return ec.resolvers.Query().Overlapping(rctx) 7769 }) 7770 7771 if resTmp == nil { 7772 return graphql.Null 7773 } 7774 res := resTmp.(*OverlappingFields) 7775 fc.Result = res 7776 return ec.marshalOOverlappingFields2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOverlappingFields(ctx, field.Selections, res) 7777 } 7778 7779 func (ec *executionContext) fieldContext_Query_overlapping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7780 fc = &graphql.FieldContext{ 7781 Object: "Query", 7782 Field: field, 7783 IsMethod: true, 7784 IsResolver: true, 7785 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7786 switch field.Name { 7787 case "oneFoo": 7788 return ec.fieldContext_OverlappingFields_oneFoo(ctx, field) 7789 case "twoFoo": 7790 return ec.fieldContext_OverlappingFields_twoFoo(ctx, field) 7791 case "oldFoo": 7792 return ec.fieldContext_OverlappingFields_oldFoo(ctx, field) 7793 case "newFoo": 7794 return ec.fieldContext_OverlappingFields_newFoo(ctx, field) 7795 case "new_foo": 7796 return ec.fieldContext_OverlappingFields_new_foo(ctx, field) 7797 } 7798 return nil, fmt.Errorf("no field named %q was found under type OverlappingFields", field.Name) 7799 }, 7800 } 7801 return fc, nil 7802 } 7803 7804 func (ec *executionContext) _Query_defaultParameters(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7805 fc, err := ec.fieldContext_Query_defaultParameters(ctx, field) 7806 if err != nil { 7807 return graphql.Null 7808 } 7809 ctx = graphql.WithFieldContext(ctx, fc) 7810 defer func() { 7811 if r := recover(); r != nil { 7812 ec.Error(ctx, ec.Recover(ctx, r)) 7813 ret = graphql.Null 7814 } 7815 }() 7816 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7817 ctx = rctx // use context from middleware stack in children 7818 return ec.resolvers.Query().DefaultParameters(rctx, fc.Args["falsyBoolean"].(*bool), fc.Args["truthyBoolean"].(*bool)) 7819 }) 7820 7821 if resTmp == nil { 7822 if !graphql.HasFieldError(ctx, fc) { 7823 ec.Errorf(ctx, "must not be null") 7824 } 7825 return graphql.Null 7826 } 7827 res := resTmp.(*DefaultParametersMirror) 7828 fc.Result = res 7829 return ec.marshalNDefaultParametersMirror2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultParametersMirror(ctx, field.Selections, res) 7830 } 7831 7832 func (ec *executionContext) fieldContext_Query_defaultParameters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7833 fc = &graphql.FieldContext{ 7834 Object: "Query", 7835 Field: field, 7836 IsMethod: true, 7837 IsResolver: true, 7838 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7839 switch field.Name { 7840 case "falsyBoolean": 7841 return ec.fieldContext_DefaultParametersMirror_falsyBoolean(ctx, field) 7842 case "truthyBoolean": 7843 return ec.fieldContext_DefaultParametersMirror_truthyBoolean(ctx, field) 7844 } 7845 return nil, fmt.Errorf("no field named %q was found under type DefaultParametersMirror", field.Name) 7846 }, 7847 } 7848 defer func() { 7849 if r := recover(); r != nil { 7850 err = ec.Recover(ctx, r) 7851 ec.Error(ctx, err) 7852 } 7853 }() 7854 ctx = graphql.WithFieldContext(ctx, fc) 7855 if fc.Args, err = ec.field_Query_defaultParameters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7856 ec.Error(ctx, err) 7857 return 7858 } 7859 return fc, nil 7860 } 7861 7862 func (ec *executionContext) _Query_directiveArg(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7863 fc, err := ec.fieldContext_Query_directiveArg(ctx, field) 7864 if err != nil { 7865 return graphql.Null 7866 } 7867 ctx = graphql.WithFieldContext(ctx, fc) 7868 defer func() { 7869 if r := recover(); r != nil { 7870 ec.Error(ctx, ec.Recover(ctx, r)) 7871 ret = graphql.Null 7872 } 7873 }() 7874 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7875 ctx = rctx // use context from middleware stack in children 7876 return ec.resolvers.Query().DirectiveArg(rctx, fc.Args["arg"].(string)) 7877 }) 7878 7879 if resTmp == nil { 7880 return graphql.Null 7881 } 7882 res := resTmp.(*string) 7883 fc.Result = res 7884 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7885 } 7886 7887 func (ec *executionContext) fieldContext_Query_directiveArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7888 fc = &graphql.FieldContext{ 7889 Object: "Query", 7890 Field: field, 7891 IsMethod: true, 7892 IsResolver: true, 7893 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7894 return nil, errors.New("field of type String does not have child fields") 7895 }, 7896 } 7897 defer func() { 7898 if r := recover(); r != nil { 7899 err = ec.Recover(ctx, r) 7900 ec.Error(ctx, err) 7901 } 7902 }() 7903 ctx = graphql.WithFieldContext(ctx, fc) 7904 if fc.Args, err = ec.field_Query_directiveArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7905 ec.Error(ctx, err) 7906 return 7907 } 7908 return fc, nil 7909 } 7910 7911 func (ec *executionContext) _Query_directiveNullableArg(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7912 fc, err := ec.fieldContext_Query_directiveNullableArg(ctx, field) 7913 if err != nil { 7914 return graphql.Null 7915 } 7916 ctx = graphql.WithFieldContext(ctx, fc) 7917 defer func() { 7918 if r := recover(); r != nil { 7919 ec.Error(ctx, ec.Recover(ctx, r)) 7920 ret = graphql.Null 7921 } 7922 }() 7923 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7924 ctx = rctx // use context from middleware stack in children 7925 return ec.resolvers.Query().DirectiveNullableArg(rctx, fc.Args["arg"].(*int), fc.Args["arg2"].(*int), fc.Args["arg3"].(*string)) 7926 }) 7927 7928 if resTmp == nil { 7929 return graphql.Null 7930 } 7931 res := resTmp.(*string) 7932 fc.Result = res 7933 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7934 } 7935 7936 func (ec *executionContext) fieldContext_Query_directiveNullableArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7937 fc = &graphql.FieldContext{ 7938 Object: "Query", 7939 Field: field, 7940 IsMethod: true, 7941 IsResolver: true, 7942 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7943 return nil, errors.New("field of type String does not have child fields") 7944 }, 7945 } 7946 defer func() { 7947 if r := recover(); r != nil { 7948 err = ec.Recover(ctx, r) 7949 ec.Error(ctx, err) 7950 } 7951 }() 7952 ctx = graphql.WithFieldContext(ctx, fc) 7953 if fc.Args, err = ec.field_Query_directiveNullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7954 ec.Error(ctx, err) 7955 return 7956 } 7957 return fc, nil 7958 } 7959 7960 func (ec *executionContext) _Query_directiveInputNullable(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7961 fc, err := ec.fieldContext_Query_directiveInputNullable(ctx, field) 7962 if err != nil { 7963 return graphql.Null 7964 } 7965 ctx = graphql.WithFieldContext(ctx, fc) 7966 defer func() { 7967 if r := recover(); r != nil { 7968 ec.Error(ctx, ec.Recover(ctx, r)) 7969 ret = graphql.Null 7970 } 7971 }() 7972 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 7973 ctx = rctx // use context from middleware stack in children 7974 return ec.resolvers.Query().DirectiveInputNullable(rctx, fc.Args["arg"].(*InputDirectives)) 7975 }) 7976 7977 if resTmp == nil { 7978 return graphql.Null 7979 } 7980 res := resTmp.(*string) 7981 fc.Result = res 7982 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7983 } 7984 7985 func (ec *executionContext) fieldContext_Query_directiveInputNullable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7986 fc = &graphql.FieldContext{ 7987 Object: "Query", 7988 Field: field, 7989 IsMethod: true, 7990 IsResolver: true, 7991 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7992 return nil, errors.New("field of type String does not have child fields") 7993 }, 7994 } 7995 defer func() { 7996 if r := recover(); r != nil { 7997 err = ec.Recover(ctx, r) 7998 ec.Error(ctx, err) 7999 } 8000 }() 8001 ctx = graphql.WithFieldContext(ctx, fc) 8002 if fc.Args, err = ec.field_Query_directiveInputNullable_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8003 ec.Error(ctx, err) 8004 return 8005 } 8006 return fc, nil 8007 } 8008 8009 func (ec *executionContext) _Query_directiveInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8010 fc, err := ec.fieldContext_Query_directiveInput(ctx, field) 8011 if err != nil { 8012 return graphql.Null 8013 } 8014 ctx = graphql.WithFieldContext(ctx, fc) 8015 defer func() { 8016 if r := recover(); r != nil { 8017 ec.Error(ctx, ec.Recover(ctx, r)) 8018 ret = graphql.Null 8019 } 8020 }() 8021 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8022 ctx = rctx // use context from middleware stack in children 8023 return ec.resolvers.Query().DirectiveInput(rctx, fc.Args["arg"].(InputDirectives)) 8024 }) 8025 8026 if resTmp == nil { 8027 return graphql.Null 8028 } 8029 res := resTmp.(*string) 8030 fc.Result = res 8031 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8032 } 8033 8034 func (ec *executionContext) fieldContext_Query_directiveInput(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8035 fc = &graphql.FieldContext{ 8036 Object: "Query", 8037 Field: field, 8038 IsMethod: true, 8039 IsResolver: true, 8040 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8041 return nil, errors.New("field of type String does not have child fields") 8042 }, 8043 } 8044 defer func() { 8045 if r := recover(); r != nil { 8046 err = ec.Recover(ctx, r) 8047 ec.Error(ctx, err) 8048 } 8049 }() 8050 ctx = graphql.WithFieldContext(ctx, fc) 8051 if fc.Args, err = ec.field_Query_directiveInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8052 ec.Error(ctx, err) 8053 return 8054 } 8055 return fc, nil 8056 } 8057 8058 func (ec *executionContext) _Query_directiveInputType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8059 fc, err := ec.fieldContext_Query_directiveInputType(ctx, field) 8060 if err != nil { 8061 return graphql.Null 8062 } 8063 ctx = graphql.WithFieldContext(ctx, fc) 8064 defer func() { 8065 if r := recover(); r != nil { 8066 ec.Error(ctx, ec.Recover(ctx, r)) 8067 ret = graphql.Null 8068 } 8069 }() 8070 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8071 ctx = rctx // use context from middleware stack in children 8072 return ec.resolvers.Query().DirectiveInputType(rctx, fc.Args["arg"].(InnerInput)) 8073 }) 8074 8075 if resTmp == nil { 8076 return graphql.Null 8077 } 8078 res := resTmp.(*string) 8079 fc.Result = res 8080 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8081 } 8082 8083 func (ec *executionContext) fieldContext_Query_directiveInputType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8084 fc = &graphql.FieldContext{ 8085 Object: "Query", 8086 Field: field, 8087 IsMethod: true, 8088 IsResolver: true, 8089 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8090 return nil, errors.New("field of type String does not have child fields") 8091 }, 8092 } 8093 defer func() { 8094 if r := recover(); r != nil { 8095 err = ec.Recover(ctx, r) 8096 ec.Error(ctx, err) 8097 } 8098 }() 8099 ctx = graphql.WithFieldContext(ctx, fc) 8100 if fc.Args, err = ec.field_Query_directiveInputType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8101 ec.Error(ctx, err) 8102 return 8103 } 8104 return fc, nil 8105 } 8106 8107 func (ec *executionContext) _Query_directiveObject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8108 fc, err := ec.fieldContext_Query_directiveObject(ctx, field) 8109 if err != nil { 8110 return graphql.Null 8111 } 8112 ctx = graphql.WithFieldContext(ctx, fc) 8113 defer func() { 8114 if r := recover(); r != nil { 8115 ec.Error(ctx, ec.Recover(ctx, r)) 8116 ret = graphql.Null 8117 } 8118 }() 8119 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8120 directive0 := func(rctx context.Context) (interface{}, error) { 8121 ctx = rctx // use context from middleware stack in children 8122 return ec.resolvers.Query().DirectiveObject(rctx) 8123 } 8124 directive1 := func(ctx context.Context) (interface{}, error) { 8125 location, err := ec.unmarshalNString2string(ctx, "order1_1") 8126 if err != nil { 8127 return nil, err 8128 } 8129 if ec.directives.Order1 == nil { 8130 return nil, errors.New("directive order1 is not implemented") 8131 } 8132 return ec.directives.Order1(ctx, nil, directive0, location) 8133 } 8134 directive2 := func(ctx context.Context) (interface{}, error) { 8135 location, err := ec.unmarshalNString2string(ctx, "order1_2") 8136 if err != nil { 8137 return nil, err 8138 } 8139 if ec.directives.Order1 == nil { 8140 return nil, errors.New("directive order1 is not implemented") 8141 } 8142 return ec.directives.Order1(ctx, nil, directive1, location) 8143 } 8144 directive3 := func(ctx context.Context) (interface{}, error) { 8145 location, err := ec.unmarshalNString2string(ctx, "order2_1") 8146 if err != nil { 8147 return nil, err 8148 } 8149 if ec.directives.Order2 == nil { 8150 return nil, errors.New("directive order2 is not implemented") 8151 } 8152 return ec.directives.Order2(ctx, nil, directive2, location) 8153 } 8154 directive4 := func(ctx context.Context) (interface{}, error) { 8155 location, err := ec.unmarshalNString2string(ctx, "Query_field") 8156 if err != nil { 8157 return nil, err 8158 } 8159 if ec.directives.Order1 == nil { 8160 return nil, errors.New("directive order1 is not implemented") 8161 } 8162 return ec.directives.Order1(ctx, nil, directive3, location) 8163 } 8164 8165 tmp, err := directive4(rctx) 8166 if err != nil { 8167 return nil, graphql.ErrorOnPath(ctx, err) 8168 } 8169 if tmp == nil { 8170 return nil, nil 8171 } 8172 if data, ok := tmp.(*ObjectDirectives); ok { 8173 return data, nil 8174 } 8175 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/99designs/gqlgen/codegen/testserver/singlefile.ObjectDirectives`, tmp) 8176 }) 8177 8178 if resTmp == nil { 8179 return graphql.Null 8180 } 8181 res := resTmp.(*ObjectDirectives) 8182 fc.Result = res 8183 return ec.marshalOObjectDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐObjectDirectives(ctx, field.Selections, res) 8184 } 8185 8186 func (ec *executionContext) fieldContext_Query_directiveObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8187 fc = &graphql.FieldContext{ 8188 Object: "Query", 8189 Field: field, 8190 IsMethod: true, 8191 IsResolver: true, 8192 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8193 switch field.Name { 8194 case "text": 8195 return ec.fieldContext_ObjectDirectives_text(ctx, field) 8196 case "nullableText": 8197 return ec.fieldContext_ObjectDirectives_nullableText(ctx, field) 8198 case "order": 8199 return ec.fieldContext_ObjectDirectives_order(ctx, field) 8200 } 8201 return nil, fmt.Errorf("no field named %q was found under type ObjectDirectives", field.Name) 8202 }, 8203 } 8204 return fc, nil 8205 } 8206 8207 func (ec *executionContext) _Query_directiveObjectWithCustomGoModel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8208 fc, err := ec.fieldContext_Query_directiveObjectWithCustomGoModel(ctx, field) 8209 if err != nil { 8210 return graphql.Null 8211 } 8212 ctx = graphql.WithFieldContext(ctx, fc) 8213 defer func() { 8214 if r := recover(); r != nil { 8215 ec.Error(ctx, ec.Recover(ctx, r)) 8216 ret = graphql.Null 8217 } 8218 }() 8219 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8220 ctx = rctx // use context from middleware stack in children 8221 return ec.resolvers.Query().DirectiveObjectWithCustomGoModel(rctx) 8222 }) 8223 8224 if resTmp == nil { 8225 return graphql.Null 8226 } 8227 res := resTmp.(*ObjectDirectivesWithCustomGoModel) 8228 fc.Result = res 8229 return ec.marshalOObjectDirectivesWithCustomGoModel2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐObjectDirectivesWithCustomGoModel(ctx, field.Selections, res) 8230 } 8231 8232 func (ec *executionContext) fieldContext_Query_directiveObjectWithCustomGoModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8233 fc = &graphql.FieldContext{ 8234 Object: "Query", 8235 Field: field, 8236 IsMethod: true, 8237 IsResolver: true, 8238 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8239 switch field.Name { 8240 case "nullableText": 8241 return ec.fieldContext_ObjectDirectivesWithCustomGoModel_nullableText(ctx, field) 8242 } 8243 return nil, fmt.Errorf("no field named %q was found under type ObjectDirectivesWithCustomGoModel", field.Name) 8244 }, 8245 } 8246 return fc, nil 8247 } 8248 8249 func (ec *executionContext) _Query_directiveFieldDef(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8250 fc, err := ec.fieldContext_Query_directiveFieldDef(ctx, field) 8251 if err != nil { 8252 return graphql.Null 8253 } 8254 ctx = graphql.WithFieldContext(ctx, fc) 8255 defer func() { 8256 if r := recover(); r != nil { 8257 ec.Error(ctx, ec.Recover(ctx, r)) 8258 ret = graphql.Null 8259 } 8260 }() 8261 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8262 directive0 := func(rctx context.Context) (interface{}, error) { 8263 ctx = rctx // use context from middleware stack in children 8264 return ec.resolvers.Query().DirectiveFieldDef(rctx, fc.Args["ret"].(string)) 8265 } 8266 directive1 := func(ctx context.Context) (interface{}, error) { 8267 min, err := ec.unmarshalNInt2int(ctx, 1) 8268 if err != nil { 8269 return nil, err 8270 } 8271 message, err := ec.unmarshalOString2ᚖstring(ctx, "not valid") 8272 if err != nil { 8273 return nil, err 8274 } 8275 if ec.directives.Length == nil { 8276 return nil, errors.New("directive length is not implemented") 8277 } 8278 return ec.directives.Length(ctx, nil, directive0, min, nil, message) 8279 } 8280 8281 tmp, err := directive1(rctx) 8282 if err != nil { 8283 return nil, graphql.ErrorOnPath(ctx, err) 8284 } 8285 if tmp == nil { 8286 return nil, nil 8287 } 8288 if data, ok := tmp.(string); ok { 8289 return data, nil 8290 } 8291 return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 8292 }) 8293 8294 if resTmp == nil { 8295 if !graphql.HasFieldError(ctx, fc) { 8296 ec.Errorf(ctx, "must not be null") 8297 } 8298 return graphql.Null 8299 } 8300 res := resTmp.(string) 8301 fc.Result = res 8302 return ec.marshalNString2string(ctx, field.Selections, res) 8303 } 8304 8305 func (ec *executionContext) fieldContext_Query_directiveFieldDef(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8306 fc = &graphql.FieldContext{ 8307 Object: "Query", 8308 Field: field, 8309 IsMethod: true, 8310 IsResolver: true, 8311 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8312 return nil, errors.New("field of type String does not have child fields") 8313 }, 8314 } 8315 defer func() { 8316 if r := recover(); r != nil { 8317 err = ec.Recover(ctx, r) 8318 ec.Error(ctx, err) 8319 } 8320 }() 8321 ctx = graphql.WithFieldContext(ctx, fc) 8322 if fc.Args, err = ec.field_Query_directiveFieldDef_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8323 ec.Error(ctx, err) 8324 return 8325 } 8326 return fc, nil 8327 } 8328 8329 func (ec *executionContext) _Query_directiveField(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8330 fc, err := ec.fieldContext_Query_directiveField(ctx, field) 8331 if err != nil { 8332 return graphql.Null 8333 } 8334 ctx = graphql.WithFieldContext(ctx, fc) 8335 defer func() { 8336 if r := recover(); r != nil { 8337 ec.Error(ctx, ec.Recover(ctx, r)) 8338 ret = graphql.Null 8339 } 8340 }() 8341 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8342 ctx = rctx // use context from middleware stack in children 8343 return ec.resolvers.Query().DirectiveField(rctx) 8344 }) 8345 8346 if resTmp == nil { 8347 return graphql.Null 8348 } 8349 res := resTmp.(*string) 8350 fc.Result = res 8351 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8352 } 8353 8354 func (ec *executionContext) fieldContext_Query_directiveField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8355 fc = &graphql.FieldContext{ 8356 Object: "Query", 8357 Field: field, 8358 IsMethod: true, 8359 IsResolver: true, 8360 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8361 return nil, errors.New("field of type String does not have child fields") 8362 }, 8363 } 8364 return fc, nil 8365 } 8366 8367 func (ec *executionContext) _Query_directiveDouble(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8368 fc, err := ec.fieldContext_Query_directiveDouble(ctx, field) 8369 if err != nil { 8370 return graphql.Null 8371 } 8372 ctx = graphql.WithFieldContext(ctx, fc) 8373 defer func() { 8374 if r := recover(); r != nil { 8375 ec.Error(ctx, ec.Recover(ctx, r)) 8376 ret = graphql.Null 8377 } 8378 }() 8379 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8380 directive0 := func(rctx context.Context) (interface{}, error) { 8381 ctx = rctx // use context from middleware stack in children 8382 return ec.resolvers.Query().DirectiveDouble(rctx) 8383 } 8384 directive1 := func(ctx context.Context) (interface{}, error) { 8385 if ec.directives.Directive1 == nil { 8386 return nil, errors.New("directive directive1 is not implemented") 8387 } 8388 return ec.directives.Directive1(ctx, nil, directive0) 8389 } 8390 directive2 := func(ctx context.Context) (interface{}, error) { 8391 if ec.directives.Directive2 == nil { 8392 return nil, errors.New("directive directive2 is not implemented") 8393 } 8394 return ec.directives.Directive2(ctx, nil, directive1) 8395 } 8396 8397 tmp, err := directive2(rctx) 8398 if err != nil { 8399 return nil, graphql.ErrorOnPath(ctx, err) 8400 } 8401 if tmp == nil { 8402 return nil, nil 8403 } 8404 if data, ok := tmp.(*string); ok { 8405 return data, nil 8406 } 8407 return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 8408 }) 8409 8410 if resTmp == nil { 8411 return graphql.Null 8412 } 8413 res := resTmp.(*string) 8414 fc.Result = res 8415 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8416 } 8417 8418 func (ec *executionContext) fieldContext_Query_directiveDouble(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8419 fc = &graphql.FieldContext{ 8420 Object: "Query", 8421 Field: field, 8422 IsMethod: true, 8423 IsResolver: true, 8424 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8425 return nil, errors.New("field of type String does not have child fields") 8426 }, 8427 } 8428 return fc, nil 8429 } 8430 8431 func (ec *executionContext) _Query_directiveUnimplemented(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8432 fc, err := ec.fieldContext_Query_directiveUnimplemented(ctx, field) 8433 if err != nil { 8434 return graphql.Null 8435 } 8436 ctx = graphql.WithFieldContext(ctx, fc) 8437 defer func() { 8438 if r := recover(); r != nil { 8439 ec.Error(ctx, ec.Recover(ctx, r)) 8440 ret = graphql.Null 8441 } 8442 }() 8443 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8444 directive0 := func(rctx context.Context) (interface{}, error) { 8445 ctx = rctx // use context from middleware stack in children 8446 return ec.resolvers.Query().DirectiveUnimplemented(rctx) 8447 } 8448 directive1 := func(ctx context.Context) (interface{}, error) { 8449 if ec.directives.Unimplemented == nil { 8450 return nil, errors.New("directive unimplemented is not implemented") 8451 } 8452 return ec.directives.Unimplemented(ctx, nil, directive0) 8453 } 8454 8455 tmp, err := directive1(rctx) 8456 if err != nil { 8457 return nil, graphql.ErrorOnPath(ctx, err) 8458 } 8459 if tmp == nil { 8460 return nil, nil 8461 } 8462 if data, ok := tmp.(*string); ok { 8463 return data, nil 8464 } 8465 return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 8466 }) 8467 8468 if resTmp == nil { 8469 return graphql.Null 8470 } 8471 res := resTmp.(*string) 8472 fc.Result = res 8473 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8474 } 8475 8476 func (ec *executionContext) fieldContext_Query_directiveUnimplemented(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8477 fc = &graphql.FieldContext{ 8478 Object: "Query", 8479 Field: field, 8480 IsMethod: true, 8481 IsResolver: true, 8482 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8483 return nil, errors.New("field of type String does not have child fields") 8484 }, 8485 } 8486 return fc, nil 8487 } 8488 8489 func (ec *executionContext) _Query_embeddedCase1(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8490 fc, err := ec.fieldContext_Query_embeddedCase1(ctx, field) 8491 if err != nil { 8492 return graphql.Null 8493 } 8494 ctx = graphql.WithFieldContext(ctx, fc) 8495 defer func() { 8496 if r := recover(); r != nil { 8497 ec.Error(ctx, ec.Recover(ctx, r)) 8498 ret = graphql.Null 8499 } 8500 }() 8501 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8502 ctx = rctx // use context from middleware stack in children 8503 return ec.resolvers.Query().EmbeddedCase1(rctx) 8504 }) 8505 8506 if resTmp == nil { 8507 return graphql.Null 8508 } 8509 res := resTmp.(*EmbeddedCase1) 8510 fc.Result = res 8511 return ec.marshalOEmbeddedCase12ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase1(ctx, field.Selections, res) 8512 } 8513 8514 func (ec *executionContext) fieldContext_Query_embeddedCase1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8515 fc = &graphql.FieldContext{ 8516 Object: "Query", 8517 Field: field, 8518 IsMethod: true, 8519 IsResolver: true, 8520 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8521 switch field.Name { 8522 case "exportedEmbeddedPointerExportedMethod": 8523 return ec.fieldContext_EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx, field) 8524 } 8525 return nil, fmt.Errorf("no field named %q was found under type EmbeddedCase1", field.Name) 8526 }, 8527 } 8528 return fc, nil 8529 } 8530 8531 func (ec *executionContext) _Query_embeddedCase2(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8532 fc, err := ec.fieldContext_Query_embeddedCase2(ctx, field) 8533 if err != nil { 8534 return graphql.Null 8535 } 8536 ctx = graphql.WithFieldContext(ctx, fc) 8537 defer func() { 8538 if r := recover(); r != nil { 8539 ec.Error(ctx, ec.Recover(ctx, r)) 8540 ret = graphql.Null 8541 } 8542 }() 8543 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8544 ctx = rctx // use context from middleware stack in children 8545 return ec.resolvers.Query().EmbeddedCase2(rctx) 8546 }) 8547 8548 if resTmp == nil { 8549 return graphql.Null 8550 } 8551 res := resTmp.(*EmbeddedCase2) 8552 fc.Result = res 8553 return ec.marshalOEmbeddedCase22ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase2(ctx, field.Selections, res) 8554 } 8555 8556 func (ec *executionContext) fieldContext_Query_embeddedCase2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8557 fc = &graphql.FieldContext{ 8558 Object: "Query", 8559 Field: field, 8560 IsMethod: true, 8561 IsResolver: true, 8562 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8563 switch field.Name { 8564 case "unexportedEmbeddedPointerExportedMethod": 8565 return ec.fieldContext_EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx, field) 8566 } 8567 return nil, fmt.Errorf("no field named %q was found under type EmbeddedCase2", field.Name) 8568 }, 8569 } 8570 return fc, nil 8571 } 8572 8573 func (ec *executionContext) _Query_embeddedCase3(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8574 fc, err := ec.fieldContext_Query_embeddedCase3(ctx, field) 8575 if err != nil { 8576 return graphql.Null 8577 } 8578 ctx = graphql.WithFieldContext(ctx, fc) 8579 defer func() { 8580 if r := recover(); r != nil { 8581 ec.Error(ctx, ec.Recover(ctx, r)) 8582 ret = graphql.Null 8583 } 8584 }() 8585 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8586 ctx = rctx // use context from middleware stack in children 8587 return ec.resolvers.Query().EmbeddedCase3(rctx) 8588 }) 8589 8590 if resTmp == nil { 8591 return graphql.Null 8592 } 8593 res := resTmp.(*EmbeddedCase3) 8594 fc.Result = res 8595 return ec.marshalOEmbeddedCase32ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase3(ctx, field.Selections, res) 8596 } 8597 8598 func (ec *executionContext) fieldContext_Query_embeddedCase3(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8599 fc = &graphql.FieldContext{ 8600 Object: "Query", 8601 Field: field, 8602 IsMethod: true, 8603 IsResolver: true, 8604 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8605 switch field.Name { 8606 case "unexportedEmbeddedInterfaceExportedMethod": 8607 return ec.fieldContext_EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx, field) 8608 } 8609 return nil, fmt.Errorf("no field named %q was found under type EmbeddedCase3", field.Name) 8610 }, 8611 } 8612 return fc, nil 8613 } 8614 8615 func (ec *executionContext) _Query_enumInInput(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8616 fc, err := ec.fieldContext_Query_enumInInput(ctx, field) 8617 if err != nil { 8618 return graphql.Null 8619 } 8620 ctx = graphql.WithFieldContext(ctx, fc) 8621 defer func() { 8622 if r := recover(); r != nil { 8623 ec.Error(ctx, ec.Recover(ctx, r)) 8624 ret = graphql.Null 8625 } 8626 }() 8627 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8628 ctx = rctx // use context from middleware stack in children 8629 return ec.resolvers.Query().EnumInInput(rctx, fc.Args["input"].(*InputWithEnumValue)) 8630 }) 8631 8632 if resTmp == nil { 8633 if !graphql.HasFieldError(ctx, fc) { 8634 ec.Errorf(ctx, "must not be null") 8635 } 8636 return graphql.Null 8637 } 8638 res := resTmp.(EnumTest) 8639 fc.Result = res 8640 return ec.marshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx, field.Selections, res) 8641 } 8642 8643 func (ec *executionContext) fieldContext_Query_enumInInput(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 return nil, errors.New("field of type EnumTest does not have child fields") 8651 }, 8652 } 8653 defer func() { 8654 if r := recover(); r != nil { 8655 err = ec.Recover(ctx, r) 8656 ec.Error(ctx, err) 8657 } 8658 }() 8659 ctx = graphql.WithFieldContext(ctx, fc) 8660 if fc.Args, err = ec.field_Query_enumInInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8661 ec.Error(ctx, err) 8662 return 8663 } 8664 return fc, nil 8665 } 8666 8667 func (ec *executionContext) _Query_shapes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8668 fc, err := ec.fieldContext_Query_shapes(ctx, field) 8669 if err != nil { 8670 return graphql.Null 8671 } 8672 ctx = graphql.WithFieldContext(ctx, fc) 8673 defer func() { 8674 if r := recover(); r != nil { 8675 ec.Error(ctx, ec.Recover(ctx, r)) 8676 ret = graphql.Null 8677 } 8678 }() 8679 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8680 ctx = rctx // use context from middleware stack in children 8681 return ec.resolvers.Query().Shapes(rctx) 8682 }) 8683 8684 if resTmp == nil { 8685 return graphql.Null 8686 } 8687 res := resTmp.([]Shape) 8688 fc.Result = res 8689 return ec.marshalOShape2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx, field.Selections, res) 8690 } 8691 8692 func (ec *executionContext) fieldContext_Query_shapes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8693 fc = &graphql.FieldContext{ 8694 Object: "Query", 8695 Field: field, 8696 IsMethod: true, 8697 IsResolver: true, 8698 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8699 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 8700 }, 8701 } 8702 return fc, nil 8703 } 8704 8705 func (ec *executionContext) _Query_noShape(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8706 fc, err := ec.fieldContext_Query_noShape(ctx, field) 8707 if err != nil { 8708 return graphql.Null 8709 } 8710 ctx = graphql.WithFieldContext(ctx, fc) 8711 defer func() { 8712 if r := recover(); r != nil { 8713 ec.Error(ctx, ec.Recover(ctx, r)) 8714 ret = graphql.Null 8715 } 8716 }() 8717 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8718 directive0 := func(rctx context.Context) (interface{}, error) { 8719 ctx = rctx // use context from middleware stack in children 8720 return ec.resolvers.Query().NoShape(rctx) 8721 } 8722 directive1 := func(ctx context.Context) (interface{}, error) { 8723 if ec.directives.MakeNil == nil { 8724 return nil, errors.New("directive makeNil is not implemented") 8725 } 8726 return ec.directives.MakeNil(ctx, nil, directive0) 8727 } 8728 8729 tmp, err := directive1(rctx) 8730 if err != nil { 8731 return nil, graphql.ErrorOnPath(ctx, err) 8732 } 8733 if tmp == nil { 8734 return nil, nil 8735 } 8736 if data, ok := tmp.(Shape); ok { 8737 return data, nil 8738 } 8739 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/99designs/gqlgen/codegen/testserver/singlefile.Shape`, tmp) 8740 }) 8741 8742 if resTmp == nil { 8743 return graphql.Null 8744 } 8745 res := resTmp.(Shape) 8746 fc.Result = res 8747 return ec.marshalOShape2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx, field.Selections, res) 8748 } 8749 8750 func (ec *executionContext) fieldContext_Query_noShape(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8751 fc = &graphql.FieldContext{ 8752 Object: "Query", 8753 Field: field, 8754 IsMethod: true, 8755 IsResolver: true, 8756 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8757 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 8758 }, 8759 } 8760 return fc, nil 8761 } 8762 8763 func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8764 fc, err := ec.fieldContext_Query_node(ctx, field) 8765 if err != nil { 8766 return graphql.Null 8767 } 8768 ctx = graphql.WithFieldContext(ctx, fc) 8769 defer func() { 8770 if r := recover(); r != nil { 8771 ec.Error(ctx, ec.Recover(ctx, r)) 8772 ret = graphql.Null 8773 } 8774 }() 8775 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8776 ctx = rctx // use context from middleware stack in children 8777 return ec.resolvers.Query().Node(rctx) 8778 }) 8779 8780 if resTmp == nil { 8781 if !graphql.HasFieldError(ctx, fc) { 8782 ec.Errorf(ctx, "must not be null") 8783 } 8784 return graphql.Null 8785 } 8786 res := resTmp.(Node) 8787 fc.Result = res 8788 return ec.marshalNNode2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNode(ctx, field.Selections, res) 8789 } 8790 8791 func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8792 fc = &graphql.FieldContext{ 8793 Object: "Query", 8794 Field: field, 8795 IsMethod: true, 8796 IsResolver: true, 8797 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8798 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 8799 }, 8800 } 8801 return fc, nil 8802 } 8803 8804 func (ec *executionContext) _Query_noShapeTypedNil(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8805 fc, err := ec.fieldContext_Query_noShapeTypedNil(ctx, field) 8806 if err != nil { 8807 return graphql.Null 8808 } 8809 ctx = graphql.WithFieldContext(ctx, fc) 8810 defer func() { 8811 if r := recover(); r != nil { 8812 ec.Error(ctx, ec.Recover(ctx, r)) 8813 ret = graphql.Null 8814 } 8815 }() 8816 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8817 directive0 := func(rctx context.Context) (interface{}, error) { 8818 ctx = rctx // use context from middleware stack in children 8819 return ec.resolvers.Query().NoShapeTypedNil(rctx) 8820 } 8821 directive1 := func(ctx context.Context) (interface{}, error) { 8822 if ec.directives.MakeTypedNil == nil { 8823 return nil, errors.New("directive makeTypedNil is not implemented") 8824 } 8825 return ec.directives.MakeTypedNil(ctx, nil, directive0) 8826 } 8827 8828 tmp, err := directive1(rctx) 8829 if err != nil { 8830 return nil, graphql.ErrorOnPath(ctx, err) 8831 } 8832 if tmp == nil { 8833 return nil, nil 8834 } 8835 if data, ok := tmp.(Shape); ok { 8836 return data, nil 8837 } 8838 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/99designs/gqlgen/codegen/testserver/singlefile.Shape`, tmp) 8839 }) 8840 8841 if resTmp == nil { 8842 return graphql.Null 8843 } 8844 res := resTmp.(Shape) 8845 fc.Result = res 8846 return ec.marshalOShape2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx, field.Selections, res) 8847 } 8848 8849 func (ec *executionContext) fieldContext_Query_noShapeTypedNil(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8850 fc = &graphql.FieldContext{ 8851 Object: "Query", 8852 Field: field, 8853 IsMethod: true, 8854 IsResolver: true, 8855 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8856 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 8857 }, 8858 } 8859 return fc, nil 8860 } 8861 8862 func (ec *executionContext) _Query_animal(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8863 fc, err := ec.fieldContext_Query_animal(ctx, field) 8864 if err != nil { 8865 return graphql.Null 8866 } 8867 ctx = graphql.WithFieldContext(ctx, fc) 8868 defer func() { 8869 if r := recover(); r != nil { 8870 ec.Error(ctx, ec.Recover(ctx, r)) 8871 ret = graphql.Null 8872 } 8873 }() 8874 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8875 directive0 := func(rctx context.Context) (interface{}, error) { 8876 ctx = rctx // use context from middleware stack in children 8877 return ec.resolvers.Query().Animal(rctx) 8878 } 8879 directive1 := func(ctx context.Context) (interface{}, error) { 8880 if ec.directives.MakeTypedNil == nil { 8881 return nil, errors.New("directive makeTypedNil is not implemented") 8882 } 8883 return ec.directives.MakeTypedNil(ctx, nil, directive0) 8884 } 8885 8886 tmp, err := directive1(rctx) 8887 if err != nil { 8888 return nil, graphql.ErrorOnPath(ctx, err) 8889 } 8890 if tmp == nil { 8891 return nil, nil 8892 } 8893 if data, ok := tmp.(Animal); ok { 8894 return data, nil 8895 } 8896 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/99designs/gqlgen/codegen/testserver/singlefile.Animal`, tmp) 8897 }) 8898 8899 if resTmp == nil { 8900 return graphql.Null 8901 } 8902 res := resTmp.(Animal) 8903 fc.Result = res 8904 return ec.marshalOAnimal2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐAnimal(ctx, field.Selections, res) 8905 } 8906 8907 func (ec *executionContext) fieldContext_Query_animal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8908 fc = &graphql.FieldContext{ 8909 Object: "Query", 8910 Field: field, 8911 IsMethod: true, 8912 IsResolver: true, 8913 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8914 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 8915 }, 8916 } 8917 return fc, nil 8918 } 8919 8920 func (ec *executionContext) _Query_notAnInterface(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8921 fc, err := ec.fieldContext_Query_notAnInterface(ctx, field) 8922 if err != nil { 8923 return graphql.Null 8924 } 8925 ctx = graphql.WithFieldContext(ctx, fc) 8926 defer func() { 8927 if r := recover(); r != nil { 8928 ec.Error(ctx, ec.Recover(ctx, r)) 8929 ret = graphql.Null 8930 } 8931 }() 8932 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8933 ctx = rctx // use context from middleware stack in children 8934 return ec.resolvers.Query().NotAnInterface(rctx) 8935 }) 8936 8937 if resTmp == nil { 8938 return graphql.Null 8939 } 8940 res := resTmp.(BackedByInterface) 8941 fc.Result = res 8942 return ec.marshalOBackedByInterface2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐBackedByInterface(ctx, field.Selections, res) 8943 } 8944 8945 func (ec *executionContext) fieldContext_Query_notAnInterface(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8946 fc = &graphql.FieldContext{ 8947 Object: "Query", 8948 Field: field, 8949 IsMethod: true, 8950 IsResolver: true, 8951 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8952 switch field.Name { 8953 case "id": 8954 return ec.fieldContext_BackedByInterface_id(ctx, field) 8955 case "thisShouldBind": 8956 return ec.fieldContext_BackedByInterface_thisShouldBind(ctx, field) 8957 case "thisShouldBindWithError": 8958 return ec.fieldContext_BackedByInterface_thisShouldBindWithError(ctx, field) 8959 } 8960 return nil, fmt.Errorf("no field named %q was found under type BackedByInterface", field.Name) 8961 }, 8962 } 8963 return fc, nil 8964 } 8965 8966 func (ec *executionContext) _Query_issue896a(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 8967 fc, err := ec.fieldContext_Query_issue896a(ctx, field) 8968 if err != nil { 8969 return graphql.Null 8970 } 8971 ctx = graphql.WithFieldContext(ctx, fc) 8972 defer func() { 8973 if r := recover(); r != nil { 8974 ec.Error(ctx, ec.Recover(ctx, r)) 8975 ret = graphql.Null 8976 } 8977 }() 8978 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 8979 ctx = rctx // use context from middleware stack in children 8980 return ec.resolvers.Query().Issue896a(rctx) 8981 }) 8982 8983 if resTmp == nil { 8984 return graphql.Null 8985 } 8986 res := resTmp.([]*CheckIssue896) 8987 fc.Result = res 8988 return ec.marshalOCheckIssue8962ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896ᚄ(ctx, field.Selections, res) 8989 } 8990 8991 func (ec *executionContext) fieldContext_Query_issue896a(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8992 fc = &graphql.FieldContext{ 8993 Object: "Query", 8994 Field: field, 8995 IsMethod: true, 8996 IsResolver: true, 8997 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8998 switch field.Name { 8999 case "id": 9000 return ec.fieldContext_CheckIssue896_id(ctx, field) 9001 } 9002 return nil, fmt.Errorf("no field named %q was found under type CheckIssue896", field.Name) 9003 }, 9004 } 9005 return fc, nil 9006 } 9007 9008 func (ec *executionContext) _Query_mapStringInterface(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9009 fc, err := ec.fieldContext_Query_mapStringInterface(ctx, field) 9010 if err != nil { 9011 return graphql.Null 9012 } 9013 ctx = graphql.WithFieldContext(ctx, fc) 9014 defer func() { 9015 if r := recover(); r != nil { 9016 ec.Error(ctx, ec.Recover(ctx, r)) 9017 ret = graphql.Null 9018 } 9019 }() 9020 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9021 ctx = rctx // use context from middleware stack in children 9022 return ec.resolvers.Query().MapStringInterface(rctx, fc.Args["in"].(map[string]interface{})) 9023 }) 9024 9025 if resTmp == nil { 9026 return graphql.Null 9027 } 9028 res := resTmp.(map[string]interface{}) 9029 fc.Result = res 9030 return ec.marshalOMapStringInterfaceType2map(ctx, field.Selections, res) 9031 } 9032 9033 func (ec *executionContext) fieldContext_Query_mapStringInterface(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9034 fc = &graphql.FieldContext{ 9035 Object: "Query", 9036 Field: field, 9037 IsMethod: true, 9038 IsResolver: true, 9039 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9040 switch field.Name { 9041 case "a": 9042 return ec.fieldContext_MapStringInterfaceType_a(ctx, field) 9043 case "b": 9044 return ec.fieldContext_MapStringInterfaceType_b(ctx, field) 9045 } 9046 return nil, fmt.Errorf("no field named %q was found under type MapStringInterfaceType", field.Name) 9047 }, 9048 } 9049 defer func() { 9050 if r := recover(); r != nil { 9051 err = ec.Recover(ctx, r) 9052 ec.Error(ctx, err) 9053 } 9054 }() 9055 ctx = graphql.WithFieldContext(ctx, fc) 9056 if fc.Args, err = ec.field_Query_mapStringInterface_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9057 ec.Error(ctx, err) 9058 return 9059 } 9060 return fc, nil 9061 } 9062 9063 func (ec *executionContext) _Query_mapNestedStringInterface(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9064 fc, err := ec.fieldContext_Query_mapNestedStringInterface(ctx, field) 9065 if err != nil { 9066 return graphql.Null 9067 } 9068 ctx = graphql.WithFieldContext(ctx, fc) 9069 defer func() { 9070 if r := recover(); r != nil { 9071 ec.Error(ctx, ec.Recover(ctx, r)) 9072 ret = graphql.Null 9073 } 9074 }() 9075 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9076 ctx = rctx // use context from middleware stack in children 9077 return ec.resolvers.Query().MapNestedStringInterface(rctx, fc.Args["in"].(*NestedMapInput)) 9078 }) 9079 9080 if resTmp == nil { 9081 return graphql.Null 9082 } 9083 res := resTmp.(map[string]interface{}) 9084 fc.Result = res 9085 return ec.marshalOMapStringInterfaceType2map(ctx, field.Selections, res) 9086 } 9087 9088 func (ec *executionContext) fieldContext_Query_mapNestedStringInterface(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9089 fc = &graphql.FieldContext{ 9090 Object: "Query", 9091 Field: field, 9092 IsMethod: true, 9093 IsResolver: true, 9094 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9095 switch field.Name { 9096 case "a": 9097 return ec.fieldContext_MapStringInterfaceType_a(ctx, field) 9098 case "b": 9099 return ec.fieldContext_MapStringInterfaceType_b(ctx, field) 9100 } 9101 return nil, fmt.Errorf("no field named %q was found under type MapStringInterfaceType", field.Name) 9102 }, 9103 } 9104 defer func() { 9105 if r := recover(); r != nil { 9106 err = ec.Recover(ctx, r) 9107 ec.Error(ctx, err) 9108 } 9109 }() 9110 ctx = graphql.WithFieldContext(ctx, fc) 9111 if fc.Args, err = ec.field_Query_mapNestedStringInterface_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9112 ec.Error(ctx, err) 9113 return 9114 } 9115 return fc, nil 9116 } 9117 9118 func (ec *executionContext) _Query_errorBubble(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9119 fc, err := ec.fieldContext_Query_errorBubble(ctx, field) 9120 if err != nil { 9121 return graphql.Null 9122 } 9123 ctx = graphql.WithFieldContext(ctx, fc) 9124 defer func() { 9125 if r := recover(); r != nil { 9126 ec.Error(ctx, ec.Recover(ctx, r)) 9127 ret = graphql.Null 9128 } 9129 }() 9130 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9131 ctx = rctx // use context from middleware stack in children 9132 return ec.resolvers.Query().ErrorBubble(rctx) 9133 }) 9134 9135 if resTmp == nil { 9136 return graphql.Null 9137 } 9138 res := resTmp.(*Error) 9139 fc.Result = res 9140 return ec.marshalOError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 9141 } 9142 9143 func (ec *executionContext) fieldContext_Query_errorBubble(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9144 fc = &graphql.FieldContext{ 9145 Object: "Query", 9146 Field: field, 9147 IsMethod: true, 9148 IsResolver: true, 9149 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9150 switch field.Name { 9151 case "id": 9152 return ec.fieldContext_Error_id(ctx, field) 9153 case "errorOnNonRequiredField": 9154 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 9155 case "errorOnRequiredField": 9156 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 9157 case "nilOnRequiredField": 9158 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 9159 } 9160 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 9161 }, 9162 } 9163 return fc, nil 9164 } 9165 9166 func (ec *executionContext) _Query_errorBubbleList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9167 fc, err := ec.fieldContext_Query_errorBubbleList(ctx, field) 9168 if err != nil { 9169 return graphql.Null 9170 } 9171 ctx = graphql.WithFieldContext(ctx, fc) 9172 defer func() { 9173 if r := recover(); r != nil { 9174 ec.Error(ctx, ec.Recover(ctx, r)) 9175 ret = graphql.Null 9176 } 9177 }() 9178 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9179 ctx = rctx // use context from middleware stack in children 9180 return ec.resolvers.Query().ErrorBubbleList(rctx) 9181 }) 9182 9183 if resTmp == nil { 9184 return graphql.Null 9185 } 9186 res := resTmp.([]*Error) 9187 fc.Result = res 9188 return ec.marshalOError2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐErrorᚄ(ctx, field.Selections, res) 9189 } 9190 9191 func (ec *executionContext) fieldContext_Query_errorBubbleList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9192 fc = &graphql.FieldContext{ 9193 Object: "Query", 9194 Field: field, 9195 IsMethod: true, 9196 IsResolver: true, 9197 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9198 switch field.Name { 9199 case "id": 9200 return ec.fieldContext_Error_id(ctx, field) 9201 case "errorOnNonRequiredField": 9202 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 9203 case "errorOnRequiredField": 9204 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 9205 case "nilOnRequiredField": 9206 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 9207 } 9208 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 9209 }, 9210 } 9211 return fc, nil 9212 } 9213 9214 func (ec *executionContext) _Query_errorList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9215 fc, err := ec.fieldContext_Query_errorList(ctx, field) 9216 if err != nil { 9217 return graphql.Null 9218 } 9219 ctx = graphql.WithFieldContext(ctx, fc) 9220 defer func() { 9221 if r := recover(); r != nil { 9222 ec.Error(ctx, ec.Recover(ctx, r)) 9223 ret = graphql.Null 9224 } 9225 }() 9226 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9227 ctx = rctx // use context from middleware stack in children 9228 return ec.resolvers.Query().ErrorList(rctx) 9229 }) 9230 9231 if resTmp == nil { 9232 return graphql.Null 9233 } 9234 res := resTmp.([]*Error) 9235 fc.Result = res 9236 return ec.marshalOError2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res) 9237 } 9238 9239 func (ec *executionContext) fieldContext_Query_errorList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9240 fc = &graphql.FieldContext{ 9241 Object: "Query", 9242 Field: field, 9243 IsMethod: true, 9244 IsResolver: true, 9245 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9246 switch field.Name { 9247 case "id": 9248 return ec.fieldContext_Error_id(ctx, field) 9249 case "errorOnNonRequiredField": 9250 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 9251 case "errorOnRequiredField": 9252 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 9253 case "nilOnRequiredField": 9254 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 9255 } 9256 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 9257 }, 9258 } 9259 return fc, nil 9260 } 9261 9262 func (ec *executionContext) _Query_errors(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9263 fc, err := ec.fieldContext_Query_errors(ctx, field) 9264 if err != nil { 9265 return graphql.Null 9266 } 9267 ctx = graphql.WithFieldContext(ctx, fc) 9268 defer func() { 9269 if r := recover(); r != nil { 9270 ec.Error(ctx, ec.Recover(ctx, r)) 9271 ret = graphql.Null 9272 } 9273 }() 9274 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9275 ctx = rctx // use context from middleware stack in children 9276 return ec.resolvers.Query().Errors(rctx) 9277 }) 9278 9279 if resTmp == nil { 9280 return graphql.Null 9281 } 9282 res := resTmp.(*Errors) 9283 fc.Result = res 9284 return ec.marshalOErrors2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐErrors(ctx, field.Selections, res) 9285 } 9286 9287 func (ec *executionContext) fieldContext_Query_errors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9288 fc = &graphql.FieldContext{ 9289 Object: "Query", 9290 Field: field, 9291 IsMethod: true, 9292 IsResolver: true, 9293 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9294 switch field.Name { 9295 case "a": 9296 return ec.fieldContext_Errors_a(ctx, field) 9297 case "b": 9298 return ec.fieldContext_Errors_b(ctx, field) 9299 case "c": 9300 return ec.fieldContext_Errors_c(ctx, field) 9301 case "d": 9302 return ec.fieldContext_Errors_d(ctx, field) 9303 case "e": 9304 return ec.fieldContext_Errors_e(ctx, field) 9305 } 9306 return nil, fmt.Errorf("no field named %q was found under type Errors", field.Name) 9307 }, 9308 } 9309 return fc, nil 9310 } 9311 9312 func (ec *executionContext) _Query_valid(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9313 fc, err := ec.fieldContext_Query_valid(ctx, field) 9314 if err != nil { 9315 return graphql.Null 9316 } 9317 ctx = graphql.WithFieldContext(ctx, fc) 9318 defer func() { 9319 if r := recover(); r != nil { 9320 ec.Error(ctx, ec.Recover(ctx, r)) 9321 ret = graphql.Null 9322 } 9323 }() 9324 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9325 ctx = rctx // use context from middleware stack in children 9326 return ec.resolvers.Query().Valid(rctx) 9327 }) 9328 9329 if resTmp == nil { 9330 if !graphql.HasFieldError(ctx, fc) { 9331 ec.Errorf(ctx, "must not be null") 9332 } 9333 return graphql.Null 9334 } 9335 res := resTmp.(string) 9336 fc.Result = res 9337 return ec.marshalNString2string(ctx, field.Selections, res) 9338 } 9339 9340 func (ec *executionContext) fieldContext_Query_valid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9341 fc = &graphql.FieldContext{ 9342 Object: "Query", 9343 Field: field, 9344 IsMethod: true, 9345 IsResolver: true, 9346 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9347 return nil, errors.New("field of type String does not have child fields") 9348 }, 9349 } 9350 return fc, nil 9351 } 9352 9353 func (ec *executionContext) _Query_panics(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9354 fc, err := ec.fieldContext_Query_panics(ctx, field) 9355 if err != nil { 9356 return graphql.Null 9357 } 9358 ctx = graphql.WithFieldContext(ctx, fc) 9359 defer func() { 9360 if r := recover(); r != nil { 9361 ec.Error(ctx, ec.Recover(ctx, r)) 9362 ret = graphql.Null 9363 } 9364 }() 9365 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9366 ctx = rctx // use context from middleware stack in children 9367 return ec.resolvers.Query().Panics(rctx) 9368 }) 9369 9370 if resTmp == nil { 9371 return graphql.Null 9372 } 9373 res := resTmp.(*Panics) 9374 fc.Result = res 9375 return ec.marshalOPanics2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPanics(ctx, field.Selections, res) 9376 } 9377 9378 func (ec *executionContext) fieldContext_Query_panics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9379 fc = &graphql.FieldContext{ 9380 Object: "Query", 9381 Field: field, 9382 IsMethod: true, 9383 IsResolver: true, 9384 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9385 switch field.Name { 9386 case "fieldScalarMarshal": 9387 return ec.fieldContext_Panics_fieldScalarMarshal(ctx, field) 9388 case "fieldFuncMarshal": 9389 return ec.fieldContext_Panics_fieldFuncMarshal(ctx, field) 9390 case "argUnmarshal": 9391 return ec.fieldContext_Panics_argUnmarshal(ctx, field) 9392 } 9393 return nil, fmt.Errorf("no field named %q was found under type Panics", field.Name) 9394 }, 9395 } 9396 return fc, nil 9397 } 9398 9399 func (ec *executionContext) _Query_primitiveObject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9400 fc, err := ec.fieldContext_Query_primitiveObject(ctx, field) 9401 if err != nil { 9402 return graphql.Null 9403 } 9404 ctx = graphql.WithFieldContext(ctx, fc) 9405 defer func() { 9406 if r := recover(); r != nil { 9407 ec.Error(ctx, ec.Recover(ctx, r)) 9408 ret = graphql.Null 9409 } 9410 }() 9411 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9412 ctx = rctx // use context from middleware stack in children 9413 return ec.resolvers.Query().PrimitiveObject(rctx) 9414 }) 9415 9416 if resTmp == nil { 9417 if !graphql.HasFieldError(ctx, fc) { 9418 ec.Errorf(ctx, "must not be null") 9419 } 9420 return graphql.Null 9421 } 9422 res := resTmp.([]Primitive) 9423 fc.Result = res 9424 return ec.marshalNPrimitive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveᚄ(ctx, field.Selections, res) 9425 } 9426 9427 func (ec *executionContext) fieldContext_Query_primitiveObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9428 fc = &graphql.FieldContext{ 9429 Object: "Query", 9430 Field: field, 9431 IsMethod: true, 9432 IsResolver: true, 9433 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9434 switch field.Name { 9435 case "value": 9436 return ec.fieldContext_Primitive_value(ctx, field) 9437 case "squared": 9438 return ec.fieldContext_Primitive_squared(ctx, field) 9439 } 9440 return nil, fmt.Errorf("no field named %q was found under type Primitive", field.Name) 9441 }, 9442 } 9443 return fc, nil 9444 } 9445 9446 func (ec *executionContext) _Query_primitiveStringObject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9447 fc, err := ec.fieldContext_Query_primitiveStringObject(ctx, field) 9448 if err != nil { 9449 return graphql.Null 9450 } 9451 ctx = graphql.WithFieldContext(ctx, fc) 9452 defer func() { 9453 if r := recover(); r != nil { 9454 ec.Error(ctx, ec.Recover(ctx, r)) 9455 ret = graphql.Null 9456 } 9457 }() 9458 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9459 ctx = rctx // use context from middleware stack in children 9460 return ec.resolvers.Query().PrimitiveStringObject(rctx) 9461 }) 9462 9463 if resTmp == nil { 9464 if !graphql.HasFieldError(ctx, fc) { 9465 ec.Errorf(ctx, "must not be null") 9466 } 9467 return graphql.Null 9468 } 9469 res := resTmp.([]PrimitiveString) 9470 fc.Result = res 9471 return ec.marshalNPrimitiveString2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveStringᚄ(ctx, field.Selections, res) 9472 } 9473 9474 func (ec *executionContext) fieldContext_Query_primitiveStringObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9475 fc = &graphql.FieldContext{ 9476 Object: "Query", 9477 Field: field, 9478 IsMethod: true, 9479 IsResolver: true, 9480 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9481 switch field.Name { 9482 case "value": 9483 return ec.fieldContext_PrimitiveString_value(ctx, field) 9484 case "doubled": 9485 return ec.fieldContext_PrimitiveString_doubled(ctx, field) 9486 case "len": 9487 return ec.fieldContext_PrimitiveString_len(ctx, field) 9488 } 9489 return nil, fmt.Errorf("no field named %q was found under type PrimitiveString", field.Name) 9490 }, 9491 } 9492 return fc, nil 9493 } 9494 9495 func (ec *executionContext) _Query_ptrToSliceContainer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9496 fc, err := ec.fieldContext_Query_ptrToSliceContainer(ctx, field) 9497 if err != nil { 9498 return graphql.Null 9499 } 9500 ctx = graphql.WithFieldContext(ctx, fc) 9501 defer func() { 9502 if r := recover(); r != nil { 9503 ec.Error(ctx, ec.Recover(ctx, r)) 9504 ret = graphql.Null 9505 } 9506 }() 9507 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9508 ctx = rctx // use context from middleware stack in children 9509 return ec.resolvers.Query().PtrToSliceContainer(rctx) 9510 }) 9511 9512 if resTmp == nil { 9513 if !graphql.HasFieldError(ctx, fc) { 9514 ec.Errorf(ctx, "must not be null") 9515 } 9516 return graphql.Null 9517 } 9518 res := resTmp.(*PtrToSliceContainer) 9519 fc.Result = res 9520 return ec.marshalNPtrToSliceContainer2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToSliceContainer(ctx, field.Selections, res) 9521 } 9522 9523 func (ec *executionContext) fieldContext_Query_ptrToSliceContainer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9524 fc = &graphql.FieldContext{ 9525 Object: "Query", 9526 Field: field, 9527 IsMethod: true, 9528 IsResolver: true, 9529 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9530 switch field.Name { 9531 case "ptrToSlice": 9532 return ec.fieldContext_PtrToSliceContainer_ptrToSlice(ctx, field) 9533 } 9534 return nil, fmt.Errorf("no field named %q was found under type PtrToSliceContainer", field.Name) 9535 }, 9536 } 9537 return fc, nil 9538 } 9539 9540 func (ec *executionContext) _Query_infinity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9541 fc, err := ec.fieldContext_Query_infinity(ctx, field) 9542 if err != nil { 9543 return graphql.Null 9544 } 9545 ctx = graphql.WithFieldContext(ctx, fc) 9546 defer func() { 9547 if r := recover(); r != nil { 9548 ec.Error(ctx, ec.Recover(ctx, r)) 9549 ret = graphql.Null 9550 } 9551 }() 9552 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9553 ctx = rctx // use context from middleware stack in children 9554 return ec.resolvers.Query().Infinity(rctx) 9555 }) 9556 9557 if resTmp == nil { 9558 if !graphql.HasFieldError(ctx, fc) { 9559 ec.Errorf(ctx, "must not be null") 9560 } 9561 return graphql.Null 9562 } 9563 res := resTmp.(float64) 9564 fc.Result = res 9565 return ec.marshalNFloat2float64(ctx, field.Selections, res) 9566 } 9567 9568 func (ec *executionContext) fieldContext_Query_infinity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9569 fc = &graphql.FieldContext{ 9570 Object: "Query", 9571 Field: field, 9572 IsMethod: true, 9573 IsResolver: true, 9574 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9575 return nil, errors.New("field of type Float does not have child fields") 9576 }, 9577 } 9578 return fc, nil 9579 } 9580 9581 func (ec *executionContext) _Query_stringFromContextInterface(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9582 fc, err := ec.fieldContext_Query_stringFromContextInterface(ctx, field) 9583 if err != nil { 9584 return graphql.Null 9585 } 9586 ctx = graphql.WithFieldContext(ctx, fc) 9587 defer func() { 9588 if r := recover(); r != nil { 9589 ec.Error(ctx, ec.Recover(ctx, r)) 9590 ret = graphql.Null 9591 } 9592 }() 9593 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9594 ctx = rctx // use context from middleware stack in children 9595 return ec.resolvers.Query().StringFromContextInterface(rctx) 9596 }) 9597 9598 if resTmp == nil { 9599 if !graphql.HasFieldError(ctx, fc) { 9600 ec.Errorf(ctx, "must not be null") 9601 } 9602 return graphql.Null 9603 } 9604 res := resTmp.(*StringFromContextInterface) 9605 fc.Result = res 9606 return ec.marshalNStringFromContextInterface2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx, field.Selections, res) 9607 } 9608 9609 func (ec *executionContext) fieldContext_Query_stringFromContextInterface(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9610 fc = &graphql.FieldContext{ 9611 Object: "Query", 9612 Field: field, 9613 IsMethod: true, 9614 IsResolver: true, 9615 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9616 return nil, errors.New("field of type StringFromContextInterface does not have child fields") 9617 }, 9618 } 9619 return fc, nil 9620 } 9621 9622 func (ec *executionContext) _Query_stringFromContextFunction(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9623 fc, err := ec.fieldContext_Query_stringFromContextFunction(ctx, field) 9624 if err != nil { 9625 return graphql.Null 9626 } 9627 ctx = graphql.WithFieldContext(ctx, fc) 9628 defer func() { 9629 if r := recover(); r != nil { 9630 ec.Error(ctx, ec.Recover(ctx, r)) 9631 ret = graphql.Null 9632 } 9633 }() 9634 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9635 ctx = rctx // use context from middleware stack in children 9636 return ec.resolvers.Query().StringFromContextFunction(rctx) 9637 }) 9638 9639 if resTmp == nil { 9640 if !graphql.HasFieldError(ctx, fc) { 9641 ec.Errorf(ctx, "must not be null") 9642 } 9643 return graphql.Null 9644 } 9645 res := resTmp.(string) 9646 fc.Result = res 9647 return ec.marshalNStringFromContextFunction2string(ctx, field.Selections, res) 9648 } 9649 9650 func (ec *executionContext) fieldContext_Query_stringFromContextFunction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9651 fc = &graphql.FieldContext{ 9652 Object: "Query", 9653 Field: field, 9654 IsMethod: true, 9655 IsResolver: true, 9656 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9657 return nil, errors.New("field of type StringFromContextFunction does not have child fields") 9658 }, 9659 } 9660 return fc, nil 9661 } 9662 9663 func (ec *executionContext) _Query_defaultScalar(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9664 fc, err := ec.fieldContext_Query_defaultScalar(ctx, field) 9665 if err != nil { 9666 return graphql.Null 9667 } 9668 ctx = graphql.WithFieldContext(ctx, fc) 9669 defer func() { 9670 if r := recover(); r != nil { 9671 ec.Error(ctx, ec.Recover(ctx, r)) 9672 ret = graphql.Null 9673 } 9674 }() 9675 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9676 ctx = rctx // use context from middleware stack in children 9677 return ec.resolvers.Query().DefaultScalar(rctx, fc.Args["arg"].(string)) 9678 }) 9679 9680 if resTmp == nil { 9681 if !graphql.HasFieldError(ctx, fc) { 9682 ec.Errorf(ctx, "must not be null") 9683 } 9684 return graphql.Null 9685 } 9686 res := resTmp.(string) 9687 fc.Result = res 9688 return ec.marshalNDefaultScalarImplementation2string(ctx, field.Selections, res) 9689 } 9690 9691 func (ec *executionContext) fieldContext_Query_defaultScalar(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9692 fc = &graphql.FieldContext{ 9693 Object: "Query", 9694 Field: field, 9695 IsMethod: true, 9696 IsResolver: true, 9697 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9698 return nil, errors.New("field of type DefaultScalarImplementation does not have child fields") 9699 }, 9700 } 9701 defer func() { 9702 if r := recover(); r != nil { 9703 err = ec.Recover(ctx, r) 9704 ec.Error(ctx, err) 9705 } 9706 }() 9707 ctx = graphql.WithFieldContext(ctx, fc) 9708 if fc.Args, err = ec.field_Query_defaultScalar_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9709 ec.Error(ctx, err) 9710 return 9711 } 9712 return fc, nil 9713 } 9714 9715 func (ec *executionContext) _Query_slices(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9716 fc, err := ec.fieldContext_Query_slices(ctx, field) 9717 if err != nil { 9718 return graphql.Null 9719 } 9720 ctx = graphql.WithFieldContext(ctx, fc) 9721 defer func() { 9722 if r := recover(); r != nil { 9723 ec.Error(ctx, ec.Recover(ctx, r)) 9724 ret = graphql.Null 9725 } 9726 }() 9727 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9728 ctx = rctx // use context from middleware stack in children 9729 return ec.resolvers.Query().Slices(rctx) 9730 }) 9731 9732 if resTmp == nil { 9733 return graphql.Null 9734 } 9735 res := resTmp.(*Slices) 9736 fc.Result = res 9737 return ec.marshalOSlices2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSlices(ctx, field.Selections, res) 9738 } 9739 9740 func (ec *executionContext) fieldContext_Query_slices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9741 fc = &graphql.FieldContext{ 9742 Object: "Query", 9743 Field: field, 9744 IsMethod: true, 9745 IsResolver: true, 9746 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9747 switch field.Name { 9748 case "test1": 9749 return ec.fieldContext_Slices_test1(ctx, field) 9750 case "test2": 9751 return ec.fieldContext_Slices_test2(ctx, field) 9752 case "test3": 9753 return ec.fieldContext_Slices_test3(ctx, field) 9754 case "test4": 9755 return ec.fieldContext_Slices_test4(ctx, field) 9756 } 9757 return nil, fmt.Errorf("no field named %q was found under type Slices", field.Name) 9758 }, 9759 } 9760 return fc, nil 9761 } 9762 9763 func (ec *executionContext) _Query_scalarSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9764 fc, err := ec.fieldContext_Query_scalarSlice(ctx, field) 9765 if err != nil { 9766 return graphql.Null 9767 } 9768 ctx = graphql.WithFieldContext(ctx, fc) 9769 defer func() { 9770 if r := recover(); r != nil { 9771 ec.Error(ctx, ec.Recover(ctx, r)) 9772 ret = graphql.Null 9773 } 9774 }() 9775 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9776 ctx = rctx // use context from middleware stack in children 9777 return ec.resolvers.Query().ScalarSlice(rctx) 9778 }) 9779 9780 if resTmp == nil { 9781 if !graphql.HasFieldError(ctx, fc) { 9782 ec.Errorf(ctx, "must not be null") 9783 } 9784 return graphql.Null 9785 } 9786 res := resTmp.([]byte) 9787 fc.Result = res 9788 return ec.marshalNBytes2ᚕbyte(ctx, field.Selections, res) 9789 } 9790 9791 func (ec *executionContext) fieldContext_Query_scalarSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9792 fc = &graphql.FieldContext{ 9793 Object: "Query", 9794 Field: field, 9795 IsMethod: true, 9796 IsResolver: true, 9797 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9798 return nil, errors.New("field of type Bytes does not have child fields") 9799 }, 9800 } 9801 return fc, nil 9802 } 9803 9804 func (ec *executionContext) _Query_fallback(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9805 fc, err := ec.fieldContext_Query_fallback(ctx, field) 9806 if err != nil { 9807 return graphql.Null 9808 } 9809 ctx = graphql.WithFieldContext(ctx, fc) 9810 defer func() { 9811 if r := recover(); r != nil { 9812 ec.Error(ctx, ec.Recover(ctx, r)) 9813 ret = graphql.Null 9814 } 9815 }() 9816 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9817 ctx = rctx // use context from middleware stack in children 9818 return ec.resolvers.Query().Fallback(rctx, fc.Args["arg"].(FallbackToStringEncoding)) 9819 }) 9820 9821 if resTmp == nil { 9822 if !graphql.HasFieldError(ctx, fc) { 9823 ec.Errorf(ctx, "must not be null") 9824 } 9825 return graphql.Null 9826 } 9827 res := resTmp.(FallbackToStringEncoding) 9828 fc.Result = res 9829 return ec.marshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx, field.Selections, res) 9830 } 9831 9832 func (ec *executionContext) fieldContext_Query_fallback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9833 fc = &graphql.FieldContext{ 9834 Object: "Query", 9835 Field: field, 9836 IsMethod: true, 9837 IsResolver: true, 9838 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9839 return nil, errors.New("field of type FallbackToStringEncoding does not have child fields") 9840 }, 9841 } 9842 defer func() { 9843 if r := recover(); r != nil { 9844 err = ec.Recover(ctx, r) 9845 ec.Error(ctx, err) 9846 } 9847 }() 9848 ctx = graphql.WithFieldContext(ctx, fc) 9849 if fc.Args, err = ec.field_Query_fallback_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9850 ec.Error(ctx, err) 9851 return 9852 } 9853 return fc, nil 9854 } 9855 9856 func (ec *executionContext) _Query_optionalUnion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9857 fc, err := ec.fieldContext_Query_optionalUnion(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().OptionalUnion(rctx) 9871 }) 9872 9873 if resTmp == nil { 9874 return graphql.Null 9875 } 9876 res := resTmp.(TestUnion) 9877 fc.Result = res 9878 return ec.marshalOTestUnion2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐTestUnion(ctx, field.Selections, res) 9879 } 9880 9881 func (ec *executionContext) fieldContext_Query_optionalUnion(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 return nil, errors.New("field of type TestUnion does not have child fields") 9889 }, 9890 } 9891 return fc, nil 9892 } 9893 9894 func (ec *executionContext) _Query_vOkCaseValue(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9895 fc, err := ec.fieldContext_Query_vOkCaseValue(ctx, field) 9896 if err != nil { 9897 return graphql.Null 9898 } 9899 ctx = graphql.WithFieldContext(ctx, fc) 9900 defer func() { 9901 if r := recover(); r != nil { 9902 ec.Error(ctx, ec.Recover(ctx, r)) 9903 ret = graphql.Null 9904 } 9905 }() 9906 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9907 ctx = rctx // use context from middleware stack in children 9908 return ec.resolvers.Query().VOkCaseValue(rctx) 9909 }) 9910 9911 if resTmp == nil { 9912 return graphql.Null 9913 } 9914 res := resTmp.(*VOkCaseValue) 9915 fc.Result = res 9916 return ec.marshalOVOkCaseValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVOkCaseValue(ctx, field.Selections, res) 9917 } 9918 9919 func (ec *executionContext) fieldContext_Query_vOkCaseValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9920 fc = &graphql.FieldContext{ 9921 Object: "Query", 9922 Field: field, 9923 IsMethod: true, 9924 IsResolver: true, 9925 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9926 switch field.Name { 9927 case "value": 9928 return ec.fieldContext_VOkCaseValue_value(ctx, field) 9929 } 9930 return nil, fmt.Errorf("no field named %q was found under type VOkCaseValue", field.Name) 9931 }, 9932 } 9933 return fc, nil 9934 } 9935 9936 func (ec *executionContext) _Query_vOkCaseNil(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9937 fc, err := ec.fieldContext_Query_vOkCaseNil(ctx, field) 9938 if err != nil { 9939 return graphql.Null 9940 } 9941 ctx = graphql.WithFieldContext(ctx, fc) 9942 defer func() { 9943 if r := recover(); r != nil { 9944 ec.Error(ctx, ec.Recover(ctx, r)) 9945 ret = graphql.Null 9946 } 9947 }() 9948 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9949 ctx = rctx // use context from middleware stack in children 9950 return ec.resolvers.Query().VOkCaseNil(rctx) 9951 }) 9952 9953 if resTmp == nil { 9954 return graphql.Null 9955 } 9956 res := resTmp.(*VOkCaseNil) 9957 fc.Result = res 9958 return ec.marshalOVOkCaseNil2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVOkCaseNil(ctx, field.Selections, res) 9959 } 9960 9961 func (ec *executionContext) fieldContext_Query_vOkCaseNil(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9962 fc = &graphql.FieldContext{ 9963 Object: "Query", 9964 Field: field, 9965 IsMethod: true, 9966 IsResolver: true, 9967 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9968 switch field.Name { 9969 case "value": 9970 return ec.fieldContext_VOkCaseNil_value(ctx, field) 9971 } 9972 return nil, fmt.Errorf("no field named %q was found under type VOkCaseNil", field.Name) 9973 }, 9974 } 9975 return fc, nil 9976 } 9977 9978 func (ec *executionContext) _Query_validType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 9979 fc, err := ec.fieldContext_Query_validType(ctx, field) 9980 if err != nil { 9981 return graphql.Null 9982 } 9983 ctx = graphql.WithFieldContext(ctx, fc) 9984 defer func() { 9985 if r := recover(); r != nil { 9986 ec.Error(ctx, ec.Recover(ctx, r)) 9987 ret = graphql.Null 9988 } 9989 }() 9990 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 9991 ctx = rctx // use context from middleware stack in children 9992 return ec.resolvers.Query().ValidType(rctx) 9993 }) 9994 9995 if resTmp == nil { 9996 return graphql.Null 9997 } 9998 res := resTmp.(*ValidType) 9999 fc.Result = res 10000 return ec.marshalOValidType2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidType(ctx, field.Selections, res) 10001 } 10002 10003 func (ec *executionContext) fieldContext_Query_validType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10004 fc = &graphql.FieldContext{ 10005 Object: "Query", 10006 Field: field, 10007 IsMethod: true, 10008 IsResolver: true, 10009 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10010 switch field.Name { 10011 case "differentCase": 10012 return ec.fieldContext_ValidType_differentCase(ctx, field) 10013 case "different_case": 10014 return ec.fieldContext_ValidType_different_case(ctx, field) 10015 case "validInputKeywords": 10016 return ec.fieldContext_ValidType_validInputKeywords(ctx, field) 10017 case "validArgs": 10018 return ec.fieldContext_ValidType_validArgs(ctx, field) 10019 } 10020 return nil, fmt.Errorf("no field named %q was found under type ValidType", field.Name) 10021 }, 10022 } 10023 return fc, nil 10024 } 10025 10026 func (ec *executionContext) _Query_variadicModel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10027 fc, err := ec.fieldContext_Query_variadicModel(ctx, field) 10028 if err != nil { 10029 return graphql.Null 10030 } 10031 ctx = graphql.WithFieldContext(ctx, fc) 10032 defer func() { 10033 if r := recover(); r != nil { 10034 ec.Error(ctx, ec.Recover(ctx, r)) 10035 ret = graphql.Null 10036 } 10037 }() 10038 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10039 ctx = rctx // use context from middleware stack in children 10040 return ec.resolvers.Query().VariadicModel(rctx) 10041 }) 10042 10043 if resTmp == nil { 10044 return graphql.Null 10045 } 10046 res := resTmp.(*VariadicModel) 10047 fc.Result = res 10048 return ec.marshalOVariadicModel2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVariadicModel(ctx, field.Selections, res) 10049 } 10050 10051 func (ec *executionContext) fieldContext_Query_variadicModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10052 fc = &graphql.FieldContext{ 10053 Object: "Query", 10054 Field: field, 10055 IsMethod: true, 10056 IsResolver: true, 10057 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10058 switch field.Name { 10059 case "value": 10060 return ec.fieldContext_VariadicModel_value(ctx, field) 10061 } 10062 return nil, fmt.Errorf("no field named %q was found under type VariadicModel", field.Name) 10063 }, 10064 } 10065 return fc, nil 10066 } 10067 10068 func (ec *executionContext) _Query_wrappedStruct(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10069 fc, err := ec.fieldContext_Query_wrappedStruct(ctx, field) 10070 if err != nil { 10071 return graphql.Null 10072 } 10073 ctx = graphql.WithFieldContext(ctx, fc) 10074 defer func() { 10075 if r := recover(); r != nil { 10076 ec.Error(ctx, ec.Recover(ctx, r)) 10077 ret = graphql.Null 10078 } 10079 }() 10080 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10081 ctx = rctx // use context from middleware stack in children 10082 return ec.resolvers.Query().WrappedStruct(rctx) 10083 }) 10084 10085 if resTmp == nil { 10086 if !graphql.HasFieldError(ctx, fc) { 10087 ec.Errorf(ctx, "must not be null") 10088 } 10089 return graphql.Null 10090 } 10091 res := resTmp.(*WrappedStruct) 10092 fc.Result = res 10093 return ec.marshalNWrappedStruct2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedStruct(ctx, field.Selections, res) 10094 } 10095 10096 func (ec *executionContext) fieldContext_Query_wrappedStruct(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10097 fc = &graphql.FieldContext{ 10098 Object: "Query", 10099 Field: field, 10100 IsMethod: true, 10101 IsResolver: true, 10102 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10103 switch field.Name { 10104 case "name": 10105 return ec.fieldContext_WrappedStruct_name(ctx, field) 10106 case "desc": 10107 return ec.fieldContext_WrappedStruct_desc(ctx, field) 10108 } 10109 return nil, fmt.Errorf("no field named %q was found under type WrappedStruct", field.Name) 10110 }, 10111 } 10112 return fc, nil 10113 } 10114 10115 func (ec *executionContext) _Query_wrappedScalar(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10116 fc, err := ec.fieldContext_Query_wrappedScalar(ctx, field) 10117 if err != nil { 10118 return graphql.Null 10119 } 10120 ctx = graphql.WithFieldContext(ctx, fc) 10121 defer func() { 10122 if r := recover(); r != nil { 10123 ec.Error(ctx, ec.Recover(ctx, r)) 10124 ret = graphql.Null 10125 } 10126 }() 10127 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10128 ctx = rctx // use context from middleware stack in children 10129 return ec.resolvers.Query().WrappedScalar(rctx) 10130 }) 10131 10132 if resTmp == nil { 10133 if !graphql.HasFieldError(ctx, fc) { 10134 ec.Errorf(ctx, "must not be null") 10135 } 10136 return graphql.Null 10137 } 10138 res := resTmp.(otherpkg.Scalar) 10139 fc.Result = res 10140 return ec.marshalNWrappedScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx, field.Selections, res) 10141 } 10142 10143 func (ec *executionContext) fieldContext_Query_wrappedScalar(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10144 fc = &graphql.FieldContext{ 10145 Object: "Query", 10146 Field: field, 10147 IsMethod: true, 10148 IsResolver: true, 10149 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10150 return nil, errors.New("field of type WrappedScalar does not have child fields") 10151 }, 10152 } 10153 return fc, nil 10154 } 10155 10156 func (ec *executionContext) _Query_wrappedMap(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10157 fc, err := ec.fieldContext_Query_wrappedMap(ctx, field) 10158 if err != nil { 10159 return graphql.Null 10160 } 10161 ctx = graphql.WithFieldContext(ctx, fc) 10162 defer func() { 10163 if r := recover(); r != nil { 10164 ec.Error(ctx, ec.Recover(ctx, r)) 10165 ret = graphql.Null 10166 } 10167 }() 10168 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10169 ctx = rctx // use context from middleware stack in children 10170 return ec.resolvers.Query().WrappedMap(rctx) 10171 }) 10172 10173 if resTmp == nil { 10174 if !graphql.HasFieldError(ctx, fc) { 10175 ec.Errorf(ctx, "must not be null") 10176 } 10177 return graphql.Null 10178 } 10179 res := resTmp.(WrappedMap) 10180 fc.Result = res 10181 return ec.marshalNWrappedMap2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedMap(ctx, field.Selections, res) 10182 } 10183 10184 func (ec *executionContext) fieldContext_Query_wrappedMap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10185 fc = &graphql.FieldContext{ 10186 Object: "Query", 10187 Field: field, 10188 IsMethod: true, 10189 IsResolver: true, 10190 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10191 switch field.Name { 10192 case "get": 10193 return ec.fieldContext_WrappedMap_get(ctx, field) 10194 } 10195 return nil, fmt.Errorf("no field named %q was found under type WrappedMap", field.Name) 10196 }, 10197 } 10198 return fc, nil 10199 } 10200 10201 func (ec *executionContext) _Query_wrappedSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10202 fc, err := ec.fieldContext_Query_wrappedSlice(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().WrappedSlice(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.(WrappedSlice) 10225 fc.Result = res 10226 return ec.marshalNWrappedSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedSlice(ctx, field.Selections, res) 10227 } 10228 10229 func (ec *executionContext) fieldContext_Query_wrappedSlice(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 switch field.Name { 10237 case "get": 10238 return ec.fieldContext_WrappedSlice_get(ctx, field) 10239 } 10240 return nil, fmt.Errorf("no field named %q was found under type WrappedSlice", field.Name) 10241 }, 10242 } 10243 return fc, nil 10244 } 10245 10246 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10247 fc, err := ec.fieldContext_Query___type(ctx, field) 10248 if err != nil { 10249 return graphql.Null 10250 } 10251 ctx = graphql.WithFieldContext(ctx, fc) 10252 defer func() { 10253 if r := recover(); r != nil { 10254 ec.Error(ctx, ec.Recover(ctx, r)) 10255 ret = graphql.Null 10256 } 10257 }() 10258 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10259 ctx = rctx // use context from middleware stack in children 10260 return ec.introspectType(fc.Args["name"].(string)) 10261 }) 10262 10263 if resTmp == nil { 10264 return graphql.Null 10265 } 10266 res := resTmp.(*introspection.Type) 10267 fc.Result = res 10268 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 10269 } 10270 10271 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10272 fc = &graphql.FieldContext{ 10273 Object: "Query", 10274 Field: field, 10275 IsMethod: true, 10276 IsResolver: false, 10277 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10278 switch field.Name { 10279 case "kind": 10280 return ec.fieldContext___Type_kind(ctx, field) 10281 case "name": 10282 return ec.fieldContext___Type_name(ctx, field) 10283 case "description": 10284 return ec.fieldContext___Type_description(ctx, field) 10285 case "fields": 10286 return ec.fieldContext___Type_fields(ctx, field) 10287 case "interfaces": 10288 return ec.fieldContext___Type_interfaces(ctx, field) 10289 case "possibleTypes": 10290 return ec.fieldContext___Type_possibleTypes(ctx, field) 10291 case "enumValues": 10292 return ec.fieldContext___Type_enumValues(ctx, field) 10293 case "inputFields": 10294 return ec.fieldContext___Type_inputFields(ctx, field) 10295 case "ofType": 10296 return ec.fieldContext___Type_ofType(ctx, field) 10297 case "specifiedByURL": 10298 return ec.fieldContext___Type_specifiedByURL(ctx, field) 10299 } 10300 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 10301 }, 10302 } 10303 defer func() { 10304 if r := recover(); r != nil { 10305 err = ec.Recover(ctx, r) 10306 ec.Error(ctx, err) 10307 } 10308 }() 10309 ctx = graphql.WithFieldContext(ctx, fc) 10310 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10311 ec.Error(ctx, err) 10312 return 10313 } 10314 return fc, nil 10315 } 10316 10317 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 10318 fc, err := ec.fieldContext_Query___schema(ctx, field) 10319 if err != nil { 10320 return graphql.Null 10321 } 10322 ctx = graphql.WithFieldContext(ctx, fc) 10323 defer func() { 10324 if r := recover(); r != nil { 10325 ec.Error(ctx, ec.Recover(ctx, r)) 10326 ret = graphql.Null 10327 } 10328 }() 10329 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10330 ctx = rctx // use context from middleware stack in children 10331 return ec.introspectSchema() 10332 }) 10333 10334 if resTmp == nil { 10335 return graphql.Null 10336 } 10337 res := resTmp.(*introspection.Schema) 10338 fc.Result = res 10339 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) 10340 } 10341 10342 func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10343 fc = &graphql.FieldContext{ 10344 Object: "Query", 10345 Field: field, 10346 IsMethod: true, 10347 IsResolver: false, 10348 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10349 switch field.Name { 10350 case "description": 10351 return ec.fieldContext___Schema_description(ctx, field) 10352 case "types": 10353 return ec.fieldContext___Schema_types(ctx, field) 10354 case "queryType": 10355 return ec.fieldContext___Schema_queryType(ctx, field) 10356 case "mutationType": 10357 return ec.fieldContext___Schema_mutationType(ctx, field) 10358 case "subscriptionType": 10359 return ec.fieldContext___Schema_subscriptionType(ctx, field) 10360 case "directives": 10361 return ec.fieldContext___Schema_directives(ctx, field) 10362 } 10363 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) 10364 }, 10365 } 10366 return fc, nil 10367 } 10368 10369 func (ec *executionContext) _Rectangle_length(ctx context.Context, field graphql.CollectedField, obj *Rectangle) (ret graphql.Marshaler) { 10370 fc, err := ec.fieldContext_Rectangle_length(ctx, field) 10371 if err != nil { 10372 return graphql.Null 10373 } 10374 ctx = graphql.WithFieldContext(ctx, fc) 10375 defer func() { 10376 if r := recover(); r != nil { 10377 ec.Error(ctx, ec.Recover(ctx, r)) 10378 ret = graphql.Null 10379 } 10380 }() 10381 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 10382 ctx = rctx // use context from middleware stack in children 10383 return obj.Length, nil 10384 }) 10385 10386 if resTmp == nil { 10387 return graphql.Null 10388 } 10389 res := resTmp.(float64) 10390 fc.Result = res 10391 return ec.marshalOFloat2float64(ctx, field.Selections, res) 10392 } 10393 10394 func (ec *executionContext) fieldContext_Rectangle_length(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10395 fc = &graphql.FieldContext{ 10396 Object: "Rectangle", 10397 Field: field, 10398 IsMethod: false, 10399 IsResolver: false, 10400 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10401 return nil, errors.New("field of type Float does not have child fields") 10402 }, 10403 } 10404 return fc, nil 10405 } 10406 10407 func (ec *executionContext) _Rectangle_width(ctx context.Context, field graphql.CollectedField, obj *Rectangle) (ret graphql.Marshaler) { 10408 fc, err := ec.fieldContext_Rectangle_width(ctx, field) 10409 if err != nil { 10410 return graphql.Null 10411 } 10412 ctx = graphql.WithFieldContext(ctx, fc) 10413 defer func() { 10414 if r := recover(); r != nil { 10415 ec.Error(ctx, ec.Recover(ctx, r)) 10416 ret = graphql.Null 10417 } 10418 }() 10419 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 10420 ctx = rctx // use context from middleware stack in children 10421 return obj.Width, nil 10422 }) 10423 10424 if resTmp == nil { 10425 return graphql.Null 10426 } 10427 res := resTmp.(float64) 10428 fc.Result = res 10429 return ec.marshalOFloat2float64(ctx, field.Selections, res) 10430 } 10431 10432 func (ec *executionContext) fieldContext_Rectangle_width(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10433 fc = &graphql.FieldContext{ 10434 Object: "Rectangle", 10435 Field: field, 10436 IsMethod: false, 10437 IsResolver: false, 10438 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10439 return nil, errors.New("field of type Float does not have child fields") 10440 }, 10441 } 10442 return fc, nil 10443 } 10444 10445 func (ec *executionContext) _Rectangle_area(ctx context.Context, field graphql.CollectedField, obj *Rectangle) (ret graphql.Marshaler) { 10446 fc, err := ec.fieldContext_Rectangle_area(ctx, field) 10447 if err != nil { 10448 return graphql.Null 10449 } 10450 ctx = graphql.WithFieldContext(ctx, fc) 10451 defer func() { 10452 if r := recover(); r != nil { 10453 ec.Error(ctx, ec.Recover(ctx, r)) 10454 ret = graphql.Null 10455 } 10456 }() 10457 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 10458 ctx = rctx // use context from middleware stack in children 10459 return obj.Area(), nil 10460 }) 10461 10462 if resTmp == nil { 10463 return graphql.Null 10464 } 10465 res := resTmp.(float64) 10466 fc.Result = res 10467 return ec.marshalOFloat2float64(ctx, field.Selections, res) 10468 } 10469 10470 func (ec *executionContext) fieldContext_Rectangle_area(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10471 fc = &graphql.FieldContext{ 10472 Object: "Rectangle", 10473 Field: field, 10474 IsMethod: true, 10475 IsResolver: false, 10476 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10477 return nil, errors.New("field of type Float does not have child fields") 10478 }, 10479 } 10480 return fc, nil 10481 } 10482 10483 func (ec *executionContext) _Rectangle_coordinates(ctx context.Context, field graphql.CollectedField, obj *Rectangle) (ret graphql.Marshaler) { 10484 fc, err := ec.fieldContext_Rectangle_coordinates(ctx, field) 10485 if err != nil { 10486 return graphql.Null 10487 } 10488 ctx = graphql.WithFieldContext(ctx, fc) 10489 defer func() { 10490 if r := recover(); r != nil { 10491 ec.Error(ctx, ec.Recover(ctx, r)) 10492 ret = graphql.Null 10493 } 10494 }() 10495 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 10496 ctx = rctx // use context from middleware stack in children 10497 return obj.Coordinates, nil 10498 }) 10499 10500 if resTmp == nil { 10501 return graphql.Null 10502 } 10503 res := resTmp.(Coordinates) 10504 fc.Result = res 10505 return ec.marshalOCoordinates2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCoordinates(ctx, field.Selections, res) 10506 } 10507 10508 func (ec *executionContext) fieldContext_Rectangle_coordinates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10509 fc = &graphql.FieldContext{ 10510 Object: "Rectangle", 10511 Field: field, 10512 IsMethod: false, 10513 IsResolver: false, 10514 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10515 switch field.Name { 10516 case "x": 10517 return ec.fieldContext_Coordinates_x(ctx, field) 10518 case "y": 10519 return ec.fieldContext_Coordinates_y(ctx, field) 10520 } 10521 return nil, fmt.Errorf("no field named %q was found under type Coordinates", field.Name) 10522 }, 10523 } 10524 return fc, nil 10525 } 10526 10527 func (ec *executionContext) _Slices_test1(ctx context.Context, field graphql.CollectedField, obj *Slices) (ret graphql.Marshaler) { 10528 fc, err := ec.fieldContext_Slices_test1(ctx, field) 10529 if err != nil { 10530 return graphql.Null 10531 } 10532 ctx = graphql.WithFieldContext(ctx, fc) 10533 defer func() { 10534 if r := recover(); r != nil { 10535 ec.Error(ctx, ec.Recover(ctx, r)) 10536 ret = graphql.Null 10537 } 10538 }() 10539 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 10540 ctx = rctx // use context from middleware stack in children 10541 return obj.Test1, nil 10542 }) 10543 10544 if resTmp == nil { 10545 return graphql.Null 10546 } 10547 res := resTmp.([]*string) 10548 fc.Result = res 10549 return ec.marshalOString2ᚕᚖstring(ctx, field.Selections, res) 10550 } 10551 10552 func (ec *executionContext) fieldContext_Slices_test1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10553 fc = &graphql.FieldContext{ 10554 Object: "Slices", 10555 Field: field, 10556 IsMethod: false, 10557 IsResolver: false, 10558 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10559 return nil, errors.New("field of type String does not have child fields") 10560 }, 10561 } 10562 return fc, nil 10563 } 10564 10565 func (ec *executionContext) _Slices_test2(ctx context.Context, field graphql.CollectedField, obj *Slices) (ret graphql.Marshaler) { 10566 fc, err := ec.fieldContext_Slices_test2(ctx, field) 10567 if err != nil { 10568 return graphql.Null 10569 } 10570 ctx = graphql.WithFieldContext(ctx, fc) 10571 defer func() { 10572 if r := recover(); r != nil { 10573 ec.Error(ctx, ec.Recover(ctx, r)) 10574 ret = graphql.Null 10575 } 10576 }() 10577 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 10578 ctx = rctx // use context from middleware stack in children 10579 return obj.Test2, nil 10580 }) 10581 10582 if resTmp == nil { 10583 return graphql.Null 10584 } 10585 res := resTmp.([]string) 10586 fc.Result = res 10587 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 10588 } 10589 10590 func (ec *executionContext) fieldContext_Slices_test2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10591 fc = &graphql.FieldContext{ 10592 Object: "Slices", 10593 Field: field, 10594 IsMethod: false, 10595 IsResolver: false, 10596 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10597 return nil, errors.New("field of type String does not have child fields") 10598 }, 10599 } 10600 return fc, nil 10601 } 10602 10603 func (ec *executionContext) _Slices_test3(ctx context.Context, field graphql.CollectedField, obj *Slices) (ret graphql.Marshaler) { 10604 fc, err := ec.fieldContext_Slices_test3(ctx, field) 10605 if err != nil { 10606 return graphql.Null 10607 } 10608 ctx = graphql.WithFieldContext(ctx, fc) 10609 defer func() { 10610 if r := recover(); r != nil { 10611 ec.Error(ctx, ec.Recover(ctx, r)) 10612 ret = graphql.Null 10613 } 10614 }() 10615 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 10616 ctx = rctx // use context from middleware stack in children 10617 return obj.Test3, nil 10618 }) 10619 10620 if resTmp == nil { 10621 if !graphql.HasFieldError(ctx, fc) { 10622 ec.Errorf(ctx, "must not be null") 10623 } 10624 return graphql.Null 10625 } 10626 res := resTmp.([]*string) 10627 fc.Result = res 10628 return ec.marshalNString2ᚕᚖstring(ctx, field.Selections, res) 10629 } 10630 10631 func (ec *executionContext) fieldContext_Slices_test3(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10632 fc = &graphql.FieldContext{ 10633 Object: "Slices", 10634 Field: field, 10635 IsMethod: false, 10636 IsResolver: false, 10637 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10638 return nil, errors.New("field of type String does not have child fields") 10639 }, 10640 } 10641 return fc, nil 10642 } 10643 10644 func (ec *executionContext) _Slices_test4(ctx context.Context, field graphql.CollectedField, obj *Slices) (ret graphql.Marshaler) { 10645 fc, err := ec.fieldContext_Slices_test4(ctx, field) 10646 if err != nil { 10647 return graphql.Null 10648 } 10649 ctx = graphql.WithFieldContext(ctx, fc) 10650 defer func() { 10651 if r := recover(); r != nil { 10652 ec.Error(ctx, ec.Recover(ctx, r)) 10653 ret = graphql.Null 10654 } 10655 }() 10656 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 10657 ctx = rctx // use context from middleware stack in children 10658 return obj.Test4, nil 10659 }) 10660 10661 if resTmp == nil { 10662 if !graphql.HasFieldError(ctx, fc) { 10663 ec.Errorf(ctx, "must not be null") 10664 } 10665 return graphql.Null 10666 } 10667 res := resTmp.([]string) 10668 fc.Result = res 10669 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 10670 } 10671 10672 func (ec *executionContext) fieldContext_Slices_test4(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10673 fc = &graphql.FieldContext{ 10674 Object: "Slices", 10675 Field: field, 10676 IsMethod: false, 10677 IsResolver: false, 10678 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10679 return nil, errors.New("field of type String does not have child fields") 10680 }, 10681 } 10682 return fc, nil 10683 } 10684 10685 func (ec *executionContext) _Subscription_updated(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 10686 fc, err := ec.fieldContext_Subscription_updated(ctx, field) 10687 if err != nil { 10688 return nil 10689 } 10690 ctx = graphql.WithFieldContext(ctx, fc) 10691 defer func() { 10692 if r := recover(); r != nil { 10693 ec.Error(ctx, ec.Recover(ctx, r)) 10694 ret = nil 10695 } 10696 }() 10697 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10698 ctx = rctx // use context from middleware stack in children 10699 return ec.resolvers.Subscription().Updated(rctx) 10700 }) 10701 10702 if resTmp == nil { 10703 if !graphql.HasFieldError(ctx, fc) { 10704 ec.Errorf(ctx, "must not be null") 10705 } 10706 return nil 10707 } 10708 return func(ctx context.Context) graphql.Marshaler { 10709 select { 10710 case res, ok := <-resTmp.(<-chan string): 10711 if !ok { 10712 return nil 10713 } 10714 return graphql.WriterFunc(func(w io.Writer) { 10715 w.Write([]byte{'{'}) 10716 graphql.MarshalString(field.Alias).MarshalGQL(w) 10717 w.Write([]byte{':'}) 10718 ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w) 10719 w.Write([]byte{'}'}) 10720 }) 10721 case <-ctx.Done(): 10722 return nil 10723 } 10724 } 10725 } 10726 10727 func (ec *executionContext) fieldContext_Subscription_updated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10728 fc = &graphql.FieldContext{ 10729 Object: "Subscription", 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 String does not have child fields") 10735 }, 10736 } 10737 return fc, nil 10738 } 10739 10740 func (ec *executionContext) _Subscription_initPayload(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 10741 fc, err := ec.fieldContext_Subscription_initPayload(ctx, field) 10742 if err != nil { 10743 return nil 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 = nil 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.Subscription().InitPayload(rctx) 10755 }) 10756 10757 if resTmp == nil { 10758 if !graphql.HasFieldError(ctx, fc) { 10759 ec.Errorf(ctx, "must not be null") 10760 } 10761 return nil 10762 } 10763 return func(ctx context.Context) graphql.Marshaler { 10764 select { 10765 case res, ok := <-resTmp.(<-chan string): 10766 if !ok { 10767 return nil 10768 } 10769 return graphql.WriterFunc(func(w io.Writer) { 10770 w.Write([]byte{'{'}) 10771 graphql.MarshalString(field.Alias).MarshalGQL(w) 10772 w.Write([]byte{':'}) 10773 ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w) 10774 w.Write([]byte{'}'}) 10775 }) 10776 case <-ctx.Done(): 10777 return nil 10778 } 10779 } 10780 } 10781 10782 func (ec *executionContext) fieldContext_Subscription_initPayload(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10783 fc = &graphql.FieldContext{ 10784 Object: "Subscription", 10785 Field: field, 10786 IsMethod: true, 10787 IsResolver: true, 10788 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10789 return nil, errors.New("field of type String does not have child fields") 10790 }, 10791 } 10792 return fc, nil 10793 } 10794 10795 func (ec *executionContext) _Subscription_directiveArg(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 10796 fc, err := ec.fieldContext_Subscription_directiveArg(ctx, field) 10797 if err != nil { 10798 return nil 10799 } 10800 ctx = graphql.WithFieldContext(ctx, fc) 10801 defer func() { 10802 if r := recover(); r != nil { 10803 ec.Error(ctx, ec.Recover(ctx, r)) 10804 ret = nil 10805 } 10806 }() 10807 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10808 ctx = rctx // use context from middleware stack in children 10809 return ec.resolvers.Subscription().DirectiveArg(rctx, fc.Args["arg"].(string)) 10810 }) 10811 10812 if resTmp == nil { 10813 return nil 10814 } 10815 return func(ctx context.Context) graphql.Marshaler { 10816 select { 10817 case res, ok := <-resTmp.(<-chan *string): 10818 if !ok { 10819 return nil 10820 } 10821 return graphql.WriterFunc(func(w io.Writer) { 10822 w.Write([]byte{'{'}) 10823 graphql.MarshalString(field.Alias).MarshalGQL(w) 10824 w.Write([]byte{':'}) 10825 ec.marshalOString2ᚖstring(ctx, field.Selections, res).MarshalGQL(w) 10826 w.Write([]byte{'}'}) 10827 }) 10828 case <-ctx.Done(): 10829 return nil 10830 } 10831 } 10832 } 10833 10834 func (ec *executionContext) fieldContext_Subscription_directiveArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10835 fc = &graphql.FieldContext{ 10836 Object: "Subscription", 10837 Field: field, 10838 IsMethod: true, 10839 IsResolver: true, 10840 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10841 return nil, errors.New("field of type String does not have child fields") 10842 }, 10843 } 10844 defer func() { 10845 if r := recover(); r != nil { 10846 err = ec.Recover(ctx, r) 10847 ec.Error(ctx, err) 10848 } 10849 }() 10850 ctx = graphql.WithFieldContext(ctx, fc) 10851 if fc.Args, err = ec.field_Subscription_directiveArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10852 ec.Error(ctx, err) 10853 return 10854 } 10855 return fc, nil 10856 } 10857 10858 func (ec *executionContext) _Subscription_directiveNullableArg(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 10859 fc, err := ec.fieldContext_Subscription_directiveNullableArg(ctx, field) 10860 if err != nil { 10861 return nil 10862 } 10863 ctx = graphql.WithFieldContext(ctx, fc) 10864 defer func() { 10865 if r := recover(); r != nil { 10866 ec.Error(ctx, ec.Recover(ctx, r)) 10867 ret = nil 10868 } 10869 }() 10870 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10871 ctx = rctx // use context from middleware stack in children 10872 return ec.resolvers.Subscription().DirectiveNullableArg(rctx, fc.Args["arg"].(*int), fc.Args["arg2"].(*int), fc.Args["arg3"].(*string)) 10873 }) 10874 10875 if resTmp == nil { 10876 return nil 10877 } 10878 return func(ctx context.Context) graphql.Marshaler { 10879 select { 10880 case res, ok := <-resTmp.(<-chan *string): 10881 if !ok { 10882 return nil 10883 } 10884 return graphql.WriterFunc(func(w io.Writer) { 10885 w.Write([]byte{'{'}) 10886 graphql.MarshalString(field.Alias).MarshalGQL(w) 10887 w.Write([]byte{':'}) 10888 ec.marshalOString2ᚖstring(ctx, field.Selections, res).MarshalGQL(w) 10889 w.Write([]byte{'}'}) 10890 }) 10891 case <-ctx.Done(): 10892 return nil 10893 } 10894 } 10895 } 10896 10897 func (ec *executionContext) fieldContext_Subscription_directiveNullableArg(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10898 fc = &graphql.FieldContext{ 10899 Object: "Subscription", 10900 Field: field, 10901 IsMethod: true, 10902 IsResolver: true, 10903 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10904 return nil, errors.New("field of type String does not have child fields") 10905 }, 10906 } 10907 defer func() { 10908 if r := recover(); r != nil { 10909 err = ec.Recover(ctx, r) 10910 ec.Error(ctx, err) 10911 } 10912 }() 10913 ctx = graphql.WithFieldContext(ctx, fc) 10914 if fc.Args, err = ec.field_Subscription_directiveNullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10915 ec.Error(ctx, err) 10916 return 10917 } 10918 return fc, nil 10919 } 10920 10921 func (ec *executionContext) _Subscription_directiveDouble(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 10922 fc, err := ec.fieldContext_Subscription_directiveDouble(ctx, field) 10923 if err != nil { 10924 return nil 10925 } 10926 ctx = graphql.WithFieldContext(ctx, fc) 10927 defer func() { 10928 if r := recover(); r != nil { 10929 ec.Error(ctx, ec.Recover(ctx, r)) 10930 ret = nil 10931 } 10932 }() 10933 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 10934 directive0 := func(rctx context.Context) (interface{}, error) { 10935 ctx = rctx // use context from middleware stack in children 10936 return ec.resolvers.Subscription().DirectiveDouble(rctx) 10937 } 10938 directive1 := func(ctx context.Context) (interface{}, error) { 10939 if ec.directives.Directive1 == nil { 10940 return nil, errors.New("directive directive1 is not implemented") 10941 } 10942 return ec.directives.Directive1(ctx, nil, directive0) 10943 } 10944 directive2 := func(ctx context.Context) (interface{}, error) { 10945 if ec.directives.Directive2 == nil { 10946 return nil, errors.New("directive directive2 is not implemented") 10947 } 10948 return ec.directives.Directive2(ctx, nil, directive1) 10949 } 10950 10951 tmp, err := directive2(rctx) 10952 if err != nil { 10953 return nil, graphql.ErrorOnPath(ctx, err) 10954 } 10955 if tmp == nil { 10956 return nil, nil 10957 } 10958 if data, ok := tmp.(<-chan *string); ok { 10959 return data, nil 10960 } 10961 return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *string`, tmp) 10962 }) 10963 10964 if resTmp == nil { 10965 return nil 10966 } 10967 return func(ctx context.Context) graphql.Marshaler { 10968 select { 10969 case res, ok := <-resTmp.(<-chan *string): 10970 if !ok { 10971 return nil 10972 } 10973 return graphql.WriterFunc(func(w io.Writer) { 10974 w.Write([]byte{'{'}) 10975 graphql.MarshalString(field.Alias).MarshalGQL(w) 10976 w.Write([]byte{':'}) 10977 ec.marshalOString2ᚖstring(ctx, field.Selections, res).MarshalGQL(w) 10978 w.Write([]byte{'}'}) 10979 }) 10980 case <-ctx.Done(): 10981 return nil 10982 } 10983 } 10984 } 10985 10986 func (ec *executionContext) fieldContext_Subscription_directiveDouble(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10987 fc = &graphql.FieldContext{ 10988 Object: "Subscription", 10989 Field: field, 10990 IsMethod: true, 10991 IsResolver: true, 10992 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10993 return nil, errors.New("field of type String does not have child fields") 10994 }, 10995 } 10996 return fc, nil 10997 } 10998 10999 func (ec *executionContext) _Subscription_directiveUnimplemented(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 11000 fc, err := ec.fieldContext_Subscription_directiveUnimplemented(ctx, field) 11001 if err != nil { 11002 return nil 11003 } 11004 ctx = graphql.WithFieldContext(ctx, fc) 11005 defer func() { 11006 if r := recover(); r != nil { 11007 ec.Error(ctx, ec.Recover(ctx, r)) 11008 ret = nil 11009 } 11010 }() 11011 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11012 directive0 := func(rctx context.Context) (interface{}, error) { 11013 ctx = rctx // use context from middleware stack in children 11014 return ec.resolvers.Subscription().DirectiveUnimplemented(rctx) 11015 } 11016 directive1 := func(ctx context.Context) (interface{}, error) { 11017 if ec.directives.Unimplemented == nil { 11018 return nil, errors.New("directive unimplemented is not implemented") 11019 } 11020 return ec.directives.Unimplemented(ctx, nil, directive0) 11021 } 11022 11023 tmp, err := directive1(rctx) 11024 if err != nil { 11025 return nil, graphql.ErrorOnPath(ctx, err) 11026 } 11027 if tmp == nil { 11028 return nil, nil 11029 } 11030 if data, ok := tmp.(<-chan *string); ok { 11031 return data, nil 11032 } 11033 return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *string`, tmp) 11034 }) 11035 11036 if resTmp == nil { 11037 return nil 11038 } 11039 return func(ctx context.Context) graphql.Marshaler { 11040 select { 11041 case res, ok := <-resTmp.(<-chan *string): 11042 if !ok { 11043 return nil 11044 } 11045 return graphql.WriterFunc(func(w io.Writer) { 11046 w.Write([]byte{'{'}) 11047 graphql.MarshalString(field.Alias).MarshalGQL(w) 11048 w.Write([]byte{':'}) 11049 ec.marshalOString2ᚖstring(ctx, field.Selections, res).MarshalGQL(w) 11050 w.Write([]byte{'}'}) 11051 }) 11052 case <-ctx.Done(): 11053 return nil 11054 } 11055 } 11056 } 11057 11058 func (ec *executionContext) fieldContext_Subscription_directiveUnimplemented(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11059 fc = &graphql.FieldContext{ 11060 Object: "Subscription", 11061 Field: field, 11062 IsMethod: true, 11063 IsResolver: true, 11064 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11065 return nil, errors.New("field of type String does not have child fields") 11066 }, 11067 } 11068 return fc, nil 11069 } 11070 11071 func (ec *executionContext) _Subscription_issue896b(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 11072 fc, err := ec.fieldContext_Subscription_issue896b(ctx, field) 11073 if err != nil { 11074 return nil 11075 } 11076 ctx = graphql.WithFieldContext(ctx, fc) 11077 defer func() { 11078 if r := recover(); r != nil { 11079 ec.Error(ctx, ec.Recover(ctx, r)) 11080 ret = nil 11081 } 11082 }() 11083 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11084 ctx = rctx // use context from middleware stack in children 11085 return ec.resolvers.Subscription().Issue896b(rctx) 11086 }) 11087 11088 if resTmp == nil { 11089 return nil 11090 } 11091 return func(ctx context.Context) graphql.Marshaler { 11092 select { 11093 case res, ok := <-resTmp.(<-chan []*CheckIssue896): 11094 if !ok { 11095 return nil 11096 } 11097 return graphql.WriterFunc(func(w io.Writer) { 11098 w.Write([]byte{'{'}) 11099 graphql.MarshalString(field.Alias).MarshalGQL(w) 11100 w.Write([]byte{':'}) 11101 ec.marshalOCheckIssue8962ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx, field.Selections, res).MarshalGQL(w) 11102 w.Write([]byte{'}'}) 11103 }) 11104 case <-ctx.Done(): 11105 return nil 11106 } 11107 } 11108 } 11109 11110 func (ec *executionContext) fieldContext_Subscription_issue896b(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11111 fc = &graphql.FieldContext{ 11112 Object: "Subscription", 11113 Field: field, 11114 IsMethod: true, 11115 IsResolver: true, 11116 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11117 switch field.Name { 11118 case "id": 11119 return ec.fieldContext_CheckIssue896_id(ctx, field) 11120 } 11121 return nil, fmt.Errorf("no field named %q was found under type CheckIssue896", field.Name) 11122 }, 11123 } 11124 return fc, nil 11125 } 11126 11127 func (ec *executionContext) _Subscription_errorRequired(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { 11128 fc, err := ec.fieldContext_Subscription_errorRequired(ctx, field) 11129 if err != nil { 11130 return nil 11131 } 11132 ctx = graphql.WithFieldContext(ctx, fc) 11133 defer func() { 11134 if r := recover(); r != nil { 11135 ec.Error(ctx, ec.Recover(ctx, r)) 11136 ret = nil 11137 } 11138 }() 11139 resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { 11140 ctx = rctx // use context from middleware stack in children 11141 return ec.resolvers.Subscription().ErrorRequired(rctx) 11142 }) 11143 11144 if resTmp == nil { 11145 if !graphql.HasFieldError(ctx, fc) { 11146 ec.Errorf(ctx, "must not be null") 11147 } 11148 return nil 11149 } 11150 return func(ctx context.Context) graphql.Marshaler { 11151 select { 11152 case res, ok := <-resTmp.(<-chan *Error): 11153 if !ok { 11154 return nil 11155 } 11156 return graphql.WriterFunc(func(w io.Writer) { 11157 w.Write([]byte{'{'}) 11158 graphql.MarshalString(field.Alias).MarshalGQL(w) 11159 w.Write([]byte{':'}) 11160 ec.marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, field.Selections, res).MarshalGQL(w) 11161 w.Write([]byte{'}'}) 11162 }) 11163 case <-ctx.Done(): 11164 return nil 11165 } 11166 } 11167 } 11168 11169 func (ec *executionContext) fieldContext_Subscription_errorRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11170 fc = &graphql.FieldContext{ 11171 Object: "Subscription", 11172 Field: field, 11173 IsMethod: true, 11174 IsResolver: true, 11175 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11176 switch field.Name { 11177 case "id": 11178 return ec.fieldContext_Error_id(ctx, field) 11179 case "errorOnNonRequiredField": 11180 return ec.fieldContext_Error_errorOnNonRequiredField(ctx, field) 11181 case "errorOnRequiredField": 11182 return ec.fieldContext_Error_errorOnRequiredField(ctx, field) 11183 case "nilOnRequiredField": 11184 return ec.fieldContext_Error_nilOnRequiredField(ctx, field) 11185 } 11186 return nil, fmt.Errorf("no field named %q was found under type Error", field.Name) 11187 }, 11188 } 11189 return fc, nil 11190 } 11191 11192 func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 11193 fc, err := ec.fieldContext_User_id(ctx, field) 11194 if err != nil { 11195 return graphql.Null 11196 } 11197 ctx = graphql.WithFieldContext(ctx, fc) 11198 defer func() { 11199 if r := recover(); r != nil { 11200 ec.Error(ctx, ec.Recover(ctx, r)) 11201 ret = graphql.Null 11202 } 11203 }() 11204 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11205 ctx = rctx // use context from middleware stack in children 11206 return obj.ID, nil 11207 }) 11208 11209 if resTmp == nil { 11210 if !graphql.HasFieldError(ctx, fc) { 11211 ec.Errorf(ctx, "must not be null") 11212 } 11213 return graphql.Null 11214 } 11215 res := resTmp.(int) 11216 fc.Result = res 11217 return ec.marshalNInt2int(ctx, field.Selections, res) 11218 } 11219 11220 func (ec *executionContext) fieldContext_User_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11221 fc = &graphql.FieldContext{ 11222 Object: "User", 11223 Field: field, 11224 IsMethod: false, 11225 IsResolver: false, 11226 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11227 return nil, errors.New("field of type Int does not have child fields") 11228 }, 11229 } 11230 return fc, nil 11231 } 11232 11233 func (ec *executionContext) _User_friends(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 11234 fc, err := ec.fieldContext_User_friends(ctx, field) 11235 if err != nil { 11236 return graphql.Null 11237 } 11238 ctx = graphql.WithFieldContext(ctx, fc) 11239 defer func() { 11240 if r := recover(); r != nil { 11241 ec.Error(ctx, ec.Recover(ctx, r)) 11242 ret = graphql.Null 11243 } 11244 }() 11245 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11246 ctx = rctx // use context from middleware stack in children 11247 return ec.resolvers.User().Friends(rctx, obj) 11248 }) 11249 11250 if resTmp == nil { 11251 if !graphql.HasFieldError(ctx, fc) { 11252 ec.Errorf(ctx, "must not be null") 11253 } 11254 return graphql.Null 11255 } 11256 res := resTmp.([]*User) 11257 fc.Result = res 11258 return ec.marshalNUser2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUserᚄ(ctx, field.Selections, res) 11259 } 11260 11261 func (ec *executionContext) fieldContext_User_friends(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11262 fc = &graphql.FieldContext{ 11263 Object: "User", 11264 Field: field, 11265 IsMethod: true, 11266 IsResolver: true, 11267 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11268 switch field.Name { 11269 case "id": 11270 return ec.fieldContext_User_id(ctx, field) 11271 case "friends": 11272 return ec.fieldContext_User_friends(ctx, field) 11273 case "created": 11274 return ec.fieldContext_User_created(ctx, field) 11275 case "updated": 11276 return ec.fieldContext_User_updated(ctx, field) 11277 case "pets": 11278 return ec.fieldContext_User_pets(ctx, field) 11279 } 11280 return nil, fmt.Errorf("no field named %q was found under type User", field.Name) 11281 }, 11282 } 11283 return fc, nil 11284 } 11285 11286 func (ec *executionContext) _User_created(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 11287 fc, err := ec.fieldContext_User_created(ctx, field) 11288 if err != nil { 11289 return graphql.Null 11290 } 11291 ctx = graphql.WithFieldContext(ctx, fc) 11292 defer func() { 11293 if r := recover(); r != nil { 11294 ec.Error(ctx, ec.Recover(ctx, r)) 11295 ret = graphql.Null 11296 } 11297 }() 11298 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11299 ctx = rctx // use context from middleware stack in children 11300 return obj.Created, nil 11301 }) 11302 11303 if resTmp == nil { 11304 if !graphql.HasFieldError(ctx, fc) { 11305 ec.Errorf(ctx, "must not be null") 11306 } 11307 return graphql.Null 11308 } 11309 res := resTmp.(time.Time) 11310 fc.Result = res 11311 return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) 11312 } 11313 11314 func (ec *executionContext) fieldContext_User_created(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11315 fc = &graphql.FieldContext{ 11316 Object: "User", 11317 Field: field, 11318 IsMethod: false, 11319 IsResolver: false, 11320 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11321 return nil, errors.New("field of type Time does not have child fields") 11322 }, 11323 } 11324 return fc, nil 11325 } 11326 11327 func (ec *executionContext) _User_updated(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 11328 fc, err := ec.fieldContext_User_updated(ctx, field) 11329 if err != nil { 11330 return graphql.Null 11331 } 11332 ctx = graphql.WithFieldContext(ctx, fc) 11333 defer func() { 11334 if r := recover(); r != nil { 11335 ec.Error(ctx, ec.Recover(ctx, r)) 11336 ret = graphql.Null 11337 } 11338 }() 11339 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11340 ctx = rctx // use context from middleware stack in children 11341 return obj.Updated, nil 11342 }) 11343 11344 if resTmp == nil { 11345 return graphql.Null 11346 } 11347 res := resTmp.(*time.Time) 11348 fc.Result = res 11349 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 11350 } 11351 11352 func (ec *executionContext) fieldContext_User_updated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11353 fc = &graphql.FieldContext{ 11354 Object: "User", 11355 Field: field, 11356 IsMethod: false, 11357 IsResolver: false, 11358 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11359 return nil, errors.New("field of type Time does not have child fields") 11360 }, 11361 } 11362 return fc, nil 11363 } 11364 11365 func (ec *executionContext) _User_pets(ctx context.Context, field graphql.CollectedField, obj *User) (ret graphql.Marshaler) { 11366 fc, err := ec.fieldContext_User_pets(ctx, field) 11367 if err != nil { 11368 return graphql.Null 11369 } 11370 ctx = graphql.WithFieldContext(ctx, fc) 11371 defer func() { 11372 if r := recover(); r != nil { 11373 ec.Error(ctx, ec.Recover(ctx, r)) 11374 ret = graphql.Null 11375 } 11376 }() 11377 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11378 ctx = rctx // use context from middleware stack in children 11379 return ec.resolvers.User().Pets(rctx, obj, fc.Args["limit"].(*int)) 11380 }) 11381 11382 if resTmp == nil { 11383 return graphql.Null 11384 } 11385 res := resTmp.([]*Pet) 11386 fc.Result = res 11387 return ec.marshalOPet2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPetᚄ(ctx, field.Selections, res) 11388 } 11389 11390 func (ec *executionContext) fieldContext_User_pets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11391 fc = &graphql.FieldContext{ 11392 Object: "User", 11393 Field: field, 11394 IsMethod: true, 11395 IsResolver: true, 11396 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11397 switch field.Name { 11398 case "id": 11399 return ec.fieldContext_Pet_id(ctx, field) 11400 case "friends": 11401 return ec.fieldContext_Pet_friends(ctx, field) 11402 } 11403 return nil, fmt.Errorf("no field named %q was found under type Pet", field.Name) 11404 }, 11405 } 11406 defer func() { 11407 if r := recover(); r != nil { 11408 err = ec.Recover(ctx, r) 11409 ec.Error(ctx, err) 11410 } 11411 }() 11412 ctx = graphql.WithFieldContext(ctx, fc) 11413 if fc.Args, err = ec.field_User_pets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11414 ec.Error(ctx, err) 11415 return 11416 } 11417 return fc, nil 11418 } 11419 11420 func (ec *executionContext) _VOkCaseNil_value(ctx context.Context, field graphql.CollectedField, obj *VOkCaseNil) (ret graphql.Marshaler) { 11421 fc, err := ec.fieldContext_VOkCaseNil_value(ctx, field) 11422 if err != nil { 11423 return graphql.Null 11424 } 11425 ctx = graphql.WithFieldContext(ctx, fc) 11426 defer func() { 11427 if r := recover(); r != nil { 11428 ec.Error(ctx, ec.Recover(ctx, r)) 11429 ret = graphql.Null 11430 } 11431 }() 11432 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11433 ctx = rctx // use context from middleware stack in children 11434 v, ok := obj.Value() 11435 if !ok { 11436 return nil, nil 11437 } 11438 return v, nil 11439 }) 11440 11441 if resTmp == nil { 11442 return graphql.Null 11443 } 11444 res := resTmp.(string) 11445 fc.Result = res 11446 return ec.marshalOString2string(ctx, field.Selections, res) 11447 } 11448 11449 func (ec *executionContext) fieldContext_VOkCaseNil_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11450 fc = &graphql.FieldContext{ 11451 Object: "VOkCaseNil", 11452 Field: field, 11453 IsMethod: true, 11454 IsResolver: false, 11455 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11456 return nil, errors.New("field of type String does not have child fields") 11457 }, 11458 } 11459 return fc, nil 11460 } 11461 11462 func (ec *executionContext) _VOkCaseValue_value(ctx context.Context, field graphql.CollectedField, obj *VOkCaseValue) (ret graphql.Marshaler) { 11463 fc, err := ec.fieldContext_VOkCaseValue_value(ctx, field) 11464 if err != nil { 11465 return graphql.Null 11466 } 11467 ctx = graphql.WithFieldContext(ctx, fc) 11468 defer func() { 11469 if r := recover(); r != nil { 11470 ec.Error(ctx, ec.Recover(ctx, r)) 11471 ret = graphql.Null 11472 } 11473 }() 11474 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11475 ctx = rctx // use context from middleware stack in children 11476 v, ok := obj.Value() 11477 if !ok { 11478 return nil, nil 11479 } 11480 return v, nil 11481 }) 11482 11483 if resTmp == nil { 11484 return graphql.Null 11485 } 11486 res := resTmp.(string) 11487 fc.Result = res 11488 return ec.marshalOString2string(ctx, field.Selections, res) 11489 } 11490 11491 func (ec *executionContext) fieldContext_VOkCaseValue_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11492 fc = &graphql.FieldContext{ 11493 Object: "VOkCaseValue", 11494 Field: field, 11495 IsMethod: true, 11496 IsResolver: false, 11497 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11498 return nil, errors.New("field of type String does not have child fields") 11499 }, 11500 } 11501 return fc, nil 11502 } 11503 11504 func (ec *executionContext) _ValidType_differentCase(ctx context.Context, field graphql.CollectedField, obj *ValidType) (ret graphql.Marshaler) { 11505 fc, err := ec.fieldContext_ValidType_differentCase(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.DifferentCase, 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.(string) 11528 fc.Result = res 11529 return ec.marshalNString2string(ctx, field.Selections, res) 11530 } 11531 11532 func (ec *executionContext) fieldContext_ValidType_differentCase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11533 fc = &graphql.FieldContext{ 11534 Object: "ValidType", 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 String does not have child fields") 11540 }, 11541 } 11542 return fc, nil 11543 } 11544 11545 func (ec *executionContext) _ValidType_different_case(ctx context.Context, field graphql.CollectedField, obj *ValidType) (ret graphql.Marshaler) { 11546 fc, err := ec.fieldContext_ValidType_different_case(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.DifferentCaseOld, nil 11560 }) 11561 11562 if resTmp == nil { 11563 if !graphql.HasFieldError(ctx, fc) { 11564 ec.Errorf(ctx, "must not be null") 11565 } 11566 return graphql.Null 11567 } 11568 res := resTmp.(string) 11569 fc.Result = res 11570 return ec.marshalNString2string(ctx, field.Selections, res) 11571 } 11572 11573 func (ec *executionContext) fieldContext_ValidType_different_case(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11574 fc = &graphql.FieldContext{ 11575 Object: "ValidType", 11576 Field: field, 11577 IsMethod: false, 11578 IsResolver: false, 11579 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11580 return nil, errors.New("field of type String does not have child fields") 11581 }, 11582 } 11583 return fc, nil 11584 } 11585 11586 func (ec *executionContext) _ValidType_validInputKeywords(ctx context.Context, field graphql.CollectedField, obj *ValidType) (ret graphql.Marshaler) { 11587 fc, err := ec.fieldContext_ValidType_validInputKeywords(ctx, field) 11588 if err != nil { 11589 return graphql.Null 11590 } 11591 ctx = graphql.WithFieldContext(ctx, fc) 11592 defer func() { 11593 if r := recover(); r != nil { 11594 ec.Error(ctx, ec.Recover(ctx, r)) 11595 ret = graphql.Null 11596 } 11597 }() 11598 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11599 ctx = rctx // use context from middleware stack in children 11600 return obj.ValidInputKeywords, nil 11601 }) 11602 11603 if resTmp == nil { 11604 if !graphql.HasFieldError(ctx, fc) { 11605 ec.Errorf(ctx, "must not be null") 11606 } 11607 return graphql.Null 11608 } 11609 res := resTmp.(bool) 11610 fc.Result = res 11611 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 11612 } 11613 11614 func (ec *executionContext) fieldContext_ValidType_validInputKeywords(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11615 fc = &graphql.FieldContext{ 11616 Object: "ValidType", 11617 Field: field, 11618 IsMethod: false, 11619 IsResolver: false, 11620 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11621 return nil, errors.New("field of type Boolean does not have child fields") 11622 }, 11623 } 11624 defer func() { 11625 if r := recover(); r != nil { 11626 err = ec.Recover(ctx, r) 11627 ec.Error(ctx, err) 11628 } 11629 }() 11630 ctx = graphql.WithFieldContext(ctx, fc) 11631 if fc.Args, err = ec.field_ValidType_validInputKeywords_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11632 ec.Error(ctx, err) 11633 return 11634 } 11635 return fc, nil 11636 } 11637 11638 func (ec *executionContext) _ValidType_validArgs(ctx context.Context, field graphql.CollectedField, obj *ValidType) (ret graphql.Marshaler) { 11639 fc, err := ec.fieldContext_ValidType_validArgs(ctx, field) 11640 if err != nil { 11641 return graphql.Null 11642 } 11643 ctx = graphql.WithFieldContext(ctx, fc) 11644 defer func() { 11645 if r := recover(); r != nil { 11646 ec.Error(ctx, ec.Recover(ctx, r)) 11647 ret = graphql.Null 11648 } 11649 }() 11650 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11651 ctx = rctx // use context from middleware stack in children 11652 return obj.ValidArgs, nil 11653 }) 11654 11655 if resTmp == nil { 11656 if !graphql.HasFieldError(ctx, fc) { 11657 ec.Errorf(ctx, "must not be null") 11658 } 11659 return graphql.Null 11660 } 11661 res := resTmp.(bool) 11662 fc.Result = res 11663 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 11664 } 11665 11666 func (ec *executionContext) fieldContext_ValidType_validArgs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11667 fc = &graphql.FieldContext{ 11668 Object: "ValidType", 11669 Field: field, 11670 IsMethod: false, 11671 IsResolver: false, 11672 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11673 return nil, errors.New("field of type Boolean does not have child fields") 11674 }, 11675 } 11676 defer func() { 11677 if r := recover(); r != nil { 11678 err = ec.Recover(ctx, r) 11679 ec.Error(ctx, err) 11680 } 11681 }() 11682 ctx = graphql.WithFieldContext(ctx, fc) 11683 if fc.Args, err = ec.field_ValidType_validArgs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11684 ec.Error(ctx, err) 11685 return 11686 } 11687 return fc, nil 11688 } 11689 11690 func (ec *executionContext) _VariadicModel_value(ctx context.Context, field graphql.CollectedField, obj *VariadicModel) (ret graphql.Marshaler) { 11691 fc, err := ec.fieldContext_VariadicModel_value(ctx, field) 11692 if err != nil { 11693 return graphql.Null 11694 } 11695 ctx = graphql.WithFieldContext(ctx, fc) 11696 defer func() { 11697 if r := recover(); r != nil { 11698 ec.Error(ctx, ec.Recover(ctx, r)) 11699 ret = graphql.Null 11700 } 11701 }() 11702 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11703 ctx = rctx // use context from middleware stack in children 11704 return obj.Value(ctx, fc.Args["rank"].(int)) 11705 }) 11706 11707 if resTmp == nil { 11708 return graphql.Null 11709 } 11710 res := resTmp.(string) 11711 fc.Result = res 11712 return ec.marshalOString2string(ctx, field.Selections, res) 11713 } 11714 11715 func (ec *executionContext) fieldContext_VariadicModel_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11716 fc = &graphql.FieldContext{ 11717 Object: "VariadicModel", 11718 Field: field, 11719 IsMethod: true, 11720 IsResolver: false, 11721 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11722 return nil, errors.New("field of type String does not have child fields") 11723 }, 11724 } 11725 defer func() { 11726 if r := recover(); r != nil { 11727 err = ec.Recover(ctx, r) 11728 ec.Error(ctx, err) 11729 } 11730 }() 11731 ctx = graphql.WithFieldContext(ctx, fc) 11732 if fc.Args, err = ec.field_VariadicModel_value_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11733 ec.Error(ctx, err) 11734 return 11735 } 11736 return fc, nil 11737 } 11738 11739 func (ec *executionContext) _WrappedMap_get(ctx context.Context, field graphql.CollectedField, obj WrappedMap) (ret graphql.Marshaler) { 11740 fc, err := ec.fieldContext_WrappedMap_get(ctx, field) 11741 if err != nil { 11742 return graphql.Null 11743 } 11744 ctx = graphql.WithFieldContext(ctx, fc) 11745 defer func() { 11746 if r := recover(); r != nil { 11747 ec.Error(ctx, ec.Recover(ctx, r)) 11748 ret = graphql.Null 11749 } 11750 }() 11751 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11752 ctx = rctx // use context from middleware stack in children 11753 return ec.resolvers.WrappedMap().Get(rctx, obj, fc.Args["key"].(string)) 11754 }) 11755 11756 if resTmp == nil { 11757 if !graphql.HasFieldError(ctx, fc) { 11758 ec.Errorf(ctx, "must not be null") 11759 } 11760 return graphql.Null 11761 } 11762 res := resTmp.(string) 11763 fc.Result = res 11764 return ec.marshalNString2string(ctx, field.Selections, res) 11765 } 11766 11767 func (ec *executionContext) fieldContext_WrappedMap_get(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11768 fc = &graphql.FieldContext{ 11769 Object: "WrappedMap", 11770 Field: field, 11771 IsMethod: true, 11772 IsResolver: true, 11773 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11774 return nil, errors.New("field of type String does not have child fields") 11775 }, 11776 } 11777 defer func() { 11778 if r := recover(); r != nil { 11779 err = ec.Recover(ctx, r) 11780 ec.Error(ctx, err) 11781 } 11782 }() 11783 ctx = graphql.WithFieldContext(ctx, fc) 11784 if fc.Args, err = ec.field_WrappedMap_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11785 ec.Error(ctx, err) 11786 return 11787 } 11788 return fc, nil 11789 } 11790 11791 func (ec *executionContext) _WrappedSlice_get(ctx context.Context, field graphql.CollectedField, obj WrappedSlice) (ret graphql.Marshaler) { 11792 fc, err := ec.fieldContext_WrappedSlice_get(ctx, field) 11793 if err != nil { 11794 return graphql.Null 11795 } 11796 ctx = graphql.WithFieldContext(ctx, fc) 11797 defer func() { 11798 if r := recover(); r != nil { 11799 ec.Error(ctx, ec.Recover(ctx, r)) 11800 ret = graphql.Null 11801 } 11802 }() 11803 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11804 ctx = rctx // use context from middleware stack in children 11805 return ec.resolvers.WrappedSlice().Get(rctx, obj, fc.Args["idx"].(int)) 11806 }) 11807 11808 if resTmp == nil { 11809 if !graphql.HasFieldError(ctx, fc) { 11810 ec.Errorf(ctx, "must not be null") 11811 } 11812 return graphql.Null 11813 } 11814 res := resTmp.(string) 11815 fc.Result = res 11816 return ec.marshalNString2string(ctx, field.Selections, res) 11817 } 11818 11819 func (ec *executionContext) fieldContext_WrappedSlice_get(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11820 fc = &graphql.FieldContext{ 11821 Object: "WrappedSlice", 11822 Field: field, 11823 IsMethod: true, 11824 IsResolver: true, 11825 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11826 return nil, errors.New("field of type String does not have child fields") 11827 }, 11828 } 11829 defer func() { 11830 if r := recover(); r != nil { 11831 err = ec.Recover(ctx, r) 11832 ec.Error(ctx, err) 11833 } 11834 }() 11835 ctx = graphql.WithFieldContext(ctx, fc) 11836 if fc.Args, err = ec.field_WrappedSlice_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11837 ec.Error(ctx, err) 11838 return 11839 } 11840 return fc, nil 11841 } 11842 11843 func (ec *executionContext) _WrappedStruct_name(ctx context.Context, field graphql.CollectedField, obj *WrappedStruct) (ret graphql.Marshaler) { 11844 fc, err := ec.fieldContext_WrappedStruct_name(ctx, field) 11845 if err != nil { 11846 return graphql.Null 11847 } 11848 ctx = graphql.WithFieldContext(ctx, fc) 11849 defer func() { 11850 if r := recover(); r != nil { 11851 ec.Error(ctx, ec.Recover(ctx, r)) 11852 ret = graphql.Null 11853 } 11854 }() 11855 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11856 ctx = rctx // use context from middleware stack in children 11857 return obj.Name, nil 11858 }) 11859 11860 if resTmp == nil { 11861 if !graphql.HasFieldError(ctx, fc) { 11862 ec.Errorf(ctx, "must not be null") 11863 } 11864 return graphql.Null 11865 } 11866 res := resTmp.(otherpkg.Scalar) 11867 fc.Result = res 11868 return ec.marshalNWrappedScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx, field.Selections, res) 11869 } 11870 11871 func (ec *executionContext) fieldContext_WrappedStruct_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11872 fc = &graphql.FieldContext{ 11873 Object: "WrappedStruct", 11874 Field: field, 11875 IsMethod: false, 11876 IsResolver: false, 11877 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11878 return nil, errors.New("field of type WrappedScalar does not have child fields") 11879 }, 11880 } 11881 return fc, nil 11882 } 11883 11884 func (ec *executionContext) _WrappedStruct_desc(ctx context.Context, field graphql.CollectedField, obj *WrappedStruct) (ret graphql.Marshaler) { 11885 fc, err := ec.fieldContext_WrappedStruct_desc(ctx, field) 11886 if err != nil { 11887 return graphql.Null 11888 } 11889 ctx = graphql.WithFieldContext(ctx, fc) 11890 defer func() { 11891 if r := recover(); r != nil { 11892 ec.Error(ctx, ec.Recover(ctx, r)) 11893 ret = graphql.Null 11894 } 11895 }() 11896 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11897 ctx = rctx // use context from middleware stack in children 11898 return obj.Desc, nil 11899 }) 11900 11901 if resTmp == nil { 11902 return graphql.Null 11903 } 11904 res := resTmp.(*otherpkg.Scalar) 11905 fc.Result = res 11906 return ec.marshalOWrappedScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx, field.Selections, res) 11907 } 11908 11909 func (ec *executionContext) fieldContext_WrappedStruct_desc(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11910 fc = &graphql.FieldContext{ 11911 Object: "WrappedStruct", 11912 Field: field, 11913 IsMethod: false, 11914 IsResolver: false, 11915 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11916 return nil, errors.New("field of type WrappedScalar does not have child fields") 11917 }, 11918 } 11919 return fc, nil 11920 } 11921 11922 func (ec *executionContext) _XXIt_id(ctx context.Context, field graphql.CollectedField, obj *XXIt) (ret graphql.Marshaler) { 11923 fc, err := ec.fieldContext_XXIt_id(ctx, field) 11924 if err != nil { 11925 return graphql.Null 11926 } 11927 ctx = graphql.WithFieldContext(ctx, fc) 11928 defer func() { 11929 if r := recover(); r != nil { 11930 ec.Error(ctx, ec.Recover(ctx, r)) 11931 ret = graphql.Null 11932 } 11933 }() 11934 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11935 ctx = rctx // use context from middleware stack in children 11936 return obj.ID, nil 11937 }) 11938 11939 if resTmp == nil { 11940 if !graphql.HasFieldError(ctx, fc) { 11941 ec.Errorf(ctx, "must not be null") 11942 } 11943 return graphql.Null 11944 } 11945 res := resTmp.(string) 11946 fc.Result = res 11947 return ec.marshalNID2string(ctx, field.Selections, res) 11948 } 11949 11950 func (ec *executionContext) fieldContext_XXIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11951 fc = &graphql.FieldContext{ 11952 Object: "XXIt", 11953 Field: field, 11954 IsMethod: false, 11955 IsResolver: false, 11956 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11957 return nil, errors.New("field of type ID does not have child fields") 11958 }, 11959 } 11960 return fc, nil 11961 } 11962 11963 func (ec *executionContext) _XxIt_id(ctx context.Context, field graphql.CollectedField, obj *XxIt) (ret graphql.Marshaler) { 11964 fc, err := ec.fieldContext_XxIt_id(ctx, field) 11965 if err != nil { 11966 return graphql.Null 11967 } 11968 ctx = graphql.WithFieldContext(ctx, fc) 11969 defer func() { 11970 if r := recover(); r != nil { 11971 ec.Error(ctx, ec.Recover(ctx, r)) 11972 ret = graphql.Null 11973 } 11974 }() 11975 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 11976 ctx = rctx // use context from middleware stack in children 11977 return obj.ID, nil 11978 }) 11979 11980 if resTmp == nil { 11981 if !graphql.HasFieldError(ctx, fc) { 11982 ec.Errorf(ctx, "must not be null") 11983 } 11984 return graphql.Null 11985 } 11986 res := resTmp.(string) 11987 fc.Result = res 11988 return ec.marshalNID2string(ctx, field.Selections, res) 11989 } 11990 11991 func (ec *executionContext) fieldContext_XxIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11992 fc = &graphql.FieldContext{ 11993 Object: "XxIt", 11994 Field: field, 11995 IsMethod: false, 11996 IsResolver: false, 11997 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11998 return nil, errors.New("field of type ID does not have child fields") 11999 }, 12000 } 12001 return fc, nil 12002 } 12003 12004 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 12005 fc, err := ec.fieldContext___Directive_name(ctx, field) 12006 if err != nil { 12007 return graphql.Null 12008 } 12009 ctx = graphql.WithFieldContext(ctx, fc) 12010 defer func() { 12011 if r := recover(); r != nil { 12012 ec.Error(ctx, ec.Recover(ctx, r)) 12013 ret = graphql.Null 12014 } 12015 }() 12016 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12017 ctx = rctx // use context from middleware stack in children 12018 return obj.Name, nil 12019 }) 12020 12021 if resTmp == nil { 12022 if !graphql.HasFieldError(ctx, fc) { 12023 ec.Errorf(ctx, "must not be null") 12024 } 12025 return graphql.Null 12026 } 12027 res := resTmp.(string) 12028 fc.Result = res 12029 return ec.marshalNString2string(ctx, field.Selections, res) 12030 } 12031 12032 func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12033 fc = &graphql.FieldContext{ 12034 Object: "__Directive", 12035 Field: field, 12036 IsMethod: false, 12037 IsResolver: false, 12038 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12039 return nil, errors.New("field of type String does not have child fields") 12040 }, 12041 } 12042 return fc, nil 12043 } 12044 12045 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 12046 fc, err := ec.fieldContext___Directive_description(ctx, field) 12047 if err != nil { 12048 return graphql.Null 12049 } 12050 ctx = graphql.WithFieldContext(ctx, fc) 12051 defer func() { 12052 if r := recover(); r != nil { 12053 ec.Error(ctx, ec.Recover(ctx, r)) 12054 ret = graphql.Null 12055 } 12056 }() 12057 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12058 ctx = rctx // use context from middleware stack in children 12059 return obj.Description(), nil 12060 }) 12061 12062 if resTmp == nil { 12063 return graphql.Null 12064 } 12065 res := resTmp.(*string) 12066 fc.Result = res 12067 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12068 } 12069 12070 func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12071 fc = &graphql.FieldContext{ 12072 Object: "__Directive", 12073 Field: field, 12074 IsMethod: true, 12075 IsResolver: false, 12076 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12077 return nil, errors.New("field of type String does not have child fields") 12078 }, 12079 } 12080 return fc, nil 12081 } 12082 12083 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 12084 fc, err := ec.fieldContext___Directive_locations(ctx, field) 12085 if err != nil { 12086 return graphql.Null 12087 } 12088 ctx = graphql.WithFieldContext(ctx, fc) 12089 defer func() { 12090 if r := recover(); r != nil { 12091 ec.Error(ctx, ec.Recover(ctx, r)) 12092 ret = graphql.Null 12093 } 12094 }() 12095 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12096 ctx = rctx // use context from middleware stack in children 12097 return obj.Locations, nil 12098 }) 12099 12100 if resTmp == nil { 12101 if !graphql.HasFieldError(ctx, fc) { 12102 ec.Errorf(ctx, "must not be null") 12103 } 12104 return graphql.Null 12105 } 12106 res := resTmp.([]string) 12107 fc.Result = res 12108 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) 12109 } 12110 12111 func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12112 fc = &graphql.FieldContext{ 12113 Object: "__Directive", 12114 Field: field, 12115 IsMethod: false, 12116 IsResolver: false, 12117 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12118 return nil, errors.New("field of type __DirectiveLocation does not have child fields") 12119 }, 12120 } 12121 return fc, nil 12122 } 12123 12124 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 12125 fc, err := ec.fieldContext___Directive_args(ctx, field) 12126 if err != nil { 12127 return graphql.Null 12128 } 12129 ctx = graphql.WithFieldContext(ctx, fc) 12130 defer func() { 12131 if r := recover(); r != nil { 12132 ec.Error(ctx, ec.Recover(ctx, r)) 12133 ret = graphql.Null 12134 } 12135 }() 12136 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12137 ctx = rctx // use context from middleware stack in children 12138 return obj.Args, nil 12139 }) 12140 12141 if resTmp == nil { 12142 if !graphql.HasFieldError(ctx, fc) { 12143 ec.Errorf(ctx, "must not be null") 12144 } 12145 return graphql.Null 12146 } 12147 res := resTmp.([]introspection.InputValue) 12148 fc.Result = res 12149 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 12150 } 12151 12152 func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12153 fc = &graphql.FieldContext{ 12154 Object: "__Directive", 12155 Field: field, 12156 IsMethod: false, 12157 IsResolver: false, 12158 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12159 switch field.Name { 12160 case "name": 12161 return ec.fieldContext___InputValue_name(ctx, field) 12162 case "description": 12163 return ec.fieldContext___InputValue_description(ctx, field) 12164 case "type": 12165 return ec.fieldContext___InputValue_type(ctx, field) 12166 case "defaultValue": 12167 return ec.fieldContext___InputValue_defaultValue(ctx, field) 12168 } 12169 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 12170 }, 12171 } 12172 return fc, nil 12173 } 12174 12175 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 12176 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) 12177 if err != nil { 12178 return graphql.Null 12179 } 12180 ctx = graphql.WithFieldContext(ctx, fc) 12181 defer func() { 12182 if r := recover(); r != nil { 12183 ec.Error(ctx, ec.Recover(ctx, r)) 12184 ret = graphql.Null 12185 } 12186 }() 12187 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12188 ctx = rctx // use context from middleware stack in children 12189 return obj.IsRepeatable, nil 12190 }) 12191 12192 if resTmp == nil { 12193 if !graphql.HasFieldError(ctx, fc) { 12194 ec.Errorf(ctx, "must not be null") 12195 } 12196 return graphql.Null 12197 } 12198 res := resTmp.(bool) 12199 fc.Result = res 12200 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 12201 } 12202 12203 func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12204 fc = &graphql.FieldContext{ 12205 Object: "__Directive", 12206 Field: field, 12207 IsMethod: false, 12208 IsResolver: false, 12209 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12210 return nil, errors.New("field of type Boolean does not have child fields") 12211 }, 12212 } 12213 return fc, nil 12214 } 12215 12216 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 12217 fc, err := ec.fieldContext___EnumValue_name(ctx, field) 12218 if err != nil { 12219 return graphql.Null 12220 } 12221 ctx = graphql.WithFieldContext(ctx, fc) 12222 defer func() { 12223 if r := recover(); r != nil { 12224 ec.Error(ctx, ec.Recover(ctx, r)) 12225 ret = graphql.Null 12226 } 12227 }() 12228 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12229 ctx = rctx // use context from middleware stack in children 12230 return obj.Name, nil 12231 }) 12232 12233 if resTmp == nil { 12234 if !graphql.HasFieldError(ctx, fc) { 12235 ec.Errorf(ctx, "must not be null") 12236 } 12237 return graphql.Null 12238 } 12239 res := resTmp.(string) 12240 fc.Result = res 12241 return ec.marshalNString2string(ctx, field.Selections, res) 12242 } 12243 12244 func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12245 fc = &graphql.FieldContext{ 12246 Object: "__EnumValue", 12247 Field: field, 12248 IsMethod: false, 12249 IsResolver: false, 12250 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12251 return nil, errors.New("field of type String does not have child fields") 12252 }, 12253 } 12254 return fc, nil 12255 } 12256 12257 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 12258 fc, err := ec.fieldContext___EnumValue_description(ctx, field) 12259 if err != nil { 12260 return graphql.Null 12261 } 12262 ctx = graphql.WithFieldContext(ctx, fc) 12263 defer func() { 12264 if r := recover(); r != nil { 12265 ec.Error(ctx, ec.Recover(ctx, r)) 12266 ret = graphql.Null 12267 } 12268 }() 12269 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12270 ctx = rctx // use context from middleware stack in children 12271 return obj.Description(), nil 12272 }) 12273 12274 if resTmp == nil { 12275 return graphql.Null 12276 } 12277 res := resTmp.(*string) 12278 fc.Result = res 12279 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12280 } 12281 12282 func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12283 fc = &graphql.FieldContext{ 12284 Object: "__EnumValue", 12285 Field: field, 12286 IsMethod: true, 12287 IsResolver: false, 12288 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12289 return nil, errors.New("field of type String does not have child fields") 12290 }, 12291 } 12292 return fc, nil 12293 } 12294 12295 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 12296 fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) 12297 if err != nil { 12298 return graphql.Null 12299 } 12300 ctx = graphql.WithFieldContext(ctx, fc) 12301 defer func() { 12302 if r := recover(); r != nil { 12303 ec.Error(ctx, ec.Recover(ctx, r)) 12304 ret = graphql.Null 12305 } 12306 }() 12307 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12308 ctx = rctx // use context from middleware stack in children 12309 return obj.IsDeprecated(), nil 12310 }) 12311 12312 if resTmp == nil { 12313 if !graphql.HasFieldError(ctx, fc) { 12314 ec.Errorf(ctx, "must not be null") 12315 } 12316 return graphql.Null 12317 } 12318 res := resTmp.(bool) 12319 fc.Result = res 12320 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 12321 } 12322 12323 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12324 fc = &graphql.FieldContext{ 12325 Object: "__EnumValue", 12326 Field: field, 12327 IsMethod: true, 12328 IsResolver: false, 12329 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12330 return nil, errors.New("field of type Boolean does not have child fields") 12331 }, 12332 } 12333 return fc, nil 12334 } 12335 12336 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 12337 fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) 12338 if err != nil { 12339 return graphql.Null 12340 } 12341 ctx = graphql.WithFieldContext(ctx, fc) 12342 defer func() { 12343 if r := recover(); r != nil { 12344 ec.Error(ctx, ec.Recover(ctx, r)) 12345 ret = graphql.Null 12346 } 12347 }() 12348 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12349 ctx = rctx // use context from middleware stack in children 12350 return obj.DeprecationReason(), nil 12351 }) 12352 12353 if resTmp == nil { 12354 return graphql.Null 12355 } 12356 res := resTmp.(*string) 12357 fc.Result = res 12358 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12359 } 12360 12361 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12362 fc = &graphql.FieldContext{ 12363 Object: "__EnumValue", 12364 Field: field, 12365 IsMethod: true, 12366 IsResolver: false, 12367 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12368 return nil, errors.New("field of type String does not have child fields") 12369 }, 12370 } 12371 return fc, nil 12372 } 12373 12374 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 12375 fc, err := ec.fieldContext___Field_name(ctx, field) 12376 if err != nil { 12377 return graphql.Null 12378 } 12379 ctx = graphql.WithFieldContext(ctx, fc) 12380 defer func() { 12381 if r := recover(); r != nil { 12382 ec.Error(ctx, ec.Recover(ctx, r)) 12383 ret = graphql.Null 12384 } 12385 }() 12386 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12387 ctx = rctx // use context from middleware stack in children 12388 return obj.Name, nil 12389 }) 12390 12391 if resTmp == nil { 12392 if !graphql.HasFieldError(ctx, fc) { 12393 ec.Errorf(ctx, "must not be null") 12394 } 12395 return graphql.Null 12396 } 12397 res := resTmp.(string) 12398 fc.Result = res 12399 return ec.marshalNString2string(ctx, field.Selections, res) 12400 } 12401 12402 func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12403 fc = &graphql.FieldContext{ 12404 Object: "__Field", 12405 Field: field, 12406 IsMethod: false, 12407 IsResolver: false, 12408 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12409 return nil, errors.New("field of type String does not have child fields") 12410 }, 12411 } 12412 return fc, nil 12413 } 12414 12415 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 12416 fc, err := ec.fieldContext___Field_description(ctx, field) 12417 if err != nil { 12418 return graphql.Null 12419 } 12420 ctx = graphql.WithFieldContext(ctx, fc) 12421 defer func() { 12422 if r := recover(); r != nil { 12423 ec.Error(ctx, ec.Recover(ctx, r)) 12424 ret = graphql.Null 12425 } 12426 }() 12427 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12428 ctx = rctx // use context from middleware stack in children 12429 return obj.Description(), nil 12430 }) 12431 12432 if resTmp == nil { 12433 return graphql.Null 12434 } 12435 res := resTmp.(*string) 12436 fc.Result = res 12437 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12438 } 12439 12440 func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12441 fc = &graphql.FieldContext{ 12442 Object: "__Field", 12443 Field: field, 12444 IsMethod: true, 12445 IsResolver: false, 12446 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12447 return nil, errors.New("field of type String does not have child fields") 12448 }, 12449 } 12450 return fc, nil 12451 } 12452 12453 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 12454 fc, err := ec.fieldContext___Field_args(ctx, field) 12455 if err != nil { 12456 return graphql.Null 12457 } 12458 ctx = graphql.WithFieldContext(ctx, fc) 12459 defer func() { 12460 if r := recover(); r != nil { 12461 ec.Error(ctx, ec.Recover(ctx, r)) 12462 ret = graphql.Null 12463 } 12464 }() 12465 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12466 ctx = rctx // use context from middleware stack in children 12467 return obj.Args, nil 12468 }) 12469 12470 if resTmp == nil { 12471 if !graphql.HasFieldError(ctx, fc) { 12472 ec.Errorf(ctx, "must not be null") 12473 } 12474 return graphql.Null 12475 } 12476 res := resTmp.([]introspection.InputValue) 12477 fc.Result = res 12478 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 12479 } 12480 12481 func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12482 fc = &graphql.FieldContext{ 12483 Object: "__Field", 12484 Field: field, 12485 IsMethod: false, 12486 IsResolver: false, 12487 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12488 switch field.Name { 12489 case "name": 12490 return ec.fieldContext___InputValue_name(ctx, field) 12491 case "description": 12492 return ec.fieldContext___InputValue_description(ctx, field) 12493 case "type": 12494 return ec.fieldContext___InputValue_type(ctx, field) 12495 case "defaultValue": 12496 return ec.fieldContext___InputValue_defaultValue(ctx, field) 12497 } 12498 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 12499 }, 12500 } 12501 return fc, nil 12502 } 12503 12504 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 12505 fc, err := ec.fieldContext___Field_type(ctx, field) 12506 if err != nil { 12507 return graphql.Null 12508 } 12509 ctx = graphql.WithFieldContext(ctx, fc) 12510 defer func() { 12511 if r := recover(); r != nil { 12512 ec.Error(ctx, ec.Recover(ctx, r)) 12513 ret = graphql.Null 12514 } 12515 }() 12516 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12517 ctx = rctx // use context from middleware stack in children 12518 return obj.Type, nil 12519 }) 12520 12521 if resTmp == nil { 12522 if !graphql.HasFieldError(ctx, fc) { 12523 ec.Errorf(ctx, "must not be null") 12524 } 12525 return graphql.Null 12526 } 12527 res := resTmp.(*introspection.Type) 12528 fc.Result = res 12529 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 12530 } 12531 12532 func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12533 fc = &graphql.FieldContext{ 12534 Object: "__Field", 12535 Field: field, 12536 IsMethod: false, 12537 IsResolver: false, 12538 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12539 switch field.Name { 12540 case "kind": 12541 return ec.fieldContext___Type_kind(ctx, field) 12542 case "name": 12543 return ec.fieldContext___Type_name(ctx, field) 12544 case "description": 12545 return ec.fieldContext___Type_description(ctx, field) 12546 case "fields": 12547 return ec.fieldContext___Type_fields(ctx, field) 12548 case "interfaces": 12549 return ec.fieldContext___Type_interfaces(ctx, field) 12550 case "possibleTypes": 12551 return ec.fieldContext___Type_possibleTypes(ctx, field) 12552 case "enumValues": 12553 return ec.fieldContext___Type_enumValues(ctx, field) 12554 case "inputFields": 12555 return ec.fieldContext___Type_inputFields(ctx, field) 12556 case "ofType": 12557 return ec.fieldContext___Type_ofType(ctx, field) 12558 case "specifiedByURL": 12559 return ec.fieldContext___Type_specifiedByURL(ctx, field) 12560 } 12561 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 12562 }, 12563 } 12564 return fc, nil 12565 } 12566 12567 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 12568 fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) 12569 if err != nil { 12570 return graphql.Null 12571 } 12572 ctx = graphql.WithFieldContext(ctx, fc) 12573 defer func() { 12574 if r := recover(); r != nil { 12575 ec.Error(ctx, ec.Recover(ctx, r)) 12576 ret = graphql.Null 12577 } 12578 }() 12579 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12580 ctx = rctx // use context from middleware stack in children 12581 return obj.IsDeprecated(), nil 12582 }) 12583 12584 if resTmp == nil { 12585 if !graphql.HasFieldError(ctx, fc) { 12586 ec.Errorf(ctx, "must not be null") 12587 } 12588 return graphql.Null 12589 } 12590 res := resTmp.(bool) 12591 fc.Result = res 12592 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 12593 } 12594 12595 func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12596 fc = &graphql.FieldContext{ 12597 Object: "__Field", 12598 Field: field, 12599 IsMethod: true, 12600 IsResolver: false, 12601 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12602 return nil, errors.New("field of type Boolean does not have child fields") 12603 }, 12604 } 12605 return fc, nil 12606 } 12607 12608 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 12609 fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) 12610 if err != nil { 12611 return graphql.Null 12612 } 12613 ctx = graphql.WithFieldContext(ctx, fc) 12614 defer func() { 12615 if r := recover(); r != nil { 12616 ec.Error(ctx, ec.Recover(ctx, r)) 12617 ret = graphql.Null 12618 } 12619 }() 12620 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12621 ctx = rctx // use context from middleware stack in children 12622 return obj.DeprecationReason(), nil 12623 }) 12624 12625 if resTmp == nil { 12626 return graphql.Null 12627 } 12628 res := resTmp.(*string) 12629 fc.Result = res 12630 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12631 } 12632 12633 func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12634 fc = &graphql.FieldContext{ 12635 Object: "__Field", 12636 Field: field, 12637 IsMethod: true, 12638 IsResolver: false, 12639 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12640 return nil, errors.New("field of type String does not have child fields") 12641 }, 12642 } 12643 return fc, nil 12644 } 12645 12646 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 12647 fc, err := ec.fieldContext___InputValue_name(ctx, field) 12648 if err != nil { 12649 return graphql.Null 12650 } 12651 ctx = graphql.WithFieldContext(ctx, fc) 12652 defer func() { 12653 if r := recover(); r != nil { 12654 ec.Error(ctx, ec.Recover(ctx, r)) 12655 ret = graphql.Null 12656 } 12657 }() 12658 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12659 ctx = rctx // use context from middleware stack in children 12660 return obj.Name, nil 12661 }) 12662 12663 if resTmp == nil { 12664 if !graphql.HasFieldError(ctx, fc) { 12665 ec.Errorf(ctx, "must not be null") 12666 } 12667 return graphql.Null 12668 } 12669 res := resTmp.(string) 12670 fc.Result = res 12671 return ec.marshalNString2string(ctx, field.Selections, res) 12672 } 12673 12674 func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12675 fc = &graphql.FieldContext{ 12676 Object: "__InputValue", 12677 Field: field, 12678 IsMethod: false, 12679 IsResolver: false, 12680 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12681 return nil, errors.New("field of type String does not have child fields") 12682 }, 12683 } 12684 return fc, nil 12685 } 12686 12687 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 12688 fc, err := ec.fieldContext___InputValue_description(ctx, field) 12689 if err != nil { 12690 return graphql.Null 12691 } 12692 ctx = graphql.WithFieldContext(ctx, fc) 12693 defer func() { 12694 if r := recover(); r != nil { 12695 ec.Error(ctx, ec.Recover(ctx, r)) 12696 ret = graphql.Null 12697 } 12698 }() 12699 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12700 ctx = rctx // use context from middleware stack in children 12701 return obj.Description(), nil 12702 }) 12703 12704 if resTmp == nil { 12705 return graphql.Null 12706 } 12707 res := resTmp.(*string) 12708 fc.Result = res 12709 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12710 } 12711 12712 func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12713 fc = &graphql.FieldContext{ 12714 Object: "__InputValue", 12715 Field: field, 12716 IsMethod: true, 12717 IsResolver: false, 12718 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12719 return nil, errors.New("field of type String does not have child fields") 12720 }, 12721 } 12722 return fc, nil 12723 } 12724 12725 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 12726 fc, err := ec.fieldContext___InputValue_type(ctx, field) 12727 if err != nil { 12728 return graphql.Null 12729 } 12730 ctx = graphql.WithFieldContext(ctx, fc) 12731 defer func() { 12732 if r := recover(); r != nil { 12733 ec.Error(ctx, ec.Recover(ctx, r)) 12734 ret = graphql.Null 12735 } 12736 }() 12737 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12738 ctx = rctx // use context from middleware stack in children 12739 return obj.Type, nil 12740 }) 12741 12742 if resTmp == nil { 12743 if !graphql.HasFieldError(ctx, fc) { 12744 ec.Errorf(ctx, "must not be null") 12745 } 12746 return graphql.Null 12747 } 12748 res := resTmp.(*introspection.Type) 12749 fc.Result = res 12750 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 12751 } 12752 12753 func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12754 fc = &graphql.FieldContext{ 12755 Object: "__InputValue", 12756 Field: field, 12757 IsMethod: false, 12758 IsResolver: false, 12759 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12760 switch field.Name { 12761 case "kind": 12762 return ec.fieldContext___Type_kind(ctx, field) 12763 case "name": 12764 return ec.fieldContext___Type_name(ctx, field) 12765 case "description": 12766 return ec.fieldContext___Type_description(ctx, field) 12767 case "fields": 12768 return ec.fieldContext___Type_fields(ctx, field) 12769 case "interfaces": 12770 return ec.fieldContext___Type_interfaces(ctx, field) 12771 case "possibleTypes": 12772 return ec.fieldContext___Type_possibleTypes(ctx, field) 12773 case "enumValues": 12774 return ec.fieldContext___Type_enumValues(ctx, field) 12775 case "inputFields": 12776 return ec.fieldContext___Type_inputFields(ctx, field) 12777 case "ofType": 12778 return ec.fieldContext___Type_ofType(ctx, field) 12779 case "specifiedByURL": 12780 return ec.fieldContext___Type_specifiedByURL(ctx, field) 12781 } 12782 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 12783 }, 12784 } 12785 return fc, nil 12786 } 12787 12788 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 12789 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) 12790 if err != nil { 12791 return graphql.Null 12792 } 12793 ctx = graphql.WithFieldContext(ctx, fc) 12794 defer func() { 12795 if r := recover(); r != nil { 12796 ec.Error(ctx, ec.Recover(ctx, r)) 12797 ret = graphql.Null 12798 } 12799 }() 12800 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12801 ctx = rctx // use context from middleware stack in children 12802 return obj.DefaultValue, nil 12803 }) 12804 12805 if resTmp == nil { 12806 return graphql.Null 12807 } 12808 res := resTmp.(*string) 12809 fc.Result = res 12810 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12811 } 12812 12813 func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12814 fc = &graphql.FieldContext{ 12815 Object: "__InputValue", 12816 Field: field, 12817 IsMethod: false, 12818 IsResolver: false, 12819 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12820 return nil, errors.New("field of type String does not have child fields") 12821 }, 12822 } 12823 return fc, nil 12824 } 12825 12826 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 12827 fc, err := ec.fieldContext___Schema_description(ctx, field) 12828 if err != nil { 12829 return graphql.Null 12830 } 12831 ctx = graphql.WithFieldContext(ctx, fc) 12832 defer func() { 12833 if r := recover(); r != nil { 12834 ec.Error(ctx, ec.Recover(ctx, r)) 12835 ret = graphql.Null 12836 } 12837 }() 12838 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12839 ctx = rctx // use context from middleware stack in children 12840 return obj.Description(), nil 12841 }) 12842 12843 if resTmp == nil { 12844 return graphql.Null 12845 } 12846 res := resTmp.(*string) 12847 fc.Result = res 12848 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12849 } 12850 12851 func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12852 fc = &graphql.FieldContext{ 12853 Object: "__Schema", 12854 Field: field, 12855 IsMethod: true, 12856 IsResolver: false, 12857 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12858 return nil, errors.New("field of type String does not have child fields") 12859 }, 12860 } 12861 return fc, nil 12862 } 12863 12864 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 12865 fc, err := ec.fieldContext___Schema_types(ctx, field) 12866 if err != nil { 12867 return graphql.Null 12868 } 12869 ctx = graphql.WithFieldContext(ctx, fc) 12870 defer func() { 12871 if r := recover(); r != nil { 12872 ec.Error(ctx, ec.Recover(ctx, r)) 12873 ret = graphql.Null 12874 } 12875 }() 12876 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12877 ctx = rctx // use context from middleware stack in children 12878 return obj.Types(), nil 12879 }) 12880 12881 if resTmp == nil { 12882 if !graphql.HasFieldError(ctx, fc) { 12883 ec.Errorf(ctx, "must not be null") 12884 } 12885 return graphql.Null 12886 } 12887 res := resTmp.([]introspection.Type) 12888 fc.Result = res 12889 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 12890 } 12891 12892 func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12893 fc = &graphql.FieldContext{ 12894 Object: "__Schema", 12895 Field: field, 12896 IsMethod: true, 12897 IsResolver: false, 12898 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12899 switch field.Name { 12900 case "kind": 12901 return ec.fieldContext___Type_kind(ctx, field) 12902 case "name": 12903 return ec.fieldContext___Type_name(ctx, field) 12904 case "description": 12905 return ec.fieldContext___Type_description(ctx, field) 12906 case "fields": 12907 return ec.fieldContext___Type_fields(ctx, field) 12908 case "interfaces": 12909 return ec.fieldContext___Type_interfaces(ctx, field) 12910 case "possibleTypes": 12911 return ec.fieldContext___Type_possibleTypes(ctx, field) 12912 case "enumValues": 12913 return ec.fieldContext___Type_enumValues(ctx, field) 12914 case "inputFields": 12915 return ec.fieldContext___Type_inputFields(ctx, field) 12916 case "ofType": 12917 return ec.fieldContext___Type_ofType(ctx, field) 12918 case "specifiedByURL": 12919 return ec.fieldContext___Type_specifiedByURL(ctx, field) 12920 } 12921 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 12922 }, 12923 } 12924 return fc, nil 12925 } 12926 12927 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 12928 fc, err := ec.fieldContext___Schema_queryType(ctx, field) 12929 if err != nil { 12930 return graphql.Null 12931 } 12932 ctx = graphql.WithFieldContext(ctx, fc) 12933 defer func() { 12934 if r := recover(); r != nil { 12935 ec.Error(ctx, ec.Recover(ctx, r)) 12936 ret = graphql.Null 12937 } 12938 }() 12939 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 12940 ctx = rctx // use context from middleware stack in children 12941 return obj.QueryType(), nil 12942 }) 12943 12944 if resTmp == nil { 12945 if !graphql.HasFieldError(ctx, fc) { 12946 ec.Errorf(ctx, "must not be null") 12947 } 12948 return graphql.Null 12949 } 12950 res := resTmp.(*introspection.Type) 12951 fc.Result = res 12952 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 12953 } 12954 12955 func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12956 fc = &graphql.FieldContext{ 12957 Object: "__Schema", 12958 Field: field, 12959 IsMethod: true, 12960 IsResolver: false, 12961 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12962 switch field.Name { 12963 case "kind": 12964 return ec.fieldContext___Type_kind(ctx, field) 12965 case "name": 12966 return ec.fieldContext___Type_name(ctx, field) 12967 case "description": 12968 return ec.fieldContext___Type_description(ctx, field) 12969 case "fields": 12970 return ec.fieldContext___Type_fields(ctx, field) 12971 case "interfaces": 12972 return ec.fieldContext___Type_interfaces(ctx, field) 12973 case "possibleTypes": 12974 return ec.fieldContext___Type_possibleTypes(ctx, field) 12975 case "enumValues": 12976 return ec.fieldContext___Type_enumValues(ctx, field) 12977 case "inputFields": 12978 return ec.fieldContext___Type_inputFields(ctx, field) 12979 case "ofType": 12980 return ec.fieldContext___Type_ofType(ctx, field) 12981 case "specifiedByURL": 12982 return ec.fieldContext___Type_specifiedByURL(ctx, field) 12983 } 12984 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 12985 }, 12986 } 12987 return fc, nil 12988 } 12989 12990 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 12991 fc, err := ec.fieldContext___Schema_mutationType(ctx, field) 12992 if err != nil { 12993 return graphql.Null 12994 } 12995 ctx = graphql.WithFieldContext(ctx, fc) 12996 defer func() { 12997 if r := recover(); r != nil { 12998 ec.Error(ctx, ec.Recover(ctx, r)) 12999 ret = graphql.Null 13000 } 13001 }() 13002 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13003 ctx = rctx // use context from middleware stack in children 13004 return obj.MutationType(), nil 13005 }) 13006 13007 if resTmp == nil { 13008 return graphql.Null 13009 } 13010 res := resTmp.(*introspection.Type) 13011 fc.Result = res 13012 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 13013 } 13014 13015 func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13016 fc = &graphql.FieldContext{ 13017 Object: "__Schema", 13018 Field: field, 13019 IsMethod: true, 13020 IsResolver: false, 13021 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13022 switch field.Name { 13023 case "kind": 13024 return ec.fieldContext___Type_kind(ctx, field) 13025 case "name": 13026 return ec.fieldContext___Type_name(ctx, field) 13027 case "description": 13028 return ec.fieldContext___Type_description(ctx, field) 13029 case "fields": 13030 return ec.fieldContext___Type_fields(ctx, field) 13031 case "interfaces": 13032 return ec.fieldContext___Type_interfaces(ctx, field) 13033 case "possibleTypes": 13034 return ec.fieldContext___Type_possibleTypes(ctx, field) 13035 case "enumValues": 13036 return ec.fieldContext___Type_enumValues(ctx, field) 13037 case "inputFields": 13038 return ec.fieldContext___Type_inputFields(ctx, field) 13039 case "ofType": 13040 return ec.fieldContext___Type_ofType(ctx, field) 13041 case "specifiedByURL": 13042 return ec.fieldContext___Type_specifiedByURL(ctx, field) 13043 } 13044 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 13045 }, 13046 } 13047 return fc, nil 13048 } 13049 13050 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 13051 fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) 13052 if err != nil { 13053 return graphql.Null 13054 } 13055 ctx = graphql.WithFieldContext(ctx, fc) 13056 defer func() { 13057 if r := recover(); r != nil { 13058 ec.Error(ctx, ec.Recover(ctx, r)) 13059 ret = graphql.Null 13060 } 13061 }() 13062 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13063 ctx = rctx // use context from middleware stack in children 13064 return obj.SubscriptionType(), nil 13065 }) 13066 13067 if resTmp == nil { 13068 return graphql.Null 13069 } 13070 res := resTmp.(*introspection.Type) 13071 fc.Result = res 13072 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 13073 } 13074 13075 func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13076 fc = &graphql.FieldContext{ 13077 Object: "__Schema", 13078 Field: field, 13079 IsMethod: true, 13080 IsResolver: false, 13081 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13082 switch field.Name { 13083 case "kind": 13084 return ec.fieldContext___Type_kind(ctx, field) 13085 case "name": 13086 return ec.fieldContext___Type_name(ctx, field) 13087 case "description": 13088 return ec.fieldContext___Type_description(ctx, field) 13089 case "fields": 13090 return ec.fieldContext___Type_fields(ctx, field) 13091 case "interfaces": 13092 return ec.fieldContext___Type_interfaces(ctx, field) 13093 case "possibleTypes": 13094 return ec.fieldContext___Type_possibleTypes(ctx, field) 13095 case "enumValues": 13096 return ec.fieldContext___Type_enumValues(ctx, field) 13097 case "inputFields": 13098 return ec.fieldContext___Type_inputFields(ctx, field) 13099 case "ofType": 13100 return ec.fieldContext___Type_ofType(ctx, field) 13101 case "specifiedByURL": 13102 return ec.fieldContext___Type_specifiedByURL(ctx, field) 13103 } 13104 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 13105 }, 13106 } 13107 return fc, nil 13108 } 13109 13110 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 13111 fc, err := ec.fieldContext___Schema_directives(ctx, field) 13112 if err != nil { 13113 return graphql.Null 13114 } 13115 ctx = graphql.WithFieldContext(ctx, fc) 13116 defer func() { 13117 if r := recover(); r != nil { 13118 ec.Error(ctx, ec.Recover(ctx, r)) 13119 ret = graphql.Null 13120 } 13121 }() 13122 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13123 ctx = rctx // use context from middleware stack in children 13124 return obj.Directives(), nil 13125 }) 13126 13127 if resTmp == nil { 13128 if !graphql.HasFieldError(ctx, fc) { 13129 ec.Errorf(ctx, "must not be null") 13130 } 13131 return graphql.Null 13132 } 13133 res := resTmp.([]introspection.Directive) 13134 fc.Result = res 13135 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) 13136 } 13137 13138 func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13139 fc = &graphql.FieldContext{ 13140 Object: "__Schema", 13141 Field: field, 13142 IsMethod: true, 13143 IsResolver: false, 13144 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13145 switch field.Name { 13146 case "name": 13147 return ec.fieldContext___Directive_name(ctx, field) 13148 case "description": 13149 return ec.fieldContext___Directive_description(ctx, field) 13150 case "locations": 13151 return ec.fieldContext___Directive_locations(ctx, field) 13152 case "args": 13153 return ec.fieldContext___Directive_args(ctx, field) 13154 case "isRepeatable": 13155 return ec.fieldContext___Directive_isRepeatable(ctx, field) 13156 } 13157 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) 13158 }, 13159 } 13160 return fc, nil 13161 } 13162 13163 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13164 fc, err := ec.fieldContext___Type_kind(ctx, field) 13165 if err != nil { 13166 return graphql.Null 13167 } 13168 ctx = graphql.WithFieldContext(ctx, fc) 13169 defer func() { 13170 if r := recover(); r != nil { 13171 ec.Error(ctx, ec.Recover(ctx, r)) 13172 ret = graphql.Null 13173 } 13174 }() 13175 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13176 ctx = rctx // use context from middleware stack in children 13177 return obj.Kind(), nil 13178 }) 13179 13180 if resTmp == nil { 13181 if !graphql.HasFieldError(ctx, fc) { 13182 ec.Errorf(ctx, "must not be null") 13183 } 13184 return graphql.Null 13185 } 13186 res := resTmp.(string) 13187 fc.Result = res 13188 return ec.marshalN__TypeKind2string(ctx, field.Selections, res) 13189 } 13190 13191 func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13192 fc = &graphql.FieldContext{ 13193 Object: "__Type", 13194 Field: field, 13195 IsMethod: true, 13196 IsResolver: false, 13197 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13198 return nil, errors.New("field of type __TypeKind does not have child fields") 13199 }, 13200 } 13201 return fc, nil 13202 } 13203 13204 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13205 fc, err := ec.fieldContext___Type_name(ctx, field) 13206 if err != nil { 13207 return graphql.Null 13208 } 13209 ctx = graphql.WithFieldContext(ctx, fc) 13210 defer func() { 13211 if r := recover(); r != nil { 13212 ec.Error(ctx, ec.Recover(ctx, r)) 13213 ret = graphql.Null 13214 } 13215 }() 13216 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13217 ctx = rctx // use context from middleware stack in children 13218 return obj.Name(), nil 13219 }) 13220 13221 if resTmp == nil { 13222 return graphql.Null 13223 } 13224 res := resTmp.(*string) 13225 fc.Result = res 13226 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13227 } 13228 13229 func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13230 fc = &graphql.FieldContext{ 13231 Object: "__Type", 13232 Field: field, 13233 IsMethod: true, 13234 IsResolver: false, 13235 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13236 return nil, errors.New("field of type String does not have child fields") 13237 }, 13238 } 13239 return fc, nil 13240 } 13241 13242 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13243 fc, err := ec.fieldContext___Type_description(ctx, field) 13244 if err != nil { 13245 return graphql.Null 13246 } 13247 ctx = graphql.WithFieldContext(ctx, fc) 13248 defer func() { 13249 if r := recover(); r != nil { 13250 ec.Error(ctx, ec.Recover(ctx, r)) 13251 ret = graphql.Null 13252 } 13253 }() 13254 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13255 ctx = rctx // use context from middleware stack in children 13256 return obj.Description(), nil 13257 }) 13258 13259 if resTmp == nil { 13260 return graphql.Null 13261 } 13262 res := resTmp.(*string) 13263 fc.Result = res 13264 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13265 } 13266 13267 func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13268 fc = &graphql.FieldContext{ 13269 Object: "__Type", 13270 Field: field, 13271 IsMethod: true, 13272 IsResolver: false, 13273 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13274 return nil, errors.New("field of type String does not have child fields") 13275 }, 13276 } 13277 return fc, nil 13278 } 13279 13280 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13281 fc, err := ec.fieldContext___Type_fields(ctx, field) 13282 if err != nil { 13283 return graphql.Null 13284 } 13285 ctx = graphql.WithFieldContext(ctx, fc) 13286 defer func() { 13287 if r := recover(); r != nil { 13288 ec.Error(ctx, ec.Recover(ctx, r)) 13289 ret = graphql.Null 13290 } 13291 }() 13292 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13293 ctx = rctx // use context from middleware stack in children 13294 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil 13295 }) 13296 13297 if resTmp == nil { 13298 return graphql.Null 13299 } 13300 res := resTmp.([]introspection.Field) 13301 fc.Result = res 13302 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) 13303 } 13304 13305 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13306 fc = &graphql.FieldContext{ 13307 Object: "__Type", 13308 Field: field, 13309 IsMethod: true, 13310 IsResolver: false, 13311 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13312 switch field.Name { 13313 case "name": 13314 return ec.fieldContext___Field_name(ctx, field) 13315 case "description": 13316 return ec.fieldContext___Field_description(ctx, field) 13317 case "args": 13318 return ec.fieldContext___Field_args(ctx, field) 13319 case "type": 13320 return ec.fieldContext___Field_type(ctx, field) 13321 case "isDeprecated": 13322 return ec.fieldContext___Field_isDeprecated(ctx, field) 13323 case "deprecationReason": 13324 return ec.fieldContext___Field_deprecationReason(ctx, field) 13325 } 13326 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) 13327 }, 13328 } 13329 defer func() { 13330 if r := recover(); r != nil { 13331 err = ec.Recover(ctx, r) 13332 ec.Error(ctx, err) 13333 } 13334 }() 13335 ctx = graphql.WithFieldContext(ctx, fc) 13336 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 13337 ec.Error(ctx, err) 13338 return 13339 } 13340 return fc, nil 13341 } 13342 13343 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13344 fc, err := ec.fieldContext___Type_interfaces(ctx, field) 13345 if err != nil { 13346 return graphql.Null 13347 } 13348 ctx = graphql.WithFieldContext(ctx, fc) 13349 defer func() { 13350 if r := recover(); r != nil { 13351 ec.Error(ctx, ec.Recover(ctx, r)) 13352 ret = graphql.Null 13353 } 13354 }() 13355 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13356 ctx = rctx // use context from middleware stack in children 13357 return obj.Interfaces(), nil 13358 }) 13359 13360 if resTmp == nil { 13361 return graphql.Null 13362 } 13363 res := resTmp.([]introspection.Type) 13364 fc.Result = res 13365 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 13366 } 13367 13368 func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13369 fc = &graphql.FieldContext{ 13370 Object: "__Type", 13371 Field: field, 13372 IsMethod: true, 13373 IsResolver: false, 13374 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13375 switch field.Name { 13376 case "kind": 13377 return ec.fieldContext___Type_kind(ctx, field) 13378 case "name": 13379 return ec.fieldContext___Type_name(ctx, field) 13380 case "description": 13381 return ec.fieldContext___Type_description(ctx, field) 13382 case "fields": 13383 return ec.fieldContext___Type_fields(ctx, field) 13384 case "interfaces": 13385 return ec.fieldContext___Type_interfaces(ctx, field) 13386 case "possibleTypes": 13387 return ec.fieldContext___Type_possibleTypes(ctx, field) 13388 case "enumValues": 13389 return ec.fieldContext___Type_enumValues(ctx, field) 13390 case "inputFields": 13391 return ec.fieldContext___Type_inputFields(ctx, field) 13392 case "ofType": 13393 return ec.fieldContext___Type_ofType(ctx, field) 13394 case "specifiedByURL": 13395 return ec.fieldContext___Type_specifiedByURL(ctx, field) 13396 } 13397 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 13398 }, 13399 } 13400 return fc, nil 13401 } 13402 13403 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13404 fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) 13405 if err != nil { 13406 return graphql.Null 13407 } 13408 ctx = graphql.WithFieldContext(ctx, fc) 13409 defer func() { 13410 if r := recover(); r != nil { 13411 ec.Error(ctx, ec.Recover(ctx, r)) 13412 ret = graphql.Null 13413 } 13414 }() 13415 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13416 ctx = rctx // use context from middleware stack in children 13417 return obj.PossibleTypes(), nil 13418 }) 13419 13420 if resTmp == nil { 13421 return graphql.Null 13422 } 13423 res := resTmp.([]introspection.Type) 13424 fc.Result = res 13425 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 13426 } 13427 13428 func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13429 fc = &graphql.FieldContext{ 13430 Object: "__Type", 13431 Field: field, 13432 IsMethod: true, 13433 IsResolver: false, 13434 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13435 switch field.Name { 13436 case "kind": 13437 return ec.fieldContext___Type_kind(ctx, field) 13438 case "name": 13439 return ec.fieldContext___Type_name(ctx, field) 13440 case "description": 13441 return ec.fieldContext___Type_description(ctx, field) 13442 case "fields": 13443 return ec.fieldContext___Type_fields(ctx, field) 13444 case "interfaces": 13445 return ec.fieldContext___Type_interfaces(ctx, field) 13446 case "possibleTypes": 13447 return ec.fieldContext___Type_possibleTypes(ctx, field) 13448 case "enumValues": 13449 return ec.fieldContext___Type_enumValues(ctx, field) 13450 case "inputFields": 13451 return ec.fieldContext___Type_inputFields(ctx, field) 13452 case "ofType": 13453 return ec.fieldContext___Type_ofType(ctx, field) 13454 case "specifiedByURL": 13455 return ec.fieldContext___Type_specifiedByURL(ctx, field) 13456 } 13457 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 13458 }, 13459 } 13460 return fc, nil 13461 } 13462 13463 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13464 fc, err := ec.fieldContext___Type_enumValues(ctx, field) 13465 if err != nil { 13466 return graphql.Null 13467 } 13468 ctx = graphql.WithFieldContext(ctx, fc) 13469 defer func() { 13470 if r := recover(); r != nil { 13471 ec.Error(ctx, ec.Recover(ctx, r)) 13472 ret = graphql.Null 13473 } 13474 }() 13475 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13476 ctx = rctx // use context from middleware stack in children 13477 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil 13478 }) 13479 13480 if resTmp == nil { 13481 return graphql.Null 13482 } 13483 res := resTmp.([]introspection.EnumValue) 13484 fc.Result = res 13485 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) 13486 } 13487 13488 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13489 fc = &graphql.FieldContext{ 13490 Object: "__Type", 13491 Field: field, 13492 IsMethod: true, 13493 IsResolver: false, 13494 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13495 switch field.Name { 13496 case "name": 13497 return ec.fieldContext___EnumValue_name(ctx, field) 13498 case "description": 13499 return ec.fieldContext___EnumValue_description(ctx, field) 13500 case "isDeprecated": 13501 return ec.fieldContext___EnumValue_isDeprecated(ctx, field) 13502 case "deprecationReason": 13503 return ec.fieldContext___EnumValue_deprecationReason(ctx, field) 13504 } 13505 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) 13506 }, 13507 } 13508 defer func() { 13509 if r := recover(); r != nil { 13510 err = ec.Recover(ctx, r) 13511 ec.Error(ctx, err) 13512 } 13513 }() 13514 ctx = graphql.WithFieldContext(ctx, fc) 13515 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 13516 ec.Error(ctx, err) 13517 return 13518 } 13519 return fc, nil 13520 } 13521 13522 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13523 fc, err := ec.fieldContext___Type_inputFields(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.InputFields(), nil 13537 }) 13538 13539 if resTmp == nil { 13540 return graphql.Null 13541 } 13542 res := resTmp.([]introspection.InputValue) 13543 fc.Result = res 13544 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 13545 } 13546 13547 func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13548 fc = &graphql.FieldContext{ 13549 Object: "__Type", 13550 Field: field, 13551 IsMethod: true, 13552 IsResolver: false, 13553 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13554 switch field.Name { 13555 case "name": 13556 return ec.fieldContext___InputValue_name(ctx, field) 13557 case "description": 13558 return ec.fieldContext___InputValue_description(ctx, field) 13559 case "type": 13560 return ec.fieldContext___InputValue_type(ctx, field) 13561 case "defaultValue": 13562 return ec.fieldContext___InputValue_defaultValue(ctx, field) 13563 } 13564 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 13565 }, 13566 } 13567 return fc, nil 13568 } 13569 13570 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13571 fc, err := ec.fieldContext___Type_ofType(ctx, field) 13572 if err != nil { 13573 return graphql.Null 13574 } 13575 ctx = graphql.WithFieldContext(ctx, fc) 13576 defer func() { 13577 if r := recover(); r != nil { 13578 ec.Error(ctx, ec.Recover(ctx, r)) 13579 ret = graphql.Null 13580 } 13581 }() 13582 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13583 ctx = rctx // use context from middleware stack in children 13584 return obj.OfType(), nil 13585 }) 13586 13587 if resTmp == nil { 13588 return graphql.Null 13589 } 13590 res := resTmp.(*introspection.Type) 13591 fc.Result = res 13592 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 13593 } 13594 13595 func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13596 fc = &graphql.FieldContext{ 13597 Object: "__Type", 13598 Field: field, 13599 IsMethod: true, 13600 IsResolver: false, 13601 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13602 switch field.Name { 13603 case "kind": 13604 return ec.fieldContext___Type_kind(ctx, field) 13605 case "name": 13606 return ec.fieldContext___Type_name(ctx, field) 13607 case "description": 13608 return ec.fieldContext___Type_description(ctx, field) 13609 case "fields": 13610 return ec.fieldContext___Type_fields(ctx, field) 13611 case "interfaces": 13612 return ec.fieldContext___Type_interfaces(ctx, field) 13613 case "possibleTypes": 13614 return ec.fieldContext___Type_possibleTypes(ctx, field) 13615 case "enumValues": 13616 return ec.fieldContext___Type_enumValues(ctx, field) 13617 case "inputFields": 13618 return ec.fieldContext___Type_inputFields(ctx, field) 13619 case "ofType": 13620 return ec.fieldContext___Type_ofType(ctx, field) 13621 case "specifiedByURL": 13622 return ec.fieldContext___Type_specifiedByURL(ctx, field) 13623 } 13624 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 13625 }, 13626 } 13627 return fc, nil 13628 } 13629 13630 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 13631 fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) 13632 if err != nil { 13633 return graphql.Null 13634 } 13635 ctx = graphql.WithFieldContext(ctx, fc) 13636 defer func() { 13637 if r := recover(); r != nil { 13638 ec.Error(ctx, ec.Recover(ctx, r)) 13639 ret = graphql.Null 13640 } 13641 }() 13642 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13643 ctx = rctx // use context from middleware stack in children 13644 return obj.SpecifiedByURL(), nil 13645 }) 13646 13647 if resTmp == nil { 13648 return graphql.Null 13649 } 13650 res := resTmp.(*string) 13651 fc.Result = res 13652 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13653 } 13654 13655 func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13656 fc = &graphql.FieldContext{ 13657 Object: "__Type", 13658 Field: field, 13659 IsMethod: true, 13660 IsResolver: false, 13661 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13662 return nil, errors.New("field of type String does not have child fields") 13663 }, 13664 } 13665 return fc, nil 13666 } 13667 13668 func (ec *executionContext) _asdfIt_id(ctx context.Context, field graphql.CollectedField, obj *AsdfIt) (ret graphql.Marshaler) { 13669 fc, err := ec.fieldContext_asdfIt_id(ctx, field) 13670 if err != nil { 13671 return graphql.Null 13672 } 13673 ctx = graphql.WithFieldContext(ctx, fc) 13674 defer func() { 13675 if r := recover(); r != nil { 13676 ec.Error(ctx, ec.Recover(ctx, r)) 13677 ret = graphql.Null 13678 } 13679 }() 13680 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13681 ctx = rctx // use context from middleware stack in children 13682 return obj.ID, nil 13683 }) 13684 13685 if resTmp == nil { 13686 if !graphql.HasFieldError(ctx, fc) { 13687 ec.Errorf(ctx, "must not be null") 13688 } 13689 return graphql.Null 13690 } 13691 res := resTmp.(string) 13692 fc.Result = res 13693 return ec.marshalNID2string(ctx, field.Selections, res) 13694 } 13695 13696 func (ec *executionContext) fieldContext_asdfIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13697 fc = &graphql.FieldContext{ 13698 Object: "asdfIt", 13699 Field: field, 13700 IsMethod: false, 13701 IsResolver: false, 13702 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13703 return nil, errors.New("field of type ID does not have child fields") 13704 }, 13705 } 13706 return fc, nil 13707 } 13708 13709 func (ec *executionContext) _iIt_id(ctx context.Context, field graphql.CollectedField, obj *IIt) (ret graphql.Marshaler) { 13710 fc, err := ec.fieldContext_iIt_id(ctx, field) 13711 if err != nil { 13712 return graphql.Null 13713 } 13714 ctx = graphql.WithFieldContext(ctx, fc) 13715 defer func() { 13716 if r := recover(); r != nil { 13717 ec.Error(ctx, ec.Recover(ctx, r)) 13718 ret = graphql.Null 13719 } 13720 }() 13721 resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { 13722 ctx = rctx // use context from middleware stack in children 13723 return obj.ID, nil 13724 }) 13725 13726 if resTmp == nil { 13727 if !graphql.HasFieldError(ctx, fc) { 13728 ec.Errorf(ctx, "must not be null") 13729 } 13730 return graphql.Null 13731 } 13732 res := resTmp.(string) 13733 fc.Result = res 13734 return ec.marshalNID2string(ctx, field.Selections, res) 13735 } 13736 13737 func (ec *executionContext) fieldContext_iIt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13738 fc = &graphql.FieldContext{ 13739 Object: "iIt", 13740 Field: field, 13741 IsMethod: false, 13742 IsResolver: false, 13743 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13744 return nil, errors.New("field of type ID does not have child fields") 13745 }, 13746 } 13747 return fc, nil 13748 } 13749 13750 // endregion **************************** field.gotpl ***************************** 13751 13752 // region **************************** input.gotpl ***************************** 13753 13754 func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj interface{}) (DefaultInput, error) { 13755 var it DefaultInput 13756 asMap := map[string]interface{}{} 13757 for k, v := range obj.(map[string]interface{}) { 13758 asMap[k] = v 13759 } 13760 13761 if _, present := asMap["falsyBoolean"]; !present { 13762 asMap["falsyBoolean"] = false 13763 } 13764 if _, present := asMap["truthyBoolean"]; !present { 13765 asMap["truthyBoolean"] = true 13766 } 13767 13768 for k, v := range asMap { 13769 switch k { 13770 case "falsyBoolean": 13771 var err error 13772 13773 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("falsyBoolean")) 13774 it.FalsyBoolean, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) 13775 if err != nil { 13776 return it, err 13777 } 13778 case "truthyBoolean": 13779 var err error 13780 13781 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("truthyBoolean")) 13782 it.TruthyBoolean, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) 13783 if err != nil { 13784 return it, err 13785 } 13786 } 13787 } 13788 13789 return it, nil 13790 } 13791 13792 func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, obj interface{}) (InnerDirectives, error) { 13793 var it InnerDirectives 13794 asMap := map[string]interface{}{} 13795 for k, v := range obj.(map[string]interface{}) { 13796 asMap[k] = v 13797 } 13798 13799 for k, v := range asMap { 13800 switch k { 13801 case "message": 13802 var err error 13803 13804 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) 13805 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } 13806 directive1 := func(ctx context.Context) (interface{}, error) { 13807 min, err := ec.unmarshalNInt2int(ctx, 1) 13808 if err != nil { 13809 return nil, err 13810 } 13811 message, err := ec.unmarshalOString2ᚖstring(ctx, "not valid") 13812 if err != nil { 13813 return nil, err 13814 } 13815 if ec.directives.Length == nil { 13816 return nil, errors.New("directive length is not implemented") 13817 } 13818 return ec.directives.Length(ctx, obj, directive0, min, nil, message) 13819 } 13820 13821 tmp, err := directive1(ctx) 13822 if err != nil { 13823 return it, graphql.ErrorOnPath(ctx, err) 13824 } 13825 if data, ok := tmp.(string); ok { 13826 it.Message = data 13827 } else { 13828 err := fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 13829 return it, graphql.ErrorOnPath(ctx, err) 13830 } 13831 } 13832 } 13833 13834 return it, nil 13835 } 13836 13837 func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj interface{}) (InnerInput, error) { 13838 var it InnerInput 13839 asMap := map[string]interface{}{} 13840 for k, v := range obj.(map[string]interface{}) { 13841 asMap[k] = v 13842 } 13843 13844 for k, v := range asMap { 13845 switch k { 13846 case "id": 13847 var err error 13848 13849 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 13850 it.ID, err = ec.unmarshalNInt2int(ctx, v) 13851 if err != nil { 13852 return it, err 13853 } 13854 } 13855 } 13856 13857 return it, nil 13858 } 13859 13860 func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, obj interface{}) (InputDirectives, error) { 13861 var it InputDirectives 13862 asMap := map[string]interface{}{} 13863 for k, v := range obj.(map[string]interface{}) { 13864 asMap[k] = v 13865 } 13866 13867 for k, v := range asMap { 13868 switch k { 13869 case "text": 13870 var err error 13871 13872 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) 13873 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } 13874 directive1 := func(ctx context.Context) (interface{}, error) { 13875 if ec.directives.Directive3 == nil { 13876 return nil, errors.New("directive directive3 is not implemented") 13877 } 13878 return ec.directives.Directive3(ctx, obj, directive0) 13879 } 13880 directive2 := func(ctx context.Context) (interface{}, error) { 13881 min, err := ec.unmarshalNInt2int(ctx, 0) 13882 if err != nil { 13883 return nil, err 13884 } 13885 max, err := ec.unmarshalOInt2ᚖint(ctx, 7) 13886 if err != nil { 13887 return nil, err 13888 } 13889 message, err := ec.unmarshalOString2ᚖstring(ctx, "not valid") 13890 if err != nil { 13891 return nil, err 13892 } 13893 if ec.directives.Length == nil { 13894 return nil, errors.New("directive length is not implemented") 13895 } 13896 return ec.directives.Length(ctx, obj, directive1, min, max, message) 13897 } 13898 13899 tmp, err := directive2(ctx) 13900 if err != nil { 13901 return it, graphql.ErrorOnPath(ctx, err) 13902 } 13903 if data, ok := tmp.(string); ok { 13904 it.Text = data 13905 } else { 13906 err := fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 13907 return it, graphql.ErrorOnPath(ctx, err) 13908 } 13909 case "nullableText": 13910 var err error 13911 13912 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nullableText")) 13913 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } 13914 directive1 := func(ctx context.Context) (interface{}, error) { 13915 if ec.directives.Directive3 == nil { 13916 return nil, errors.New("directive directive3 is not implemented") 13917 } 13918 return ec.directives.Directive3(ctx, obj, directive0) 13919 } 13920 directive2 := func(ctx context.Context) (interface{}, error) { 13921 if ec.directives.ToNull == nil { 13922 return nil, errors.New("directive toNull is not implemented") 13923 } 13924 return ec.directives.ToNull(ctx, obj, directive1) 13925 } 13926 13927 tmp, err := directive2(ctx) 13928 if err != nil { 13929 return it, graphql.ErrorOnPath(ctx, err) 13930 } 13931 if data, ok := tmp.(*string); ok { 13932 it.NullableText = data 13933 } else if tmp == nil { 13934 it.NullableText = nil 13935 } else { 13936 err := fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 13937 return it, graphql.ErrorOnPath(ctx, err) 13938 } 13939 case "inner": 13940 var err error 13941 13942 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) 13943 directive0 := func(ctx context.Context) (interface{}, error) { 13944 return ec.unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx, v) 13945 } 13946 directive1 := func(ctx context.Context) (interface{}, error) { 13947 if ec.directives.Directive3 == nil { 13948 return nil, errors.New("directive directive3 is not implemented") 13949 } 13950 return ec.directives.Directive3(ctx, obj, directive0) 13951 } 13952 13953 tmp, err := directive1(ctx) 13954 if err != nil { 13955 return it, graphql.ErrorOnPath(ctx, err) 13956 } 13957 if data, ok := tmp.(*InnerDirectives); ok { 13958 it.Inner = data 13959 } else if tmp == nil { 13960 it.Inner = nil 13961 } else { 13962 err := fmt.Errorf(`unexpected type %T from directive, should be *github.com/99designs/gqlgen/codegen/testserver/singlefile.InnerDirectives`, tmp) 13963 return it, graphql.ErrorOnPath(ctx, err) 13964 } 13965 case "innerNullable": 13966 var err error 13967 13968 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("innerNullable")) 13969 directive0 := func(ctx context.Context) (interface{}, error) { 13970 return ec.unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx, v) 13971 } 13972 directive1 := func(ctx context.Context) (interface{}, error) { 13973 if ec.directives.Directive3 == nil { 13974 return nil, errors.New("directive directive3 is not implemented") 13975 } 13976 return ec.directives.Directive3(ctx, obj, directive0) 13977 } 13978 13979 tmp, err := directive1(ctx) 13980 if err != nil { 13981 return it, graphql.ErrorOnPath(ctx, err) 13982 } 13983 if data, ok := tmp.(*InnerDirectives); ok { 13984 it.InnerNullable = data 13985 } else if tmp == nil { 13986 it.InnerNullable = nil 13987 } else { 13988 err := fmt.Errorf(`unexpected type %T from directive, should be *github.com/99designs/gqlgen/codegen/testserver/singlefile.InnerDirectives`, tmp) 13989 return it, graphql.ErrorOnPath(ctx, err) 13990 } 13991 case "thirdParty": 13992 var err error 13993 13994 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("thirdParty")) 13995 directive0 := func(ctx context.Context) (interface{}, error) { 13996 return ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx, v) 13997 } 13998 directive1 := func(ctx context.Context) (interface{}, error) { 13999 if ec.directives.Directive3 == nil { 14000 return nil, errors.New("directive directive3 is not implemented") 14001 } 14002 return ec.directives.Directive3(ctx, obj, directive0) 14003 } 14004 directive2 := func(ctx context.Context) (interface{}, error) { 14005 min, err := ec.unmarshalNInt2int(ctx, 0) 14006 if err != nil { 14007 return nil, err 14008 } 14009 max, err := ec.unmarshalOInt2ᚖint(ctx, 7) 14010 if err != nil { 14011 return nil, err 14012 } 14013 if ec.directives.Length == nil { 14014 return nil, errors.New("directive length is not implemented") 14015 } 14016 return ec.directives.Length(ctx, obj, directive1, min, max, nil) 14017 } 14018 14019 tmp, err := directive2(ctx) 14020 if err != nil { 14021 return it, graphql.ErrorOnPath(ctx, err) 14022 } 14023 if data, ok := tmp.(*ThirdParty); ok { 14024 it.ThirdParty = data 14025 } else if tmp == nil { 14026 it.ThirdParty = nil 14027 } else { 14028 err := fmt.Errorf(`unexpected type %T from directive, should be *github.com/99designs/gqlgen/codegen/testserver/singlefile.ThirdParty`, tmp) 14029 return it, graphql.ErrorOnPath(ctx, err) 14030 } 14031 } 14032 } 14033 14034 return it, nil 14035 } 14036 14037 func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context, obj interface{}) (InputWithEnumValue, error) { 14038 var it InputWithEnumValue 14039 asMap := map[string]interface{}{} 14040 for k, v := range obj.(map[string]interface{}) { 14041 asMap[k] = v 14042 } 14043 14044 for k, v := range asMap { 14045 switch k { 14046 case "enum": 14047 var err error 14048 14049 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enum")) 14050 it.Enum, err = ec.unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx, v) 14051 if err != nil { 14052 return it, err 14053 } 14054 } 14055 } 14056 14057 return it, nil 14058 } 14059 14060 func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj interface{}) (NestedInput, error) { 14061 var it NestedInput 14062 asMap := map[string]interface{}{} 14063 for k, v := range obj.(map[string]interface{}) { 14064 asMap[k] = v 14065 } 14066 14067 for k, v := range asMap { 14068 switch k { 14069 case "field": 14070 var err error 14071 14072 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) 14073 it.Field, err = ec.unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx, v) 14074 if err != nil { 14075 return it, err 14076 } 14077 } 14078 } 14079 14080 return it, nil 14081 } 14082 14083 func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, obj interface{}) (NestedMapInput, error) { 14084 var it NestedMapInput 14085 asMap := map[string]interface{}{} 14086 for k, v := range obj.(map[string]interface{}) { 14087 asMap[k] = v 14088 } 14089 14090 for k, v := range asMap { 14091 switch k { 14092 case "map": 14093 var err error 14094 14095 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) 14096 it.Map, err = ec.unmarshalOMapStringInterfaceInput2map(ctx, v) 14097 if err != nil { 14098 return it, err 14099 } 14100 } 14101 } 14102 14103 return it, nil 14104 } 14105 14106 func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj interface{}) (OuterInput, error) { 14107 var it OuterInput 14108 asMap := map[string]interface{}{} 14109 for k, v := range obj.(map[string]interface{}) { 14110 asMap[k] = v 14111 } 14112 14113 for k, v := range asMap { 14114 switch k { 14115 case "inner": 14116 var err error 14117 14118 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) 14119 it.Inner, err = ec.unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx, v) 14120 if err != nil { 14121 return it, err 14122 } 14123 } 14124 } 14125 14126 return it, nil 14127 } 14128 14129 func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Context, obj interface{}) (RecursiveInputSlice, error) { 14130 var it RecursiveInputSlice 14131 asMap := map[string]interface{}{} 14132 for k, v := range obj.(map[string]interface{}) { 14133 asMap[k] = v 14134 } 14135 14136 for k, v := range asMap { 14137 switch k { 14138 case "self": 14139 var err error 14140 14141 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("self")) 14142 it.Self, err = ec.unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSliceᚄ(ctx, v) 14143 if err != nil { 14144 return it, err 14145 } 14146 } 14147 } 14148 14149 return it, nil 14150 } 14151 14152 func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj interface{}) (SpecialInput, error) { 14153 var it SpecialInput 14154 asMap := map[string]interface{}{} 14155 for k, v := range obj.(map[string]interface{}) { 14156 asMap[k] = v 14157 } 14158 14159 for k, v := range asMap { 14160 switch k { 14161 case "nesting": 14162 var err error 14163 14164 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nesting")) 14165 it.Nesting, err = ec.unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedInput(ctx, v) 14166 if err != nil { 14167 return it, err 14168 } 14169 } 14170 } 14171 14172 return it, nil 14173 } 14174 14175 func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Context, obj interface{}) (UpdatePtrToPtrInner, error) { 14176 var it UpdatePtrToPtrInner 14177 asMap := map[string]interface{}{} 14178 for k, v := range obj.(map[string]interface{}) { 14179 asMap[k] = v 14180 } 14181 14182 for k, v := range asMap { 14183 switch k { 14184 case "key": 14185 var err error 14186 14187 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 14188 it.Key, err = ec.unmarshalOString2ᚖstring(ctx, v) 14189 if err != nil { 14190 return it, err 14191 } 14192 case "value": 14193 var err error 14194 14195 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) 14196 it.Value, err = ec.unmarshalOString2ᚖstring(ctx, v) 14197 if err != nil { 14198 return it, err 14199 } 14200 } 14201 } 14202 14203 return it, nil 14204 } 14205 14206 func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj interface{}) (UpdatePtrToPtrOuter, error) { 14207 var it UpdatePtrToPtrOuter 14208 asMap := map[string]interface{}{} 14209 for k, v := range obj.(map[string]interface{}) { 14210 asMap[k] = v 14211 } 14212 14213 for k, v := range asMap { 14214 switch k { 14215 case "name": 14216 var err error 14217 14218 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 14219 it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) 14220 if err != nil { 14221 return it, err 14222 } 14223 case "inner": 14224 var err error 14225 14226 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) 14227 it.Inner, err = ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 14228 if err != nil { 14229 return it, err 14230 } 14231 case "stupidInner": 14232 var err error 14233 14234 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stupidInner")) 14235 it.StupidInner, err = ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 14236 if err != nil { 14237 return it, err 14238 } 14239 } 14240 } 14241 14242 return it, nil 14243 } 14244 14245 func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj interface{}) (ValidInput, error) { 14246 var it ValidInput 14247 asMap := map[string]interface{}{} 14248 for k, v := range obj.(map[string]interface{}) { 14249 asMap[k] = v 14250 } 14251 14252 for k, v := range asMap { 14253 switch k { 14254 case "break": 14255 var err error 14256 14257 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("break")) 14258 it.Break, err = ec.unmarshalNString2string(ctx, v) 14259 if err != nil { 14260 return it, err 14261 } 14262 case "default": 14263 var err error 14264 14265 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) 14266 it.Default, err = ec.unmarshalNString2string(ctx, v) 14267 if err != nil { 14268 return it, err 14269 } 14270 case "func": 14271 var err error 14272 14273 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("func")) 14274 it.Func, err = ec.unmarshalNString2string(ctx, v) 14275 if err != nil { 14276 return it, err 14277 } 14278 case "interface": 14279 var err error 14280 14281 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interface")) 14282 it.Interface, err = ec.unmarshalNString2string(ctx, v) 14283 if err != nil { 14284 return it, err 14285 } 14286 case "select": 14287 var err error 14288 14289 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("select")) 14290 it.Select, err = ec.unmarshalNString2string(ctx, v) 14291 if err != nil { 14292 return it, err 14293 } 14294 case "case": 14295 var err error 14296 14297 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("case")) 14298 it.Case, err = ec.unmarshalNString2string(ctx, v) 14299 if err != nil { 14300 return it, err 14301 } 14302 case "defer": 14303 var err error 14304 14305 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defer")) 14306 it.Defer, err = ec.unmarshalNString2string(ctx, v) 14307 if err != nil { 14308 return it, err 14309 } 14310 case "go": 14311 var err error 14312 14313 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("go")) 14314 it.Go, err = ec.unmarshalNString2string(ctx, v) 14315 if err != nil { 14316 return it, err 14317 } 14318 case "map": 14319 var err error 14320 14321 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) 14322 it.Map, err = ec.unmarshalNString2string(ctx, v) 14323 if err != nil { 14324 return it, err 14325 } 14326 case "struct": 14327 var err error 14328 14329 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("struct")) 14330 it.Struct, err = ec.unmarshalNString2string(ctx, v) 14331 if err != nil { 14332 return it, err 14333 } 14334 case "chan": 14335 var err error 14336 14337 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chan")) 14338 it.Chan, err = ec.unmarshalNString2string(ctx, v) 14339 if err != nil { 14340 return it, err 14341 } 14342 case "else": 14343 var err error 14344 14345 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("else")) 14346 it.Else, err = ec.unmarshalNString2string(ctx, v) 14347 if err != nil { 14348 return it, err 14349 } 14350 case "goto": 14351 var err error 14352 14353 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("goto")) 14354 it.Goto, err = ec.unmarshalNString2string(ctx, v) 14355 if err != nil { 14356 return it, err 14357 } 14358 case "package": 14359 var err error 14360 14361 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("package")) 14362 it.Package, err = ec.unmarshalNString2string(ctx, v) 14363 if err != nil { 14364 return it, err 14365 } 14366 case "switch": 14367 var err error 14368 14369 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("switch")) 14370 it.Switch, err = ec.unmarshalNString2string(ctx, v) 14371 if err != nil { 14372 return it, err 14373 } 14374 case "const": 14375 var err error 14376 14377 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("const")) 14378 it.Const, err = ec.unmarshalNString2string(ctx, v) 14379 if err != nil { 14380 return it, err 14381 } 14382 case "fallthrough": 14383 var err error 14384 14385 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fallthrough")) 14386 it.Fallthrough, err = ec.unmarshalNString2string(ctx, v) 14387 if err != nil { 14388 return it, err 14389 } 14390 case "if": 14391 var err error 14392 14393 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("if")) 14394 it.If, err = ec.unmarshalNString2string(ctx, v) 14395 if err != nil { 14396 return it, err 14397 } 14398 case "range": 14399 var err error 14400 14401 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("range")) 14402 it.Range, err = ec.unmarshalNString2string(ctx, v) 14403 if err != nil { 14404 return it, err 14405 } 14406 case "type": 14407 var err error 14408 14409 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) 14410 it.Type, err = ec.unmarshalNString2string(ctx, v) 14411 if err != nil { 14412 return it, err 14413 } 14414 case "continue": 14415 var err error 14416 14417 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue")) 14418 it.Continue, err = ec.unmarshalNString2string(ctx, v) 14419 if err != nil { 14420 return it, err 14421 } 14422 case "for": 14423 var err error 14424 14425 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("for")) 14426 it.For, err = ec.unmarshalNString2string(ctx, v) 14427 if err != nil { 14428 return it, err 14429 } 14430 case "import": 14431 var err error 14432 14433 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import")) 14434 it.Import, err = ec.unmarshalNString2string(ctx, v) 14435 if err != nil { 14436 return it, err 14437 } 14438 case "return": 14439 var err error 14440 14441 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("return")) 14442 it.Return, err = ec.unmarshalNString2string(ctx, v) 14443 if err != nil { 14444 return it, err 14445 } 14446 case "var": 14447 var err error 14448 14449 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("var")) 14450 it.Var, err = ec.unmarshalNString2string(ctx, v) 14451 if err != nil { 14452 return it, err 14453 } 14454 case "_": 14455 var err error 14456 14457 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_")) 14458 it.Underscore, err = ec.unmarshalNString2string(ctx, v) 14459 if err != nil { 14460 return it, err 14461 } 14462 } 14463 } 14464 14465 return it, nil 14466 } 14467 14468 // endregion **************************** input.gotpl ***************************** 14469 14470 // region ************************** interface.gotpl *************************** 14471 14472 func (ec *executionContext) _Animal(ctx context.Context, sel ast.SelectionSet, obj Animal) graphql.Marshaler { 14473 switch obj := (obj).(type) { 14474 case nil: 14475 return graphql.Null 14476 case Dog: 14477 return ec._Dog(ctx, sel, &obj) 14478 case *Dog: 14479 if obj == nil { 14480 return graphql.Null 14481 } 14482 return ec._Dog(ctx, sel, obj) 14483 case Cat: 14484 return ec._Cat(ctx, sel, &obj) 14485 case *Cat: 14486 if obj == nil { 14487 return graphql.Null 14488 } 14489 return ec._Cat(ctx, sel, obj) 14490 default: 14491 panic(fmt.Errorf("unexpected type %T", obj)) 14492 } 14493 } 14494 14495 func (ec *executionContext) _Content_Child(ctx context.Context, sel ast.SelectionSet, obj ContentChild) graphql.Marshaler { 14496 switch obj := (obj).(type) { 14497 case nil: 14498 return graphql.Null 14499 case ContentUser: 14500 return ec._Content_User(ctx, sel, &obj) 14501 case *ContentUser: 14502 if obj == nil { 14503 return graphql.Null 14504 } 14505 return ec._Content_User(ctx, sel, obj) 14506 case ContentPost: 14507 return ec._Content_Post(ctx, sel, &obj) 14508 case *ContentPost: 14509 if obj == nil { 14510 return graphql.Null 14511 } 14512 return ec._Content_Post(ctx, sel, obj) 14513 default: 14514 panic(fmt.Errorf("unexpected type %T", obj)) 14515 } 14516 } 14517 14518 func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj Node) graphql.Marshaler { 14519 switch obj := (obj).(type) { 14520 case nil: 14521 return graphql.Null 14522 case *ConcreteNodeA: 14523 if obj == nil { 14524 return graphql.Null 14525 } 14526 return ec._ConcreteNodeA(ctx, sel, obj) 14527 case ConcreteNodeInterface: 14528 if obj == nil { 14529 return graphql.Null 14530 } 14531 return ec._ConcreteNodeInterface(ctx, sel, obj) 14532 default: 14533 panic(fmt.Errorf("unexpected type %T", obj)) 14534 } 14535 } 14536 14537 func (ec *executionContext) _Shape(ctx context.Context, sel ast.SelectionSet, obj Shape) graphql.Marshaler { 14538 switch obj := (obj).(type) { 14539 case nil: 14540 return graphql.Null 14541 case *Circle: 14542 if obj == nil { 14543 return graphql.Null 14544 } 14545 return ec._Circle(ctx, sel, obj) 14546 case *Rectangle: 14547 if obj == nil { 14548 return graphql.Null 14549 } 14550 return ec._Rectangle(ctx, sel, obj) 14551 default: 14552 panic(fmt.Errorf("unexpected type %T", obj)) 14553 } 14554 } 14555 14556 func (ec *executionContext) _ShapeUnion(ctx context.Context, sel ast.SelectionSet, obj ShapeUnion) graphql.Marshaler { 14557 switch obj := (obj).(type) { 14558 case nil: 14559 return graphql.Null 14560 case *Circle: 14561 if obj == nil { 14562 return graphql.Null 14563 } 14564 return ec._Circle(ctx, sel, obj) 14565 case *Rectangle: 14566 if obj == nil { 14567 return graphql.Null 14568 } 14569 return ec._Rectangle(ctx, sel, obj) 14570 default: 14571 panic(fmt.Errorf("unexpected type %T", obj)) 14572 } 14573 } 14574 14575 func (ec *executionContext) _TestUnion(ctx context.Context, sel ast.SelectionSet, obj TestUnion) graphql.Marshaler { 14576 switch obj := (obj).(type) { 14577 case nil: 14578 return graphql.Null 14579 case A: 14580 return ec._A(ctx, sel, &obj) 14581 case *A: 14582 if obj == nil { 14583 return graphql.Null 14584 } 14585 return ec._A(ctx, sel, obj) 14586 case B: 14587 return ec._B(ctx, sel, &obj) 14588 case *B: 14589 if obj == nil { 14590 return graphql.Null 14591 } 14592 return ec._B(ctx, sel, obj) 14593 default: 14594 panic(fmt.Errorf("unexpected type %T", obj)) 14595 } 14596 } 14597 14598 // endregion ************************** interface.gotpl *************************** 14599 14600 // region **************************** object.gotpl **************************** 14601 14602 var aImplementors = []string{"A", "TestUnion"} 14603 14604 func (ec *executionContext) _A(ctx context.Context, sel ast.SelectionSet, obj *A) graphql.Marshaler { 14605 fields := graphql.CollectFields(ec.OperationContext, sel, aImplementors) 14606 out := graphql.NewFieldSet(fields) 14607 var invalids uint32 14608 for i, field := range fields { 14609 switch field.Name { 14610 case "__typename": 14611 out.Values[i] = graphql.MarshalString("A") 14612 case "id": 14613 14614 out.Values[i] = ec._A_id(ctx, field, obj) 14615 14616 if out.Values[i] == graphql.Null { 14617 invalids++ 14618 } 14619 default: 14620 panic("unknown field " + strconv.Quote(field.Name)) 14621 } 14622 } 14623 out.Dispatch() 14624 if invalids > 0 { 14625 return graphql.Null 14626 } 14627 return out 14628 } 14629 14630 var aItImplementors = []string{"AIt"} 14631 14632 func (ec *executionContext) _AIt(ctx context.Context, sel ast.SelectionSet, obj *AIt) graphql.Marshaler { 14633 fields := graphql.CollectFields(ec.OperationContext, sel, aItImplementors) 14634 out := graphql.NewFieldSet(fields) 14635 var invalids uint32 14636 for i, field := range fields { 14637 switch field.Name { 14638 case "__typename": 14639 out.Values[i] = graphql.MarshalString("AIt") 14640 case "id": 14641 14642 out.Values[i] = ec._AIt_id(ctx, field, obj) 14643 14644 if out.Values[i] == graphql.Null { 14645 invalids++ 14646 } 14647 default: 14648 panic("unknown field " + strconv.Quote(field.Name)) 14649 } 14650 } 14651 out.Dispatch() 14652 if invalids > 0 { 14653 return graphql.Null 14654 } 14655 return out 14656 } 14657 14658 var abItImplementors = []string{"AbIt"} 14659 14660 func (ec *executionContext) _AbIt(ctx context.Context, sel ast.SelectionSet, obj *AbIt) graphql.Marshaler { 14661 fields := graphql.CollectFields(ec.OperationContext, sel, abItImplementors) 14662 out := graphql.NewFieldSet(fields) 14663 var invalids uint32 14664 for i, field := range fields { 14665 switch field.Name { 14666 case "__typename": 14667 out.Values[i] = graphql.MarshalString("AbIt") 14668 case "id": 14669 14670 out.Values[i] = ec._AbIt_id(ctx, field, obj) 14671 14672 if out.Values[i] == graphql.Null { 14673 invalids++ 14674 } 14675 default: 14676 panic("unknown field " + strconv.Quote(field.Name)) 14677 } 14678 } 14679 out.Dispatch() 14680 if invalids > 0 { 14681 return graphql.Null 14682 } 14683 return out 14684 } 14685 14686 var autobindImplementors = []string{"Autobind"} 14687 14688 func (ec *executionContext) _Autobind(ctx context.Context, sel ast.SelectionSet, obj *Autobind) graphql.Marshaler { 14689 fields := graphql.CollectFields(ec.OperationContext, sel, autobindImplementors) 14690 out := graphql.NewFieldSet(fields) 14691 var invalids uint32 14692 for i, field := range fields { 14693 switch field.Name { 14694 case "__typename": 14695 out.Values[i] = graphql.MarshalString("Autobind") 14696 case "int": 14697 14698 out.Values[i] = ec._Autobind_int(ctx, field, obj) 14699 14700 if out.Values[i] == graphql.Null { 14701 invalids++ 14702 } 14703 case "int32": 14704 14705 out.Values[i] = ec._Autobind_int32(ctx, field, obj) 14706 14707 if out.Values[i] == graphql.Null { 14708 invalids++ 14709 } 14710 case "int64": 14711 14712 out.Values[i] = ec._Autobind_int64(ctx, field, obj) 14713 14714 if out.Values[i] == graphql.Null { 14715 invalids++ 14716 } 14717 case "idStr": 14718 14719 out.Values[i] = ec._Autobind_idStr(ctx, field, obj) 14720 14721 if out.Values[i] == graphql.Null { 14722 invalids++ 14723 } 14724 case "idInt": 14725 14726 out.Values[i] = ec._Autobind_idInt(ctx, field, obj) 14727 14728 if out.Values[i] == graphql.Null { 14729 invalids++ 14730 } 14731 default: 14732 panic("unknown field " + strconv.Quote(field.Name)) 14733 } 14734 } 14735 out.Dispatch() 14736 if invalids > 0 { 14737 return graphql.Null 14738 } 14739 return out 14740 } 14741 14742 var bImplementors = []string{"B", "TestUnion"} 14743 14744 func (ec *executionContext) _B(ctx context.Context, sel ast.SelectionSet, obj *B) graphql.Marshaler { 14745 fields := graphql.CollectFields(ec.OperationContext, sel, bImplementors) 14746 out := graphql.NewFieldSet(fields) 14747 var invalids uint32 14748 for i, field := range fields { 14749 switch field.Name { 14750 case "__typename": 14751 out.Values[i] = graphql.MarshalString("B") 14752 case "id": 14753 14754 out.Values[i] = ec._B_id(ctx, field, obj) 14755 14756 if out.Values[i] == graphql.Null { 14757 invalids++ 14758 } 14759 default: 14760 panic("unknown field " + strconv.Quote(field.Name)) 14761 } 14762 } 14763 out.Dispatch() 14764 if invalids > 0 { 14765 return graphql.Null 14766 } 14767 return out 14768 } 14769 14770 var backedByInterfaceImplementors = []string{"BackedByInterface"} 14771 14772 func (ec *executionContext) _BackedByInterface(ctx context.Context, sel ast.SelectionSet, obj BackedByInterface) graphql.Marshaler { 14773 fields := graphql.CollectFields(ec.OperationContext, sel, backedByInterfaceImplementors) 14774 out := graphql.NewFieldSet(fields) 14775 var invalids uint32 14776 for i, field := range fields { 14777 switch field.Name { 14778 case "__typename": 14779 out.Values[i] = graphql.MarshalString("BackedByInterface") 14780 case "id": 14781 field := field 14782 14783 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 14784 defer func() { 14785 if r := recover(); r != nil { 14786 ec.Error(ctx, ec.Recover(ctx, r)) 14787 } 14788 }() 14789 res = ec._BackedByInterface_id(ctx, field, obj) 14790 if res == graphql.Null { 14791 atomic.AddUint32(&invalids, 1) 14792 } 14793 return res 14794 } 14795 14796 out.Concurrently(i, func() graphql.Marshaler { 14797 return innerFunc(ctx) 14798 14799 }) 14800 case "thisShouldBind": 14801 14802 out.Values[i] = ec._BackedByInterface_thisShouldBind(ctx, field, obj) 14803 14804 if out.Values[i] == graphql.Null { 14805 atomic.AddUint32(&invalids, 1) 14806 } 14807 case "thisShouldBindWithError": 14808 14809 out.Values[i] = ec._BackedByInterface_thisShouldBindWithError(ctx, field, obj) 14810 14811 if out.Values[i] == graphql.Null { 14812 atomic.AddUint32(&invalids, 1) 14813 } 14814 default: 14815 panic("unknown field " + strconv.Quote(field.Name)) 14816 } 14817 } 14818 out.Dispatch() 14819 if invalids > 0 { 14820 return graphql.Null 14821 } 14822 return out 14823 } 14824 14825 var catImplementors = []string{"Cat", "Animal"} 14826 14827 func (ec *executionContext) _Cat(ctx context.Context, sel ast.SelectionSet, obj *Cat) graphql.Marshaler { 14828 fields := graphql.CollectFields(ec.OperationContext, sel, catImplementors) 14829 out := graphql.NewFieldSet(fields) 14830 var invalids uint32 14831 for i, field := range fields { 14832 switch field.Name { 14833 case "__typename": 14834 out.Values[i] = graphql.MarshalString("Cat") 14835 case "species": 14836 14837 out.Values[i] = ec._Cat_species(ctx, field, obj) 14838 14839 if out.Values[i] == graphql.Null { 14840 invalids++ 14841 } 14842 case "catBreed": 14843 14844 out.Values[i] = ec._Cat_catBreed(ctx, field, obj) 14845 14846 if out.Values[i] == graphql.Null { 14847 invalids++ 14848 } 14849 default: 14850 panic("unknown field " + strconv.Quote(field.Name)) 14851 } 14852 } 14853 out.Dispatch() 14854 if invalids > 0 { 14855 return graphql.Null 14856 } 14857 return out 14858 } 14859 14860 var checkIssue896Implementors = []string{"CheckIssue896"} 14861 14862 func (ec *executionContext) _CheckIssue896(ctx context.Context, sel ast.SelectionSet, obj *CheckIssue896) graphql.Marshaler { 14863 fields := graphql.CollectFields(ec.OperationContext, sel, checkIssue896Implementors) 14864 out := graphql.NewFieldSet(fields) 14865 var invalids uint32 14866 for i, field := range fields { 14867 switch field.Name { 14868 case "__typename": 14869 out.Values[i] = graphql.MarshalString("CheckIssue896") 14870 case "id": 14871 14872 out.Values[i] = ec._CheckIssue896_id(ctx, field, obj) 14873 14874 default: 14875 panic("unknown field " + strconv.Quote(field.Name)) 14876 } 14877 } 14878 out.Dispatch() 14879 if invalids > 0 { 14880 return graphql.Null 14881 } 14882 return out 14883 } 14884 14885 var circleImplementors = []string{"Circle", "Shape", "ShapeUnion"} 14886 14887 func (ec *executionContext) _Circle(ctx context.Context, sel ast.SelectionSet, obj *Circle) graphql.Marshaler { 14888 fields := graphql.CollectFields(ec.OperationContext, sel, circleImplementors) 14889 out := graphql.NewFieldSet(fields) 14890 var invalids uint32 14891 for i, field := range fields { 14892 switch field.Name { 14893 case "__typename": 14894 out.Values[i] = graphql.MarshalString("Circle") 14895 case "radius": 14896 14897 out.Values[i] = ec._Circle_radius(ctx, field, obj) 14898 14899 case "area": 14900 14901 out.Values[i] = ec._Circle_area(ctx, field, obj) 14902 14903 case "coordinates": 14904 14905 out.Values[i] = ec._Circle_coordinates(ctx, field, obj) 14906 14907 default: 14908 panic("unknown field " + strconv.Quote(field.Name)) 14909 } 14910 } 14911 out.Dispatch() 14912 if invalids > 0 { 14913 return graphql.Null 14914 } 14915 return out 14916 } 14917 14918 var concreteNodeAImplementors = []string{"ConcreteNodeA", "Node"} 14919 14920 func (ec *executionContext) _ConcreteNodeA(ctx context.Context, sel ast.SelectionSet, obj *ConcreteNodeA) graphql.Marshaler { 14921 fields := graphql.CollectFields(ec.OperationContext, sel, concreteNodeAImplementors) 14922 out := graphql.NewFieldSet(fields) 14923 var invalids uint32 14924 for i, field := range fields { 14925 switch field.Name { 14926 case "__typename": 14927 out.Values[i] = graphql.MarshalString("ConcreteNodeA") 14928 case "id": 14929 14930 out.Values[i] = ec._ConcreteNodeA_id(ctx, field, obj) 14931 14932 if out.Values[i] == graphql.Null { 14933 invalids++ 14934 } 14935 case "child": 14936 14937 out.Values[i] = ec._ConcreteNodeA_child(ctx, field, obj) 14938 14939 if out.Values[i] == graphql.Null { 14940 invalids++ 14941 } 14942 case "name": 14943 14944 out.Values[i] = ec._ConcreteNodeA_name(ctx, field, obj) 14945 14946 if out.Values[i] == graphql.Null { 14947 invalids++ 14948 } 14949 default: 14950 panic("unknown field " + strconv.Quote(field.Name)) 14951 } 14952 } 14953 out.Dispatch() 14954 if invalids > 0 { 14955 return graphql.Null 14956 } 14957 return out 14958 } 14959 14960 var concreteNodeInterfaceImplementors = []string{"ConcreteNodeInterface", "Node"} 14961 14962 func (ec *executionContext) _ConcreteNodeInterface(ctx context.Context, sel ast.SelectionSet, obj ConcreteNodeInterface) graphql.Marshaler { 14963 fields := graphql.CollectFields(ec.OperationContext, sel, concreteNodeInterfaceImplementors) 14964 out := graphql.NewFieldSet(fields) 14965 var invalids uint32 14966 for i, field := range fields { 14967 switch field.Name { 14968 case "__typename": 14969 out.Values[i] = graphql.MarshalString("ConcreteNodeInterface") 14970 case "id": 14971 14972 out.Values[i] = ec._ConcreteNodeInterface_id(ctx, field, obj) 14973 14974 if out.Values[i] == graphql.Null { 14975 invalids++ 14976 } 14977 case "child": 14978 14979 out.Values[i] = ec._ConcreteNodeInterface_child(ctx, field, obj) 14980 14981 if out.Values[i] == graphql.Null { 14982 invalids++ 14983 } 14984 default: 14985 panic("unknown field " + strconv.Quote(field.Name)) 14986 } 14987 } 14988 out.Dispatch() 14989 if invalids > 0 { 14990 return graphql.Null 14991 } 14992 return out 14993 } 14994 14995 var content_PostImplementors = []string{"Content_Post", "Content_Child"} 14996 14997 func (ec *executionContext) _Content_Post(ctx context.Context, sel ast.SelectionSet, obj *ContentPost) graphql.Marshaler { 14998 fields := graphql.CollectFields(ec.OperationContext, sel, content_PostImplementors) 14999 out := graphql.NewFieldSet(fields) 15000 var invalids uint32 15001 for i, field := range fields { 15002 switch field.Name { 15003 case "__typename": 15004 out.Values[i] = graphql.MarshalString("Content_Post") 15005 case "foo": 15006 15007 out.Values[i] = ec._Content_Post_foo(ctx, field, obj) 15008 15009 default: 15010 panic("unknown field " + strconv.Quote(field.Name)) 15011 } 15012 } 15013 out.Dispatch() 15014 if invalids > 0 { 15015 return graphql.Null 15016 } 15017 return out 15018 } 15019 15020 var content_UserImplementors = []string{"Content_User", "Content_Child"} 15021 15022 func (ec *executionContext) _Content_User(ctx context.Context, sel ast.SelectionSet, obj *ContentUser) graphql.Marshaler { 15023 fields := graphql.CollectFields(ec.OperationContext, sel, content_UserImplementors) 15024 out := graphql.NewFieldSet(fields) 15025 var invalids uint32 15026 for i, field := range fields { 15027 switch field.Name { 15028 case "__typename": 15029 out.Values[i] = graphql.MarshalString("Content_User") 15030 case "foo": 15031 15032 out.Values[i] = ec._Content_User_foo(ctx, field, obj) 15033 15034 default: 15035 panic("unknown field " + strconv.Quote(field.Name)) 15036 } 15037 } 15038 out.Dispatch() 15039 if invalids > 0 { 15040 return graphql.Null 15041 } 15042 return out 15043 } 15044 15045 var coordinatesImplementors = []string{"Coordinates"} 15046 15047 func (ec *executionContext) _Coordinates(ctx context.Context, sel ast.SelectionSet, obj *Coordinates) graphql.Marshaler { 15048 fields := graphql.CollectFields(ec.OperationContext, sel, coordinatesImplementors) 15049 out := graphql.NewFieldSet(fields) 15050 var invalids uint32 15051 for i, field := range fields { 15052 switch field.Name { 15053 case "__typename": 15054 out.Values[i] = graphql.MarshalString("Coordinates") 15055 case "x": 15056 15057 out.Values[i] = ec._Coordinates_x(ctx, field, obj) 15058 15059 if out.Values[i] == graphql.Null { 15060 invalids++ 15061 } 15062 case "y": 15063 15064 out.Values[i] = ec._Coordinates_y(ctx, field, obj) 15065 15066 if out.Values[i] == graphql.Null { 15067 invalids++ 15068 } 15069 default: 15070 panic("unknown field " + strconv.Quote(field.Name)) 15071 } 15072 } 15073 out.Dispatch() 15074 if invalids > 0 { 15075 return graphql.Null 15076 } 15077 return out 15078 } 15079 15080 var defaultParametersMirrorImplementors = []string{"DefaultParametersMirror"} 15081 15082 func (ec *executionContext) _DefaultParametersMirror(ctx context.Context, sel ast.SelectionSet, obj *DefaultParametersMirror) graphql.Marshaler { 15083 fields := graphql.CollectFields(ec.OperationContext, sel, defaultParametersMirrorImplementors) 15084 out := graphql.NewFieldSet(fields) 15085 var invalids uint32 15086 for i, field := range fields { 15087 switch field.Name { 15088 case "__typename": 15089 out.Values[i] = graphql.MarshalString("DefaultParametersMirror") 15090 case "falsyBoolean": 15091 15092 out.Values[i] = ec._DefaultParametersMirror_falsyBoolean(ctx, field, obj) 15093 15094 case "truthyBoolean": 15095 15096 out.Values[i] = ec._DefaultParametersMirror_truthyBoolean(ctx, field, obj) 15097 15098 default: 15099 panic("unknown field " + strconv.Quote(field.Name)) 15100 } 15101 } 15102 out.Dispatch() 15103 if invalids > 0 { 15104 return graphql.Null 15105 } 15106 return out 15107 } 15108 15109 var dogImplementors = []string{"Dog", "Animal"} 15110 15111 func (ec *executionContext) _Dog(ctx context.Context, sel ast.SelectionSet, obj *Dog) graphql.Marshaler { 15112 fields := graphql.CollectFields(ec.OperationContext, sel, dogImplementors) 15113 out := graphql.NewFieldSet(fields) 15114 var invalids uint32 15115 for i, field := range fields { 15116 switch field.Name { 15117 case "__typename": 15118 out.Values[i] = graphql.MarshalString("Dog") 15119 case "species": 15120 15121 out.Values[i] = ec._Dog_species(ctx, field, obj) 15122 15123 if out.Values[i] == graphql.Null { 15124 invalids++ 15125 } 15126 case "dogBreed": 15127 15128 out.Values[i] = ec._Dog_dogBreed(ctx, field, obj) 15129 15130 if out.Values[i] == graphql.Null { 15131 invalids++ 15132 } 15133 default: 15134 panic("unknown field " + strconv.Quote(field.Name)) 15135 } 15136 } 15137 out.Dispatch() 15138 if invalids > 0 { 15139 return graphql.Null 15140 } 15141 return out 15142 } 15143 15144 var embeddedCase1Implementors = []string{"EmbeddedCase1"} 15145 15146 func (ec *executionContext) _EmbeddedCase1(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedCase1) graphql.Marshaler { 15147 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedCase1Implementors) 15148 out := graphql.NewFieldSet(fields) 15149 var invalids uint32 15150 for i, field := range fields { 15151 switch field.Name { 15152 case "__typename": 15153 out.Values[i] = graphql.MarshalString("EmbeddedCase1") 15154 case "exportedEmbeddedPointerExportedMethod": 15155 15156 out.Values[i] = ec._EmbeddedCase1_exportedEmbeddedPointerExportedMethod(ctx, field, obj) 15157 15158 if out.Values[i] == graphql.Null { 15159 invalids++ 15160 } 15161 default: 15162 panic("unknown field " + strconv.Quote(field.Name)) 15163 } 15164 } 15165 out.Dispatch() 15166 if invalids > 0 { 15167 return graphql.Null 15168 } 15169 return out 15170 } 15171 15172 var embeddedCase2Implementors = []string{"EmbeddedCase2"} 15173 15174 func (ec *executionContext) _EmbeddedCase2(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedCase2) graphql.Marshaler { 15175 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedCase2Implementors) 15176 out := graphql.NewFieldSet(fields) 15177 var invalids uint32 15178 for i, field := range fields { 15179 switch field.Name { 15180 case "__typename": 15181 out.Values[i] = graphql.MarshalString("EmbeddedCase2") 15182 case "unexportedEmbeddedPointerExportedMethod": 15183 15184 out.Values[i] = ec._EmbeddedCase2_unexportedEmbeddedPointerExportedMethod(ctx, field, obj) 15185 15186 if out.Values[i] == graphql.Null { 15187 invalids++ 15188 } 15189 default: 15190 panic("unknown field " + strconv.Quote(field.Name)) 15191 } 15192 } 15193 out.Dispatch() 15194 if invalids > 0 { 15195 return graphql.Null 15196 } 15197 return out 15198 } 15199 15200 var embeddedCase3Implementors = []string{"EmbeddedCase3"} 15201 15202 func (ec *executionContext) _EmbeddedCase3(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedCase3) graphql.Marshaler { 15203 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedCase3Implementors) 15204 out := graphql.NewFieldSet(fields) 15205 var invalids uint32 15206 for i, field := range fields { 15207 switch field.Name { 15208 case "__typename": 15209 out.Values[i] = graphql.MarshalString("EmbeddedCase3") 15210 case "unexportedEmbeddedInterfaceExportedMethod": 15211 15212 out.Values[i] = ec._EmbeddedCase3_unexportedEmbeddedInterfaceExportedMethod(ctx, field, obj) 15213 15214 if out.Values[i] == graphql.Null { 15215 invalids++ 15216 } 15217 default: 15218 panic("unknown field " + strconv.Quote(field.Name)) 15219 } 15220 } 15221 out.Dispatch() 15222 if invalids > 0 { 15223 return graphql.Null 15224 } 15225 return out 15226 } 15227 15228 var embeddedDefaultScalarImplementors = []string{"EmbeddedDefaultScalar"} 15229 15230 func (ec *executionContext) _EmbeddedDefaultScalar(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedDefaultScalar) graphql.Marshaler { 15231 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedDefaultScalarImplementors) 15232 out := graphql.NewFieldSet(fields) 15233 var invalids uint32 15234 for i, field := range fields { 15235 switch field.Name { 15236 case "__typename": 15237 out.Values[i] = graphql.MarshalString("EmbeddedDefaultScalar") 15238 case "value": 15239 15240 out.Values[i] = ec._EmbeddedDefaultScalar_value(ctx, field, obj) 15241 15242 default: 15243 panic("unknown field " + strconv.Quote(field.Name)) 15244 } 15245 } 15246 out.Dispatch() 15247 if invalids > 0 { 15248 return graphql.Null 15249 } 15250 return out 15251 } 15252 15253 var embeddedPointerImplementors = []string{"EmbeddedPointer"} 15254 15255 func (ec *executionContext) _EmbeddedPointer(ctx context.Context, sel ast.SelectionSet, obj *EmbeddedPointerModel) graphql.Marshaler { 15256 fields := graphql.CollectFields(ec.OperationContext, sel, embeddedPointerImplementors) 15257 out := graphql.NewFieldSet(fields) 15258 var invalids uint32 15259 for i, field := range fields { 15260 switch field.Name { 15261 case "__typename": 15262 out.Values[i] = graphql.MarshalString("EmbeddedPointer") 15263 case "ID": 15264 15265 out.Values[i] = ec._EmbeddedPointer_ID(ctx, field, obj) 15266 15267 case "Title": 15268 15269 out.Values[i] = ec._EmbeddedPointer_Title(ctx, field, obj) 15270 15271 default: 15272 panic("unknown field " + strconv.Quote(field.Name)) 15273 } 15274 } 15275 out.Dispatch() 15276 if invalids > 0 { 15277 return graphql.Null 15278 } 15279 return out 15280 } 15281 15282 var errorImplementors = []string{"Error"} 15283 15284 func (ec *executionContext) _Error(ctx context.Context, sel ast.SelectionSet, obj *Error) graphql.Marshaler { 15285 fields := graphql.CollectFields(ec.OperationContext, sel, errorImplementors) 15286 out := graphql.NewFieldSet(fields) 15287 var invalids uint32 15288 for i, field := range fields { 15289 switch field.Name { 15290 case "__typename": 15291 out.Values[i] = graphql.MarshalString("Error") 15292 case "id": 15293 15294 out.Values[i] = ec._Error_id(ctx, field, obj) 15295 15296 if out.Values[i] == graphql.Null { 15297 invalids++ 15298 } 15299 case "errorOnNonRequiredField": 15300 15301 out.Values[i] = ec._Error_errorOnNonRequiredField(ctx, field, obj) 15302 15303 case "errorOnRequiredField": 15304 15305 out.Values[i] = ec._Error_errorOnRequiredField(ctx, field, obj) 15306 15307 if out.Values[i] == graphql.Null { 15308 invalids++ 15309 } 15310 case "nilOnRequiredField": 15311 15312 out.Values[i] = ec._Error_nilOnRequiredField(ctx, field, obj) 15313 15314 if out.Values[i] == graphql.Null { 15315 invalids++ 15316 } 15317 default: 15318 panic("unknown field " + strconv.Quote(field.Name)) 15319 } 15320 } 15321 out.Dispatch() 15322 if invalids > 0 { 15323 return graphql.Null 15324 } 15325 return out 15326 } 15327 15328 var errorsImplementors = []string{"Errors"} 15329 15330 func (ec *executionContext) _Errors(ctx context.Context, sel ast.SelectionSet, obj *Errors) graphql.Marshaler { 15331 fields := graphql.CollectFields(ec.OperationContext, sel, errorsImplementors) 15332 out := graphql.NewFieldSet(fields) 15333 var invalids uint32 15334 for i, field := range fields { 15335 switch field.Name { 15336 case "__typename": 15337 out.Values[i] = graphql.MarshalString("Errors") 15338 case "a": 15339 field := field 15340 15341 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15342 defer func() { 15343 if r := recover(); r != nil { 15344 ec.Error(ctx, ec.Recover(ctx, r)) 15345 } 15346 }() 15347 res = ec._Errors_a(ctx, field, obj) 15348 if res == graphql.Null { 15349 atomic.AddUint32(&invalids, 1) 15350 } 15351 return res 15352 } 15353 15354 out.Concurrently(i, func() graphql.Marshaler { 15355 return innerFunc(ctx) 15356 15357 }) 15358 case "b": 15359 field := field 15360 15361 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15362 defer func() { 15363 if r := recover(); r != nil { 15364 ec.Error(ctx, ec.Recover(ctx, r)) 15365 } 15366 }() 15367 res = ec._Errors_b(ctx, field, obj) 15368 if res == graphql.Null { 15369 atomic.AddUint32(&invalids, 1) 15370 } 15371 return res 15372 } 15373 15374 out.Concurrently(i, func() graphql.Marshaler { 15375 return innerFunc(ctx) 15376 15377 }) 15378 case "c": 15379 field := field 15380 15381 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15382 defer func() { 15383 if r := recover(); r != nil { 15384 ec.Error(ctx, ec.Recover(ctx, r)) 15385 } 15386 }() 15387 res = ec._Errors_c(ctx, field, obj) 15388 if res == graphql.Null { 15389 atomic.AddUint32(&invalids, 1) 15390 } 15391 return res 15392 } 15393 15394 out.Concurrently(i, func() graphql.Marshaler { 15395 return innerFunc(ctx) 15396 15397 }) 15398 case "d": 15399 field := field 15400 15401 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15402 defer func() { 15403 if r := recover(); r != nil { 15404 ec.Error(ctx, ec.Recover(ctx, r)) 15405 } 15406 }() 15407 res = ec._Errors_d(ctx, field, obj) 15408 if res == graphql.Null { 15409 atomic.AddUint32(&invalids, 1) 15410 } 15411 return res 15412 } 15413 15414 out.Concurrently(i, func() graphql.Marshaler { 15415 return innerFunc(ctx) 15416 15417 }) 15418 case "e": 15419 field := field 15420 15421 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15422 defer func() { 15423 if r := recover(); r != nil { 15424 ec.Error(ctx, ec.Recover(ctx, r)) 15425 } 15426 }() 15427 res = ec._Errors_e(ctx, field, obj) 15428 if res == graphql.Null { 15429 atomic.AddUint32(&invalids, 1) 15430 } 15431 return res 15432 } 15433 15434 out.Concurrently(i, func() graphql.Marshaler { 15435 return innerFunc(ctx) 15436 15437 }) 15438 default: 15439 panic("unknown field " + strconv.Quote(field.Name)) 15440 } 15441 } 15442 out.Dispatch() 15443 if invalids > 0 { 15444 return graphql.Null 15445 } 15446 return out 15447 } 15448 15449 var forcedResolverImplementors = []string{"ForcedResolver"} 15450 15451 func (ec *executionContext) _ForcedResolver(ctx context.Context, sel ast.SelectionSet, obj *ForcedResolver) graphql.Marshaler { 15452 fields := graphql.CollectFields(ec.OperationContext, sel, forcedResolverImplementors) 15453 out := graphql.NewFieldSet(fields) 15454 var invalids uint32 15455 for i, field := range fields { 15456 switch field.Name { 15457 case "__typename": 15458 out.Values[i] = graphql.MarshalString("ForcedResolver") 15459 case "field": 15460 field := field 15461 15462 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15463 defer func() { 15464 if r := recover(); r != nil { 15465 ec.Error(ctx, ec.Recover(ctx, r)) 15466 } 15467 }() 15468 res = ec._ForcedResolver_field(ctx, field, obj) 15469 return res 15470 } 15471 15472 out.Concurrently(i, func() graphql.Marshaler { 15473 return innerFunc(ctx) 15474 15475 }) 15476 default: 15477 panic("unknown field " + strconv.Quote(field.Name)) 15478 } 15479 } 15480 out.Dispatch() 15481 if invalids > 0 { 15482 return graphql.Null 15483 } 15484 return out 15485 } 15486 15487 var innerObjectImplementors = []string{"InnerObject"} 15488 15489 func (ec *executionContext) _InnerObject(ctx context.Context, sel ast.SelectionSet, obj *InnerObject) graphql.Marshaler { 15490 fields := graphql.CollectFields(ec.OperationContext, sel, innerObjectImplementors) 15491 out := graphql.NewFieldSet(fields) 15492 var invalids uint32 15493 for i, field := range fields { 15494 switch field.Name { 15495 case "__typename": 15496 out.Values[i] = graphql.MarshalString("InnerObject") 15497 case "id": 15498 15499 out.Values[i] = ec._InnerObject_id(ctx, field, obj) 15500 15501 if out.Values[i] == graphql.Null { 15502 invalids++ 15503 } 15504 default: 15505 panic("unknown field " + strconv.Quote(field.Name)) 15506 } 15507 } 15508 out.Dispatch() 15509 if invalids > 0 { 15510 return graphql.Null 15511 } 15512 return out 15513 } 15514 15515 var invalidIdentifierImplementors = []string{"InvalidIdentifier"} 15516 15517 func (ec *executionContext) _InvalidIdentifier(ctx context.Context, sel ast.SelectionSet, obj *invalid_packagename.InvalidIdentifier) graphql.Marshaler { 15518 fields := graphql.CollectFields(ec.OperationContext, sel, invalidIdentifierImplementors) 15519 out := graphql.NewFieldSet(fields) 15520 var invalids uint32 15521 for i, field := range fields { 15522 switch field.Name { 15523 case "__typename": 15524 out.Values[i] = graphql.MarshalString("InvalidIdentifier") 15525 case "id": 15526 15527 out.Values[i] = ec._InvalidIdentifier_id(ctx, field, obj) 15528 15529 if out.Values[i] == graphql.Null { 15530 invalids++ 15531 } 15532 default: 15533 panic("unknown field " + strconv.Quote(field.Name)) 15534 } 15535 } 15536 out.Dispatch() 15537 if invalids > 0 { 15538 return graphql.Null 15539 } 15540 return out 15541 } 15542 15543 var itImplementors = []string{"It"} 15544 15545 func (ec *executionContext) _It(ctx context.Context, sel ast.SelectionSet, obj *introspection1.It) graphql.Marshaler { 15546 fields := graphql.CollectFields(ec.OperationContext, sel, itImplementors) 15547 out := graphql.NewFieldSet(fields) 15548 var invalids uint32 15549 for i, field := range fields { 15550 switch field.Name { 15551 case "__typename": 15552 out.Values[i] = graphql.MarshalString("It") 15553 case "id": 15554 15555 out.Values[i] = ec._It_id(ctx, field, obj) 15556 15557 if out.Values[i] == graphql.Null { 15558 invalids++ 15559 } 15560 default: 15561 panic("unknown field " + strconv.Quote(field.Name)) 15562 } 15563 } 15564 out.Dispatch() 15565 if invalids > 0 { 15566 return graphql.Null 15567 } 15568 return out 15569 } 15570 15571 var loopAImplementors = []string{"LoopA"} 15572 15573 func (ec *executionContext) _LoopA(ctx context.Context, sel ast.SelectionSet, obj *LoopA) graphql.Marshaler { 15574 fields := graphql.CollectFields(ec.OperationContext, sel, loopAImplementors) 15575 out := graphql.NewFieldSet(fields) 15576 var invalids uint32 15577 for i, field := range fields { 15578 switch field.Name { 15579 case "__typename": 15580 out.Values[i] = graphql.MarshalString("LoopA") 15581 case "b": 15582 15583 out.Values[i] = ec._LoopA_b(ctx, field, obj) 15584 15585 if out.Values[i] == graphql.Null { 15586 invalids++ 15587 } 15588 default: 15589 panic("unknown field " + strconv.Quote(field.Name)) 15590 } 15591 } 15592 out.Dispatch() 15593 if invalids > 0 { 15594 return graphql.Null 15595 } 15596 return out 15597 } 15598 15599 var loopBImplementors = []string{"LoopB"} 15600 15601 func (ec *executionContext) _LoopB(ctx context.Context, sel ast.SelectionSet, obj *LoopB) graphql.Marshaler { 15602 fields := graphql.CollectFields(ec.OperationContext, sel, loopBImplementors) 15603 out := graphql.NewFieldSet(fields) 15604 var invalids uint32 15605 for i, field := range fields { 15606 switch field.Name { 15607 case "__typename": 15608 out.Values[i] = graphql.MarshalString("LoopB") 15609 case "a": 15610 15611 out.Values[i] = ec._LoopB_a(ctx, field, obj) 15612 15613 if out.Values[i] == graphql.Null { 15614 invalids++ 15615 } 15616 default: 15617 panic("unknown field " + strconv.Quote(field.Name)) 15618 } 15619 } 15620 out.Dispatch() 15621 if invalids > 0 { 15622 return graphql.Null 15623 } 15624 return out 15625 } 15626 15627 var mapImplementors = []string{"Map"} 15628 15629 func (ec *executionContext) _Map(ctx context.Context, sel ast.SelectionSet, obj *Map) graphql.Marshaler { 15630 fields := graphql.CollectFields(ec.OperationContext, sel, mapImplementors) 15631 out := graphql.NewFieldSet(fields) 15632 var invalids uint32 15633 for i, field := range fields { 15634 switch field.Name { 15635 case "__typename": 15636 out.Values[i] = graphql.MarshalString("Map") 15637 case "id": 15638 15639 out.Values[i] = ec._Map_id(ctx, field, obj) 15640 15641 if out.Values[i] == graphql.Null { 15642 invalids++ 15643 } 15644 default: 15645 panic("unknown field " + strconv.Quote(field.Name)) 15646 } 15647 } 15648 out.Dispatch() 15649 if invalids > 0 { 15650 return graphql.Null 15651 } 15652 return out 15653 } 15654 15655 var mapStringInterfaceTypeImplementors = []string{"MapStringInterfaceType"} 15656 15657 func (ec *executionContext) _MapStringInterfaceType(ctx context.Context, sel ast.SelectionSet, obj map[string]interface{}) graphql.Marshaler { 15658 fields := graphql.CollectFields(ec.OperationContext, sel, mapStringInterfaceTypeImplementors) 15659 out := graphql.NewFieldSet(fields) 15660 var invalids uint32 15661 for i, field := range fields { 15662 switch field.Name { 15663 case "__typename": 15664 out.Values[i] = graphql.MarshalString("MapStringInterfaceType") 15665 case "a": 15666 15667 out.Values[i] = ec._MapStringInterfaceType_a(ctx, field, obj) 15668 15669 case "b": 15670 15671 out.Values[i] = ec._MapStringInterfaceType_b(ctx, field, obj) 15672 15673 default: 15674 panic("unknown field " + strconv.Quote(field.Name)) 15675 } 15676 } 15677 out.Dispatch() 15678 if invalids > 0 { 15679 return graphql.Null 15680 } 15681 return out 15682 } 15683 15684 var modelMethodsImplementors = []string{"ModelMethods"} 15685 15686 func (ec *executionContext) _ModelMethods(ctx context.Context, sel ast.SelectionSet, obj *ModelMethods) graphql.Marshaler { 15687 fields := graphql.CollectFields(ec.OperationContext, sel, modelMethodsImplementors) 15688 out := graphql.NewFieldSet(fields) 15689 var invalids uint32 15690 for i, field := range fields { 15691 switch field.Name { 15692 case "__typename": 15693 out.Values[i] = graphql.MarshalString("ModelMethods") 15694 case "resolverField": 15695 field := field 15696 15697 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15698 defer func() { 15699 if r := recover(); r != nil { 15700 ec.Error(ctx, ec.Recover(ctx, r)) 15701 } 15702 }() 15703 res = ec._ModelMethods_resolverField(ctx, field, obj) 15704 if res == graphql.Null { 15705 atomic.AddUint32(&invalids, 1) 15706 } 15707 return res 15708 } 15709 15710 out.Concurrently(i, func() graphql.Marshaler { 15711 return innerFunc(ctx) 15712 15713 }) 15714 case "noContext": 15715 15716 out.Values[i] = ec._ModelMethods_noContext(ctx, field, obj) 15717 15718 if out.Values[i] == graphql.Null { 15719 atomic.AddUint32(&invalids, 1) 15720 } 15721 case "withContext": 15722 field := field 15723 15724 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15725 defer func() { 15726 if r := recover(); r != nil { 15727 ec.Error(ctx, ec.Recover(ctx, r)) 15728 } 15729 }() 15730 res = ec._ModelMethods_withContext(ctx, field, obj) 15731 if res == graphql.Null { 15732 atomic.AddUint32(&invalids, 1) 15733 } 15734 return res 15735 } 15736 15737 out.Concurrently(i, func() graphql.Marshaler { 15738 return innerFunc(ctx) 15739 15740 }) 15741 default: 15742 panic("unknown field " + strconv.Quote(field.Name)) 15743 } 15744 } 15745 out.Dispatch() 15746 if invalids > 0 { 15747 return graphql.Null 15748 } 15749 return out 15750 } 15751 15752 var mutationImplementors = []string{"Mutation"} 15753 15754 func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 15755 fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) 15756 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 15757 Object: "Mutation", 15758 }) 15759 15760 out := graphql.NewFieldSet(fields) 15761 var invalids uint32 15762 for i, field := range fields { 15763 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 15764 Object: field.Name, 15765 Field: field, 15766 }) 15767 15768 switch field.Name { 15769 case "__typename": 15770 out.Values[i] = graphql.MarshalString("Mutation") 15771 case "defaultInput": 15772 15773 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 15774 return ec._Mutation_defaultInput(ctx, field) 15775 }) 15776 15777 if out.Values[i] == graphql.Null { 15778 invalids++ 15779 } 15780 case "updateSomething": 15781 15782 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 15783 return ec._Mutation_updateSomething(ctx, field) 15784 }) 15785 15786 if out.Values[i] == graphql.Null { 15787 invalids++ 15788 } 15789 case "updatePtrToPtr": 15790 15791 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 15792 return ec._Mutation_updatePtrToPtr(ctx, field) 15793 }) 15794 15795 if out.Values[i] == graphql.Null { 15796 invalids++ 15797 } 15798 default: 15799 panic("unknown field " + strconv.Quote(field.Name)) 15800 } 15801 } 15802 out.Dispatch() 15803 if invalids > 0 { 15804 return graphql.Null 15805 } 15806 return out 15807 } 15808 15809 var objectDirectivesImplementors = []string{"ObjectDirectives"} 15810 15811 func (ec *executionContext) _ObjectDirectives(ctx context.Context, sel ast.SelectionSet, obj *ObjectDirectives) graphql.Marshaler { 15812 fields := graphql.CollectFields(ec.OperationContext, sel, objectDirectivesImplementors) 15813 out := graphql.NewFieldSet(fields) 15814 var invalids uint32 15815 for i, field := range fields { 15816 switch field.Name { 15817 case "__typename": 15818 out.Values[i] = graphql.MarshalString("ObjectDirectives") 15819 case "text": 15820 15821 out.Values[i] = ec._ObjectDirectives_text(ctx, field, obj) 15822 15823 if out.Values[i] == graphql.Null { 15824 invalids++ 15825 } 15826 case "nullableText": 15827 15828 out.Values[i] = ec._ObjectDirectives_nullableText(ctx, field, obj) 15829 15830 case "order": 15831 15832 out.Values[i] = ec._ObjectDirectives_order(ctx, field, obj) 15833 15834 if out.Values[i] == graphql.Null { 15835 invalids++ 15836 } 15837 default: 15838 panic("unknown field " + strconv.Quote(field.Name)) 15839 } 15840 } 15841 out.Dispatch() 15842 if invalids > 0 { 15843 return graphql.Null 15844 } 15845 return out 15846 } 15847 15848 var objectDirectivesWithCustomGoModelImplementors = []string{"ObjectDirectivesWithCustomGoModel"} 15849 15850 func (ec *executionContext) _ObjectDirectivesWithCustomGoModel(ctx context.Context, sel ast.SelectionSet, obj *ObjectDirectivesWithCustomGoModel) graphql.Marshaler { 15851 fields := graphql.CollectFields(ec.OperationContext, sel, objectDirectivesWithCustomGoModelImplementors) 15852 out := graphql.NewFieldSet(fields) 15853 var invalids uint32 15854 for i, field := range fields { 15855 switch field.Name { 15856 case "__typename": 15857 out.Values[i] = graphql.MarshalString("ObjectDirectivesWithCustomGoModel") 15858 case "nullableText": 15859 15860 out.Values[i] = ec._ObjectDirectivesWithCustomGoModel_nullableText(ctx, field, obj) 15861 15862 default: 15863 panic("unknown field " + strconv.Quote(field.Name)) 15864 } 15865 } 15866 out.Dispatch() 15867 if invalids > 0 { 15868 return graphql.Null 15869 } 15870 return out 15871 } 15872 15873 var outerObjectImplementors = []string{"OuterObject"} 15874 15875 func (ec *executionContext) _OuterObject(ctx context.Context, sel ast.SelectionSet, obj *OuterObject) graphql.Marshaler { 15876 fields := graphql.CollectFields(ec.OperationContext, sel, outerObjectImplementors) 15877 out := graphql.NewFieldSet(fields) 15878 var invalids uint32 15879 for i, field := range fields { 15880 switch field.Name { 15881 case "__typename": 15882 out.Values[i] = graphql.MarshalString("OuterObject") 15883 case "inner": 15884 15885 out.Values[i] = ec._OuterObject_inner(ctx, field, obj) 15886 15887 if out.Values[i] == graphql.Null { 15888 invalids++ 15889 } 15890 default: 15891 panic("unknown field " + strconv.Quote(field.Name)) 15892 } 15893 } 15894 out.Dispatch() 15895 if invalids > 0 { 15896 return graphql.Null 15897 } 15898 return out 15899 } 15900 15901 var overlappingFieldsImplementors = []string{"OverlappingFields"} 15902 15903 func (ec *executionContext) _OverlappingFields(ctx context.Context, sel ast.SelectionSet, obj *OverlappingFields) graphql.Marshaler { 15904 fields := graphql.CollectFields(ec.OperationContext, sel, overlappingFieldsImplementors) 15905 out := graphql.NewFieldSet(fields) 15906 var invalids uint32 15907 for i, field := range fields { 15908 switch field.Name { 15909 case "__typename": 15910 out.Values[i] = graphql.MarshalString("OverlappingFields") 15911 case "oneFoo": 15912 15913 out.Values[i] = ec._OverlappingFields_oneFoo(ctx, field, obj) 15914 15915 if out.Values[i] == graphql.Null { 15916 atomic.AddUint32(&invalids, 1) 15917 } 15918 case "twoFoo": 15919 15920 out.Values[i] = ec._OverlappingFields_twoFoo(ctx, field, obj) 15921 15922 if out.Values[i] == graphql.Null { 15923 atomic.AddUint32(&invalids, 1) 15924 } 15925 case "oldFoo": 15926 field := field 15927 15928 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15929 defer func() { 15930 if r := recover(); r != nil { 15931 ec.Error(ctx, ec.Recover(ctx, r)) 15932 } 15933 }() 15934 res = ec._OverlappingFields_oldFoo(ctx, field, obj) 15935 if res == graphql.Null { 15936 atomic.AddUint32(&invalids, 1) 15937 } 15938 return res 15939 } 15940 15941 out.Concurrently(i, func() graphql.Marshaler { 15942 return innerFunc(ctx) 15943 15944 }) 15945 case "newFoo": 15946 15947 out.Values[i] = ec._OverlappingFields_newFoo(ctx, field, obj) 15948 15949 if out.Values[i] == graphql.Null { 15950 atomic.AddUint32(&invalids, 1) 15951 } 15952 case "new_foo": 15953 15954 out.Values[i] = ec._OverlappingFields_new_foo(ctx, field, obj) 15955 15956 if out.Values[i] == graphql.Null { 15957 atomic.AddUint32(&invalids, 1) 15958 } 15959 default: 15960 panic("unknown field " + strconv.Quote(field.Name)) 15961 } 15962 } 15963 out.Dispatch() 15964 if invalids > 0 { 15965 return graphql.Null 15966 } 15967 return out 15968 } 15969 15970 var panicsImplementors = []string{"Panics"} 15971 15972 func (ec *executionContext) _Panics(ctx context.Context, sel ast.SelectionSet, obj *Panics) graphql.Marshaler { 15973 fields := graphql.CollectFields(ec.OperationContext, sel, panicsImplementors) 15974 out := graphql.NewFieldSet(fields) 15975 var invalids uint32 15976 for i, field := range fields { 15977 switch field.Name { 15978 case "__typename": 15979 out.Values[i] = graphql.MarshalString("Panics") 15980 case "fieldScalarMarshal": 15981 field := field 15982 15983 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 15984 defer func() { 15985 if r := recover(); r != nil { 15986 ec.Error(ctx, ec.Recover(ctx, r)) 15987 } 15988 }() 15989 res = ec._Panics_fieldScalarMarshal(ctx, field, obj) 15990 if res == graphql.Null { 15991 atomic.AddUint32(&invalids, 1) 15992 } 15993 return res 15994 } 15995 15996 out.Concurrently(i, func() graphql.Marshaler { 15997 return innerFunc(ctx) 15998 15999 }) 16000 case "fieldFuncMarshal": 16001 field := field 16002 16003 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16004 defer func() { 16005 if r := recover(); r != nil { 16006 ec.Error(ctx, ec.Recover(ctx, r)) 16007 } 16008 }() 16009 res = ec._Panics_fieldFuncMarshal(ctx, field, obj) 16010 if res == graphql.Null { 16011 atomic.AddUint32(&invalids, 1) 16012 } 16013 return res 16014 } 16015 16016 out.Concurrently(i, func() graphql.Marshaler { 16017 return innerFunc(ctx) 16018 16019 }) 16020 case "argUnmarshal": 16021 field := field 16022 16023 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16024 defer func() { 16025 if r := recover(); r != nil { 16026 ec.Error(ctx, ec.Recover(ctx, r)) 16027 } 16028 }() 16029 res = ec._Panics_argUnmarshal(ctx, field, obj) 16030 if res == graphql.Null { 16031 atomic.AddUint32(&invalids, 1) 16032 } 16033 return res 16034 } 16035 16036 out.Concurrently(i, func() graphql.Marshaler { 16037 return innerFunc(ctx) 16038 16039 }) 16040 default: 16041 panic("unknown field " + strconv.Quote(field.Name)) 16042 } 16043 } 16044 out.Dispatch() 16045 if invalids > 0 { 16046 return graphql.Null 16047 } 16048 return out 16049 } 16050 16051 var petImplementors = []string{"Pet"} 16052 16053 func (ec *executionContext) _Pet(ctx context.Context, sel ast.SelectionSet, obj *Pet) graphql.Marshaler { 16054 fields := graphql.CollectFields(ec.OperationContext, sel, petImplementors) 16055 out := graphql.NewFieldSet(fields) 16056 var invalids uint32 16057 for i, field := range fields { 16058 switch field.Name { 16059 case "__typename": 16060 out.Values[i] = graphql.MarshalString("Pet") 16061 case "id": 16062 16063 out.Values[i] = ec._Pet_id(ctx, field, obj) 16064 16065 if out.Values[i] == graphql.Null { 16066 atomic.AddUint32(&invalids, 1) 16067 } 16068 case "friends": 16069 field := field 16070 16071 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16072 defer func() { 16073 if r := recover(); r != nil { 16074 ec.Error(ctx, ec.Recover(ctx, r)) 16075 } 16076 }() 16077 res = ec._Pet_friends(ctx, field, obj) 16078 return res 16079 } 16080 16081 out.Concurrently(i, func() graphql.Marshaler { 16082 return innerFunc(ctx) 16083 16084 }) 16085 default: 16086 panic("unknown field " + strconv.Quote(field.Name)) 16087 } 16088 } 16089 out.Dispatch() 16090 if invalids > 0 { 16091 return graphql.Null 16092 } 16093 return out 16094 } 16095 16096 var primitiveImplementors = []string{"Primitive"} 16097 16098 func (ec *executionContext) _Primitive(ctx context.Context, sel ast.SelectionSet, obj *Primitive) graphql.Marshaler { 16099 fields := graphql.CollectFields(ec.OperationContext, sel, primitiveImplementors) 16100 out := graphql.NewFieldSet(fields) 16101 var invalids uint32 16102 for i, field := range fields { 16103 switch field.Name { 16104 case "__typename": 16105 out.Values[i] = graphql.MarshalString("Primitive") 16106 case "value": 16107 field := field 16108 16109 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16110 defer func() { 16111 if r := recover(); r != nil { 16112 ec.Error(ctx, ec.Recover(ctx, r)) 16113 } 16114 }() 16115 res = ec._Primitive_value(ctx, field, obj) 16116 if res == graphql.Null { 16117 atomic.AddUint32(&invalids, 1) 16118 } 16119 return res 16120 } 16121 16122 out.Concurrently(i, func() graphql.Marshaler { 16123 return innerFunc(ctx) 16124 16125 }) 16126 case "squared": 16127 16128 out.Values[i] = ec._Primitive_squared(ctx, field, obj) 16129 16130 if out.Values[i] == graphql.Null { 16131 atomic.AddUint32(&invalids, 1) 16132 } 16133 default: 16134 panic("unknown field " + strconv.Quote(field.Name)) 16135 } 16136 } 16137 out.Dispatch() 16138 if invalids > 0 { 16139 return graphql.Null 16140 } 16141 return out 16142 } 16143 16144 var primitiveStringImplementors = []string{"PrimitiveString"} 16145 16146 func (ec *executionContext) _PrimitiveString(ctx context.Context, sel ast.SelectionSet, obj *PrimitiveString) graphql.Marshaler { 16147 fields := graphql.CollectFields(ec.OperationContext, sel, primitiveStringImplementors) 16148 out := graphql.NewFieldSet(fields) 16149 var invalids uint32 16150 for i, field := range fields { 16151 switch field.Name { 16152 case "__typename": 16153 out.Values[i] = graphql.MarshalString("PrimitiveString") 16154 case "value": 16155 field := field 16156 16157 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16158 defer func() { 16159 if r := recover(); r != nil { 16160 ec.Error(ctx, ec.Recover(ctx, r)) 16161 } 16162 }() 16163 res = ec._PrimitiveString_value(ctx, field, obj) 16164 if res == graphql.Null { 16165 atomic.AddUint32(&invalids, 1) 16166 } 16167 return res 16168 } 16169 16170 out.Concurrently(i, func() graphql.Marshaler { 16171 return innerFunc(ctx) 16172 16173 }) 16174 case "doubled": 16175 16176 out.Values[i] = ec._PrimitiveString_doubled(ctx, field, obj) 16177 16178 if out.Values[i] == graphql.Null { 16179 atomic.AddUint32(&invalids, 1) 16180 } 16181 case "len": 16182 field := field 16183 16184 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16185 defer func() { 16186 if r := recover(); r != nil { 16187 ec.Error(ctx, ec.Recover(ctx, r)) 16188 } 16189 }() 16190 res = ec._PrimitiveString_len(ctx, field, obj) 16191 if res == graphql.Null { 16192 atomic.AddUint32(&invalids, 1) 16193 } 16194 return res 16195 } 16196 16197 out.Concurrently(i, func() graphql.Marshaler { 16198 return innerFunc(ctx) 16199 16200 }) 16201 default: 16202 panic("unknown field " + strconv.Quote(field.Name)) 16203 } 16204 } 16205 out.Dispatch() 16206 if invalids > 0 { 16207 return graphql.Null 16208 } 16209 return out 16210 } 16211 16212 var ptrToPtrInnerImplementors = []string{"PtrToPtrInner"} 16213 16214 func (ec *executionContext) _PtrToPtrInner(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrInner) graphql.Marshaler { 16215 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrInnerImplementors) 16216 out := graphql.NewFieldSet(fields) 16217 var invalids uint32 16218 for i, field := range fields { 16219 switch field.Name { 16220 case "__typename": 16221 out.Values[i] = graphql.MarshalString("PtrToPtrInner") 16222 case "key": 16223 16224 out.Values[i] = ec._PtrToPtrInner_key(ctx, field, obj) 16225 16226 if out.Values[i] == graphql.Null { 16227 invalids++ 16228 } 16229 case "value": 16230 16231 out.Values[i] = ec._PtrToPtrInner_value(ctx, field, obj) 16232 16233 if out.Values[i] == graphql.Null { 16234 invalids++ 16235 } 16236 default: 16237 panic("unknown field " + strconv.Quote(field.Name)) 16238 } 16239 } 16240 out.Dispatch() 16241 if invalids > 0 { 16242 return graphql.Null 16243 } 16244 return out 16245 } 16246 16247 var ptrToPtrOuterImplementors = []string{"PtrToPtrOuter"} 16248 16249 func (ec *executionContext) _PtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrOuter) graphql.Marshaler { 16250 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrOuterImplementors) 16251 out := graphql.NewFieldSet(fields) 16252 var invalids uint32 16253 for i, field := range fields { 16254 switch field.Name { 16255 case "__typename": 16256 out.Values[i] = graphql.MarshalString("PtrToPtrOuter") 16257 case "name": 16258 16259 out.Values[i] = ec._PtrToPtrOuter_name(ctx, field, obj) 16260 16261 if out.Values[i] == graphql.Null { 16262 invalids++ 16263 } 16264 case "inner": 16265 16266 out.Values[i] = ec._PtrToPtrOuter_inner(ctx, field, obj) 16267 16268 case "stupidInner": 16269 16270 out.Values[i] = ec._PtrToPtrOuter_stupidInner(ctx, field, obj) 16271 16272 default: 16273 panic("unknown field " + strconv.Quote(field.Name)) 16274 } 16275 } 16276 out.Dispatch() 16277 if invalids > 0 { 16278 return graphql.Null 16279 } 16280 return out 16281 } 16282 16283 var ptrToSliceContainerImplementors = []string{"PtrToSliceContainer"} 16284 16285 func (ec *executionContext) _PtrToSliceContainer(ctx context.Context, sel ast.SelectionSet, obj *PtrToSliceContainer) graphql.Marshaler { 16286 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToSliceContainerImplementors) 16287 out := graphql.NewFieldSet(fields) 16288 var invalids uint32 16289 for i, field := range fields { 16290 switch field.Name { 16291 case "__typename": 16292 out.Values[i] = graphql.MarshalString("PtrToSliceContainer") 16293 case "ptrToSlice": 16294 16295 out.Values[i] = ec._PtrToSliceContainer_ptrToSlice(ctx, field, obj) 16296 16297 default: 16298 panic("unknown field " + strconv.Quote(field.Name)) 16299 } 16300 } 16301 out.Dispatch() 16302 if invalids > 0 { 16303 return graphql.Null 16304 } 16305 return out 16306 } 16307 16308 var queryImplementors = []string{"Query"} 16309 16310 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 16311 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) 16312 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 16313 Object: "Query", 16314 }) 16315 16316 out := graphql.NewFieldSet(fields) 16317 var invalids uint32 16318 for i, field := range fields { 16319 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 16320 Object: field.Name, 16321 Field: field, 16322 }) 16323 16324 switch field.Name { 16325 case "__typename": 16326 out.Values[i] = graphql.MarshalString("Query") 16327 case "invalidIdentifier": 16328 field := field 16329 16330 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16331 defer func() { 16332 if r := recover(); r != nil { 16333 ec.Error(ctx, ec.Recover(ctx, r)) 16334 } 16335 }() 16336 res = ec._Query_invalidIdentifier(ctx, field) 16337 return res 16338 } 16339 16340 rrm := func(ctx context.Context) graphql.Marshaler { 16341 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16342 } 16343 16344 out.Concurrently(i, func() graphql.Marshaler { 16345 return rrm(innerCtx) 16346 }) 16347 case "collision": 16348 field := field 16349 16350 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16351 defer func() { 16352 if r := recover(); r != nil { 16353 ec.Error(ctx, ec.Recover(ctx, r)) 16354 } 16355 }() 16356 res = ec._Query_collision(ctx, field) 16357 return res 16358 } 16359 16360 rrm := func(ctx context.Context) graphql.Marshaler { 16361 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16362 } 16363 16364 out.Concurrently(i, func() graphql.Marshaler { 16365 return rrm(innerCtx) 16366 }) 16367 case "mapInput": 16368 field := field 16369 16370 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16371 defer func() { 16372 if r := recover(); r != nil { 16373 ec.Error(ctx, ec.Recover(ctx, r)) 16374 } 16375 }() 16376 res = ec._Query_mapInput(ctx, field) 16377 return res 16378 } 16379 16380 rrm := func(ctx context.Context) graphql.Marshaler { 16381 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16382 } 16383 16384 out.Concurrently(i, func() graphql.Marshaler { 16385 return rrm(innerCtx) 16386 }) 16387 case "recursive": 16388 field := field 16389 16390 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16391 defer func() { 16392 if r := recover(); r != nil { 16393 ec.Error(ctx, ec.Recover(ctx, r)) 16394 } 16395 }() 16396 res = ec._Query_recursive(ctx, field) 16397 return res 16398 } 16399 16400 rrm := func(ctx context.Context) graphql.Marshaler { 16401 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16402 } 16403 16404 out.Concurrently(i, func() graphql.Marshaler { 16405 return rrm(innerCtx) 16406 }) 16407 case "nestedInputs": 16408 field := field 16409 16410 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16411 defer func() { 16412 if r := recover(); r != nil { 16413 ec.Error(ctx, ec.Recover(ctx, r)) 16414 } 16415 }() 16416 res = ec._Query_nestedInputs(ctx, field) 16417 return res 16418 } 16419 16420 rrm := func(ctx context.Context) graphql.Marshaler { 16421 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16422 } 16423 16424 out.Concurrently(i, func() graphql.Marshaler { 16425 return rrm(innerCtx) 16426 }) 16427 case "nestedOutputs": 16428 field := field 16429 16430 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16431 defer func() { 16432 if r := recover(); r != nil { 16433 ec.Error(ctx, ec.Recover(ctx, r)) 16434 } 16435 }() 16436 res = ec._Query_nestedOutputs(ctx, field) 16437 return res 16438 } 16439 16440 rrm := func(ctx context.Context) graphql.Marshaler { 16441 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16442 } 16443 16444 out.Concurrently(i, func() graphql.Marshaler { 16445 return rrm(innerCtx) 16446 }) 16447 case "modelMethods": 16448 field := field 16449 16450 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16451 defer func() { 16452 if r := recover(); r != nil { 16453 ec.Error(ctx, ec.Recover(ctx, r)) 16454 } 16455 }() 16456 res = ec._Query_modelMethods(ctx, field) 16457 return res 16458 } 16459 16460 rrm := func(ctx context.Context) graphql.Marshaler { 16461 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16462 } 16463 16464 out.Concurrently(i, func() graphql.Marshaler { 16465 return rrm(innerCtx) 16466 }) 16467 case "user": 16468 field := field 16469 16470 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16471 defer func() { 16472 if r := recover(); r != nil { 16473 ec.Error(ctx, ec.Recover(ctx, r)) 16474 } 16475 }() 16476 res = ec._Query_user(ctx, field) 16477 if res == graphql.Null { 16478 atomic.AddUint32(&invalids, 1) 16479 } 16480 return res 16481 } 16482 16483 rrm := func(ctx context.Context) graphql.Marshaler { 16484 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16485 } 16486 16487 out.Concurrently(i, func() graphql.Marshaler { 16488 return rrm(innerCtx) 16489 }) 16490 case "nullableArg": 16491 field := field 16492 16493 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16494 defer func() { 16495 if r := recover(); r != nil { 16496 ec.Error(ctx, ec.Recover(ctx, r)) 16497 } 16498 }() 16499 res = ec._Query_nullableArg(ctx, field) 16500 return res 16501 } 16502 16503 rrm := func(ctx context.Context) graphql.Marshaler { 16504 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16505 } 16506 16507 out.Concurrently(i, func() graphql.Marshaler { 16508 return rrm(innerCtx) 16509 }) 16510 case "inputSlice": 16511 field := field 16512 16513 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16514 defer func() { 16515 if r := recover(); r != nil { 16516 ec.Error(ctx, ec.Recover(ctx, r)) 16517 } 16518 }() 16519 res = ec._Query_inputSlice(ctx, field) 16520 if res == graphql.Null { 16521 atomic.AddUint32(&invalids, 1) 16522 } 16523 return res 16524 } 16525 16526 rrm := func(ctx context.Context) graphql.Marshaler { 16527 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16528 } 16529 16530 out.Concurrently(i, func() graphql.Marshaler { 16531 return rrm(innerCtx) 16532 }) 16533 case "inputNullableSlice": 16534 field := field 16535 16536 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16537 defer func() { 16538 if r := recover(); r != nil { 16539 ec.Error(ctx, ec.Recover(ctx, r)) 16540 } 16541 }() 16542 res = ec._Query_inputNullableSlice(ctx, field) 16543 if res == graphql.Null { 16544 atomic.AddUint32(&invalids, 1) 16545 } 16546 return res 16547 } 16548 16549 rrm := func(ctx context.Context) graphql.Marshaler { 16550 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16551 } 16552 16553 out.Concurrently(i, func() graphql.Marshaler { 16554 return rrm(innerCtx) 16555 }) 16556 case "shapeUnion": 16557 field := field 16558 16559 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16560 defer func() { 16561 if r := recover(); r != nil { 16562 ec.Error(ctx, ec.Recover(ctx, r)) 16563 } 16564 }() 16565 res = ec._Query_shapeUnion(ctx, field) 16566 if res == graphql.Null { 16567 atomic.AddUint32(&invalids, 1) 16568 } 16569 return res 16570 } 16571 16572 rrm := func(ctx context.Context) graphql.Marshaler { 16573 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16574 } 16575 16576 out.Concurrently(i, func() graphql.Marshaler { 16577 return rrm(innerCtx) 16578 }) 16579 case "autobind": 16580 field := field 16581 16582 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16583 defer func() { 16584 if r := recover(); r != nil { 16585 ec.Error(ctx, ec.Recover(ctx, r)) 16586 } 16587 }() 16588 res = ec._Query_autobind(ctx, field) 16589 return res 16590 } 16591 16592 rrm := func(ctx context.Context) graphql.Marshaler { 16593 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16594 } 16595 16596 out.Concurrently(i, func() graphql.Marshaler { 16597 return rrm(innerCtx) 16598 }) 16599 case "deprecatedField": 16600 field := field 16601 16602 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16603 defer func() { 16604 if r := recover(); r != nil { 16605 ec.Error(ctx, ec.Recover(ctx, r)) 16606 } 16607 }() 16608 res = ec._Query_deprecatedField(ctx, field) 16609 if res == graphql.Null { 16610 atomic.AddUint32(&invalids, 1) 16611 } 16612 return res 16613 } 16614 16615 rrm := func(ctx context.Context) graphql.Marshaler { 16616 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16617 } 16618 16619 out.Concurrently(i, func() graphql.Marshaler { 16620 return rrm(innerCtx) 16621 }) 16622 case "overlapping": 16623 field := field 16624 16625 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16626 defer func() { 16627 if r := recover(); r != nil { 16628 ec.Error(ctx, ec.Recover(ctx, r)) 16629 } 16630 }() 16631 res = ec._Query_overlapping(ctx, field) 16632 return res 16633 } 16634 16635 rrm := func(ctx context.Context) graphql.Marshaler { 16636 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16637 } 16638 16639 out.Concurrently(i, func() graphql.Marshaler { 16640 return rrm(innerCtx) 16641 }) 16642 case "defaultParameters": 16643 field := field 16644 16645 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16646 defer func() { 16647 if r := recover(); r != nil { 16648 ec.Error(ctx, ec.Recover(ctx, r)) 16649 } 16650 }() 16651 res = ec._Query_defaultParameters(ctx, field) 16652 if res == graphql.Null { 16653 atomic.AddUint32(&invalids, 1) 16654 } 16655 return res 16656 } 16657 16658 rrm := func(ctx context.Context) graphql.Marshaler { 16659 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16660 } 16661 16662 out.Concurrently(i, func() graphql.Marshaler { 16663 return rrm(innerCtx) 16664 }) 16665 case "directiveArg": 16666 field := field 16667 16668 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16669 defer func() { 16670 if r := recover(); r != nil { 16671 ec.Error(ctx, ec.Recover(ctx, r)) 16672 } 16673 }() 16674 res = ec._Query_directiveArg(ctx, field) 16675 return res 16676 } 16677 16678 rrm := func(ctx context.Context) graphql.Marshaler { 16679 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16680 } 16681 16682 out.Concurrently(i, func() graphql.Marshaler { 16683 return rrm(innerCtx) 16684 }) 16685 case "directiveNullableArg": 16686 field := field 16687 16688 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16689 defer func() { 16690 if r := recover(); r != nil { 16691 ec.Error(ctx, ec.Recover(ctx, r)) 16692 } 16693 }() 16694 res = ec._Query_directiveNullableArg(ctx, field) 16695 return res 16696 } 16697 16698 rrm := func(ctx context.Context) graphql.Marshaler { 16699 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16700 } 16701 16702 out.Concurrently(i, func() graphql.Marshaler { 16703 return rrm(innerCtx) 16704 }) 16705 case "directiveInputNullable": 16706 field := field 16707 16708 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16709 defer func() { 16710 if r := recover(); r != nil { 16711 ec.Error(ctx, ec.Recover(ctx, r)) 16712 } 16713 }() 16714 res = ec._Query_directiveInputNullable(ctx, field) 16715 return res 16716 } 16717 16718 rrm := func(ctx context.Context) graphql.Marshaler { 16719 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16720 } 16721 16722 out.Concurrently(i, func() graphql.Marshaler { 16723 return rrm(innerCtx) 16724 }) 16725 case "directiveInput": 16726 field := field 16727 16728 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16729 defer func() { 16730 if r := recover(); r != nil { 16731 ec.Error(ctx, ec.Recover(ctx, r)) 16732 } 16733 }() 16734 res = ec._Query_directiveInput(ctx, field) 16735 return res 16736 } 16737 16738 rrm := func(ctx context.Context) graphql.Marshaler { 16739 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16740 } 16741 16742 out.Concurrently(i, func() graphql.Marshaler { 16743 return rrm(innerCtx) 16744 }) 16745 case "directiveInputType": 16746 field := field 16747 16748 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16749 defer func() { 16750 if r := recover(); r != nil { 16751 ec.Error(ctx, ec.Recover(ctx, r)) 16752 } 16753 }() 16754 res = ec._Query_directiveInputType(ctx, field) 16755 return res 16756 } 16757 16758 rrm := func(ctx context.Context) graphql.Marshaler { 16759 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16760 } 16761 16762 out.Concurrently(i, func() graphql.Marshaler { 16763 return rrm(innerCtx) 16764 }) 16765 case "directiveObject": 16766 field := field 16767 16768 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16769 defer func() { 16770 if r := recover(); r != nil { 16771 ec.Error(ctx, ec.Recover(ctx, r)) 16772 } 16773 }() 16774 res = ec._Query_directiveObject(ctx, field) 16775 return res 16776 } 16777 16778 rrm := func(ctx context.Context) graphql.Marshaler { 16779 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16780 } 16781 16782 out.Concurrently(i, func() graphql.Marshaler { 16783 return rrm(innerCtx) 16784 }) 16785 case "directiveObjectWithCustomGoModel": 16786 field := field 16787 16788 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16789 defer func() { 16790 if r := recover(); r != nil { 16791 ec.Error(ctx, ec.Recover(ctx, r)) 16792 } 16793 }() 16794 res = ec._Query_directiveObjectWithCustomGoModel(ctx, field) 16795 return res 16796 } 16797 16798 rrm := func(ctx context.Context) graphql.Marshaler { 16799 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16800 } 16801 16802 out.Concurrently(i, func() graphql.Marshaler { 16803 return rrm(innerCtx) 16804 }) 16805 case "directiveFieldDef": 16806 field := field 16807 16808 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16809 defer func() { 16810 if r := recover(); r != nil { 16811 ec.Error(ctx, ec.Recover(ctx, r)) 16812 } 16813 }() 16814 res = ec._Query_directiveFieldDef(ctx, field) 16815 if res == graphql.Null { 16816 atomic.AddUint32(&invalids, 1) 16817 } 16818 return res 16819 } 16820 16821 rrm := func(ctx context.Context) graphql.Marshaler { 16822 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16823 } 16824 16825 out.Concurrently(i, func() graphql.Marshaler { 16826 return rrm(innerCtx) 16827 }) 16828 case "directiveField": 16829 field := field 16830 16831 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16832 defer func() { 16833 if r := recover(); r != nil { 16834 ec.Error(ctx, ec.Recover(ctx, r)) 16835 } 16836 }() 16837 res = ec._Query_directiveField(ctx, field) 16838 return res 16839 } 16840 16841 rrm := func(ctx context.Context) graphql.Marshaler { 16842 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16843 } 16844 16845 out.Concurrently(i, func() graphql.Marshaler { 16846 return rrm(innerCtx) 16847 }) 16848 case "directiveDouble": 16849 field := field 16850 16851 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16852 defer func() { 16853 if r := recover(); r != nil { 16854 ec.Error(ctx, ec.Recover(ctx, r)) 16855 } 16856 }() 16857 res = ec._Query_directiveDouble(ctx, field) 16858 return res 16859 } 16860 16861 rrm := func(ctx context.Context) graphql.Marshaler { 16862 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16863 } 16864 16865 out.Concurrently(i, func() graphql.Marshaler { 16866 return rrm(innerCtx) 16867 }) 16868 case "directiveUnimplemented": 16869 field := field 16870 16871 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16872 defer func() { 16873 if r := recover(); r != nil { 16874 ec.Error(ctx, ec.Recover(ctx, r)) 16875 } 16876 }() 16877 res = ec._Query_directiveUnimplemented(ctx, field) 16878 return res 16879 } 16880 16881 rrm := func(ctx context.Context) graphql.Marshaler { 16882 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16883 } 16884 16885 out.Concurrently(i, func() graphql.Marshaler { 16886 return rrm(innerCtx) 16887 }) 16888 case "embeddedCase1": 16889 field := field 16890 16891 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16892 defer func() { 16893 if r := recover(); r != nil { 16894 ec.Error(ctx, ec.Recover(ctx, r)) 16895 } 16896 }() 16897 res = ec._Query_embeddedCase1(ctx, field) 16898 return res 16899 } 16900 16901 rrm := func(ctx context.Context) graphql.Marshaler { 16902 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16903 } 16904 16905 out.Concurrently(i, func() graphql.Marshaler { 16906 return rrm(innerCtx) 16907 }) 16908 case "embeddedCase2": 16909 field := field 16910 16911 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16912 defer func() { 16913 if r := recover(); r != nil { 16914 ec.Error(ctx, ec.Recover(ctx, r)) 16915 } 16916 }() 16917 res = ec._Query_embeddedCase2(ctx, field) 16918 return res 16919 } 16920 16921 rrm := func(ctx context.Context) graphql.Marshaler { 16922 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16923 } 16924 16925 out.Concurrently(i, func() graphql.Marshaler { 16926 return rrm(innerCtx) 16927 }) 16928 case "embeddedCase3": 16929 field := field 16930 16931 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16932 defer func() { 16933 if r := recover(); r != nil { 16934 ec.Error(ctx, ec.Recover(ctx, r)) 16935 } 16936 }() 16937 res = ec._Query_embeddedCase3(ctx, field) 16938 return res 16939 } 16940 16941 rrm := func(ctx context.Context) graphql.Marshaler { 16942 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16943 } 16944 16945 out.Concurrently(i, func() graphql.Marshaler { 16946 return rrm(innerCtx) 16947 }) 16948 case "enumInInput": 16949 field := field 16950 16951 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16952 defer func() { 16953 if r := recover(); r != nil { 16954 ec.Error(ctx, ec.Recover(ctx, r)) 16955 } 16956 }() 16957 res = ec._Query_enumInInput(ctx, field) 16958 if res == graphql.Null { 16959 atomic.AddUint32(&invalids, 1) 16960 } 16961 return res 16962 } 16963 16964 rrm := func(ctx context.Context) graphql.Marshaler { 16965 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16966 } 16967 16968 out.Concurrently(i, func() graphql.Marshaler { 16969 return rrm(innerCtx) 16970 }) 16971 case "shapes": 16972 field := field 16973 16974 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16975 defer func() { 16976 if r := recover(); r != nil { 16977 ec.Error(ctx, ec.Recover(ctx, r)) 16978 } 16979 }() 16980 res = ec._Query_shapes(ctx, field) 16981 return res 16982 } 16983 16984 rrm := func(ctx context.Context) graphql.Marshaler { 16985 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 16986 } 16987 16988 out.Concurrently(i, func() graphql.Marshaler { 16989 return rrm(innerCtx) 16990 }) 16991 case "noShape": 16992 field := field 16993 16994 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 16995 defer func() { 16996 if r := recover(); r != nil { 16997 ec.Error(ctx, ec.Recover(ctx, r)) 16998 } 16999 }() 17000 res = ec._Query_noShape(ctx, field) 17001 return res 17002 } 17003 17004 rrm := func(ctx context.Context) graphql.Marshaler { 17005 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17006 } 17007 17008 out.Concurrently(i, func() graphql.Marshaler { 17009 return rrm(innerCtx) 17010 }) 17011 case "node": 17012 field := field 17013 17014 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17015 defer func() { 17016 if r := recover(); r != nil { 17017 ec.Error(ctx, ec.Recover(ctx, r)) 17018 } 17019 }() 17020 res = ec._Query_node(ctx, field) 17021 if res == graphql.Null { 17022 atomic.AddUint32(&invalids, 1) 17023 } 17024 return res 17025 } 17026 17027 rrm := func(ctx context.Context) graphql.Marshaler { 17028 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17029 } 17030 17031 out.Concurrently(i, func() graphql.Marshaler { 17032 return rrm(innerCtx) 17033 }) 17034 case "noShapeTypedNil": 17035 field := field 17036 17037 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17038 defer func() { 17039 if r := recover(); r != nil { 17040 ec.Error(ctx, ec.Recover(ctx, r)) 17041 } 17042 }() 17043 res = ec._Query_noShapeTypedNil(ctx, field) 17044 return res 17045 } 17046 17047 rrm := func(ctx context.Context) graphql.Marshaler { 17048 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17049 } 17050 17051 out.Concurrently(i, func() graphql.Marshaler { 17052 return rrm(innerCtx) 17053 }) 17054 case "animal": 17055 field := field 17056 17057 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17058 defer func() { 17059 if r := recover(); r != nil { 17060 ec.Error(ctx, ec.Recover(ctx, r)) 17061 } 17062 }() 17063 res = ec._Query_animal(ctx, field) 17064 return res 17065 } 17066 17067 rrm := func(ctx context.Context) graphql.Marshaler { 17068 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17069 } 17070 17071 out.Concurrently(i, func() graphql.Marshaler { 17072 return rrm(innerCtx) 17073 }) 17074 case "notAnInterface": 17075 field := field 17076 17077 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17078 defer func() { 17079 if r := recover(); r != nil { 17080 ec.Error(ctx, ec.Recover(ctx, r)) 17081 } 17082 }() 17083 res = ec._Query_notAnInterface(ctx, field) 17084 return res 17085 } 17086 17087 rrm := func(ctx context.Context) graphql.Marshaler { 17088 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17089 } 17090 17091 out.Concurrently(i, func() graphql.Marshaler { 17092 return rrm(innerCtx) 17093 }) 17094 case "issue896a": 17095 field := field 17096 17097 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17098 defer func() { 17099 if r := recover(); r != nil { 17100 ec.Error(ctx, ec.Recover(ctx, r)) 17101 } 17102 }() 17103 res = ec._Query_issue896a(ctx, field) 17104 return res 17105 } 17106 17107 rrm := func(ctx context.Context) graphql.Marshaler { 17108 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17109 } 17110 17111 out.Concurrently(i, func() graphql.Marshaler { 17112 return rrm(innerCtx) 17113 }) 17114 case "mapStringInterface": 17115 field := field 17116 17117 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17118 defer func() { 17119 if r := recover(); r != nil { 17120 ec.Error(ctx, ec.Recover(ctx, r)) 17121 } 17122 }() 17123 res = ec._Query_mapStringInterface(ctx, field) 17124 return res 17125 } 17126 17127 rrm := func(ctx context.Context) graphql.Marshaler { 17128 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17129 } 17130 17131 out.Concurrently(i, func() graphql.Marshaler { 17132 return rrm(innerCtx) 17133 }) 17134 case "mapNestedStringInterface": 17135 field := field 17136 17137 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17138 defer func() { 17139 if r := recover(); r != nil { 17140 ec.Error(ctx, ec.Recover(ctx, r)) 17141 } 17142 }() 17143 res = ec._Query_mapNestedStringInterface(ctx, field) 17144 return res 17145 } 17146 17147 rrm := func(ctx context.Context) graphql.Marshaler { 17148 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17149 } 17150 17151 out.Concurrently(i, func() graphql.Marshaler { 17152 return rrm(innerCtx) 17153 }) 17154 case "errorBubble": 17155 field := field 17156 17157 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17158 defer func() { 17159 if r := recover(); r != nil { 17160 ec.Error(ctx, ec.Recover(ctx, r)) 17161 } 17162 }() 17163 res = ec._Query_errorBubble(ctx, field) 17164 return res 17165 } 17166 17167 rrm := func(ctx context.Context) graphql.Marshaler { 17168 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17169 } 17170 17171 out.Concurrently(i, func() graphql.Marshaler { 17172 return rrm(innerCtx) 17173 }) 17174 case "errorBubbleList": 17175 field := field 17176 17177 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17178 defer func() { 17179 if r := recover(); r != nil { 17180 ec.Error(ctx, ec.Recover(ctx, r)) 17181 } 17182 }() 17183 res = ec._Query_errorBubbleList(ctx, field) 17184 return res 17185 } 17186 17187 rrm := func(ctx context.Context) graphql.Marshaler { 17188 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17189 } 17190 17191 out.Concurrently(i, func() graphql.Marshaler { 17192 return rrm(innerCtx) 17193 }) 17194 case "errorList": 17195 field := field 17196 17197 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17198 defer func() { 17199 if r := recover(); r != nil { 17200 ec.Error(ctx, ec.Recover(ctx, r)) 17201 } 17202 }() 17203 res = ec._Query_errorList(ctx, field) 17204 return res 17205 } 17206 17207 rrm := func(ctx context.Context) graphql.Marshaler { 17208 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17209 } 17210 17211 out.Concurrently(i, func() graphql.Marshaler { 17212 return rrm(innerCtx) 17213 }) 17214 case "errors": 17215 field := field 17216 17217 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17218 defer func() { 17219 if r := recover(); r != nil { 17220 ec.Error(ctx, ec.Recover(ctx, r)) 17221 } 17222 }() 17223 res = ec._Query_errors(ctx, field) 17224 return res 17225 } 17226 17227 rrm := func(ctx context.Context) graphql.Marshaler { 17228 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17229 } 17230 17231 out.Concurrently(i, func() graphql.Marshaler { 17232 return rrm(innerCtx) 17233 }) 17234 case "valid": 17235 field := field 17236 17237 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17238 defer func() { 17239 if r := recover(); r != nil { 17240 ec.Error(ctx, ec.Recover(ctx, r)) 17241 } 17242 }() 17243 res = ec._Query_valid(ctx, field) 17244 if res == graphql.Null { 17245 atomic.AddUint32(&invalids, 1) 17246 } 17247 return res 17248 } 17249 17250 rrm := func(ctx context.Context) graphql.Marshaler { 17251 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17252 } 17253 17254 out.Concurrently(i, func() graphql.Marshaler { 17255 return rrm(innerCtx) 17256 }) 17257 case "panics": 17258 field := field 17259 17260 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17261 defer func() { 17262 if r := recover(); r != nil { 17263 ec.Error(ctx, ec.Recover(ctx, r)) 17264 } 17265 }() 17266 res = ec._Query_panics(ctx, field) 17267 return res 17268 } 17269 17270 rrm := func(ctx context.Context) graphql.Marshaler { 17271 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17272 } 17273 17274 out.Concurrently(i, func() graphql.Marshaler { 17275 return rrm(innerCtx) 17276 }) 17277 case "primitiveObject": 17278 field := field 17279 17280 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17281 defer func() { 17282 if r := recover(); r != nil { 17283 ec.Error(ctx, ec.Recover(ctx, r)) 17284 } 17285 }() 17286 res = ec._Query_primitiveObject(ctx, field) 17287 if res == graphql.Null { 17288 atomic.AddUint32(&invalids, 1) 17289 } 17290 return res 17291 } 17292 17293 rrm := func(ctx context.Context) graphql.Marshaler { 17294 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17295 } 17296 17297 out.Concurrently(i, func() graphql.Marshaler { 17298 return rrm(innerCtx) 17299 }) 17300 case "primitiveStringObject": 17301 field := field 17302 17303 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17304 defer func() { 17305 if r := recover(); r != nil { 17306 ec.Error(ctx, ec.Recover(ctx, r)) 17307 } 17308 }() 17309 res = ec._Query_primitiveStringObject(ctx, field) 17310 if res == graphql.Null { 17311 atomic.AddUint32(&invalids, 1) 17312 } 17313 return res 17314 } 17315 17316 rrm := func(ctx context.Context) graphql.Marshaler { 17317 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17318 } 17319 17320 out.Concurrently(i, func() graphql.Marshaler { 17321 return rrm(innerCtx) 17322 }) 17323 case "ptrToSliceContainer": 17324 field := field 17325 17326 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17327 defer func() { 17328 if r := recover(); r != nil { 17329 ec.Error(ctx, ec.Recover(ctx, r)) 17330 } 17331 }() 17332 res = ec._Query_ptrToSliceContainer(ctx, field) 17333 if res == graphql.Null { 17334 atomic.AddUint32(&invalids, 1) 17335 } 17336 return res 17337 } 17338 17339 rrm := func(ctx context.Context) graphql.Marshaler { 17340 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17341 } 17342 17343 out.Concurrently(i, func() graphql.Marshaler { 17344 return rrm(innerCtx) 17345 }) 17346 case "infinity": 17347 field := field 17348 17349 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17350 defer func() { 17351 if r := recover(); r != nil { 17352 ec.Error(ctx, ec.Recover(ctx, r)) 17353 } 17354 }() 17355 res = ec._Query_infinity(ctx, field) 17356 if res == graphql.Null { 17357 atomic.AddUint32(&invalids, 1) 17358 } 17359 return res 17360 } 17361 17362 rrm := func(ctx context.Context) graphql.Marshaler { 17363 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17364 } 17365 17366 out.Concurrently(i, func() graphql.Marshaler { 17367 return rrm(innerCtx) 17368 }) 17369 case "stringFromContextInterface": 17370 field := field 17371 17372 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17373 defer func() { 17374 if r := recover(); r != nil { 17375 ec.Error(ctx, ec.Recover(ctx, r)) 17376 } 17377 }() 17378 res = ec._Query_stringFromContextInterface(ctx, field) 17379 if res == graphql.Null { 17380 atomic.AddUint32(&invalids, 1) 17381 } 17382 return res 17383 } 17384 17385 rrm := func(ctx context.Context) graphql.Marshaler { 17386 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17387 } 17388 17389 out.Concurrently(i, func() graphql.Marshaler { 17390 return rrm(innerCtx) 17391 }) 17392 case "stringFromContextFunction": 17393 field := field 17394 17395 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17396 defer func() { 17397 if r := recover(); r != nil { 17398 ec.Error(ctx, ec.Recover(ctx, r)) 17399 } 17400 }() 17401 res = ec._Query_stringFromContextFunction(ctx, field) 17402 if res == graphql.Null { 17403 atomic.AddUint32(&invalids, 1) 17404 } 17405 return res 17406 } 17407 17408 rrm := func(ctx context.Context) graphql.Marshaler { 17409 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17410 } 17411 17412 out.Concurrently(i, func() graphql.Marshaler { 17413 return rrm(innerCtx) 17414 }) 17415 case "defaultScalar": 17416 field := field 17417 17418 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17419 defer func() { 17420 if r := recover(); r != nil { 17421 ec.Error(ctx, ec.Recover(ctx, r)) 17422 } 17423 }() 17424 res = ec._Query_defaultScalar(ctx, field) 17425 if res == graphql.Null { 17426 atomic.AddUint32(&invalids, 1) 17427 } 17428 return res 17429 } 17430 17431 rrm := func(ctx context.Context) graphql.Marshaler { 17432 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17433 } 17434 17435 out.Concurrently(i, func() graphql.Marshaler { 17436 return rrm(innerCtx) 17437 }) 17438 case "slices": 17439 field := field 17440 17441 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17442 defer func() { 17443 if r := recover(); r != nil { 17444 ec.Error(ctx, ec.Recover(ctx, r)) 17445 } 17446 }() 17447 res = ec._Query_slices(ctx, field) 17448 return res 17449 } 17450 17451 rrm := func(ctx context.Context) graphql.Marshaler { 17452 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17453 } 17454 17455 out.Concurrently(i, func() graphql.Marshaler { 17456 return rrm(innerCtx) 17457 }) 17458 case "scalarSlice": 17459 field := field 17460 17461 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17462 defer func() { 17463 if r := recover(); r != nil { 17464 ec.Error(ctx, ec.Recover(ctx, r)) 17465 } 17466 }() 17467 res = ec._Query_scalarSlice(ctx, field) 17468 if res == graphql.Null { 17469 atomic.AddUint32(&invalids, 1) 17470 } 17471 return res 17472 } 17473 17474 rrm := func(ctx context.Context) graphql.Marshaler { 17475 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17476 } 17477 17478 out.Concurrently(i, func() graphql.Marshaler { 17479 return rrm(innerCtx) 17480 }) 17481 case "fallback": 17482 field := field 17483 17484 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17485 defer func() { 17486 if r := recover(); r != nil { 17487 ec.Error(ctx, ec.Recover(ctx, r)) 17488 } 17489 }() 17490 res = ec._Query_fallback(ctx, field) 17491 if res == graphql.Null { 17492 atomic.AddUint32(&invalids, 1) 17493 } 17494 return res 17495 } 17496 17497 rrm := func(ctx context.Context) graphql.Marshaler { 17498 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17499 } 17500 17501 out.Concurrently(i, func() graphql.Marshaler { 17502 return rrm(innerCtx) 17503 }) 17504 case "optionalUnion": 17505 field := field 17506 17507 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17508 defer func() { 17509 if r := recover(); r != nil { 17510 ec.Error(ctx, ec.Recover(ctx, r)) 17511 } 17512 }() 17513 res = ec._Query_optionalUnion(ctx, field) 17514 return res 17515 } 17516 17517 rrm := func(ctx context.Context) graphql.Marshaler { 17518 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17519 } 17520 17521 out.Concurrently(i, func() graphql.Marshaler { 17522 return rrm(innerCtx) 17523 }) 17524 case "vOkCaseValue": 17525 field := field 17526 17527 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17528 defer func() { 17529 if r := recover(); r != nil { 17530 ec.Error(ctx, ec.Recover(ctx, r)) 17531 } 17532 }() 17533 res = ec._Query_vOkCaseValue(ctx, field) 17534 return res 17535 } 17536 17537 rrm := func(ctx context.Context) graphql.Marshaler { 17538 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17539 } 17540 17541 out.Concurrently(i, func() graphql.Marshaler { 17542 return rrm(innerCtx) 17543 }) 17544 case "vOkCaseNil": 17545 field := field 17546 17547 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17548 defer func() { 17549 if r := recover(); r != nil { 17550 ec.Error(ctx, ec.Recover(ctx, r)) 17551 } 17552 }() 17553 res = ec._Query_vOkCaseNil(ctx, field) 17554 return res 17555 } 17556 17557 rrm := func(ctx context.Context) graphql.Marshaler { 17558 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17559 } 17560 17561 out.Concurrently(i, func() graphql.Marshaler { 17562 return rrm(innerCtx) 17563 }) 17564 case "validType": 17565 field := field 17566 17567 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17568 defer func() { 17569 if r := recover(); r != nil { 17570 ec.Error(ctx, ec.Recover(ctx, r)) 17571 } 17572 }() 17573 res = ec._Query_validType(ctx, field) 17574 return res 17575 } 17576 17577 rrm := func(ctx context.Context) graphql.Marshaler { 17578 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17579 } 17580 17581 out.Concurrently(i, func() graphql.Marshaler { 17582 return rrm(innerCtx) 17583 }) 17584 case "variadicModel": 17585 field := field 17586 17587 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17588 defer func() { 17589 if r := recover(); r != nil { 17590 ec.Error(ctx, ec.Recover(ctx, r)) 17591 } 17592 }() 17593 res = ec._Query_variadicModel(ctx, field) 17594 return res 17595 } 17596 17597 rrm := func(ctx context.Context) graphql.Marshaler { 17598 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17599 } 17600 17601 out.Concurrently(i, func() graphql.Marshaler { 17602 return rrm(innerCtx) 17603 }) 17604 case "wrappedStruct": 17605 field := field 17606 17607 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17608 defer func() { 17609 if r := recover(); r != nil { 17610 ec.Error(ctx, ec.Recover(ctx, r)) 17611 } 17612 }() 17613 res = ec._Query_wrappedStruct(ctx, field) 17614 if res == graphql.Null { 17615 atomic.AddUint32(&invalids, 1) 17616 } 17617 return res 17618 } 17619 17620 rrm := func(ctx context.Context) graphql.Marshaler { 17621 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17622 } 17623 17624 out.Concurrently(i, func() graphql.Marshaler { 17625 return rrm(innerCtx) 17626 }) 17627 case "wrappedScalar": 17628 field := field 17629 17630 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17631 defer func() { 17632 if r := recover(); r != nil { 17633 ec.Error(ctx, ec.Recover(ctx, r)) 17634 } 17635 }() 17636 res = ec._Query_wrappedScalar(ctx, field) 17637 if res == graphql.Null { 17638 atomic.AddUint32(&invalids, 1) 17639 } 17640 return res 17641 } 17642 17643 rrm := func(ctx context.Context) graphql.Marshaler { 17644 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17645 } 17646 17647 out.Concurrently(i, func() graphql.Marshaler { 17648 return rrm(innerCtx) 17649 }) 17650 case "wrappedMap": 17651 field := field 17652 17653 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17654 defer func() { 17655 if r := recover(); r != nil { 17656 ec.Error(ctx, ec.Recover(ctx, r)) 17657 } 17658 }() 17659 res = ec._Query_wrappedMap(ctx, field) 17660 if res == graphql.Null { 17661 atomic.AddUint32(&invalids, 1) 17662 } 17663 return res 17664 } 17665 17666 rrm := func(ctx context.Context) graphql.Marshaler { 17667 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17668 } 17669 17670 out.Concurrently(i, func() graphql.Marshaler { 17671 return rrm(innerCtx) 17672 }) 17673 case "wrappedSlice": 17674 field := field 17675 17676 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17677 defer func() { 17678 if r := recover(); r != nil { 17679 ec.Error(ctx, ec.Recover(ctx, r)) 17680 } 17681 }() 17682 res = ec._Query_wrappedSlice(ctx, field) 17683 if res == graphql.Null { 17684 atomic.AddUint32(&invalids, 1) 17685 } 17686 return res 17687 } 17688 17689 rrm := func(ctx context.Context) graphql.Marshaler { 17690 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) 17691 } 17692 17693 out.Concurrently(i, func() graphql.Marshaler { 17694 return rrm(innerCtx) 17695 }) 17696 case "__type": 17697 17698 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 17699 return ec._Query___type(ctx, field) 17700 }) 17701 17702 case "__schema": 17703 17704 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 17705 return ec._Query___schema(ctx, field) 17706 }) 17707 17708 default: 17709 panic("unknown field " + strconv.Quote(field.Name)) 17710 } 17711 } 17712 out.Dispatch() 17713 if invalids > 0 { 17714 return graphql.Null 17715 } 17716 return out 17717 } 17718 17719 var rectangleImplementors = []string{"Rectangle", "Shape", "ShapeUnion"} 17720 17721 func (ec *executionContext) _Rectangle(ctx context.Context, sel ast.SelectionSet, obj *Rectangle) graphql.Marshaler { 17722 fields := graphql.CollectFields(ec.OperationContext, sel, rectangleImplementors) 17723 out := graphql.NewFieldSet(fields) 17724 var invalids uint32 17725 for i, field := range fields { 17726 switch field.Name { 17727 case "__typename": 17728 out.Values[i] = graphql.MarshalString("Rectangle") 17729 case "length": 17730 17731 out.Values[i] = ec._Rectangle_length(ctx, field, obj) 17732 17733 case "width": 17734 17735 out.Values[i] = ec._Rectangle_width(ctx, field, obj) 17736 17737 case "area": 17738 17739 out.Values[i] = ec._Rectangle_area(ctx, field, obj) 17740 17741 case "coordinates": 17742 17743 out.Values[i] = ec._Rectangle_coordinates(ctx, field, obj) 17744 17745 default: 17746 panic("unknown field " + strconv.Quote(field.Name)) 17747 } 17748 } 17749 out.Dispatch() 17750 if invalids > 0 { 17751 return graphql.Null 17752 } 17753 return out 17754 } 17755 17756 var slicesImplementors = []string{"Slices"} 17757 17758 func (ec *executionContext) _Slices(ctx context.Context, sel ast.SelectionSet, obj *Slices) graphql.Marshaler { 17759 fields := graphql.CollectFields(ec.OperationContext, sel, slicesImplementors) 17760 out := graphql.NewFieldSet(fields) 17761 var invalids uint32 17762 for i, field := range fields { 17763 switch field.Name { 17764 case "__typename": 17765 out.Values[i] = graphql.MarshalString("Slices") 17766 case "test1": 17767 17768 out.Values[i] = ec._Slices_test1(ctx, field, obj) 17769 17770 case "test2": 17771 17772 out.Values[i] = ec._Slices_test2(ctx, field, obj) 17773 17774 case "test3": 17775 17776 out.Values[i] = ec._Slices_test3(ctx, field, obj) 17777 17778 if out.Values[i] == graphql.Null { 17779 invalids++ 17780 } 17781 case "test4": 17782 17783 out.Values[i] = ec._Slices_test4(ctx, field, obj) 17784 17785 if out.Values[i] == graphql.Null { 17786 invalids++ 17787 } 17788 default: 17789 panic("unknown field " + strconv.Quote(field.Name)) 17790 } 17791 } 17792 out.Dispatch() 17793 if invalids > 0 { 17794 return graphql.Null 17795 } 17796 return out 17797 } 17798 17799 var subscriptionImplementors = []string{"Subscription"} 17800 17801 func (ec *executionContext) _Subscription(ctx context.Context, sel ast.SelectionSet) func(ctx context.Context) graphql.Marshaler { 17802 fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionImplementors) 17803 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 17804 Object: "Subscription", 17805 }) 17806 if len(fields) != 1 { 17807 ec.Errorf(ctx, "must subscribe to exactly one stream") 17808 return nil 17809 } 17810 17811 switch fields[0].Name { 17812 case "updated": 17813 return ec._Subscription_updated(ctx, fields[0]) 17814 case "initPayload": 17815 return ec._Subscription_initPayload(ctx, fields[0]) 17816 case "directiveArg": 17817 return ec._Subscription_directiveArg(ctx, fields[0]) 17818 case "directiveNullableArg": 17819 return ec._Subscription_directiveNullableArg(ctx, fields[0]) 17820 case "directiveDouble": 17821 return ec._Subscription_directiveDouble(ctx, fields[0]) 17822 case "directiveUnimplemented": 17823 return ec._Subscription_directiveUnimplemented(ctx, fields[0]) 17824 case "issue896b": 17825 return ec._Subscription_issue896b(ctx, fields[0]) 17826 case "errorRequired": 17827 return ec._Subscription_errorRequired(ctx, fields[0]) 17828 default: 17829 panic("unknown field " + strconv.Quote(fields[0].Name)) 17830 } 17831 } 17832 17833 var userImplementors = []string{"User"} 17834 17835 func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *User) graphql.Marshaler { 17836 fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors) 17837 out := graphql.NewFieldSet(fields) 17838 var invalids uint32 17839 for i, field := range fields { 17840 switch field.Name { 17841 case "__typename": 17842 out.Values[i] = graphql.MarshalString("User") 17843 case "id": 17844 17845 out.Values[i] = ec._User_id(ctx, field, obj) 17846 17847 if out.Values[i] == graphql.Null { 17848 atomic.AddUint32(&invalids, 1) 17849 } 17850 case "friends": 17851 field := field 17852 17853 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17854 defer func() { 17855 if r := recover(); r != nil { 17856 ec.Error(ctx, ec.Recover(ctx, r)) 17857 } 17858 }() 17859 res = ec._User_friends(ctx, field, obj) 17860 if res == graphql.Null { 17861 atomic.AddUint32(&invalids, 1) 17862 } 17863 return res 17864 } 17865 17866 out.Concurrently(i, func() graphql.Marshaler { 17867 return innerFunc(ctx) 17868 17869 }) 17870 case "created": 17871 17872 out.Values[i] = ec._User_created(ctx, field, obj) 17873 17874 if out.Values[i] == graphql.Null { 17875 atomic.AddUint32(&invalids, 1) 17876 } 17877 case "updated": 17878 17879 out.Values[i] = ec._User_updated(ctx, field, obj) 17880 17881 case "pets": 17882 field := field 17883 17884 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 17885 defer func() { 17886 if r := recover(); r != nil { 17887 ec.Error(ctx, ec.Recover(ctx, r)) 17888 } 17889 }() 17890 res = ec._User_pets(ctx, field, obj) 17891 return res 17892 } 17893 17894 out.Concurrently(i, func() graphql.Marshaler { 17895 return innerFunc(ctx) 17896 17897 }) 17898 default: 17899 panic("unknown field " + strconv.Quote(field.Name)) 17900 } 17901 } 17902 out.Dispatch() 17903 if invalids > 0 { 17904 return graphql.Null 17905 } 17906 return out 17907 } 17908 17909 var vOkCaseNilImplementors = []string{"VOkCaseNil"} 17910 17911 func (ec *executionContext) _VOkCaseNil(ctx context.Context, sel ast.SelectionSet, obj *VOkCaseNil) graphql.Marshaler { 17912 fields := graphql.CollectFields(ec.OperationContext, sel, vOkCaseNilImplementors) 17913 out := graphql.NewFieldSet(fields) 17914 var invalids uint32 17915 for i, field := range fields { 17916 switch field.Name { 17917 case "__typename": 17918 out.Values[i] = graphql.MarshalString("VOkCaseNil") 17919 case "value": 17920 17921 out.Values[i] = ec._VOkCaseNil_value(ctx, field, obj) 17922 17923 default: 17924 panic("unknown field " + strconv.Quote(field.Name)) 17925 } 17926 } 17927 out.Dispatch() 17928 if invalids > 0 { 17929 return graphql.Null 17930 } 17931 return out 17932 } 17933 17934 var vOkCaseValueImplementors = []string{"VOkCaseValue"} 17935 17936 func (ec *executionContext) _VOkCaseValue(ctx context.Context, sel ast.SelectionSet, obj *VOkCaseValue) graphql.Marshaler { 17937 fields := graphql.CollectFields(ec.OperationContext, sel, vOkCaseValueImplementors) 17938 out := graphql.NewFieldSet(fields) 17939 var invalids uint32 17940 for i, field := range fields { 17941 switch field.Name { 17942 case "__typename": 17943 out.Values[i] = graphql.MarshalString("VOkCaseValue") 17944 case "value": 17945 17946 out.Values[i] = ec._VOkCaseValue_value(ctx, field, obj) 17947 17948 default: 17949 panic("unknown field " + strconv.Quote(field.Name)) 17950 } 17951 } 17952 out.Dispatch() 17953 if invalids > 0 { 17954 return graphql.Null 17955 } 17956 return out 17957 } 17958 17959 var validTypeImplementors = []string{"ValidType"} 17960 17961 func (ec *executionContext) _ValidType(ctx context.Context, sel ast.SelectionSet, obj *ValidType) graphql.Marshaler { 17962 fields := graphql.CollectFields(ec.OperationContext, sel, validTypeImplementors) 17963 out := graphql.NewFieldSet(fields) 17964 var invalids uint32 17965 for i, field := range fields { 17966 switch field.Name { 17967 case "__typename": 17968 out.Values[i] = graphql.MarshalString("ValidType") 17969 case "differentCase": 17970 17971 out.Values[i] = ec._ValidType_differentCase(ctx, field, obj) 17972 17973 if out.Values[i] == graphql.Null { 17974 invalids++ 17975 } 17976 case "different_case": 17977 17978 out.Values[i] = ec._ValidType_different_case(ctx, field, obj) 17979 17980 if out.Values[i] == graphql.Null { 17981 invalids++ 17982 } 17983 case "validInputKeywords": 17984 17985 out.Values[i] = ec._ValidType_validInputKeywords(ctx, field, obj) 17986 17987 if out.Values[i] == graphql.Null { 17988 invalids++ 17989 } 17990 case "validArgs": 17991 17992 out.Values[i] = ec._ValidType_validArgs(ctx, field, obj) 17993 17994 if out.Values[i] == graphql.Null { 17995 invalids++ 17996 } 17997 default: 17998 panic("unknown field " + strconv.Quote(field.Name)) 17999 } 18000 } 18001 out.Dispatch() 18002 if invalids > 0 { 18003 return graphql.Null 18004 } 18005 return out 18006 } 18007 18008 var variadicModelImplementors = []string{"VariadicModel"} 18009 18010 func (ec *executionContext) _VariadicModel(ctx context.Context, sel ast.SelectionSet, obj *VariadicModel) graphql.Marshaler { 18011 fields := graphql.CollectFields(ec.OperationContext, sel, variadicModelImplementors) 18012 out := graphql.NewFieldSet(fields) 18013 var invalids uint32 18014 for i, field := range fields { 18015 switch field.Name { 18016 case "__typename": 18017 out.Values[i] = graphql.MarshalString("VariadicModel") 18018 case "value": 18019 field := field 18020 18021 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 18022 defer func() { 18023 if r := recover(); r != nil { 18024 ec.Error(ctx, ec.Recover(ctx, r)) 18025 } 18026 }() 18027 res = ec._VariadicModel_value(ctx, field, obj) 18028 return res 18029 } 18030 18031 out.Concurrently(i, func() graphql.Marshaler { 18032 return innerFunc(ctx) 18033 18034 }) 18035 default: 18036 panic("unknown field " + strconv.Quote(field.Name)) 18037 } 18038 } 18039 out.Dispatch() 18040 if invalids > 0 { 18041 return graphql.Null 18042 } 18043 return out 18044 } 18045 18046 var wrappedMapImplementors = []string{"WrappedMap"} 18047 18048 func (ec *executionContext) _WrappedMap(ctx context.Context, sel ast.SelectionSet, obj WrappedMap) graphql.Marshaler { 18049 fields := graphql.CollectFields(ec.OperationContext, sel, wrappedMapImplementors) 18050 out := graphql.NewFieldSet(fields) 18051 var invalids uint32 18052 for i, field := range fields { 18053 switch field.Name { 18054 case "__typename": 18055 out.Values[i] = graphql.MarshalString("WrappedMap") 18056 case "get": 18057 field := field 18058 18059 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 18060 defer func() { 18061 if r := recover(); r != nil { 18062 ec.Error(ctx, ec.Recover(ctx, r)) 18063 } 18064 }() 18065 res = ec._WrappedMap_get(ctx, field, obj) 18066 if res == graphql.Null { 18067 atomic.AddUint32(&invalids, 1) 18068 } 18069 return res 18070 } 18071 18072 out.Concurrently(i, func() graphql.Marshaler { 18073 return innerFunc(ctx) 18074 18075 }) 18076 default: 18077 panic("unknown field " + strconv.Quote(field.Name)) 18078 } 18079 } 18080 out.Dispatch() 18081 if invalids > 0 { 18082 return graphql.Null 18083 } 18084 return out 18085 } 18086 18087 var wrappedSliceImplementors = []string{"WrappedSlice"} 18088 18089 func (ec *executionContext) _WrappedSlice(ctx context.Context, sel ast.SelectionSet, obj WrappedSlice) graphql.Marshaler { 18090 fields := graphql.CollectFields(ec.OperationContext, sel, wrappedSliceImplementors) 18091 out := graphql.NewFieldSet(fields) 18092 var invalids uint32 18093 for i, field := range fields { 18094 switch field.Name { 18095 case "__typename": 18096 out.Values[i] = graphql.MarshalString("WrappedSlice") 18097 case "get": 18098 field := field 18099 18100 innerFunc := func(ctx context.Context) (res graphql.Marshaler) { 18101 defer func() { 18102 if r := recover(); r != nil { 18103 ec.Error(ctx, ec.Recover(ctx, r)) 18104 } 18105 }() 18106 res = ec._WrappedSlice_get(ctx, field, obj) 18107 if res == graphql.Null { 18108 atomic.AddUint32(&invalids, 1) 18109 } 18110 return res 18111 } 18112 18113 out.Concurrently(i, func() graphql.Marshaler { 18114 return innerFunc(ctx) 18115 18116 }) 18117 default: 18118 panic("unknown field " + strconv.Quote(field.Name)) 18119 } 18120 } 18121 out.Dispatch() 18122 if invalids > 0 { 18123 return graphql.Null 18124 } 18125 return out 18126 } 18127 18128 var wrappedStructImplementors = []string{"WrappedStruct"} 18129 18130 func (ec *executionContext) _WrappedStruct(ctx context.Context, sel ast.SelectionSet, obj *WrappedStruct) graphql.Marshaler { 18131 fields := graphql.CollectFields(ec.OperationContext, sel, wrappedStructImplementors) 18132 out := graphql.NewFieldSet(fields) 18133 var invalids uint32 18134 for i, field := range fields { 18135 switch field.Name { 18136 case "__typename": 18137 out.Values[i] = graphql.MarshalString("WrappedStruct") 18138 case "name": 18139 18140 out.Values[i] = ec._WrappedStruct_name(ctx, field, obj) 18141 18142 if out.Values[i] == graphql.Null { 18143 invalids++ 18144 } 18145 case "desc": 18146 18147 out.Values[i] = ec._WrappedStruct_desc(ctx, field, obj) 18148 18149 default: 18150 panic("unknown field " + strconv.Quote(field.Name)) 18151 } 18152 } 18153 out.Dispatch() 18154 if invalids > 0 { 18155 return graphql.Null 18156 } 18157 return out 18158 } 18159 18160 var xXItImplementors = []string{"XXIt"} 18161 18162 func (ec *executionContext) _XXIt(ctx context.Context, sel ast.SelectionSet, obj *XXIt) graphql.Marshaler { 18163 fields := graphql.CollectFields(ec.OperationContext, sel, xXItImplementors) 18164 out := graphql.NewFieldSet(fields) 18165 var invalids uint32 18166 for i, field := range fields { 18167 switch field.Name { 18168 case "__typename": 18169 out.Values[i] = graphql.MarshalString("XXIt") 18170 case "id": 18171 18172 out.Values[i] = ec._XXIt_id(ctx, field, obj) 18173 18174 if out.Values[i] == graphql.Null { 18175 invalids++ 18176 } 18177 default: 18178 panic("unknown field " + strconv.Quote(field.Name)) 18179 } 18180 } 18181 out.Dispatch() 18182 if invalids > 0 { 18183 return graphql.Null 18184 } 18185 return out 18186 } 18187 18188 var xxItImplementors = []string{"XxIt"} 18189 18190 func (ec *executionContext) _XxIt(ctx context.Context, sel ast.SelectionSet, obj *XxIt) graphql.Marshaler { 18191 fields := graphql.CollectFields(ec.OperationContext, sel, xxItImplementors) 18192 out := graphql.NewFieldSet(fields) 18193 var invalids uint32 18194 for i, field := range fields { 18195 switch field.Name { 18196 case "__typename": 18197 out.Values[i] = graphql.MarshalString("XxIt") 18198 case "id": 18199 18200 out.Values[i] = ec._XxIt_id(ctx, field, obj) 18201 18202 if out.Values[i] == graphql.Null { 18203 invalids++ 18204 } 18205 default: 18206 panic("unknown field " + strconv.Quote(field.Name)) 18207 } 18208 } 18209 out.Dispatch() 18210 if invalids > 0 { 18211 return graphql.Null 18212 } 18213 return out 18214 } 18215 18216 var __DirectiveImplementors = []string{"__Directive"} 18217 18218 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { 18219 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) 18220 out := graphql.NewFieldSet(fields) 18221 var invalids uint32 18222 for i, field := range fields { 18223 switch field.Name { 18224 case "__typename": 18225 out.Values[i] = graphql.MarshalString("__Directive") 18226 case "name": 18227 18228 out.Values[i] = ec.___Directive_name(ctx, field, obj) 18229 18230 if out.Values[i] == graphql.Null { 18231 invalids++ 18232 } 18233 case "description": 18234 18235 out.Values[i] = ec.___Directive_description(ctx, field, obj) 18236 18237 case "locations": 18238 18239 out.Values[i] = ec.___Directive_locations(ctx, field, obj) 18240 18241 if out.Values[i] == graphql.Null { 18242 invalids++ 18243 } 18244 case "args": 18245 18246 out.Values[i] = ec.___Directive_args(ctx, field, obj) 18247 18248 if out.Values[i] == graphql.Null { 18249 invalids++ 18250 } 18251 case "isRepeatable": 18252 18253 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) 18254 18255 if out.Values[i] == graphql.Null { 18256 invalids++ 18257 } 18258 default: 18259 panic("unknown field " + strconv.Quote(field.Name)) 18260 } 18261 } 18262 out.Dispatch() 18263 if invalids > 0 { 18264 return graphql.Null 18265 } 18266 return out 18267 } 18268 18269 var __EnumValueImplementors = []string{"__EnumValue"} 18270 18271 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { 18272 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) 18273 out := graphql.NewFieldSet(fields) 18274 var invalids uint32 18275 for i, field := range fields { 18276 switch field.Name { 18277 case "__typename": 18278 out.Values[i] = graphql.MarshalString("__EnumValue") 18279 case "name": 18280 18281 out.Values[i] = ec.___EnumValue_name(ctx, field, obj) 18282 18283 if out.Values[i] == graphql.Null { 18284 invalids++ 18285 } 18286 case "description": 18287 18288 out.Values[i] = ec.___EnumValue_description(ctx, field, obj) 18289 18290 case "isDeprecated": 18291 18292 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) 18293 18294 if out.Values[i] == graphql.Null { 18295 invalids++ 18296 } 18297 case "deprecationReason": 18298 18299 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) 18300 18301 default: 18302 panic("unknown field " + strconv.Quote(field.Name)) 18303 } 18304 } 18305 out.Dispatch() 18306 if invalids > 0 { 18307 return graphql.Null 18308 } 18309 return out 18310 } 18311 18312 var __FieldImplementors = []string{"__Field"} 18313 18314 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { 18315 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) 18316 out := graphql.NewFieldSet(fields) 18317 var invalids uint32 18318 for i, field := range fields { 18319 switch field.Name { 18320 case "__typename": 18321 out.Values[i] = graphql.MarshalString("__Field") 18322 case "name": 18323 18324 out.Values[i] = ec.___Field_name(ctx, field, obj) 18325 18326 if out.Values[i] == graphql.Null { 18327 invalids++ 18328 } 18329 case "description": 18330 18331 out.Values[i] = ec.___Field_description(ctx, field, obj) 18332 18333 case "args": 18334 18335 out.Values[i] = ec.___Field_args(ctx, field, obj) 18336 18337 if out.Values[i] == graphql.Null { 18338 invalids++ 18339 } 18340 case "type": 18341 18342 out.Values[i] = ec.___Field_type(ctx, field, obj) 18343 18344 if out.Values[i] == graphql.Null { 18345 invalids++ 18346 } 18347 case "isDeprecated": 18348 18349 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) 18350 18351 if out.Values[i] == graphql.Null { 18352 invalids++ 18353 } 18354 case "deprecationReason": 18355 18356 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) 18357 18358 default: 18359 panic("unknown field " + strconv.Quote(field.Name)) 18360 } 18361 } 18362 out.Dispatch() 18363 if invalids > 0 { 18364 return graphql.Null 18365 } 18366 return out 18367 } 18368 18369 var __InputValueImplementors = []string{"__InputValue"} 18370 18371 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { 18372 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) 18373 out := graphql.NewFieldSet(fields) 18374 var invalids uint32 18375 for i, field := range fields { 18376 switch field.Name { 18377 case "__typename": 18378 out.Values[i] = graphql.MarshalString("__InputValue") 18379 case "name": 18380 18381 out.Values[i] = ec.___InputValue_name(ctx, field, obj) 18382 18383 if out.Values[i] == graphql.Null { 18384 invalids++ 18385 } 18386 case "description": 18387 18388 out.Values[i] = ec.___InputValue_description(ctx, field, obj) 18389 18390 case "type": 18391 18392 out.Values[i] = ec.___InputValue_type(ctx, field, obj) 18393 18394 if out.Values[i] == graphql.Null { 18395 invalids++ 18396 } 18397 case "defaultValue": 18398 18399 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) 18400 18401 default: 18402 panic("unknown field " + strconv.Quote(field.Name)) 18403 } 18404 } 18405 out.Dispatch() 18406 if invalids > 0 { 18407 return graphql.Null 18408 } 18409 return out 18410 } 18411 18412 var __SchemaImplementors = []string{"__Schema"} 18413 18414 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { 18415 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) 18416 out := graphql.NewFieldSet(fields) 18417 var invalids uint32 18418 for i, field := range fields { 18419 switch field.Name { 18420 case "__typename": 18421 out.Values[i] = graphql.MarshalString("__Schema") 18422 case "description": 18423 18424 out.Values[i] = ec.___Schema_description(ctx, field, obj) 18425 18426 case "types": 18427 18428 out.Values[i] = ec.___Schema_types(ctx, field, obj) 18429 18430 if out.Values[i] == graphql.Null { 18431 invalids++ 18432 } 18433 case "queryType": 18434 18435 out.Values[i] = ec.___Schema_queryType(ctx, field, obj) 18436 18437 if out.Values[i] == graphql.Null { 18438 invalids++ 18439 } 18440 case "mutationType": 18441 18442 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) 18443 18444 case "subscriptionType": 18445 18446 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) 18447 18448 case "directives": 18449 18450 out.Values[i] = ec.___Schema_directives(ctx, field, obj) 18451 18452 if out.Values[i] == graphql.Null { 18453 invalids++ 18454 } 18455 default: 18456 panic("unknown field " + strconv.Quote(field.Name)) 18457 } 18458 } 18459 out.Dispatch() 18460 if invalids > 0 { 18461 return graphql.Null 18462 } 18463 return out 18464 } 18465 18466 var __TypeImplementors = []string{"__Type"} 18467 18468 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { 18469 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) 18470 out := graphql.NewFieldSet(fields) 18471 var invalids uint32 18472 for i, field := range fields { 18473 switch field.Name { 18474 case "__typename": 18475 out.Values[i] = graphql.MarshalString("__Type") 18476 case "kind": 18477 18478 out.Values[i] = ec.___Type_kind(ctx, field, obj) 18479 18480 if out.Values[i] == graphql.Null { 18481 invalids++ 18482 } 18483 case "name": 18484 18485 out.Values[i] = ec.___Type_name(ctx, field, obj) 18486 18487 case "description": 18488 18489 out.Values[i] = ec.___Type_description(ctx, field, obj) 18490 18491 case "fields": 18492 18493 out.Values[i] = ec.___Type_fields(ctx, field, obj) 18494 18495 case "interfaces": 18496 18497 out.Values[i] = ec.___Type_interfaces(ctx, field, obj) 18498 18499 case "possibleTypes": 18500 18501 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) 18502 18503 case "enumValues": 18504 18505 out.Values[i] = ec.___Type_enumValues(ctx, field, obj) 18506 18507 case "inputFields": 18508 18509 out.Values[i] = ec.___Type_inputFields(ctx, field, obj) 18510 18511 case "ofType": 18512 18513 out.Values[i] = ec.___Type_ofType(ctx, field, obj) 18514 18515 case "specifiedByURL": 18516 18517 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) 18518 18519 default: 18520 panic("unknown field " + strconv.Quote(field.Name)) 18521 } 18522 } 18523 out.Dispatch() 18524 if invalids > 0 { 18525 return graphql.Null 18526 } 18527 return out 18528 } 18529 18530 var asdfItImplementors = []string{"asdfIt"} 18531 18532 func (ec *executionContext) _asdfIt(ctx context.Context, sel ast.SelectionSet, obj *AsdfIt) graphql.Marshaler { 18533 fields := graphql.CollectFields(ec.OperationContext, sel, asdfItImplementors) 18534 out := graphql.NewFieldSet(fields) 18535 var invalids uint32 18536 for i, field := range fields { 18537 switch field.Name { 18538 case "__typename": 18539 out.Values[i] = graphql.MarshalString("asdfIt") 18540 case "id": 18541 18542 out.Values[i] = ec._asdfIt_id(ctx, field, obj) 18543 18544 if out.Values[i] == graphql.Null { 18545 invalids++ 18546 } 18547 default: 18548 panic("unknown field " + strconv.Quote(field.Name)) 18549 } 18550 } 18551 out.Dispatch() 18552 if invalids > 0 { 18553 return graphql.Null 18554 } 18555 return out 18556 } 18557 18558 var iItImplementors = []string{"iIt"} 18559 18560 func (ec *executionContext) _iIt(ctx context.Context, sel ast.SelectionSet, obj *IIt) graphql.Marshaler { 18561 fields := graphql.CollectFields(ec.OperationContext, sel, iItImplementors) 18562 out := graphql.NewFieldSet(fields) 18563 var invalids uint32 18564 for i, field := range fields { 18565 switch field.Name { 18566 case "__typename": 18567 out.Values[i] = graphql.MarshalString("iIt") 18568 case "id": 18569 18570 out.Values[i] = ec._iIt_id(ctx, field, obj) 18571 18572 if out.Values[i] == graphql.Null { 18573 invalids++ 18574 } 18575 default: 18576 panic("unknown field " + strconv.Quote(field.Name)) 18577 } 18578 } 18579 out.Dispatch() 18580 if invalids > 0 { 18581 return graphql.Null 18582 } 18583 return out 18584 } 18585 18586 // endregion **************************** object.gotpl **************************** 18587 18588 // region ***************************** type.gotpl ***************************** 18589 18590 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 18591 res, err := graphql.UnmarshalBoolean(v) 18592 return res, graphql.ErrorOnPath(ctx, err) 18593 } 18594 18595 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 18596 res := graphql.MarshalBoolean(v) 18597 if res == graphql.Null { 18598 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18599 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18600 } 18601 } 18602 return res 18603 } 18604 18605 func (ec *executionContext) unmarshalNBytes2ᚕbyte(ctx context.Context, v interface{}) ([]byte, error) { 18606 res, err := UnmarshalBytes(v) 18607 return res, graphql.ErrorOnPath(ctx, err) 18608 } 18609 18610 func (ec *executionContext) marshalNBytes2ᚕbyte(ctx context.Context, sel ast.SelectionSet, v []byte) graphql.Marshaler { 18611 if v == nil { 18612 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18613 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18614 } 18615 return graphql.Null 18616 } 18617 res := MarshalBytes(v) 18618 if res == graphql.Null { 18619 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18620 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18621 } 18622 } 18623 return res 18624 } 18625 18626 func (ec *executionContext) marshalNCheckIssue8962ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx context.Context, sel ast.SelectionSet, v *CheckIssue896) graphql.Marshaler { 18627 if v == nil { 18628 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18629 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18630 } 18631 return graphql.Null 18632 } 18633 return ec._CheckIssue896(ctx, sel, v) 18634 } 18635 18636 func (ec *executionContext) unmarshalNDefaultInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultInput(ctx context.Context, v interface{}) (DefaultInput, error) { 18637 res, err := ec.unmarshalInputDefaultInput(ctx, v) 18638 return res, graphql.ErrorOnPath(ctx, err) 18639 } 18640 18641 func (ec *executionContext) marshalNDefaultParametersMirror2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultParametersMirror(ctx context.Context, sel ast.SelectionSet, v DefaultParametersMirror) graphql.Marshaler { 18642 return ec._DefaultParametersMirror(ctx, sel, &v) 18643 } 18644 18645 func (ec *executionContext) marshalNDefaultParametersMirror2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultParametersMirror(ctx context.Context, sel ast.SelectionSet, v *DefaultParametersMirror) graphql.Marshaler { 18646 if v == nil { 18647 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18648 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18649 } 18650 return graphql.Null 18651 } 18652 return ec._DefaultParametersMirror(ctx, sel, v) 18653 } 18654 18655 func (ec *executionContext) unmarshalNDefaultScalarImplementation2string(ctx context.Context, v interface{}) (string, error) { 18656 res, err := graphql.UnmarshalString(v) 18657 return res, graphql.ErrorOnPath(ctx, err) 18658 } 18659 18660 func (ec *executionContext) marshalNDefaultScalarImplementation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 18661 res := graphql.MarshalString(v) 18662 if res == graphql.Null { 18663 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18664 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18665 } 18666 } 18667 return res 18668 } 18669 18670 func (ec *executionContext) unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx context.Context, v interface{}) (Email, error) { 18671 var res Email 18672 err := res.UnmarshalGQL(v) 18673 return res, graphql.ErrorOnPath(ctx, err) 18674 } 18675 18676 func (ec *executionContext) marshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx context.Context, sel ast.SelectionSet, v Email) graphql.Marshaler { 18677 return v 18678 } 18679 18680 func (ec *executionContext) unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx context.Context, v interface{}) (EnumTest, error) { 18681 var res EnumTest 18682 err := res.UnmarshalGQL(v) 18683 return res, graphql.ErrorOnPath(ctx, err) 18684 } 18685 18686 func (ec *executionContext) marshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx context.Context, sel ast.SelectionSet, v EnumTest) graphql.Marshaler { 18687 return v 18688 } 18689 18690 func (ec *executionContext) marshalNError2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx context.Context, sel ast.SelectionSet, v Error) graphql.Marshaler { 18691 return ec._Error(ctx, sel, &v) 18692 } 18693 18694 func (ec *executionContext) marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx context.Context, sel ast.SelectionSet, v *Error) graphql.Marshaler { 18695 if v == nil { 18696 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18697 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18698 } 18699 return graphql.Null 18700 } 18701 return ec._Error(ctx, sel, v) 18702 } 18703 18704 func (ec *executionContext) unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx context.Context, v interface{}) (FallbackToStringEncoding, error) { 18705 tmp, err := graphql.UnmarshalString(v) 18706 res := FallbackToStringEncoding(tmp) 18707 return res, graphql.ErrorOnPath(ctx, err) 18708 } 18709 18710 func (ec *executionContext) marshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx context.Context, sel ast.SelectionSet, v FallbackToStringEncoding) graphql.Marshaler { 18711 res := graphql.MarshalString(string(v)) 18712 if res == graphql.Null { 18713 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18714 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18715 } 18716 } 18717 return res 18718 } 18719 18720 func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { 18721 res, err := graphql.UnmarshalFloatContext(ctx, v) 18722 return res, graphql.ErrorOnPath(ctx, err) 18723 } 18724 18725 func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { 18726 res := graphql.MarshalFloatContext(v) 18727 if res == graphql.Null { 18728 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18729 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18730 } 18731 } 18732 return graphql.WrapContextMarshaler(ctx, res) 18733 } 18734 18735 func (ec *executionContext) unmarshalNID2int(ctx context.Context, v interface{}) (int, error) { 18736 res, err := graphql.UnmarshalIntID(v) 18737 return res, graphql.ErrorOnPath(ctx, err) 18738 } 18739 18740 func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 18741 res := graphql.MarshalIntID(v) 18742 if res == graphql.Null { 18743 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18744 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18745 } 18746 } 18747 return res 18748 } 18749 18750 func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { 18751 res, err := graphql.UnmarshalID(v) 18752 return res, graphql.ErrorOnPath(ctx, err) 18753 } 18754 18755 func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 18756 res := graphql.MarshalID(v) 18757 if res == graphql.Null { 18758 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18759 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18760 } 18761 } 18762 return res 18763 } 18764 18765 func (ec *executionContext) unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx context.Context, v interface{}) (*InnerDirectives, error) { 18766 res, err := ec.unmarshalInputInnerDirectives(ctx, v) 18767 return &res, graphql.ErrorOnPath(ctx, err) 18768 } 18769 18770 func (ec *executionContext) unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx context.Context, v interface{}) (InnerInput, error) { 18771 res, err := ec.unmarshalInputInnerInput(ctx, v) 18772 return res, graphql.ErrorOnPath(ctx, err) 18773 } 18774 18775 func (ec *executionContext) unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx context.Context, v interface{}) (*InnerInput, error) { 18776 res, err := ec.unmarshalInputInnerInput(ctx, v) 18777 return &res, graphql.ErrorOnPath(ctx, err) 18778 } 18779 18780 func (ec *executionContext) marshalNInnerObject2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerObject(ctx context.Context, sel ast.SelectionSet, v *InnerObject) graphql.Marshaler { 18781 if v == nil { 18782 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18783 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18784 } 18785 return graphql.Null 18786 } 18787 return ec._InnerObject(ctx, sel, v) 18788 } 18789 18790 func (ec *executionContext) unmarshalNInputDirectives2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx context.Context, v interface{}) (InputDirectives, error) { 18791 res, err := ec.unmarshalInputInputDirectives(ctx, v) 18792 return res, graphql.ErrorOnPath(ctx, err) 18793 } 18794 18795 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { 18796 res, err := graphql.UnmarshalInt(v) 18797 return res, graphql.ErrorOnPath(ctx, err) 18798 } 18799 18800 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 18801 res := graphql.MarshalInt(v) 18802 if res == graphql.Null { 18803 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18804 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18805 } 18806 } 18807 return res 18808 } 18809 18810 func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v interface{}) (int32, error) { 18811 res, err := graphql.UnmarshalInt32(v) 18812 return res, graphql.ErrorOnPath(ctx, err) 18813 } 18814 18815 func (ec *executionContext) marshalNInt2int32(ctx context.Context, sel ast.SelectionSet, v int32) graphql.Marshaler { 18816 res := graphql.MarshalInt32(v) 18817 if res == graphql.Null { 18818 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18819 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18820 } 18821 } 18822 return res 18823 } 18824 18825 func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) { 18826 res, err := graphql.UnmarshalInt64(v) 18827 return res, graphql.ErrorOnPath(ctx, err) 18828 } 18829 18830 func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { 18831 res := graphql.MarshalInt64(v) 18832 if res == graphql.Null { 18833 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18834 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18835 } 18836 } 18837 return res 18838 } 18839 18840 func (ec *executionContext) marshalNLoopA2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐLoopA(ctx context.Context, sel ast.SelectionSet, v *LoopA) graphql.Marshaler { 18841 if v == nil { 18842 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18843 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18844 } 18845 return graphql.Null 18846 } 18847 return ec._LoopA(ctx, sel, v) 18848 } 18849 18850 func (ec *executionContext) marshalNLoopB2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐLoopB(ctx context.Context, sel ast.SelectionSet, v *LoopB) graphql.Marshaler { 18851 if v == nil { 18852 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18853 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18854 } 18855 return graphql.Null 18856 } 18857 return ec._LoopB(ctx, sel, v) 18858 } 18859 18860 func (ec *executionContext) unmarshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx context.Context, v interface{}) (MarshalPanic, error) { 18861 var res MarshalPanic 18862 err := res.UnmarshalGQL(v) 18863 return res, graphql.ErrorOnPath(ctx, err) 18864 } 18865 18866 func (ec *executionContext) marshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx context.Context, sel ast.SelectionSet, v MarshalPanic) graphql.Marshaler { 18867 return v 18868 } 18869 18870 func (ec *executionContext) unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx context.Context, v interface{}) ([]MarshalPanic, error) { 18871 var vSlice []interface{} 18872 if v != nil { 18873 vSlice = graphql.CoerceList(v) 18874 } 18875 var err error 18876 res := make([]MarshalPanic, len(vSlice)) 18877 for i := range vSlice { 18878 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 18879 res[i], err = ec.unmarshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx, vSlice[i]) 18880 if err != nil { 18881 return nil, err 18882 } 18883 } 18884 return res, nil 18885 } 18886 18887 func (ec *executionContext) marshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx context.Context, sel ast.SelectionSet, v []MarshalPanic) graphql.Marshaler { 18888 ret := make(graphql.Array, len(v)) 18889 for i := range v { 18890 ret[i] = ec.marshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx, sel, v[i]) 18891 } 18892 18893 for _, e := range ret { 18894 if e == graphql.Null { 18895 return graphql.Null 18896 } 18897 } 18898 18899 return ret 18900 } 18901 18902 func (ec *executionContext) unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedInput(ctx context.Context, v interface{}) (*NestedInput, error) { 18903 res, err := ec.unmarshalInputNestedInput(ctx, v) 18904 return &res, graphql.ErrorOnPath(ctx, err) 18905 } 18906 18907 func (ec *executionContext) marshalNNode2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNode(ctx context.Context, sel ast.SelectionSet, v Node) graphql.Marshaler { 18908 if v == nil { 18909 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18910 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18911 } 18912 return graphql.Null 18913 } 18914 return ec._Node(ctx, sel, v) 18915 } 18916 18917 func (ec *executionContext) marshalNPet2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPet(ctx context.Context, sel ast.SelectionSet, v *Pet) graphql.Marshaler { 18918 if v == nil { 18919 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 18920 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 18921 } 18922 return graphql.Null 18923 } 18924 return ec._Pet(ctx, sel, v) 18925 } 18926 18927 func (ec *executionContext) marshalNPrimitive2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitive(ctx context.Context, sel ast.SelectionSet, v Primitive) graphql.Marshaler { 18928 return ec._Primitive(ctx, sel, &v) 18929 } 18930 18931 func (ec *executionContext) marshalNPrimitive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveᚄ(ctx context.Context, sel ast.SelectionSet, v []Primitive) graphql.Marshaler { 18932 ret := make(graphql.Array, len(v)) 18933 var wg sync.WaitGroup 18934 isLen1 := len(v) == 1 18935 if !isLen1 { 18936 wg.Add(len(v)) 18937 } 18938 for i := range v { 18939 i := i 18940 fc := &graphql.FieldContext{ 18941 Index: &i, 18942 Result: &v[i], 18943 } 18944 ctx := graphql.WithFieldContext(ctx, fc) 18945 f := func(i int) { 18946 defer func() { 18947 if r := recover(); r != nil { 18948 ec.Error(ctx, ec.Recover(ctx, r)) 18949 ret = nil 18950 } 18951 }() 18952 if !isLen1 { 18953 defer wg.Done() 18954 } 18955 ret[i] = ec.marshalNPrimitive2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitive(ctx, sel, v[i]) 18956 } 18957 if isLen1 { 18958 f(i) 18959 } else { 18960 go f(i) 18961 } 18962 18963 } 18964 wg.Wait() 18965 18966 for _, e := range ret { 18967 if e == graphql.Null { 18968 return graphql.Null 18969 } 18970 } 18971 18972 return ret 18973 } 18974 18975 func (ec *executionContext) marshalNPrimitiveString2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveString(ctx context.Context, sel ast.SelectionSet, v PrimitiveString) graphql.Marshaler { 18976 return ec._PrimitiveString(ctx, sel, &v) 18977 } 18978 18979 func (ec *executionContext) marshalNPrimitiveString2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveStringᚄ(ctx context.Context, sel ast.SelectionSet, v []PrimitiveString) graphql.Marshaler { 18980 ret := make(graphql.Array, len(v)) 18981 var wg sync.WaitGroup 18982 isLen1 := len(v) == 1 18983 if !isLen1 { 18984 wg.Add(len(v)) 18985 } 18986 for i := range v { 18987 i := i 18988 fc := &graphql.FieldContext{ 18989 Index: &i, 18990 Result: &v[i], 18991 } 18992 ctx := graphql.WithFieldContext(ctx, fc) 18993 f := func(i int) { 18994 defer func() { 18995 if r := recover(); r != nil { 18996 ec.Error(ctx, ec.Recover(ctx, r)) 18997 ret = nil 18998 } 18999 }() 19000 if !isLen1 { 19001 defer wg.Done() 19002 } 19003 ret[i] = ec.marshalNPrimitiveString2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPrimitiveString(ctx, sel, v[i]) 19004 } 19005 if isLen1 { 19006 f(i) 19007 } else { 19008 go f(i) 19009 } 19010 19011 } 19012 wg.Wait() 19013 19014 for _, e := range ret { 19015 if e == graphql.Null { 19016 return graphql.Null 19017 } 19018 } 19019 19020 return ret 19021 } 19022 19023 func (ec *executionContext) marshalNPtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v PtrToPtrOuter) graphql.Marshaler { 19024 return ec._PtrToPtrOuter(ctx, sel, &v) 19025 } 19026 19027 func (ec *executionContext) marshalNPtrToPtrOuter2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrOuter) graphql.Marshaler { 19028 if v == nil { 19029 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19030 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19031 } 19032 return graphql.Null 19033 } 19034 return ec._PtrToPtrOuter(ctx, sel, v) 19035 } 19036 19037 func (ec *executionContext) marshalNPtrToSliceContainer2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToSliceContainer(ctx context.Context, sel ast.SelectionSet, v PtrToSliceContainer) graphql.Marshaler { 19038 return ec._PtrToSliceContainer(ctx, sel, &v) 19039 } 19040 19041 func (ec *executionContext) marshalNPtrToSliceContainer2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToSliceContainer(ctx context.Context, sel ast.SelectionSet, v *PtrToSliceContainer) graphql.Marshaler { 19042 if v == nil { 19043 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19044 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19045 } 19046 return graphql.Null 19047 } 19048 return ec._PtrToSliceContainer(ctx, sel, v) 19049 } 19050 19051 func (ec *executionContext) unmarshalNRecursiveInputSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx context.Context, v interface{}) (RecursiveInputSlice, error) { 19052 res, err := ec.unmarshalInputRecursiveInputSlice(ctx, v) 19053 return res, graphql.ErrorOnPath(ctx, err) 19054 } 19055 19056 func (ec *executionContext) marshalNShapeUnion2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShapeUnion(ctx context.Context, sel ast.SelectionSet, v ShapeUnion) graphql.Marshaler { 19057 if v == nil { 19058 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19059 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19060 } 19061 return graphql.Null 19062 } 19063 return ec._ShapeUnion(ctx, sel, v) 19064 } 19065 19066 func (ec *executionContext) unmarshalNSpecialInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSpecialInput(ctx context.Context, v interface{}) (SpecialInput, error) { 19067 res, err := ec.unmarshalInputSpecialInput(ctx, v) 19068 return res, graphql.ErrorOnPath(ctx, err) 19069 } 19070 19071 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { 19072 res, err := graphql.UnmarshalString(v) 19073 return res, graphql.ErrorOnPath(ctx, err) 19074 } 19075 19076 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 19077 res := graphql.MarshalString(v) 19078 if res == graphql.Null { 19079 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19080 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19081 } 19082 } 19083 return res 19084 } 19085 19086 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 19087 var vSlice []interface{} 19088 if v != nil { 19089 vSlice = graphql.CoerceList(v) 19090 } 19091 var err error 19092 res := make([]string, len(vSlice)) 19093 for i := range vSlice { 19094 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 19095 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 19096 if err != nil { 19097 return nil, err 19098 } 19099 } 19100 return res, nil 19101 } 19102 19103 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 19104 ret := make(graphql.Array, len(v)) 19105 for i := range v { 19106 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 19107 } 19108 19109 for _, e := range ret { 19110 if e == graphql.Null { 19111 return graphql.Null 19112 } 19113 } 19114 19115 return ret 19116 } 19117 19118 func (ec *executionContext) unmarshalNString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { 19119 var vSlice []interface{} 19120 if v != nil { 19121 vSlice = graphql.CoerceList(v) 19122 } 19123 var err error 19124 res := make([]*string, len(vSlice)) 19125 for i := range vSlice { 19126 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 19127 res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) 19128 if err != nil { 19129 return nil, err 19130 } 19131 } 19132 return res, nil 19133 } 19134 19135 func (ec *executionContext) marshalNString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler { 19136 ret := make(graphql.Array, len(v)) 19137 for i := range v { 19138 ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i]) 19139 } 19140 19141 return ret 19142 } 19143 19144 func (ec *executionContext) unmarshalNString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 19145 res, err := graphql.UnmarshalString(v) 19146 return &res, graphql.ErrorOnPath(ctx, err) 19147 } 19148 19149 func (ec *executionContext) marshalNString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 19150 if v == nil { 19151 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19152 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19153 } 19154 return graphql.Null 19155 } 19156 res := graphql.MarshalString(*v) 19157 if res == graphql.Null { 19158 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19159 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19160 } 19161 } 19162 return res 19163 } 19164 19165 func (ec *executionContext) unmarshalNStringFromContextFunction2string(ctx context.Context, v interface{}) (string, error) { 19166 res, err := UnmarshalStringFromContextFunction(ctx, v) 19167 return res, graphql.ErrorOnPath(ctx, err) 19168 } 19169 19170 func (ec *executionContext) marshalNStringFromContextFunction2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 19171 res := MarshalStringFromContextFunction(v) 19172 if res == graphql.Null { 19173 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19174 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19175 } 19176 } 19177 return graphql.WrapContextMarshaler(ctx, res) 19178 } 19179 19180 func (ec *executionContext) unmarshalNStringFromContextInterface2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, v interface{}) (StringFromContextInterface, error) { 19181 var res StringFromContextInterface 19182 err := res.UnmarshalGQLContext(ctx, v) 19183 return res, graphql.ErrorOnPath(ctx, err) 19184 } 19185 19186 func (ec *executionContext) marshalNStringFromContextInterface2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, sel ast.SelectionSet, v StringFromContextInterface) graphql.Marshaler { 19187 return graphql.WrapContextMarshaler(ctx, v) 19188 } 19189 19190 func (ec *executionContext) unmarshalNStringFromContextInterface2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, v interface{}) (*StringFromContextInterface, error) { 19191 var res = new(StringFromContextInterface) 19192 err := res.UnmarshalGQLContext(ctx, v) 19193 return res, graphql.ErrorOnPath(ctx, err) 19194 } 19195 19196 func (ec *executionContext) marshalNStringFromContextInterface2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, sel ast.SelectionSet, v *StringFromContextInterface) graphql.Marshaler { 19197 if v == nil { 19198 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19199 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19200 } 19201 return graphql.Null 19202 } 19203 return graphql.WrapContextMarshaler(ctx, v) 19204 } 19205 19206 func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { 19207 res, err := graphql.UnmarshalTime(v) 19208 return res, graphql.ErrorOnPath(ctx, err) 19209 } 19210 19211 func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { 19212 res := graphql.MarshalTime(v) 19213 if res == graphql.Null { 19214 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19215 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19216 } 19217 } 19218 return res 19219 } 19220 19221 func (ec *executionContext) unmarshalNUUID2string(ctx context.Context, v interface{}) (string, error) { 19222 res, err := graphql.UnmarshalString(v) 19223 return res, graphql.ErrorOnPath(ctx, err) 19224 } 19225 19226 func (ec *executionContext) marshalNUUID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 19227 res := graphql.MarshalString(v) 19228 if res == graphql.Null { 19229 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19230 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19231 } 19232 } 19233 return res 19234 } 19235 19236 func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrOuter(ctx context.Context, v interface{}) (UpdatePtrToPtrOuter, error) { 19237 res, err := ec.unmarshalInputUpdatePtrToPtrOuter(ctx, v) 19238 return res, graphql.ErrorOnPath(ctx, err) 19239 } 19240 19241 func (ec *executionContext) marshalNUser2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUser(ctx context.Context, sel ast.SelectionSet, v User) graphql.Marshaler { 19242 return ec._User(ctx, sel, &v) 19243 } 19244 19245 func (ec *executionContext) marshalNUser2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUserᚄ(ctx context.Context, sel ast.SelectionSet, v []*User) graphql.Marshaler { 19246 ret := make(graphql.Array, len(v)) 19247 var wg sync.WaitGroup 19248 isLen1 := len(v) == 1 19249 if !isLen1 { 19250 wg.Add(len(v)) 19251 } 19252 for i := range v { 19253 i := i 19254 fc := &graphql.FieldContext{ 19255 Index: &i, 19256 Result: &v[i], 19257 } 19258 ctx := graphql.WithFieldContext(ctx, fc) 19259 f := func(i int) { 19260 defer func() { 19261 if r := recover(); r != nil { 19262 ec.Error(ctx, ec.Recover(ctx, r)) 19263 ret = nil 19264 } 19265 }() 19266 if !isLen1 { 19267 defer wg.Done() 19268 } 19269 ret[i] = ec.marshalNUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUser(ctx, sel, v[i]) 19270 } 19271 if isLen1 { 19272 f(i) 19273 } else { 19274 go f(i) 19275 } 19276 19277 } 19278 wg.Wait() 19279 19280 for _, e := range ret { 19281 if e == graphql.Null { 19282 return graphql.Null 19283 } 19284 } 19285 19286 return ret 19287 } 19288 19289 func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUser(ctx context.Context, sel ast.SelectionSet, v *User) graphql.Marshaler { 19290 if v == nil { 19291 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19292 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19293 } 19294 return graphql.Null 19295 } 19296 return ec._User(ctx, sel, v) 19297 } 19298 19299 func (ec *executionContext) marshalNWrappedMap2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedMap(ctx context.Context, sel ast.SelectionSet, v WrappedMap) graphql.Marshaler { 19300 if v == nil { 19301 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19302 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19303 } 19304 return graphql.Null 19305 } 19306 return ec._WrappedMap(ctx, sel, v) 19307 } 19308 19309 func (ec *executionContext) unmarshalNWrappedScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, v interface{}) (otherpkg.Scalar, error) { 19310 tmp, err := graphql.UnmarshalString(v) 19311 res := otherpkg.Scalar(tmp) 19312 return res, graphql.ErrorOnPath(ctx, err) 19313 } 19314 19315 func (ec *executionContext) marshalNWrappedScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, sel ast.SelectionSet, v otherpkg.Scalar) graphql.Marshaler { 19316 res := graphql.MarshalString(string(v)) 19317 if res == graphql.Null { 19318 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19319 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19320 } 19321 } 19322 return res 19323 } 19324 19325 func (ec *executionContext) marshalNWrappedSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedSlice(ctx context.Context, sel ast.SelectionSet, v WrappedSlice) graphql.Marshaler { 19326 if v == nil { 19327 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19328 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19329 } 19330 return graphql.Null 19331 } 19332 return ec._WrappedSlice(ctx, sel, v) 19333 } 19334 19335 func (ec *executionContext) marshalNWrappedStruct2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedStruct(ctx context.Context, sel ast.SelectionSet, v WrappedStruct) graphql.Marshaler { 19336 return ec._WrappedStruct(ctx, sel, &v) 19337 } 19338 19339 func (ec *executionContext) marshalNWrappedStruct2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐWrappedStruct(ctx context.Context, sel ast.SelectionSet, v *WrappedStruct) graphql.Marshaler { 19340 if v == nil { 19341 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19342 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19343 } 19344 return graphql.Null 19345 } 19346 return ec._WrappedStruct(ctx, sel, v) 19347 } 19348 19349 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { 19350 return ec.___Directive(ctx, sel, &v) 19351 } 19352 19353 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { 19354 ret := make(graphql.Array, len(v)) 19355 var wg sync.WaitGroup 19356 isLen1 := len(v) == 1 19357 if !isLen1 { 19358 wg.Add(len(v)) 19359 } 19360 for i := range v { 19361 i := i 19362 fc := &graphql.FieldContext{ 19363 Index: &i, 19364 Result: &v[i], 19365 } 19366 ctx := graphql.WithFieldContext(ctx, fc) 19367 f := func(i int) { 19368 defer func() { 19369 if r := recover(); r != nil { 19370 ec.Error(ctx, ec.Recover(ctx, r)) 19371 ret = nil 19372 } 19373 }() 19374 if !isLen1 { 19375 defer wg.Done() 19376 } 19377 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) 19378 } 19379 if isLen1 { 19380 f(i) 19381 } else { 19382 go f(i) 19383 } 19384 19385 } 19386 wg.Wait() 19387 19388 for _, e := range ret { 19389 if e == graphql.Null { 19390 return graphql.Null 19391 } 19392 } 19393 19394 return ret 19395 } 19396 19397 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { 19398 res, err := graphql.UnmarshalString(v) 19399 return res, graphql.ErrorOnPath(ctx, err) 19400 } 19401 19402 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 19403 res := graphql.MarshalString(v) 19404 if res == graphql.Null { 19405 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19406 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19407 } 19408 } 19409 return res 19410 } 19411 19412 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 19413 var vSlice []interface{} 19414 if v != nil { 19415 vSlice = graphql.CoerceList(v) 19416 } 19417 var err error 19418 res := make([]string, len(vSlice)) 19419 for i := range vSlice { 19420 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 19421 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) 19422 if err != nil { 19423 return nil, err 19424 } 19425 } 19426 return res, nil 19427 } 19428 19429 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 19430 ret := make(graphql.Array, len(v)) 19431 var wg sync.WaitGroup 19432 isLen1 := len(v) == 1 19433 if !isLen1 { 19434 wg.Add(len(v)) 19435 } 19436 for i := range v { 19437 i := i 19438 fc := &graphql.FieldContext{ 19439 Index: &i, 19440 Result: &v[i], 19441 } 19442 ctx := graphql.WithFieldContext(ctx, fc) 19443 f := func(i int) { 19444 defer func() { 19445 if r := recover(); r != nil { 19446 ec.Error(ctx, ec.Recover(ctx, r)) 19447 ret = nil 19448 } 19449 }() 19450 if !isLen1 { 19451 defer wg.Done() 19452 } 19453 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) 19454 } 19455 if isLen1 { 19456 f(i) 19457 } else { 19458 go f(i) 19459 } 19460 19461 } 19462 wg.Wait() 19463 19464 for _, e := range ret { 19465 if e == graphql.Null { 19466 return graphql.Null 19467 } 19468 } 19469 19470 return ret 19471 } 19472 19473 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { 19474 return ec.___EnumValue(ctx, sel, &v) 19475 } 19476 19477 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { 19478 return ec.___Field(ctx, sel, &v) 19479 } 19480 19481 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { 19482 return ec.___InputValue(ctx, sel, &v) 19483 } 19484 19485 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 19486 ret := make(graphql.Array, len(v)) 19487 var wg sync.WaitGroup 19488 isLen1 := len(v) == 1 19489 if !isLen1 { 19490 wg.Add(len(v)) 19491 } 19492 for i := range v { 19493 i := i 19494 fc := &graphql.FieldContext{ 19495 Index: &i, 19496 Result: &v[i], 19497 } 19498 ctx := graphql.WithFieldContext(ctx, fc) 19499 f := func(i int) { 19500 defer func() { 19501 if r := recover(); r != nil { 19502 ec.Error(ctx, ec.Recover(ctx, r)) 19503 ret = nil 19504 } 19505 }() 19506 if !isLen1 { 19507 defer wg.Done() 19508 } 19509 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 19510 } 19511 if isLen1 { 19512 f(i) 19513 } else { 19514 go f(i) 19515 } 19516 19517 } 19518 wg.Wait() 19519 19520 for _, e := range ret { 19521 if e == graphql.Null { 19522 return graphql.Null 19523 } 19524 } 19525 19526 return ret 19527 } 19528 19529 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { 19530 return ec.___Type(ctx, sel, &v) 19531 } 19532 19533 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 19534 ret := make(graphql.Array, len(v)) 19535 var wg sync.WaitGroup 19536 isLen1 := len(v) == 1 19537 if !isLen1 { 19538 wg.Add(len(v)) 19539 } 19540 for i := range v { 19541 i := i 19542 fc := &graphql.FieldContext{ 19543 Index: &i, 19544 Result: &v[i], 19545 } 19546 ctx := graphql.WithFieldContext(ctx, fc) 19547 f := func(i int) { 19548 defer func() { 19549 if r := recover(); r != nil { 19550 ec.Error(ctx, ec.Recover(ctx, r)) 19551 ret = nil 19552 } 19553 }() 19554 if !isLen1 { 19555 defer wg.Done() 19556 } 19557 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 19558 } 19559 if isLen1 { 19560 f(i) 19561 } else { 19562 go f(i) 19563 } 19564 19565 } 19566 wg.Wait() 19567 19568 for _, e := range ret { 19569 if e == graphql.Null { 19570 return graphql.Null 19571 } 19572 } 19573 19574 return ret 19575 } 19576 19577 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 19578 if v == nil { 19579 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19580 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19581 } 19582 return graphql.Null 19583 } 19584 return ec.___Type(ctx, sel, v) 19585 } 19586 19587 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { 19588 res, err := graphql.UnmarshalString(v) 19589 return res, graphql.ErrorOnPath(ctx, err) 19590 } 19591 19592 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 19593 res := graphql.MarshalString(v) 19594 if res == graphql.Null { 19595 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 19596 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 19597 } 19598 } 19599 return res 19600 } 19601 19602 func (ec *executionContext) marshalOAnimal2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐAnimal(ctx context.Context, sel ast.SelectionSet, v Animal) graphql.Marshaler { 19603 if v == nil { 19604 return graphql.Null 19605 } 19606 return ec._Animal(ctx, sel, v) 19607 } 19608 19609 func (ec *executionContext) marshalOAutobind2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐAutobind(ctx context.Context, sel ast.SelectionSet, v *Autobind) graphql.Marshaler { 19610 if v == nil { 19611 return graphql.Null 19612 } 19613 return ec._Autobind(ctx, sel, v) 19614 } 19615 19616 func (ec *executionContext) marshalOBackedByInterface2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐBackedByInterface(ctx context.Context, sel ast.SelectionSet, v BackedByInterface) graphql.Marshaler { 19617 if v == nil { 19618 return graphql.Null 19619 } 19620 return ec._BackedByInterface(ctx, sel, v) 19621 } 19622 19623 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 19624 res, err := graphql.UnmarshalBoolean(v) 19625 return res, graphql.ErrorOnPath(ctx, err) 19626 } 19627 19628 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 19629 res := graphql.MarshalBoolean(v) 19630 return res 19631 } 19632 19633 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { 19634 if v == nil { 19635 return nil, nil 19636 } 19637 res, err := graphql.UnmarshalBoolean(v) 19638 return &res, graphql.ErrorOnPath(ctx, err) 19639 } 19640 19641 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { 19642 if v == nil { 19643 return graphql.Null 19644 } 19645 res := graphql.MarshalBoolean(*v) 19646 return res 19647 } 19648 19649 func (ec *executionContext) unmarshalOChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { 19650 if v == nil { 19651 return nil, nil 19652 } 19653 return v.(map[string]interface{}), nil 19654 } 19655 19656 func (ec *executionContext) marshalOCheckIssue8962ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx context.Context, sel ast.SelectionSet, v []*CheckIssue896) graphql.Marshaler { 19657 if v == nil { 19658 return graphql.Null 19659 } 19660 ret := make(graphql.Array, len(v)) 19661 var wg sync.WaitGroup 19662 isLen1 := len(v) == 1 19663 if !isLen1 { 19664 wg.Add(len(v)) 19665 } 19666 for i := range v { 19667 i := i 19668 fc := &graphql.FieldContext{ 19669 Index: &i, 19670 Result: &v[i], 19671 } 19672 ctx := graphql.WithFieldContext(ctx, fc) 19673 f := func(i int) { 19674 defer func() { 19675 if r := recover(); r != nil { 19676 ec.Error(ctx, ec.Recover(ctx, r)) 19677 ret = nil 19678 } 19679 }() 19680 if !isLen1 { 19681 defer wg.Done() 19682 } 19683 ret[i] = ec.marshalOCheckIssue8962ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx, sel, v[i]) 19684 } 19685 if isLen1 { 19686 f(i) 19687 } else { 19688 go f(i) 19689 } 19690 19691 } 19692 wg.Wait() 19693 19694 return ret 19695 } 19696 19697 func (ec *executionContext) marshalOCheckIssue8962ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896ᚄ(ctx context.Context, sel ast.SelectionSet, v []*CheckIssue896) graphql.Marshaler { 19698 if v == nil { 19699 return graphql.Null 19700 } 19701 ret := make(graphql.Array, len(v)) 19702 var wg sync.WaitGroup 19703 isLen1 := len(v) == 1 19704 if !isLen1 { 19705 wg.Add(len(v)) 19706 } 19707 for i := range v { 19708 i := i 19709 fc := &graphql.FieldContext{ 19710 Index: &i, 19711 Result: &v[i], 19712 } 19713 ctx := graphql.WithFieldContext(ctx, fc) 19714 f := func(i int) { 19715 defer func() { 19716 if r := recover(); r != nil { 19717 ec.Error(ctx, ec.Recover(ctx, r)) 19718 ret = nil 19719 } 19720 }() 19721 if !isLen1 { 19722 defer wg.Done() 19723 } 19724 ret[i] = ec.marshalNCheckIssue8962ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx, sel, v[i]) 19725 } 19726 if isLen1 { 19727 f(i) 19728 } else { 19729 go f(i) 19730 } 19731 19732 } 19733 wg.Wait() 19734 19735 for _, e := range ret { 19736 if e == graphql.Null { 19737 return graphql.Null 19738 } 19739 } 19740 19741 return ret 19742 } 19743 19744 func (ec *executionContext) marshalOCheckIssue8962ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCheckIssue896(ctx context.Context, sel ast.SelectionSet, v *CheckIssue896) graphql.Marshaler { 19745 if v == nil { 19746 return graphql.Null 19747 } 19748 return ec._CheckIssue896(ctx, sel, v) 19749 } 19750 19751 func (ec *executionContext) marshalOCircle2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCircle(ctx context.Context, sel ast.SelectionSet, v *Circle) graphql.Marshaler { 19752 if v == nil { 19753 return graphql.Null 19754 } 19755 return ec._Circle(ctx, sel, v) 19756 } 19757 19758 func (ec *executionContext) marshalOCoordinates2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCoordinates(ctx context.Context, sel ast.SelectionSet, v Coordinates) graphql.Marshaler { 19759 return ec._Coordinates(ctx, sel, &v) 19760 } 19761 19762 func (ec *executionContext) unmarshalODefaultScalarImplementation2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 19763 if v == nil { 19764 return nil, nil 19765 } 19766 res, err := graphql.UnmarshalString(v) 19767 return &res, graphql.ErrorOnPath(ctx, err) 19768 } 19769 19770 func (ec *executionContext) marshalODefaultScalarImplementation2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 19771 if v == nil { 19772 return graphql.Null 19773 } 19774 res := graphql.MarshalString(*v) 19775 return res 19776 } 19777 19778 func (ec *executionContext) marshalOEmbeddedCase12ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase1(ctx context.Context, sel ast.SelectionSet, v *EmbeddedCase1) graphql.Marshaler { 19779 if v == nil { 19780 return graphql.Null 19781 } 19782 return ec._EmbeddedCase1(ctx, sel, v) 19783 } 19784 19785 func (ec *executionContext) marshalOEmbeddedCase22ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase2(ctx context.Context, sel ast.SelectionSet, v *EmbeddedCase2) graphql.Marshaler { 19786 if v == nil { 19787 return graphql.Null 19788 } 19789 return ec._EmbeddedCase2(ctx, sel, v) 19790 } 19791 19792 func (ec *executionContext) marshalOEmbeddedCase32ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmbeddedCase3(ctx context.Context, sel ast.SelectionSet, v *EmbeddedCase3) graphql.Marshaler { 19793 if v == nil { 19794 return graphql.Null 19795 } 19796 return ec._EmbeddedCase3(ctx, sel, v) 19797 } 19798 19799 func (ec *executionContext) marshalOError2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx context.Context, sel ast.SelectionSet, v []*Error) graphql.Marshaler { 19800 if v == nil { 19801 return graphql.Null 19802 } 19803 ret := make(graphql.Array, len(v)) 19804 var wg sync.WaitGroup 19805 isLen1 := len(v) == 1 19806 if !isLen1 { 19807 wg.Add(len(v)) 19808 } 19809 for i := range v { 19810 i := i 19811 fc := &graphql.FieldContext{ 19812 Index: &i, 19813 Result: &v[i], 19814 } 19815 ctx := graphql.WithFieldContext(ctx, fc) 19816 f := func(i int) { 19817 defer func() { 19818 if r := recover(); r != nil { 19819 ec.Error(ctx, ec.Recover(ctx, r)) 19820 ret = nil 19821 } 19822 }() 19823 if !isLen1 { 19824 defer wg.Done() 19825 } 19826 ret[i] = ec.marshalOError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, sel, v[i]) 19827 } 19828 if isLen1 { 19829 f(i) 19830 } else { 19831 go f(i) 19832 } 19833 19834 } 19835 wg.Wait() 19836 19837 return ret 19838 } 19839 19840 func (ec *executionContext) marshalOError2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []*Error) graphql.Marshaler { 19841 if v == nil { 19842 return graphql.Null 19843 } 19844 ret := make(graphql.Array, len(v)) 19845 var wg sync.WaitGroup 19846 isLen1 := len(v) == 1 19847 if !isLen1 { 19848 wg.Add(len(v)) 19849 } 19850 for i := range v { 19851 i := i 19852 fc := &graphql.FieldContext{ 19853 Index: &i, 19854 Result: &v[i], 19855 } 19856 ctx := graphql.WithFieldContext(ctx, fc) 19857 f := func(i int) { 19858 defer func() { 19859 if r := recover(); r != nil { 19860 ec.Error(ctx, ec.Recover(ctx, r)) 19861 ret = nil 19862 } 19863 }() 19864 if !isLen1 { 19865 defer wg.Done() 19866 } 19867 ret[i] = ec.marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx, sel, v[i]) 19868 } 19869 if isLen1 { 19870 f(i) 19871 } else { 19872 go f(i) 19873 } 19874 19875 } 19876 wg.Wait() 19877 19878 for _, e := range ret { 19879 if e == graphql.Null { 19880 return graphql.Null 19881 } 19882 } 19883 19884 return ret 19885 } 19886 19887 func (ec *executionContext) marshalOError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐError(ctx context.Context, sel ast.SelectionSet, v *Error) graphql.Marshaler { 19888 if v == nil { 19889 return graphql.Null 19890 } 19891 return ec._Error(ctx, sel, v) 19892 } 19893 19894 func (ec *executionContext) marshalOErrors2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐErrors(ctx context.Context, sel ast.SelectionSet, v *Errors) graphql.Marshaler { 19895 if v == nil { 19896 return graphql.Null 19897 } 19898 return ec._Errors(ctx, sel, v) 19899 } 19900 19901 func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v interface{}) (float64, error) { 19902 res, err := graphql.UnmarshalFloatContext(ctx, v) 19903 return res, graphql.ErrorOnPath(ctx, err) 19904 } 19905 19906 func (ec *executionContext) marshalOFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { 19907 res := graphql.MarshalFloatContext(v) 19908 return graphql.WrapContextMarshaler(ctx, res) 19909 } 19910 19911 func (ec *executionContext) unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx context.Context, v interface{}) (*InnerDirectives, error) { 19912 if v == nil { 19913 return nil, nil 19914 } 19915 res, err := ec.unmarshalInputInnerDirectives(ctx, v) 19916 return &res, graphql.ErrorOnPath(ctx, err) 19917 } 19918 19919 func (ec *executionContext) unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx context.Context, v interface{}) (*InputDirectives, error) { 19920 if v == nil { 19921 return nil, nil 19922 } 19923 res, err := ec.unmarshalInputInputDirectives(ctx, v) 19924 return &res, graphql.ErrorOnPath(ctx, err) 19925 } 19926 19927 func (ec *executionContext) unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputWithEnumValue(ctx context.Context, v interface{}) (*InputWithEnumValue, error) { 19928 if v == nil { 19929 return nil, nil 19930 } 19931 res, err := ec.unmarshalInputInputWithEnumValue(ctx, v) 19932 return &res, graphql.ErrorOnPath(ctx, err) 19933 } 19934 19935 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { 19936 if v == nil { 19937 return nil, nil 19938 } 19939 res, err := graphql.UnmarshalInt(v) 19940 return &res, graphql.ErrorOnPath(ctx, err) 19941 } 19942 19943 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { 19944 if v == nil { 19945 return graphql.Null 19946 } 19947 res := graphql.MarshalInt(*v) 19948 return res 19949 } 19950 19951 func (ec *executionContext) marshalOInvalidIdentifier2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋinvalidᚑpackagenameᚐInvalidIdentifier(ctx context.Context, sel ast.SelectionSet, v *invalid_packagename.InvalidIdentifier) graphql.Marshaler { 19952 if v == nil { 19953 return graphql.Null 19954 } 19955 return ec._InvalidIdentifier(ctx, sel, v) 19956 } 19957 19958 func (ec *executionContext) marshalOIt2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋintrospectionᚐIt(ctx context.Context, sel ast.SelectionSet, v *introspection1.It) graphql.Marshaler { 19959 if v == nil { 19960 return graphql.Null 19961 } 19962 return ec._It(ctx, sel, v) 19963 } 19964 19965 func (ec *executionContext) unmarshalOMapStringInterfaceInput2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { 19966 if v == nil { 19967 return nil, nil 19968 } 19969 return v.(map[string]interface{}), nil 19970 } 19971 19972 func (ec *executionContext) marshalOMapStringInterfaceType2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { 19973 if v == nil { 19974 return graphql.Null 19975 } 19976 return ec._MapStringInterfaceType(ctx, sel, v) 19977 } 19978 19979 func (ec *executionContext) marshalOModelMethods2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐModelMethods(ctx context.Context, sel ast.SelectionSet, v *ModelMethods) graphql.Marshaler { 19980 if v == nil { 19981 return graphql.Null 19982 } 19983 return ec._ModelMethods(ctx, sel, v) 19984 } 19985 19986 func (ec *executionContext) unmarshalONestedMapInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedMapInput(ctx context.Context, v interface{}) (*NestedMapInput, error) { 19987 if v == nil { 19988 return nil, nil 19989 } 19990 res, err := ec.unmarshalInputNestedMapInput(ctx, v) 19991 return &res, graphql.ErrorOnPath(ctx, err) 19992 } 19993 19994 func (ec *executionContext) marshalOObjectDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐObjectDirectives(ctx context.Context, sel ast.SelectionSet, v *ObjectDirectives) graphql.Marshaler { 19995 if v == nil { 19996 return graphql.Null 19997 } 19998 return ec._ObjectDirectives(ctx, sel, v) 19999 } 20000 20001 func (ec *executionContext) marshalOObjectDirectivesWithCustomGoModel2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐObjectDirectivesWithCustomGoModel(ctx context.Context, sel ast.SelectionSet, v *ObjectDirectivesWithCustomGoModel) graphql.Marshaler { 20002 if v == nil { 20003 return graphql.Null 20004 } 20005 return ec._ObjectDirectivesWithCustomGoModel(ctx, sel, v) 20006 } 20007 20008 func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) ([][]*OuterInput, error) { 20009 if v == nil { 20010 return nil, nil 20011 } 20012 var vSlice []interface{} 20013 if v != nil { 20014 vSlice = graphql.CoerceList(v) 20015 } 20016 var err error 20017 res := make([][]*OuterInput, len(vSlice)) 20018 for i := range vSlice { 20019 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 20020 res[i], err = ec.unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx, vSlice[i]) 20021 if err != nil { 20022 return nil, err 20023 } 20024 } 20025 return res, nil 20026 } 20027 20028 func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) ([]*OuterInput, error) { 20029 if v == nil { 20030 return nil, nil 20031 } 20032 var vSlice []interface{} 20033 if v != nil { 20034 vSlice = graphql.CoerceList(v) 20035 } 20036 var err error 20037 res := make([]*OuterInput, len(vSlice)) 20038 for i := range vSlice { 20039 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 20040 res[i], err = ec.unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx, vSlice[i]) 20041 if err != nil { 20042 return nil, err 20043 } 20044 } 20045 return res, nil 20046 } 20047 20048 func (ec *executionContext) unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) (*OuterInput, error) { 20049 if v == nil { 20050 return nil, nil 20051 } 20052 res, err := ec.unmarshalInputOuterInput(ctx, v) 20053 return &res, graphql.ErrorOnPath(ctx, err) 20054 } 20055 20056 func (ec *executionContext) marshalOOuterObject2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx context.Context, sel ast.SelectionSet, v [][]*OuterObject) graphql.Marshaler { 20057 if v == nil { 20058 return graphql.Null 20059 } 20060 ret := make(graphql.Array, len(v)) 20061 var wg sync.WaitGroup 20062 isLen1 := len(v) == 1 20063 if !isLen1 { 20064 wg.Add(len(v)) 20065 } 20066 for i := range v { 20067 i := i 20068 fc := &graphql.FieldContext{ 20069 Index: &i, 20070 Result: &v[i], 20071 } 20072 ctx := graphql.WithFieldContext(ctx, fc) 20073 f := func(i int) { 20074 defer func() { 20075 if r := recover(); r != nil { 20076 ec.Error(ctx, ec.Recover(ctx, r)) 20077 ret = nil 20078 } 20079 }() 20080 if !isLen1 { 20081 defer wg.Done() 20082 } 20083 ret[i] = ec.marshalOOuterObject2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx, sel, v[i]) 20084 } 20085 if isLen1 { 20086 f(i) 20087 } else { 20088 go f(i) 20089 } 20090 20091 } 20092 wg.Wait() 20093 20094 return ret 20095 } 20096 20097 func (ec *executionContext) marshalOOuterObject2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx context.Context, sel ast.SelectionSet, v []*OuterObject) graphql.Marshaler { 20098 if v == nil { 20099 return graphql.Null 20100 } 20101 ret := make(graphql.Array, len(v)) 20102 var wg sync.WaitGroup 20103 isLen1 := len(v) == 1 20104 if !isLen1 { 20105 wg.Add(len(v)) 20106 } 20107 for i := range v { 20108 i := i 20109 fc := &graphql.FieldContext{ 20110 Index: &i, 20111 Result: &v[i], 20112 } 20113 ctx := graphql.WithFieldContext(ctx, fc) 20114 f := func(i int) { 20115 defer func() { 20116 if r := recover(); r != nil { 20117 ec.Error(ctx, ec.Recover(ctx, r)) 20118 ret = nil 20119 } 20120 }() 20121 if !isLen1 { 20122 defer wg.Done() 20123 } 20124 ret[i] = ec.marshalOOuterObject2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx, sel, v[i]) 20125 } 20126 if isLen1 { 20127 f(i) 20128 } else { 20129 go f(i) 20130 } 20131 20132 } 20133 wg.Wait() 20134 20135 return ret 20136 } 20137 20138 func (ec *executionContext) marshalOOuterObject2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterObject(ctx context.Context, sel ast.SelectionSet, v *OuterObject) graphql.Marshaler { 20139 if v == nil { 20140 return graphql.Null 20141 } 20142 return ec._OuterObject(ctx, sel, v) 20143 } 20144 20145 func (ec *executionContext) marshalOOverlappingFields2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOverlappingFields(ctx context.Context, sel ast.SelectionSet, v *OverlappingFields) graphql.Marshaler { 20146 if v == nil { 20147 return graphql.Null 20148 } 20149 return ec._OverlappingFields(ctx, sel, v) 20150 } 20151 20152 func (ec *executionContext) marshalOPanics2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPanics(ctx context.Context, sel ast.SelectionSet, v *Panics) graphql.Marshaler { 20153 if v == nil { 20154 return graphql.Null 20155 } 20156 return ec._Panics(ctx, sel, v) 20157 } 20158 20159 func (ec *executionContext) marshalOPet2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPetᚄ(ctx context.Context, sel ast.SelectionSet, v []*Pet) graphql.Marshaler { 20160 if v == nil { 20161 return graphql.Null 20162 } 20163 ret := make(graphql.Array, len(v)) 20164 var wg sync.WaitGroup 20165 isLen1 := len(v) == 1 20166 if !isLen1 { 20167 wg.Add(len(v)) 20168 } 20169 for i := range v { 20170 i := i 20171 fc := &graphql.FieldContext{ 20172 Index: &i, 20173 Result: &v[i], 20174 } 20175 ctx := graphql.WithFieldContext(ctx, fc) 20176 f := func(i int) { 20177 defer func() { 20178 if r := recover(); r != nil { 20179 ec.Error(ctx, ec.Recover(ctx, r)) 20180 ret = nil 20181 } 20182 }() 20183 if !isLen1 { 20184 defer wg.Done() 20185 } 20186 ret[i] = ec.marshalNPet2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPet(ctx, sel, v[i]) 20187 } 20188 if isLen1 { 20189 f(i) 20190 } else { 20191 go f(i) 20192 } 20193 20194 } 20195 wg.Wait() 20196 20197 for _, e := range ret { 20198 if e == graphql.Null { 20199 return graphql.Null 20200 } 20201 } 20202 20203 return ret 20204 } 20205 20206 func (ec *executionContext) marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrInner) graphql.Marshaler { 20207 if v == nil { 20208 return graphql.Null 20209 } 20210 return ec._PtrToPtrInner(ctx, sel, v) 20211 } 20212 20213 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v **PtrToPtrInner) graphql.Marshaler { 20214 if v == nil { 20215 return graphql.Null 20216 } 20217 return ec.marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 20218 } 20219 20220 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ***PtrToPtrInner) graphql.Marshaler { 20221 if v == nil { 20222 return graphql.Null 20223 } 20224 return ec.marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 20225 } 20226 20227 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ****PtrToPtrInner) graphql.Marshaler { 20228 if v == nil { 20229 return graphql.Null 20230 } 20231 return ec.marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 20232 } 20233 20234 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *****PtrToPtrInner) graphql.Marshaler { 20235 if v == nil { 20236 return graphql.Null 20237 } 20238 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 20239 } 20240 20241 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ******PtrToPtrInner) graphql.Marshaler { 20242 if v == nil { 20243 return graphql.Null 20244 } 20245 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 20246 } 20247 20248 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *******PtrToPtrInner) graphql.Marshaler { 20249 if v == nil { 20250 return graphql.Null 20251 } 20252 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) 20253 } 20254 20255 func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSliceᚄ(ctx context.Context, v interface{}) ([]RecursiveInputSlice, error) { 20256 if v == nil { 20257 return nil, nil 20258 } 20259 var vSlice []interface{} 20260 if v != nil { 20261 vSlice = graphql.CoerceList(v) 20262 } 20263 var err error 20264 res := make([]RecursiveInputSlice, len(vSlice)) 20265 for i := range vSlice { 20266 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 20267 res[i], err = ec.unmarshalNRecursiveInputSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx, vSlice[i]) 20268 if err != nil { 20269 return nil, err 20270 } 20271 } 20272 return res, nil 20273 } 20274 20275 func (ec *executionContext) unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx context.Context, v interface{}) (*RecursiveInputSlice, error) { 20276 if v == nil { 20277 return nil, nil 20278 } 20279 res, err := ec.unmarshalInputRecursiveInputSlice(ctx, v) 20280 return &res, graphql.ErrorOnPath(ctx, err) 20281 } 20282 20283 func (ec *executionContext) marshalOShape2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx context.Context, sel ast.SelectionSet, v Shape) graphql.Marshaler { 20284 if v == nil { 20285 return graphql.Null 20286 } 20287 return ec._Shape(ctx, sel, v) 20288 } 20289 20290 func (ec *executionContext) marshalOShape2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx context.Context, sel ast.SelectionSet, v []Shape) graphql.Marshaler { 20291 if v == nil { 20292 return graphql.Null 20293 } 20294 ret := make(graphql.Array, len(v)) 20295 var wg sync.WaitGroup 20296 isLen1 := len(v) == 1 20297 if !isLen1 { 20298 wg.Add(len(v)) 20299 } 20300 for i := range v { 20301 i := i 20302 fc := &graphql.FieldContext{ 20303 Index: &i, 20304 Result: &v[i], 20305 } 20306 ctx := graphql.WithFieldContext(ctx, fc) 20307 f := func(i int) { 20308 defer func() { 20309 if r := recover(); r != nil { 20310 ec.Error(ctx, ec.Recover(ctx, r)) 20311 ret = nil 20312 } 20313 }() 20314 if !isLen1 { 20315 defer wg.Done() 20316 } 20317 ret[i] = ec.marshalOShape2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐShape(ctx, sel, v[i]) 20318 } 20319 if isLen1 { 20320 f(i) 20321 } else { 20322 go f(i) 20323 } 20324 20325 } 20326 wg.Wait() 20327 20328 return ret 20329 } 20330 20331 func (ec *executionContext) marshalOSlices2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSlices(ctx context.Context, sel ast.SelectionSet, v *Slices) graphql.Marshaler { 20332 if v == nil { 20333 return graphql.Null 20334 } 20335 return ec._Slices(ctx, sel, v) 20336 } 20337 20338 func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { 20339 res, err := graphql.UnmarshalString(v) 20340 return res, graphql.ErrorOnPath(ctx, err) 20341 } 20342 20343 func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 20344 res := graphql.MarshalString(v) 20345 return res 20346 } 20347 20348 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 20349 if v == nil { 20350 return nil, nil 20351 } 20352 var vSlice []interface{} 20353 if v != nil { 20354 vSlice = graphql.CoerceList(v) 20355 } 20356 var err error 20357 res := make([]string, len(vSlice)) 20358 for i := range vSlice { 20359 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 20360 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 20361 if err != nil { 20362 return nil, err 20363 } 20364 } 20365 return res, nil 20366 } 20367 20368 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 20369 if v == nil { 20370 return graphql.Null 20371 } 20372 ret := make(graphql.Array, len(v)) 20373 for i := range v { 20374 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 20375 } 20376 20377 for _, e := range ret { 20378 if e == graphql.Null { 20379 return graphql.Null 20380 } 20381 } 20382 20383 return ret 20384 } 20385 20386 func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { 20387 if v == nil { 20388 return nil, nil 20389 } 20390 var vSlice []interface{} 20391 if v != nil { 20392 vSlice = graphql.CoerceList(v) 20393 } 20394 var err error 20395 res := make([]*string, len(vSlice)) 20396 for i := range vSlice { 20397 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 20398 res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) 20399 if err != nil { 20400 return nil, err 20401 } 20402 } 20403 return res, nil 20404 } 20405 20406 func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler { 20407 if v == nil { 20408 return graphql.Null 20409 } 20410 ret := make(graphql.Array, len(v)) 20411 for i := range v { 20412 ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i]) 20413 } 20414 20415 return ret 20416 } 20417 20418 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 20419 if v == nil { 20420 return nil, nil 20421 } 20422 res, err := graphql.UnmarshalString(v) 20423 return &res, graphql.ErrorOnPath(ctx, err) 20424 } 20425 20426 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 20427 if v == nil { 20428 return graphql.Null 20429 } 20430 res := graphql.MarshalString(*v) 20431 return res 20432 } 20433 20434 func (ec *executionContext) unmarshalOString2ᚖᚕstringᚄ(ctx context.Context, v interface{}) (*[]string, error) { 20435 if v == nil { 20436 return nil, nil 20437 } 20438 res, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) 20439 return &res, graphql.ErrorOnPath(ctx, err) 20440 } 20441 20442 func (ec *executionContext) marshalOString2ᚖᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v *[]string) graphql.Marshaler { 20443 return ec.marshalOString2ᚕstringᚄ(ctx, sel, *v) 20444 } 20445 20446 func (ec *executionContext) marshalOTestUnion2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐTestUnion(ctx context.Context, sel ast.SelectionSet, v TestUnion) graphql.Marshaler { 20447 if v == nil { 20448 return graphql.Null 20449 } 20450 return ec._TestUnion(ctx, sel, v) 20451 } 20452 20453 func (ec *executionContext) unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx context.Context, v interface{}) (*ThirdParty, error) { 20454 if v == nil { 20455 return nil, nil 20456 } 20457 res, err := UnmarshalThirdParty(v) 20458 return &res, graphql.ErrorOnPath(ctx, err) 20459 } 20460 20461 func (ec *executionContext) marshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx context.Context, sel ast.SelectionSet, v *ThirdParty) graphql.Marshaler { 20462 if v == nil { 20463 return graphql.Null 20464 } 20465 res := MarshalThirdParty(*v) 20466 return res 20467 } 20468 20469 func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { 20470 if v == nil { 20471 return nil, nil 20472 } 20473 res, err := graphql.UnmarshalTime(v) 20474 return &res, graphql.ErrorOnPath(ctx, err) 20475 } 20476 20477 func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { 20478 if v == nil { 20479 return graphql.Null 20480 } 20481 res := graphql.MarshalTime(*v) 20482 return res 20483 } 20484 20485 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*UpdatePtrToPtrInner, error) { 20486 if v == nil { 20487 return nil, nil 20488 } 20489 res, err := ec.unmarshalInputUpdatePtrToPtrInner(ctx, v) 20490 return &res, graphql.ErrorOnPath(ctx, err) 20491 } 20492 20493 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (**UpdatePtrToPtrInner, error) { 20494 var pres *UpdatePtrToPtrInner 20495 if v != nil { 20496 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 20497 if err != nil { 20498 return nil, graphql.ErrorOnPath(ctx, err) 20499 } 20500 pres = res 20501 } 20502 return &pres, nil 20503 } 20504 20505 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (***UpdatePtrToPtrInner, error) { 20506 var pres **UpdatePtrToPtrInner 20507 if v != nil { 20508 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 20509 if err != nil { 20510 return nil, graphql.ErrorOnPath(ctx, err) 20511 } 20512 pres = res 20513 } 20514 return &pres, nil 20515 } 20516 20517 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (****UpdatePtrToPtrInner, error) { 20518 var pres ***UpdatePtrToPtrInner 20519 if v != nil { 20520 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 20521 if err != nil { 20522 return nil, graphql.ErrorOnPath(ctx, err) 20523 } 20524 pres = res 20525 } 20526 return &pres, nil 20527 } 20528 20529 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*****UpdatePtrToPtrInner, error) { 20530 var pres ****UpdatePtrToPtrInner 20531 if v != nil { 20532 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 20533 if err != nil { 20534 return nil, graphql.ErrorOnPath(ctx, err) 20535 } 20536 pres = res 20537 } 20538 return &pres, nil 20539 } 20540 20541 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (******UpdatePtrToPtrInner, error) { 20542 var pres *****UpdatePtrToPtrInner 20543 if v != nil { 20544 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 20545 if err != nil { 20546 return nil, graphql.ErrorOnPath(ctx, err) 20547 } 20548 pres = res 20549 } 20550 return &pres, nil 20551 } 20552 20553 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*******UpdatePtrToPtrInner, error) { 20554 var pres ******UpdatePtrToPtrInner 20555 if v != nil { 20556 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 20557 if err != nil { 20558 return nil, graphql.ErrorOnPath(ctx, err) 20559 } 20560 pres = res 20561 } 20562 return &pres, nil 20563 } 20564 20565 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (********UpdatePtrToPtrInner, error) { 20566 var pres *******UpdatePtrToPtrInner 20567 if v != nil { 20568 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) 20569 if err != nil { 20570 return nil, graphql.ErrorOnPath(ctx, err) 20571 } 20572 pres = res 20573 } 20574 return &pres, nil 20575 } 20576 20577 func (ec *executionContext) marshalOVOkCaseNil2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVOkCaseNil(ctx context.Context, sel ast.SelectionSet, v *VOkCaseNil) graphql.Marshaler { 20578 if v == nil { 20579 return graphql.Null 20580 } 20581 return ec._VOkCaseNil(ctx, sel, v) 20582 } 20583 20584 func (ec *executionContext) marshalOVOkCaseValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVOkCaseValue(ctx context.Context, sel ast.SelectionSet, v *VOkCaseValue) graphql.Marshaler { 20585 if v == nil { 20586 return graphql.Null 20587 } 20588 return ec._VOkCaseValue(ctx, sel, v) 20589 } 20590 20591 func (ec *executionContext) unmarshalOValidInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidInput(ctx context.Context, v interface{}) (*ValidInput, error) { 20592 if v == nil { 20593 return nil, nil 20594 } 20595 res, err := ec.unmarshalInputValidInput(ctx, v) 20596 return &res, graphql.ErrorOnPath(ctx, err) 20597 } 20598 20599 func (ec *executionContext) marshalOValidType2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidType(ctx context.Context, sel ast.SelectionSet, v *ValidType) graphql.Marshaler { 20600 if v == nil { 20601 return graphql.Null 20602 } 20603 return ec._ValidType(ctx, sel, v) 20604 } 20605 20606 func (ec *executionContext) marshalOVariadicModel2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐVariadicModel(ctx context.Context, sel ast.SelectionSet, v *VariadicModel) graphql.Marshaler { 20607 if v == nil { 20608 return graphql.Null 20609 } 20610 return ec._VariadicModel(ctx, sel, v) 20611 } 20612 20613 func (ec *executionContext) unmarshalOWrappedScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, v interface{}) (*otherpkg.Scalar, error) { 20614 if v == nil { 20615 return nil, nil 20616 } 20617 tmp, err := graphql.UnmarshalString(v) 20618 res := otherpkg.Scalar(tmp) 20619 return &res, graphql.ErrorOnPath(ctx, err) 20620 } 20621 20622 func (ec *executionContext) marshalOWrappedScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, sel ast.SelectionSet, v *otherpkg.Scalar) graphql.Marshaler { 20623 if v == nil { 20624 return graphql.Null 20625 } 20626 res := graphql.MarshalString(string(*v)) 20627 return res 20628 } 20629 20630 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { 20631 if v == nil { 20632 return graphql.Null 20633 } 20634 ret := make(graphql.Array, len(v)) 20635 var wg sync.WaitGroup 20636 isLen1 := len(v) == 1 20637 if !isLen1 { 20638 wg.Add(len(v)) 20639 } 20640 for i := range v { 20641 i := i 20642 fc := &graphql.FieldContext{ 20643 Index: &i, 20644 Result: &v[i], 20645 } 20646 ctx := graphql.WithFieldContext(ctx, fc) 20647 f := func(i int) { 20648 defer func() { 20649 if r := recover(); r != nil { 20650 ec.Error(ctx, ec.Recover(ctx, r)) 20651 ret = nil 20652 } 20653 }() 20654 if !isLen1 { 20655 defer wg.Done() 20656 } 20657 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) 20658 } 20659 if isLen1 { 20660 f(i) 20661 } else { 20662 go f(i) 20663 } 20664 20665 } 20666 wg.Wait() 20667 20668 for _, e := range ret { 20669 if e == graphql.Null { 20670 return graphql.Null 20671 } 20672 } 20673 20674 return ret 20675 } 20676 20677 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { 20678 if v == nil { 20679 return graphql.Null 20680 } 20681 ret := make(graphql.Array, len(v)) 20682 var wg sync.WaitGroup 20683 isLen1 := len(v) == 1 20684 if !isLen1 { 20685 wg.Add(len(v)) 20686 } 20687 for i := range v { 20688 i := i 20689 fc := &graphql.FieldContext{ 20690 Index: &i, 20691 Result: &v[i], 20692 } 20693 ctx := graphql.WithFieldContext(ctx, fc) 20694 f := func(i int) { 20695 defer func() { 20696 if r := recover(); r != nil { 20697 ec.Error(ctx, ec.Recover(ctx, r)) 20698 ret = nil 20699 } 20700 }() 20701 if !isLen1 { 20702 defer wg.Done() 20703 } 20704 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) 20705 } 20706 if isLen1 { 20707 f(i) 20708 } else { 20709 go f(i) 20710 } 20711 20712 } 20713 wg.Wait() 20714 20715 for _, e := range ret { 20716 if e == graphql.Null { 20717 return graphql.Null 20718 } 20719 } 20720 20721 return ret 20722 } 20723 20724 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 20725 if v == nil { 20726 return graphql.Null 20727 } 20728 ret := make(graphql.Array, len(v)) 20729 var wg sync.WaitGroup 20730 isLen1 := len(v) == 1 20731 if !isLen1 { 20732 wg.Add(len(v)) 20733 } 20734 for i := range v { 20735 i := i 20736 fc := &graphql.FieldContext{ 20737 Index: &i, 20738 Result: &v[i], 20739 } 20740 ctx := graphql.WithFieldContext(ctx, fc) 20741 f := func(i int) { 20742 defer func() { 20743 if r := recover(); r != nil { 20744 ec.Error(ctx, ec.Recover(ctx, r)) 20745 ret = nil 20746 } 20747 }() 20748 if !isLen1 { 20749 defer wg.Done() 20750 } 20751 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 20752 } 20753 if isLen1 { 20754 f(i) 20755 } else { 20756 go f(i) 20757 } 20758 20759 } 20760 wg.Wait() 20761 20762 for _, e := range ret { 20763 if e == graphql.Null { 20764 return graphql.Null 20765 } 20766 } 20767 20768 return ret 20769 } 20770 20771 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { 20772 if v == nil { 20773 return graphql.Null 20774 } 20775 return ec.___Schema(ctx, sel, v) 20776 } 20777 20778 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 20779 if v == nil { 20780 return graphql.Null 20781 } 20782 ret := make(graphql.Array, len(v)) 20783 var wg sync.WaitGroup 20784 isLen1 := len(v) == 1 20785 if !isLen1 { 20786 wg.Add(len(v)) 20787 } 20788 for i := range v { 20789 i := i 20790 fc := &graphql.FieldContext{ 20791 Index: &i, 20792 Result: &v[i], 20793 } 20794 ctx := graphql.WithFieldContext(ctx, fc) 20795 f := func(i int) { 20796 defer func() { 20797 if r := recover(); r != nil { 20798 ec.Error(ctx, ec.Recover(ctx, r)) 20799 ret = nil 20800 } 20801 }() 20802 if !isLen1 { 20803 defer wg.Done() 20804 } 20805 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 20806 } 20807 if isLen1 { 20808 f(i) 20809 } else { 20810 go f(i) 20811 } 20812 20813 } 20814 wg.Wait() 20815 20816 for _, e := range ret { 20817 if e == graphql.Null { 20818 return graphql.Null 20819 } 20820 } 20821 20822 return ret 20823 } 20824 20825 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 20826 if v == nil { 20827 return graphql.Null 20828 } 20829 return ec.___Type(ctx, sel, v) 20830 } 20831 20832 // endregion ***************************** type.gotpl *****************************