github.com/operandinc/gqlgen@v0.16.1/plugin/federation/testdata/entityresolver/generated/exec.go (about)

     1  // Code generated by github.com/operandinc/gqlgen, DO NOT EDIT.
     2  
     3  package generated
     4  
     5  import (
     6  	"bytes"
     7  	"context"
     8  	"errors"
     9  	"fmt"
    10  	"strconv"
    11  	"sync"
    12  	"sync/atomic"
    13  
    14  	"github.com/operandinc/gqlgen/graphql"
    15  	"github.com/operandinc/gqlgen/graphql/introspection"
    16  	"github.com/operandinc/gqlgen/plugin/federation/fedruntime"
    17  	gqlparser "github.com/vektah/gqlparser/v2"
    18  	"github.com/vektah/gqlparser/v2/ast"
    19  )
    20  
    21  // region    ************************** generated!.gotpl **************************
    22  
    23  // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
    24  func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
    25  	return &executableSchema{
    26  		resolvers:  cfg.Resolvers,
    27  		directives: cfg.Directives,
    28  		complexity: cfg.Complexity,
    29  	}
    30  }
    31  
    32  type Config struct {
    33  	Resolvers  ResolverRoot
    34  	Directives DirectiveRoot
    35  	Complexity ComplexityRoot
    36  }
    37  
    38  type ResolverRoot interface {
    39  	Entity() EntityResolver
    40  }
    41  
    42  type DirectiveRoot struct {
    43  	EntityResolver func(ctx context.Context, obj interface{}, next graphql.Resolver, multi *bool) (res interface{}, err error)
    44  }
    45  
    46  type ComplexityRoot struct {
    47  	Entity struct {
    48  		FindHelloByName                            func(childComplexity int, name string) int
    49  		FindHelloMultiSingleKeysByKey1AndKey2      func(childComplexity int, key1 string, key2 string) int
    50  		FindHelloWithErrorsByName                  func(childComplexity int, name string) int
    51  		FindManyMultiHelloByNames                  func(childComplexity int, reps []*MultiHelloByNamesInput) int
    52  		FindManyMultiHelloMultipleRequiresByNames  func(childComplexity int, reps []*MultiHelloMultipleRequiresByNamesInput) int
    53  		FindManyMultiHelloRequiresByNames          func(childComplexity int, reps []*MultiHelloRequiresByNamesInput) int
    54  		FindManyMultiHelloWithErrorByNames         func(childComplexity int, reps []*MultiHelloWithErrorByNamesInput) int
    55  		FindManyMultiPlanetRequiresNestedByNames   func(childComplexity int, reps []*MultiPlanetRequiresNestedByNamesInput) int
    56  		FindPlanetMultipleRequiresByName           func(childComplexity int, name string) int
    57  		FindPlanetRequiresByName                   func(childComplexity int, name string) int
    58  		FindPlanetRequiresNestedByName             func(childComplexity int, name string) int
    59  		FindWorldByHelloNameAndFoo                 func(childComplexity int, helloName string, foo string) int
    60  		FindWorldNameByName                        func(childComplexity int, name string) int
    61  		FindWorldWithMultipleKeysByBar             func(childComplexity int, bar int) int
    62  		FindWorldWithMultipleKeysByHelloNameAndFoo func(childComplexity int, helloName string, foo string) int
    63  	}
    64  
    65  	Hello struct {
    66  		Name      func(childComplexity int) int
    67  		Secondary func(childComplexity int) int
    68  	}
    69  
    70  	HelloMultiSingleKeys struct {
    71  		Key1 func(childComplexity int) int
    72  		Key2 func(childComplexity int) int
    73  	}
    74  
    75  	HelloWithErrors struct {
    76  		Name func(childComplexity int) int
    77  	}
    78  
    79  	MultiHello struct {
    80  		Name func(childComplexity int) int
    81  	}
    82  
    83  	MultiHelloMultipleRequires struct {
    84  		Key1 func(childComplexity int) int
    85  		Key2 func(childComplexity int) int
    86  		Key3 func(childComplexity int) int
    87  		Name func(childComplexity int) int
    88  	}
    89  
    90  	MultiHelloRequires struct {
    91  		Key1 func(childComplexity int) int
    92  		Key2 func(childComplexity int) int
    93  		Name func(childComplexity int) int
    94  	}
    95  
    96  	MultiHelloWithError struct {
    97  		Name func(childComplexity int) int
    98  	}
    99  
   100  	MultiPlanetRequiresNested struct {
   101  		Name  func(childComplexity int) int
   102  		Size  func(childComplexity int) int
   103  		World func(childComplexity int) int
   104  	}
   105  
   106  	PlanetMultipleRequires struct {
   107  		Density  func(childComplexity int) int
   108  		Diameter func(childComplexity int) int
   109  		Name     func(childComplexity int) int
   110  		Weight   func(childComplexity int) int
   111  	}
   112  
   113  	PlanetRequires struct {
   114  		Diameter func(childComplexity int) int
   115  		Name     func(childComplexity int) int
   116  		Size     func(childComplexity int) int
   117  	}
   118  
   119  	PlanetRequiresNested struct {
   120  		Name  func(childComplexity int) int
   121  		Size  func(childComplexity int) int
   122  		World func(childComplexity int) int
   123  	}
   124  
   125  	Query struct {
   126  		__resolve__service func(childComplexity int) int
   127  		__resolve_entities func(childComplexity int, representations []map[string]interface{}) int
   128  	}
   129  
   130  	World struct {
   131  		Bar   func(childComplexity int) int
   132  		Foo   func(childComplexity int) int
   133  		Hello func(childComplexity int) int
   134  	}
   135  
   136  	WorldName struct {
   137  		Name func(childComplexity int) int
   138  	}
   139  
   140  	WorldWithMultipleKeys struct {
   141  		Bar   func(childComplexity int) int
   142  		Foo   func(childComplexity int) int
   143  		Hello func(childComplexity int) int
   144  	}
   145  
   146  	_Service struct {
   147  		SDL func(childComplexity int) int
   148  	}
   149  }
   150  
   151  type EntityResolver interface {
   152  	FindHelloByName(ctx context.Context, name string) (*Hello, error)
   153  	FindHelloMultiSingleKeysByKey1AndKey2(ctx context.Context, key1 string, key2 string) (*HelloMultiSingleKeys, error)
   154  	FindHelloWithErrorsByName(ctx context.Context, name string) (*HelloWithErrors, error)
   155  	FindManyMultiHelloByNames(ctx context.Context, reps []*MultiHelloByNamesInput) ([]*MultiHello, error)
   156  	FindManyMultiHelloMultipleRequiresByNames(ctx context.Context, reps []*MultiHelloMultipleRequiresByNamesInput) ([]*MultiHelloMultipleRequires, error)
   157  	FindManyMultiHelloRequiresByNames(ctx context.Context, reps []*MultiHelloRequiresByNamesInput) ([]*MultiHelloRequires, error)
   158  	FindManyMultiHelloWithErrorByNames(ctx context.Context, reps []*MultiHelloWithErrorByNamesInput) ([]*MultiHelloWithError, error)
   159  	FindManyMultiPlanetRequiresNestedByNames(ctx context.Context, reps []*MultiPlanetRequiresNestedByNamesInput) ([]*MultiPlanetRequiresNested, error)
   160  	FindPlanetMultipleRequiresByName(ctx context.Context, name string) (*PlanetMultipleRequires, error)
   161  	FindPlanetRequiresByName(ctx context.Context, name string) (*PlanetRequires, error)
   162  	FindPlanetRequiresNestedByName(ctx context.Context, name string) (*PlanetRequiresNested, error)
   163  	FindWorldByHelloNameAndFoo(ctx context.Context, helloName string, foo string) (*World, error)
   164  	FindWorldNameByName(ctx context.Context, name string) (*WorldName, error)
   165  	FindWorldWithMultipleKeysByHelloNameAndFoo(ctx context.Context, helloName string, foo string) (*WorldWithMultipleKeys, error)
   166  	FindWorldWithMultipleKeysByBar(ctx context.Context, bar int) (*WorldWithMultipleKeys, error)
   167  }
   168  
   169  type executableSchema struct {
   170  	resolvers  ResolverRoot
   171  	directives DirectiveRoot
   172  	complexity ComplexityRoot
   173  }
   174  
   175  func (e *executableSchema) Schema() *ast.Schema {
   176  	return parsedSchema
   177  }
   178  
   179  func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
   180  	ec := executionContext{nil, e}
   181  	_ = ec
   182  	switch typeName + "." + field {
   183  
   184  	case "Entity.findHelloByName":
   185  		if e.complexity.Entity.FindHelloByName == nil {
   186  			break
   187  		}
   188  
   189  		args, err := ec.field_Entity_findHelloByName_args(context.TODO(), rawArgs)
   190  		if err != nil {
   191  			return 0, false
   192  		}
   193  
   194  		return e.complexity.Entity.FindHelloByName(childComplexity, args["name"].(string)), true
   195  
   196  	case "Entity.findHelloMultiSingleKeysByKey1AndKey2":
   197  		if e.complexity.Entity.FindHelloMultiSingleKeysByKey1AndKey2 == nil {
   198  			break
   199  		}
   200  
   201  		args, err := ec.field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(context.TODO(), rawArgs)
   202  		if err != nil {
   203  			return 0, false
   204  		}
   205  
   206  		return e.complexity.Entity.FindHelloMultiSingleKeysByKey1AndKey2(childComplexity, args["key1"].(string), args["key2"].(string)), true
   207  
   208  	case "Entity.findHelloWithErrorsByName":
   209  		if e.complexity.Entity.FindHelloWithErrorsByName == nil {
   210  			break
   211  		}
   212  
   213  		args, err := ec.field_Entity_findHelloWithErrorsByName_args(context.TODO(), rawArgs)
   214  		if err != nil {
   215  			return 0, false
   216  		}
   217  
   218  		return e.complexity.Entity.FindHelloWithErrorsByName(childComplexity, args["name"].(string)), true
   219  
   220  	case "Entity.findManyMultiHelloByNames":
   221  		if e.complexity.Entity.FindManyMultiHelloByNames == nil {
   222  			break
   223  		}
   224  
   225  		args, err := ec.field_Entity_findManyMultiHelloByNames_args(context.TODO(), rawArgs)
   226  		if err != nil {
   227  			return 0, false
   228  		}
   229  
   230  		return e.complexity.Entity.FindManyMultiHelloByNames(childComplexity, args["reps"].([]*MultiHelloByNamesInput)), true
   231  
   232  	case "Entity.findManyMultiHelloMultipleRequiresByNames":
   233  		if e.complexity.Entity.FindManyMultiHelloMultipleRequiresByNames == nil {
   234  			break
   235  		}
   236  
   237  		args, err := ec.field_Entity_findManyMultiHelloMultipleRequiresByNames_args(context.TODO(), rawArgs)
   238  		if err != nil {
   239  			return 0, false
   240  		}
   241  
   242  		return e.complexity.Entity.FindManyMultiHelloMultipleRequiresByNames(childComplexity, args["reps"].([]*MultiHelloMultipleRequiresByNamesInput)), true
   243  
   244  	case "Entity.findManyMultiHelloRequiresByNames":
   245  		if e.complexity.Entity.FindManyMultiHelloRequiresByNames == nil {
   246  			break
   247  		}
   248  
   249  		args, err := ec.field_Entity_findManyMultiHelloRequiresByNames_args(context.TODO(), rawArgs)
   250  		if err != nil {
   251  			return 0, false
   252  		}
   253  
   254  		return e.complexity.Entity.FindManyMultiHelloRequiresByNames(childComplexity, args["reps"].([]*MultiHelloRequiresByNamesInput)), true
   255  
   256  	case "Entity.findManyMultiHelloWithErrorByNames":
   257  		if e.complexity.Entity.FindManyMultiHelloWithErrorByNames == nil {
   258  			break
   259  		}
   260  
   261  		args, err := ec.field_Entity_findManyMultiHelloWithErrorByNames_args(context.TODO(), rawArgs)
   262  		if err != nil {
   263  			return 0, false
   264  		}
   265  
   266  		return e.complexity.Entity.FindManyMultiHelloWithErrorByNames(childComplexity, args["reps"].([]*MultiHelloWithErrorByNamesInput)), true
   267  
   268  	case "Entity.findManyMultiPlanetRequiresNestedByNames":
   269  		if e.complexity.Entity.FindManyMultiPlanetRequiresNestedByNames == nil {
   270  			break
   271  		}
   272  
   273  		args, err := ec.field_Entity_findManyMultiPlanetRequiresNestedByNames_args(context.TODO(), rawArgs)
   274  		if err != nil {
   275  			return 0, false
   276  		}
   277  
   278  		return e.complexity.Entity.FindManyMultiPlanetRequiresNestedByNames(childComplexity, args["reps"].([]*MultiPlanetRequiresNestedByNamesInput)), true
   279  
   280  	case "Entity.findPlanetMultipleRequiresByName":
   281  		if e.complexity.Entity.FindPlanetMultipleRequiresByName == nil {
   282  			break
   283  		}
   284  
   285  		args, err := ec.field_Entity_findPlanetMultipleRequiresByName_args(context.TODO(), rawArgs)
   286  		if err != nil {
   287  			return 0, false
   288  		}
   289  
   290  		return e.complexity.Entity.FindPlanetMultipleRequiresByName(childComplexity, args["name"].(string)), true
   291  
   292  	case "Entity.findPlanetRequiresByName":
   293  		if e.complexity.Entity.FindPlanetRequiresByName == nil {
   294  			break
   295  		}
   296  
   297  		args, err := ec.field_Entity_findPlanetRequiresByName_args(context.TODO(), rawArgs)
   298  		if err != nil {
   299  			return 0, false
   300  		}
   301  
   302  		return e.complexity.Entity.FindPlanetRequiresByName(childComplexity, args["name"].(string)), true
   303  
   304  	case "Entity.findPlanetRequiresNestedByName":
   305  		if e.complexity.Entity.FindPlanetRequiresNestedByName == nil {
   306  			break
   307  		}
   308  
   309  		args, err := ec.field_Entity_findPlanetRequiresNestedByName_args(context.TODO(), rawArgs)
   310  		if err != nil {
   311  			return 0, false
   312  		}
   313  
   314  		return e.complexity.Entity.FindPlanetRequiresNestedByName(childComplexity, args["name"].(string)), true
   315  
   316  	case "Entity.findWorldByHelloNameAndFoo":
   317  		if e.complexity.Entity.FindWorldByHelloNameAndFoo == nil {
   318  			break
   319  		}
   320  
   321  		args, err := ec.field_Entity_findWorldByHelloNameAndFoo_args(context.TODO(), rawArgs)
   322  		if err != nil {
   323  			return 0, false
   324  		}
   325  
   326  		return e.complexity.Entity.FindWorldByHelloNameAndFoo(childComplexity, args["helloName"].(string), args["foo"].(string)), true
   327  
   328  	case "Entity.findWorldNameByName":
   329  		if e.complexity.Entity.FindWorldNameByName == nil {
   330  			break
   331  		}
   332  
   333  		args, err := ec.field_Entity_findWorldNameByName_args(context.TODO(), rawArgs)
   334  		if err != nil {
   335  			return 0, false
   336  		}
   337  
   338  		return e.complexity.Entity.FindWorldNameByName(childComplexity, args["name"].(string)), true
   339  
   340  	case "Entity.findWorldWithMultipleKeysByBar":
   341  		if e.complexity.Entity.FindWorldWithMultipleKeysByBar == nil {
   342  			break
   343  		}
   344  
   345  		args, err := ec.field_Entity_findWorldWithMultipleKeysByBar_args(context.TODO(), rawArgs)
   346  		if err != nil {
   347  			return 0, false
   348  		}
   349  
   350  		return e.complexity.Entity.FindWorldWithMultipleKeysByBar(childComplexity, args["bar"].(int)), true
   351  
   352  	case "Entity.findWorldWithMultipleKeysByHelloNameAndFoo":
   353  		if e.complexity.Entity.FindWorldWithMultipleKeysByHelloNameAndFoo == nil {
   354  			break
   355  		}
   356  
   357  		args, err := ec.field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(context.TODO(), rawArgs)
   358  		if err != nil {
   359  			return 0, false
   360  		}
   361  
   362  		return e.complexity.Entity.FindWorldWithMultipleKeysByHelloNameAndFoo(childComplexity, args["helloName"].(string), args["foo"].(string)), true
   363  
   364  	case "Hello.name":
   365  		if e.complexity.Hello.Name == nil {
   366  			break
   367  		}
   368  
   369  		return e.complexity.Hello.Name(childComplexity), true
   370  
   371  	case "Hello.secondary":
   372  		if e.complexity.Hello.Secondary == nil {
   373  			break
   374  		}
   375  
   376  		return e.complexity.Hello.Secondary(childComplexity), true
   377  
   378  	case "HelloMultiSingleKeys.key1":
   379  		if e.complexity.HelloMultiSingleKeys.Key1 == nil {
   380  			break
   381  		}
   382  
   383  		return e.complexity.HelloMultiSingleKeys.Key1(childComplexity), true
   384  
   385  	case "HelloMultiSingleKeys.key2":
   386  		if e.complexity.HelloMultiSingleKeys.Key2 == nil {
   387  			break
   388  		}
   389  
   390  		return e.complexity.HelloMultiSingleKeys.Key2(childComplexity), true
   391  
   392  	case "HelloWithErrors.name":
   393  		if e.complexity.HelloWithErrors.Name == nil {
   394  			break
   395  		}
   396  
   397  		return e.complexity.HelloWithErrors.Name(childComplexity), true
   398  
   399  	case "MultiHello.name":
   400  		if e.complexity.MultiHello.Name == nil {
   401  			break
   402  		}
   403  
   404  		return e.complexity.MultiHello.Name(childComplexity), true
   405  
   406  	case "MultiHelloMultipleRequires.key1":
   407  		if e.complexity.MultiHelloMultipleRequires.Key1 == nil {
   408  			break
   409  		}
   410  
   411  		return e.complexity.MultiHelloMultipleRequires.Key1(childComplexity), true
   412  
   413  	case "MultiHelloMultipleRequires.key2":
   414  		if e.complexity.MultiHelloMultipleRequires.Key2 == nil {
   415  			break
   416  		}
   417  
   418  		return e.complexity.MultiHelloMultipleRequires.Key2(childComplexity), true
   419  
   420  	case "MultiHelloMultipleRequires.key3":
   421  		if e.complexity.MultiHelloMultipleRequires.Key3 == nil {
   422  			break
   423  		}
   424  
   425  		return e.complexity.MultiHelloMultipleRequires.Key3(childComplexity), true
   426  
   427  	case "MultiHelloMultipleRequires.name":
   428  		if e.complexity.MultiHelloMultipleRequires.Name == nil {
   429  			break
   430  		}
   431  
   432  		return e.complexity.MultiHelloMultipleRequires.Name(childComplexity), true
   433  
   434  	case "MultiHelloRequires.key1":
   435  		if e.complexity.MultiHelloRequires.Key1 == nil {
   436  			break
   437  		}
   438  
   439  		return e.complexity.MultiHelloRequires.Key1(childComplexity), true
   440  
   441  	case "MultiHelloRequires.key2":
   442  		if e.complexity.MultiHelloRequires.Key2 == nil {
   443  			break
   444  		}
   445  
   446  		return e.complexity.MultiHelloRequires.Key2(childComplexity), true
   447  
   448  	case "MultiHelloRequires.name":
   449  		if e.complexity.MultiHelloRequires.Name == nil {
   450  			break
   451  		}
   452  
   453  		return e.complexity.MultiHelloRequires.Name(childComplexity), true
   454  
   455  	case "MultiHelloWithError.name":
   456  		if e.complexity.MultiHelloWithError.Name == nil {
   457  			break
   458  		}
   459  
   460  		return e.complexity.MultiHelloWithError.Name(childComplexity), true
   461  
   462  	case "MultiPlanetRequiresNested.name":
   463  		if e.complexity.MultiPlanetRequiresNested.Name == nil {
   464  			break
   465  		}
   466  
   467  		return e.complexity.MultiPlanetRequiresNested.Name(childComplexity), true
   468  
   469  	case "MultiPlanetRequiresNested.size":
   470  		if e.complexity.MultiPlanetRequiresNested.Size == nil {
   471  			break
   472  		}
   473  
   474  		return e.complexity.MultiPlanetRequiresNested.Size(childComplexity), true
   475  
   476  	case "MultiPlanetRequiresNested.world":
   477  		if e.complexity.MultiPlanetRequiresNested.World == nil {
   478  			break
   479  		}
   480  
   481  		return e.complexity.MultiPlanetRequiresNested.World(childComplexity), true
   482  
   483  	case "PlanetMultipleRequires.density":
   484  		if e.complexity.PlanetMultipleRequires.Density == nil {
   485  			break
   486  		}
   487  
   488  		return e.complexity.PlanetMultipleRequires.Density(childComplexity), true
   489  
   490  	case "PlanetMultipleRequires.diameter":
   491  		if e.complexity.PlanetMultipleRequires.Diameter == nil {
   492  			break
   493  		}
   494  
   495  		return e.complexity.PlanetMultipleRequires.Diameter(childComplexity), true
   496  
   497  	case "PlanetMultipleRequires.name":
   498  		if e.complexity.PlanetMultipleRequires.Name == nil {
   499  			break
   500  		}
   501  
   502  		return e.complexity.PlanetMultipleRequires.Name(childComplexity), true
   503  
   504  	case "PlanetMultipleRequires.weight":
   505  		if e.complexity.PlanetMultipleRequires.Weight == nil {
   506  			break
   507  		}
   508  
   509  		return e.complexity.PlanetMultipleRequires.Weight(childComplexity), true
   510  
   511  	case "PlanetRequires.diameter":
   512  		if e.complexity.PlanetRequires.Diameter == nil {
   513  			break
   514  		}
   515  
   516  		return e.complexity.PlanetRequires.Diameter(childComplexity), true
   517  
   518  	case "PlanetRequires.name":
   519  		if e.complexity.PlanetRequires.Name == nil {
   520  			break
   521  		}
   522  
   523  		return e.complexity.PlanetRequires.Name(childComplexity), true
   524  
   525  	case "PlanetRequires.size":
   526  		if e.complexity.PlanetRequires.Size == nil {
   527  			break
   528  		}
   529  
   530  		return e.complexity.PlanetRequires.Size(childComplexity), true
   531  
   532  	case "PlanetRequiresNested.name":
   533  		if e.complexity.PlanetRequiresNested.Name == nil {
   534  			break
   535  		}
   536  
   537  		return e.complexity.PlanetRequiresNested.Name(childComplexity), true
   538  
   539  	case "PlanetRequiresNested.size":
   540  		if e.complexity.PlanetRequiresNested.Size == nil {
   541  			break
   542  		}
   543  
   544  		return e.complexity.PlanetRequiresNested.Size(childComplexity), true
   545  
   546  	case "PlanetRequiresNested.world":
   547  		if e.complexity.PlanetRequiresNested.World == nil {
   548  			break
   549  		}
   550  
   551  		return e.complexity.PlanetRequiresNested.World(childComplexity), true
   552  
   553  	case "Query._service":
   554  		if e.complexity.Query.__resolve__service == nil {
   555  			break
   556  		}
   557  
   558  		return e.complexity.Query.__resolve__service(childComplexity), true
   559  
   560  	case "Query._entities":
   561  		if e.complexity.Query.__resolve_entities == nil {
   562  			break
   563  		}
   564  
   565  		args, err := ec.field_Query__entities_args(context.TODO(), rawArgs)
   566  		if err != nil {
   567  			return 0, false
   568  		}
   569  
   570  		return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]interface{})), true
   571  
   572  	case "World.bar":
   573  		if e.complexity.World.Bar == nil {
   574  			break
   575  		}
   576  
   577  		return e.complexity.World.Bar(childComplexity), true
   578  
   579  	case "World.foo":
   580  		if e.complexity.World.Foo == nil {
   581  			break
   582  		}
   583  
   584  		return e.complexity.World.Foo(childComplexity), true
   585  
   586  	case "World.hello":
   587  		if e.complexity.World.Hello == nil {
   588  			break
   589  		}
   590  
   591  		return e.complexity.World.Hello(childComplexity), true
   592  
   593  	case "WorldName.name":
   594  		if e.complexity.WorldName.Name == nil {
   595  			break
   596  		}
   597  
   598  		return e.complexity.WorldName.Name(childComplexity), true
   599  
   600  	case "WorldWithMultipleKeys.bar":
   601  		if e.complexity.WorldWithMultipleKeys.Bar == nil {
   602  			break
   603  		}
   604  
   605  		return e.complexity.WorldWithMultipleKeys.Bar(childComplexity), true
   606  
   607  	case "WorldWithMultipleKeys.foo":
   608  		if e.complexity.WorldWithMultipleKeys.Foo == nil {
   609  			break
   610  		}
   611  
   612  		return e.complexity.WorldWithMultipleKeys.Foo(childComplexity), true
   613  
   614  	case "WorldWithMultipleKeys.hello":
   615  		if e.complexity.WorldWithMultipleKeys.Hello == nil {
   616  			break
   617  		}
   618  
   619  		return e.complexity.WorldWithMultipleKeys.Hello(childComplexity), true
   620  
   621  	case "_Service.sdl":
   622  		if e.complexity._Service.SDL == nil {
   623  			break
   624  		}
   625  
   626  		return e.complexity._Service.SDL(childComplexity), true
   627  
   628  	}
   629  	return 0, false
   630  }
   631  
   632  func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
   633  	rc := graphql.GetOperationContext(ctx)
   634  	ec := executionContext{rc, e}
   635  	first := true
   636  
   637  	switch rc.Operation.Operation {
   638  	case ast.Query:
   639  		return func(ctx context.Context) *graphql.Response {
   640  			if !first {
   641  				return nil
   642  			}
   643  			first = false
   644  			data := ec._Query(ctx, rc.Operation.SelectionSet)
   645  			var buf bytes.Buffer
   646  			data.MarshalGQL(&buf)
   647  
   648  			return &graphql.Response{
   649  				Data: buf.Bytes(),
   650  			}
   651  		}
   652  
   653  	default:
   654  		return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
   655  	}
   656  }
   657  
   658  type executionContext struct {
   659  	*graphql.OperationContext
   660  	*executableSchema
   661  }
   662  
   663  func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
   664  	if ec.DisableIntrospection {
   665  		return nil, errors.New("introspection disabled")
   666  	}
   667  	return introspection.WrapSchema(parsedSchema), nil
   668  }
   669  
   670  func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
   671  	if ec.DisableIntrospection {
   672  		return nil, errors.New("introspection disabled")
   673  	}
   674  	return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
   675  }
   676  
   677  var sources = []*ast.Source{
   678  	{Name: "testdata/entityresolver/schema.graphql", Input: `directive @entityResolver(multi: Boolean) on OBJECT
   679  
   680  type Hello @key(fields: "name") {
   681      name: String!
   682      secondary: String!
   683  }
   684  
   685  type World @key(fields: "hello { name } foo   ") {
   686      foo: String!
   687      bar: Int!
   688      hello: Hello
   689  }
   690  
   691  type WorldWithMultipleKeys @key(fields: "hello { name } foo   ") @key(fields: "bar") {
   692      foo: String!
   693      bar: Int!
   694      hello: Hello
   695  }
   696  
   697  type WorldName @key(fields: "name") {
   698      name: String!
   699  }
   700  
   701  type HelloWithErrors @key(fields: "name") {
   702      name: String!
   703  }
   704  
   705  type PlanetRequires @key(fields: "name") {
   706      name: String!
   707      size: Int! @requires(fields: "diameter")
   708      diameter: Int!
   709  }
   710  
   711  type PlanetMultipleRequires @key(fields: "name") {
   712      name: String! @external
   713      diameter: Int! @external
   714      density: Int! @external
   715      weight: Int! @requires(fields: "diameter density")
   716  }
   717  
   718  type PlanetRequiresNested @key(fields: "name") {
   719      name: String! @external
   720      world: World! @external
   721      size: Int! @requires(fields: "world{ foo }")
   722  }
   723  
   724  type MultiPlanetRequiresNested @key(fields: "name") @entityResolver(multi: true) {
   725      name: String! @external
   726      world: World! @external
   727      size: Int! @requires(fields: "world{ foo }")
   728  }
   729  
   730  type MultiHello @key(fields: "name") @entityResolver(multi: true) {
   731      name: String!
   732  }
   733  
   734  type MultiHelloWithError @key(fields: "name") @entityResolver(multi: true) {
   735      name: String!
   736  }
   737  
   738  type HelloMultiSingleKeys @key(fields: "key1 key2") {
   739      key1: String!
   740      key2: String!
   741  }
   742  
   743  type MultiHelloRequires @key(fields: "name") @entityResolver(multi: true) {
   744      name: String! @external
   745      key1: String! @external
   746      key2: String! @requires(fields: "key1")
   747  }
   748  
   749  type MultiHelloMultipleRequires @key(fields: "name") @entityResolver(multi: true) {
   750      name: String! @external
   751      key1: String! @external
   752      key2: String! @external
   753      key3: String! @requires(fields: "key1 key2")
   754  }
   755  `, BuiltIn: false},
   756  	{Name: "federation/directives.graphql", Input: `
   757  scalar _Any
   758  scalar _FieldSet
   759  
   760  directive @external on FIELD_DEFINITION
   761  directive @requires(fields: _FieldSet!) on FIELD_DEFINITION
   762  directive @provides(fields: _FieldSet!) on FIELD_DEFINITION
   763  directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE
   764  directive @extends on OBJECT | INTERFACE
   765  `, BuiltIn: true},
   766  	{Name: "federation/entity.graphql", Input: `
   767  # a union of all types that use the @key directive
   768  union _Entity = Hello | HelloMultiSingleKeys | HelloWithErrors | MultiHello | MultiHelloMultipleRequires | MultiHelloRequires | MultiHelloWithError | MultiPlanetRequiresNested | PlanetMultipleRequires | PlanetRequires | PlanetRequiresNested | World | WorldName | WorldWithMultipleKeys
   769  
   770  input MultiHelloByNamesInput {
   771  	Name: String!
   772  }
   773  
   774  input MultiHelloMultipleRequiresByNamesInput {
   775  	Name: String!
   776  }
   777  
   778  input MultiHelloRequiresByNamesInput {
   779  	Name: String!
   780  }
   781  
   782  input MultiHelloWithErrorByNamesInput {
   783  	Name: String!
   784  }
   785  
   786  input MultiPlanetRequiresNestedByNamesInput {
   787  	Name: String!
   788  }
   789  
   790  # fake type to build resolver interfaces for users to implement
   791  type Entity {
   792  		findHelloByName(name: String!,): Hello!
   793  	findHelloMultiSingleKeysByKey1AndKey2(key1: String!,key2: String!,): HelloMultiSingleKeys!
   794  	findHelloWithErrorsByName(name: String!,): HelloWithErrors!
   795  	findManyMultiHelloByNames(reps: [MultiHelloByNamesInput!]!): [MultiHello]
   796  	findManyMultiHelloMultipleRequiresByNames(reps: [MultiHelloMultipleRequiresByNamesInput!]!): [MultiHelloMultipleRequires]
   797  	findManyMultiHelloRequiresByNames(reps: [MultiHelloRequiresByNamesInput!]!): [MultiHelloRequires]
   798  	findManyMultiHelloWithErrorByNames(reps: [MultiHelloWithErrorByNamesInput!]!): [MultiHelloWithError]
   799  	findManyMultiPlanetRequiresNestedByNames(reps: [MultiPlanetRequiresNestedByNamesInput!]!): [MultiPlanetRequiresNested]
   800  	findPlanetMultipleRequiresByName(name: String!,): PlanetMultipleRequires!
   801  	findPlanetRequiresByName(name: String!,): PlanetRequires!
   802  	findPlanetRequiresNestedByName(name: String!,): PlanetRequiresNested!
   803  	findWorldByHelloNameAndFoo(helloName: String!,foo: String!,): World!
   804  	findWorldNameByName(name: String!,): WorldName!
   805  	findWorldWithMultipleKeysByHelloNameAndFoo(helloName: String!,foo: String!,): WorldWithMultipleKeys!
   806  	findWorldWithMultipleKeysByBar(bar: Int!,): WorldWithMultipleKeys!
   807  
   808  }
   809  
   810  type _Service {
   811    sdl: String
   812  }
   813  
   814  extend type Query {
   815    _entities(representations: [_Any!]!): [_Entity]!
   816    _service: _Service!
   817  }
   818  `, BuiltIn: true},
   819  }
   820  var parsedSchema = gqlparser.MustLoadSchema(sources...)
   821  
   822  // endregion ************************** generated!.gotpl **************************
   823  
   824  // region    ***************************** args.gotpl *****************************
   825  
   826  func (ec *executionContext) dir_entityResolver_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   827  	var err error
   828  	args := map[string]interface{}{}
   829  	var arg0 *bool
   830  	if tmp, ok := rawArgs["multi"]; ok {
   831  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("multi"))
   832  		arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
   833  		if err != nil {
   834  			return nil, err
   835  		}
   836  	}
   837  	args["multi"] = arg0
   838  	return args, nil
   839  }
   840  
   841  func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   842  	var err error
   843  	args := map[string]interface{}{}
   844  	var arg0 string
   845  	if tmp, ok := rawArgs["name"]; ok {
   846  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
   847  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
   848  		if err != nil {
   849  			return nil, err
   850  		}
   851  	}
   852  	args["name"] = arg0
   853  	return args, nil
   854  }
   855  
   856  func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   857  	var err error
   858  	args := map[string]interface{}{}
   859  	var arg0 string
   860  	if tmp, ok := rawArgs["key1"]; ok {
   861  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key1"))
   862  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
   863  		if err != nil {
   864  			return nil, err
   865  		}
   866  	}
   867  	args["key1"] = arg0
   868  	var arg1 string
   869  	if tmp, ok := rawArgs["key2"]; ok {
   870  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key2"))
   871  		arg1, err = ec.unmarshalNString2string(ctx, tmp)
   872  		if err != nil {
   873  			return nil, err
   874  		}
   875  	}
   876  	args["key2"] = arg1
   877  	return args, nil
   878  }
   879  
   880  func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   881  	var err error
   882  	args := map[string]interface{}{}
   883  	var arg0 string
   884  	if tmp, ok := rawArgs["name"]; ok {
   885  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
   886  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
   887  		if err != nil {
   888  			return nil, err
   889  		}
   890  	}
   891  	args["name"] = arg0
   892  	return args, nil
   893  }
   894  
   895  func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   896  	var err error
   897  	args := map[string]interface{}{}
   898  	var arg0 []*MultiHelloByNamesInput
   899  	if tmp, ok := rawArgs["reps"]; ok {
   900  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reps"))
   901  		arg0, err = ec.unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloByNamesInputᚄ(ctx, tmp)
   902  		if err != nil {
   903  			return nil, err
   904  		}
   905  	}
   906  	args["reps"] = arg0
   907  	return args, nil
   908  }
   909  
   910  func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   911  	var err error
   912  	args := map[string]interface{}{}
   913  	var arg0 []*MultiHelloMultipleRequiresByNamesInput
   914  	if tmp, ok := rawArgs["reps"]; ok {
   915  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reps"))
   916  		arg0, err = ec.unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloMultipleRequiresByNamesInputᚄ(ctx, tmp)
   917  		if err != nil {
   918  			return nil, err
   919  		}
   920  	}
   921  	args["reps"] = arg0
   922  	return args, nil
   923  }
   924  
   925  func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   926  	var err error
   927  	args := map[string]interface{}{}
   928  	var arg0 []*MultiHelloRequiresByNamesInput
   929  	if tmp, ok := rawArgs["reps"]; ok {
   930  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reps"))
   931  		arg0, err = ec.unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloRequiresByNamesInputᚄ(ctx, tmp)
   932  		if err != nil {
   933  			return nil, err
   934  		}
   935  	}
   936  	args["reps"] = arg0
   937  	return args, nil
   938  }
   939  
   940  func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   941  	var err error
   942  	args := map[string]interface{}{}
   943  	var arg0 []*MultiHelloWithErrorByNamesInput
   944  	if tmp, ok := rawArgs["reps"]; ok {
   945  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reps"))
   946  		arg0, err = ec.unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloWithErrorByNamesInputᚄ(ctx, tmp)
   947  		if err != nil {
   948  			return nil, err
   949  		}
   950  	}
   951  	args["reps"] = arg0
   952  	return args, nil
   953  }
   954  
   955  func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   956  	var err error
   957  	args := map[string]interface{}{}
   958  	var arg0 []*MultiPlanetRequiresNestedByNamesInput
   959  	if tmp, ok := rawArgs["reps"]; ok {
   960  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reps"))
   961  		arg0, err = ec.unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiPlanetRequiresNestedByNamesInputᚄ(ctx, tmp)
   962  		if err != nil {
   963  			return nil, err
   964  		}
   965  	}
   966  	args["reps"] = arg0
   967  	return args, nil
   968  }
   969  
   970  func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   971  	var err error
   972  	args := map[string]interface{}{}
   973  	var arg0 string
   974  	if tmp, ok := rawArgs["name"]; ok {
   975  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
   976  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
   977  		if err != nil {
   978  			return nil, err
   979  		}
   980  	}
   981  	args["name"] = arg0
   982  	return args, nil
   983  }
   984  
   985  func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   986  	var err error
   987  	args := map[string]interface{}{}
   988  	var arg0 string
   989  	if tmp, ok := rawArgs["name"]; ok {
   990  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
   991  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
   992  		if err != nil {
   993  			return nil, err
   994  		}
   995  	}
   996  	args["name"] = arg0
   997  	return args, nil
   998  }
   999  
  1000  func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1001  	var err error
  1002  	args := map[string]interface{}{}
  1003  	var arg0 string
  1004  	if tmp, ok := rawArgs["name"]; ok {
  1005  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
  1006  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
  1007  		if err != nil {
  1008  			return nil, err
  1009  		}
  1010  	}
  1011  	args["name"] = arg0
  1012  	return args, nil
  1013  }
  1014  
  1015  func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1016  	var err error
  1017  	args := map[string]interface{}{}
  1018  	var arg0 string
  1019  	if tmp, ok := rawArgs["helloName"]; ok {
  1020  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("helloName"))
  1021  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
  1022  		if err != nil {
  1023  			return nil, err
  1024  		}
  1025  	}
  1026  	args["helloName"] = arg0
  1027  	var arg1 string
  1028  	if tmp, ok := rawArgs["foo"]; ok {
  1029  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("foo"))
  1030  		arg1, err = ec.unmarshalNString2string(ctx, tmp)
  1031  		if err != nil {
  1032  			return nil, err
  1033  		}
  1034  	}
  1035  	args["foo"] = arg1
  1036  	return args, nil
  1037  }
  1038  
  1039  func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1040  	var err error
  1041  	args := map[string]interface{}{}
  1042  	var arg0 string
  1043  	if tmp, ok := rawArgs["name"]; ok {
  1044  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
  1045  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
  1046  		if err != nil {
  1047  			return nil, err
  1048  		}
  1049  	}
  1050  	args["name"] = arg0
  1051  	return args, nil
  1052  }
  1053  
  1054  func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1055  	var err error
  1056  	args := map[string]interface{}{}
  1057  	var arg0 int
  1058  	if tmp, ok := rawArgs["bar"]; ok {
  1059  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bar"))
  1060  		arg0, err = ec.unmarshalNInt2int(ctx, tmp)
  1061  		if err != nil {
  1062  			return nil, err
  1063  		}
  1064  	}
  1065  	args["bar"] = arg0
  1066  	return args, nil
  1067  }
  1068  
  1069  func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1070  	var err error
  1071  	args := map[string]interface{}{}
  1072  	var arg0 string
  1073  	if tmp, ok := rawArgs["helloName"]; ok {
  1074  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("helloName"))
  1075  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
  1076  		if err != nil {
  1077  			return nil, err
  1078  		}
  1079  	}
  1080  	args["helloName"] = arg0
  1081  	var arg1 string
  1082  	if tmp, ok := rawArgs["foo"]; ok {
  1083  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("foo"))
  1084  		arg1, err = ec.unmarshalNString2string(ctx, tmp)
  1085  		if err != nil {
  1086  			return nil, err
  1087  		}
  1088  	}
  1089  	args["foo"] = arg1
  1090  	return args, nil
  1091  }
  1092  
  1093  func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1094  	var err error
  1095  	args := map[string]interface{}{}
  1096  	var arg0 string
  1097  	if tmp, ok := rawArgs["name"]; ok {
  1098  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
  1099  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
  1100  		if err != nil {
  1101  			return nil, err
  1102  		}
  1103  	}
  1104  	args["name"] = arg0
  1105  	return args, nil
  1106  }
  1107  
  1108  func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1109  	var err error
  1110  	args := map[string]interface{}{}
  1111  	var arg0 []map[string]interface{}
  1112  	if tmp, ok := rawArgs["representations"]; ok {
  1113  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("representations"))
  1114  		arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp)
  1115  		if err != nil {
  1116  			return nil, err
  1117  		}
  1118  	}
  1119  	args["representations"] = arg0
  1120  	return args, nil
  1121  }
  1122  
  1123  func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1124  	var err error
  1125  	args := map[string]interface{}{}
  1126  	var arg0 *bool
  1127  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
  1128  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
  1129  		arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  1130  		if err != nil {
  1131  			return nil, err
  1132  		}
  1133  	}
  1134  	args["includeDeprecated"] = arg0
  1135  	return args, nil
  1136  }
  1137  
  1138  func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1139  	var err error
  1140  	args := map[string]interface{}{}
  1141  	var arg0 bool
  1142  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
  1143  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
  1144  		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
  1145  		if err != nil {
  1146  			return nil, err
  1147  		}
  1148  	}
  1149  	args["includeDeprecated"] = arg0
  1150  	return args, nil
  1151  }
  1152  
  1153  func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  1154  	var err error
  1155  	args := map[string]interface{}{}
  1156  	var arg0 bool
  1157  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
  1158  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
  1159  		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
  1160  		if err != nil {
  1161  			return nil, err
  1162  		}
  1163  	}
  1164  	args["includeDeprecated"] = arg0
  1165  	return args, nil
  1166  }
  1167  
  1168  // endregion ***************************** args.gotpl *****************************
  1169  
  1170  // region    ************************** directives.gotpl **************************
  1171  
  1172  // endregion ************************** directives.gotpl **************************
  1173  
  1174  // region    **************************** field.gotpl *****************************
  1175  
  1176  func (ec *executionContext) _Entity_findHelloByName(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1177  	defer func() {
  1178  		if r := recover(); r != nil {
  1179  			ec.Error(ctx, ec.Recover(ctx, r))
  1180  			ret = graphql.Null
  1181  		}
  1182  	}()
  1183  	fc := &graphql.FieldContext{
  1184  		Object:     "Entity",
  1185  		Field:      field,
  1186  		Args:       nil,
  1187  		IsMethod:   true,
  1188  		IsResolver: true,
  1189  	}
  1190  
  1191  	ctx = graphql.WithFieldContext(ctx, fc)
  1192  	rawArgs := field.ArgumentMap(ec.Variables)
  1193  	args, err := ec.field_Entity_findHelloByName_args(ctx, rawArgs)
  1194  	if err != nil {
  1195  		ec.Error(ctx, err)
  1196  		return graphql.Null
  1197  	}
  1198  	fc.Args = args
  1199  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1200  		ctx = rctx // use context from middleware stack in children
  1201  		return ec.resolvers.Entity().FindHelloByName(rctx, args["name"].(string))
  1202  	})
  1203  	if err != nil {
  1204  		ec.Error(ctx, err)
  1205  		return graphql.Null
  1206  	}
  1207  	if resTmp == nil {
  1208  		if !graphql.HasFieldError(ctx, fc) {
  1209  			ec.Errorf(ctx, "must not be null")
  1210  		}
  1211  		return graphql.Null
  1212  	}
  1213  	res := resTmp.(*Hello)
  1214  	fc.Result = res
  1215  	return ec.marshalNHello2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHello(ctx, field.Selections, res)
  1216  }
  1217  
  1218  func (ec *executionContext) _Entity_findHelloMultiSingleKeysByKey1AndKey2(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1219  	defer func() {
  1220  		if r := recover(); r != nil {
  1221  			ec.Error(ctx, ec.Recover(ctx, r))
  1222  			ret = graphql.Null
  1223  		}
  1224  	}()
  1225  	fc := &graphql.FieldContext{
  1226  		Object:     "Entity",
  1227  		Field:      field,
  1228  		Args:       nil,
  1229  		IsMethod:   true,
  1230  		IsResolver: true,
  1231  	}
  1232  
  1233  	ctx = graphql.WithFieldContext(ctx, fc)
  1234  	rawArgs := field.ArgumentMap(ec.Variables)
  1235  	args, err := ec.field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx, rawArgs)
  1236  	if err != nil {
  1237  		ec.Error(ctx, err)
  1238  		return graphql.Null
  1239  	}
  1240  	fc.Args = args
  1241  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1242  		ctx = rctx // use context from middleware stack in children
  1243  		return ec.resolvers.Entity().FindHelloMultiSingleKeysByKey1AndKey2(rctx, args["key1"].(string), args["key2"].(string))
  1244  	})
  1245  	if err != nil {
  1246  		ec.Error(ctx, err)
  1247  		return graphql.Null
  1248  	}
  1249  	if resTmp == nil {
  1250  		if !graphql.HasFieldError(ctx, fc) {
  1251  			ec.Errorf(ctx, "must not be null")
  1252  		}
  1253  		return graphql.Null
  1254  	}
  1255  	res := resTmp.(*HelloMultiSingleKeys)
  1256  	fc.Result = res
  1257  	return ec.marshalNHelloMultiSingleKeys2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHelloMultiSingleKeys(ctx, field.Selections, res)
  1258  }
  1259  
  1260  func (ec *executionContext) _Entity_findHelloWithErrorsByName(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1261  	defer func() {
  1262  		if r := recover(); r != nil {
  1263  			ec.Error(ctx, ec.Recover(ctx, r))
  1264  			ret = graphql.Null
  1265  		}
  1266  	}()
  1267  	fc := &graphql.FieldContext{
  1268  		Object:     "Entity",
  1269  		Field:      field,
  1270  		Args:       nil,
  1271  		IsMethod:   true,
  1272  		IsResolver: true,
  1273  	}
  1274  
  1275  	ctx = graphql.WithFieldContext(ctx, fc)
  1276  	rawArgs := field.ArgumentMap(ec.Variables)
  1277  	args, err := ec.field_Entity_findHelloWithErrorsByName_args(ctx, rawArgs)
  1278  	if err != nil {
  1279  		ec.Error(ctx, err)
  1280  		return graphql.Null
  1281  	}
  1282  	fc.Args = args
  1283  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1284  		ctx = rctx // use context from middleware stack in children
  1285  		return ec.resolvers.Entity().FindHelloWithErrorsByName(rctx, args["name"].(string))
  1286  	})
  1287  	if err != nil {
  1288  		ec.Error(ctx, err)
  1289  		return graphql.Null
  1290  	}
  1291  	if resTmp == nil {
  1292  		if !graphql.HasFieldError(ctx, fc) {
  1293  			ec.Errorf(ctx, "must not be null")
  1294  		}
  1295  		return graphql.Null
  1296  	}
  1297  	res := resTmp.(*HelloWithErrors)
  1298  	fc.Result = res
  1299  	return ec.marshalNHelloWithErrors2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHelloWithErrors(ctx, field.Selections, res)
  1300  }
  1301  
  1302  func (ec *executionContext) _Entity_findManyMultiHelloByNames(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1303  	defer func() {
  1304  		if r := recover(); r != nil {
  1305  			ec.Error(ctx, ec.Recover(ctx, r))
  1306  			ret = graphql.Null
  1307  		}
  1308  	}()
  1309  	fc := &graphql.FieldContext{
  1310  		Object:     "Entity",
  1311  		Field:      field,
  1312  		Args:       nil,
  1313  		IsMethod:   true,
  1314  		IsResolver: true,
  1315  	}
  1316  
  1317  	ctx = graphql.WithFieldContext(ctx, fc)
  1318  	rawArgs := field.ArgumentMap(ec.Variables)
  1319  	args, err := ec.field_Entity_findManyMultiHelloByNames_args(ctx, rawArgs)
  1320  	if err != nil {
  1321  		ec.Error(ctx, err)
  1322  		return graphql.Null
  1323  	}
  1324  	fc.Args = args
  1325  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1326  		directive0 := func(rctx context.Context) (interface{}, error) {
  1327  			ctx = rctx // use context from middleware stack in children
  1328  			return ec.resolvers.Entity().FindManyMultiHelloByNames(rctx, args["reps"].([]*MultiHelloByNamesInput))
  1329  		}
  1330  		directive1 := func(ctx context.Context) (interface{}, error) {
  1331  			multi, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
  1332  			if err != nil {
  1333  				return nil, err
  1334  			}
  1335  			if ec.directives.EntityResolver == nil {
  1336  				return nil, errors.New("directive entityResolver is not implemented")
  1337  			}
  1338  			return ec.directives.EntityResolver(ctx, nil, directive0, multi)
  1339  		}
  1340  
  1341  		tmp, err := directive1(rctx)
  1342  		if err != nil {
  1343  			return nil, graphql.ErrorOnPath(ctx, err)
  1344  		}
  1345  		if tmp == nil {
  1346  			return nil, nil
  1347  		}
  1348  		if data, ok := tmp.([]*MultiHello); ok {
  1349  			return data, nil
  1350  		}
  1351  		return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/operandinc/gqlgen/plugin/federation/testdata/entityresolver/generated.MultiHello`, tmp)
  1352  	})
  1353  	if err != nil {
  1354  		ec.Error(ctx, err)
  1355  		return graphql.Null
  1356  	}
  1357  	if resTmp == nil {
  1358  		return graphql.Null
  1359  	}
  1360  	res := resTmp.([]*MultiHello)
  1361  	fc.Result = res
  1362  	return ec.marshalOMultiHello2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHello(ctx, field.Selections, res)
  1363  }
  1364  
  1365  func (ec *executionContext) _Entity_findManyMultiHelloMultipleRequiresByNames(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1366  	defer func() {
  1367  		if r := recover(); r != nil {
  1368  			ec.Error(ctx, ec.Recover(ctx, r))
  1369  			ret = graphql.Null
  1370  		}
  1371  	}()
  1372  	fc := &graphql.FieldContext{
  1373  		Object:     "Entity",
  1374  		Field:      field,
  1375  		Args:       nil,
  1376  		IsMethod:   true,
  1377  		IsResolver: true,
  1378  	}
  1379  
  1380  	ctx = graphql.WithFieldContext(ctx, fc)
  1381  	rawArgs := field.ArgumentMap(ec.Variables)
  1382  	args, err := ec.field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx, rawArgs)
  1383  	if err != nil {
  1384  		ec.Error(ctx, err)
  1385  		return graphql.Null
  1386  	}
  1387  	fc.Args = args
  1388  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1389  		directive0 := func(rctx context.Context) (interface{}, error) {
  1390  			ctx = rctx // use context from middleware stack in children
  1391  			return ec.resolvers.Entity().FindManyMultiHelloMultipleRequiresByNames(rctx, args["reps"].([]*MultiHelloMultipleRequiresByNamesInput))
  1392  		}
  1393  		directive1 := func(ctx context.Context) (interface{}, error) {
  1394  			multi, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
  1395  			if err != nil {
  1396  				return nil, err
  1397  			}
  1398  			if ec.directives.EntityResolver == nil {
  1399  				return nil, errors.New("directive entityResolver is not implemented")
  1400  			}
  1401  			return ec.directives.EntityResolver(ctx, nil, directive0, multi)
  1402  		}
  1403  
  1404  		tmp, err := directive1(rctx)
  1405  		if err != nil {
  1406  			return nil, graphql.ErrorOnPath(ctx, err)
  1407  		}
  1408  		if tmp == nil {
  1409  			return nil, nil
  1410  		}
  1411  		if data, ok := tmp.([]*MultiHelloMultipleRequires); ok {
  1412  			return data, nil
  1413  		}
  1414  		return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/operandinc/gqlgen/plugin/federation/testdata/entityresolver/generated.MultiHelloMultipleRequires`, tmp)
  1415  	})
  1416  	if err != nil {
  1417  		ec.Error(ctx, err)
  1418  		return graphql.Null
  1419  	}
  1420  	if resTmp == nil {
  1421  		return graphql.Null
  1422  	}
  1423  	res := resTmp.([]*MultiHelloMultipleRequires)
  1424  	fc.Result = res
  1425  	return ec.marshalOMultiHelloMultipleRequires2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloMultipleRequires(ctx, field.Selections, res)
  1426  }
  1427  
  1428  func (ec *executionContext) _Entity_findManyMultiHelloRequiresByNames(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1429  	defer func() {
  1430  		if r := recover(); r != nil {
  1431  			ec.Error(ctx, ec.Recover(ctx, r))
  1432  			ret = graphql.Null
  1433  		}
  1434  	}()
  1435  	fc := &graphql.FieldContext{
  1436  		Object:     "Entity",
  1437  		Field:      field,
  1438  		Args:       nil,
  1439  		IsMethod:   true,
  1440  		IsResolver: true,
  1441  	}
  1442  
  1443  	ctx = graphql.WithFieldContext(ctx, fc)
  1444  	rawArgs := field.ArgumentMap(ec.Variables)
  1445  	args, err := ec.field_Entity_findManyMultiHelloRequiresByNames_args(ctx, rawArgs)
  1446  	if err != nil {
  1447  		ec.Error(ctx, err)
  1448  		return graphql.Null
  1449  	}
  1450  	fc.Args = args
  1451  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1452  		directive0 := func(rctx context.Context) (interface{}, error) {
  1453  			ctx = rctx // use context from middleware stack in children
  1454  			return ec.resolvers.Entity().FindManyMultiHelloRequiresByNames(rctx, args["reps"].([]*MultiHelloRequiresByNamesInput))
  1455  		}
  1456  		directive1 := func(ctx context.Context) (interface{}, error) {
  1457  			multi, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
  1458  			if err != nil {
  1459  				return nil, err
  1460  			}
  1461  			if ec.directives.EntityResolver == nil {
  1462  				return nil, errors.New("directive entityResolver is not implemented")
  1463  			}
  1464  			return ec.directives.EntityResolver(ctx, nil, directive0, multi)
  1465  		}
  1466  
  1467  		tmp, err := directive1(rctx)
  1468  		if err != nil {
  1469  			return nil, graphql.ErrorOnPath(ctx, err)
  1470  		}
  1471  		if tmp == nil {
  1472  			return nil, nil
  1473  		}
  1474  		if data, ok := tmp.([]*MultiHelloRequires); ok {
  1475  			return data, nil
  1476  		}
  1477  		return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/operandinc/gqlgen/plugin/federation/testdata/entityresolver/generated.MultiHelloRequires`, tmp)
  1478  	})
  1479  	if err != nil {
  1480  		ec.Error(ctx, err)
  1481  		return graphql.Null
  1482  	}
  1483  	if resTmp == nil {
  1484  		return graphql.Null
  1485  	}
  1486  	res := resTmp.([]*MultiHelloRequires)
  1487  	fc.Result = res
  1488  	return ec.marshalOMultiHelloRequires2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloRequires(ctx, field.Selections, res)
  1489  }
  1490  
  1491  func (ec *executionContext) _Entity_findManyMultiHelloWithErrorByNames(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1492  	defer func() {
  1493  		if r := recover(); r != nil {
  1494  			ec.Error(ctx, ec.Recover(ctx, r))
  1495  			ret = graphql.Null
  1496  		}
  1497  	}()
  1498  	fc := &graphql.FieldContext{
  1499  		Object:     "Entity",
  1500  		Field:      field,
  1501  		Args:       nil,
  1502  		IsMethod:   true,
  1503  		IsResolver: true,
  1504  	}
  1505  
  1506  	ctx = graphql.WithFieldContext(ctx, fc)
  1507  	rawArgs := field.ArgumentMap(ec.Variables)
  1508  	args, err := ec.field_Entity_findManyMultiHelloWithErrorByNames_args(ctx, rawArgs)
  1509  	if err != nil {
  1510  		ec.Error(ctx, err)
  1511  		return graphql.Null
  1512  	}
  1513  	fc.Args = args
  1514  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1515  		directive0 := func(rctx context.Context) (interface{}, error) {
  1516  			ctx = rctx // use context from middleware stack in children
  1517  			return ec.resolvers.Entity().FindManyMultiHelloWithErrorByNames(rctx, args["reps"].([]*MultiHelloWithErrorByNamesInput))
  1518  		}
  1519  		directive1 := func(ctx context.Context) (interface{}, error) {
  1520  			multi, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
  1521  			if err != nil {
  1522  				return nil, err
  1523  			}
  1524  			if ec.directives.EntityResolver == nil {
  1525  				return nil, errors.New("directive entityResolver is not implemented")
  1526  			}
  1527  			return ec.directives.EntityResolver(ctx, nil, directive0, multi)
  1528  		}
  1529  
  1530  		tmp, err := directive1(rctx)
  1531  		if err != nil {
  1532  			return nil, graphql.ErrorOnPath(ctx, err)
  1533  		}
  1534  		if tmp == nil {
  1535  			return nil, nil
  1536  		}
  1537  		if data, ok := tmp.([]*MultiHelloWithError); ok {
  1538  			return data, nil
  1539  		}
  1540  		return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/operandinc/gqlgen/plugin/federation/testdata/entityresolver/generated.MultiHelloWithError`, tmp)
  1541  	})
  1542  	if err != nil {
  1543  		ec.Error(ctx, err)
  1544  		return graphql.Null
  1545  	}
  1546  	if resTmp == nil {
  1547  		return graphql.Null
  1548  	}
  1549  	res := resTmp.([]*MultiHelloWithError)
  1550  	fc.Result = res
  1551  	return ec.marshalOMultiHelloWithError2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloWithError(ctx, field.Selections, res)
  1552  }
  1553  
  1554  func (ec *executionContext) _Entity_findManyMultiPlanetRequiresNestedByNames(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1555  	defer func() {
  1556  		if r := recover(); r != nil {
  1557  			ec.Error(ctx, ec.Recover(ctx, r))
  1558  			ret = graphql.Null
  1559  		}
  1560  	}()
  1561  	fc := &graphql.FieldContext{
  1562  		Object:     "Entity",
  1563  		Field:      field,
  1564  		Args:       nil,
  1565  		IsMethod:   true,
  1566  		IsResolver: true,
  1567  	}
  1568  
  1569  	ctx = graphql.WithFieldContext(ctx, fc)
  1570  	rawArgs := field.ArgumentMap(ec.Variables)
  1571  	args, err := ec.field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx, rawArgs)
  1572  	if err != nil {
  1573  		ec.Error(ctx, err)
  1574  		return graphql.Null
  1575  	}
  1576  	fc.Args = args
  1577  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1578  		directive0 := func(rctx context.Context) (interface{}, error) {
  1579  			ctx = rctx // use context from middleware stack in children
  1580  			return ec.resolvers.Entity().FindManyMultiPlanetRequiresNestedByNames(rctx, args["reps"].([]*MultiPlanetRequiresNestedByNamesInput))
  1581  		}
  1582  		directive1 := func(ctx context.Context) (interface{}, error) {
  1583  			multi, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
  1584  			if err != nil {
  1585  				return nil, err
  1586  			}
  1587  			if ec.directives.EntityResolver == nil {
  1588  				return nil, errors.New("directive entityResolver is not implemented")
  1589  			}
  1590  			return ec.directives.EntityResolver(ctx, nil, directive0, multi)
  1591  		}
  1592  
  1593  		tmp, err := directive1(rctx)
  1594  		if err != nil {
  1595  			return nil, graphql.ErrorOnPath(ctx, err)
  1596  		}
  1597  		if tmp == nil {
  1598  			return nil, nil
  1599  		}
  1600  		if data, ok := tmp.([]*MultiPlanetRequiresNested); ok {
  1601  			return data, nil
  1602  		}
  1603  		return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/operandinc/gqlgen/plugin/federation/testdata/entityresolver/generated.MultiPlanetRequiresNested`, tmp)
  1604  	})
  1605  	if err != nil {
  1606  		ec.Error(ctx, err)
  1607  		return graphql.Null
  1608  	}
  1609  	if resTmp == nil {
  1610  		return graphql.Null
  1611  	}
  1612  	res := resTmp.([]*MultiPlanetRequiresNested)
  1613  	fc.Result = res
  1614  	return ec.marshalOMultiPlanetRequiresNested2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiPlanetRequiresNested(ctx, field.Selections, res)
  1615  }
  1616  
  1617  func (ec *executionContext) _Entity_findPlanetMultipleRequiresByName(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1618  	defer func() {
  1619  		if r := recover(); r != nil {
  1620  			ec.Error(ctx, ec.Recover(ctx, r))
  1621  			ret = graphql.Null
  1622  		}
  1623  	}()
  1624  	fc := &graphql.FieldContext{
  1625  		Object:     "Entity",
  1626  		Field:      field,
  1627  		Args:       nil,
  1628  		IsMethod:   true,
  1629  		IsResolver: true,
  1630  	}
  1631  
  1632  	ctx = graphql.WithFieldContext(ctx, fc)
  1633  	rawArgs := field.ArgumentMap(ec.Variables)
  1634  	args, err := ec.field_Entity_findPlanetMultipleRequiresByName_args(ctx, rawArgs)
  1635  	if err != nil {
  1636  		ec.Error(ctx, err)
  1637  		return graphql.Null
  1638  	}
  1639  	fc.Args = args
  1640  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1641  		ctx = rctx // use context from middleware stack in children
  1642  		return ec.resolvers.Entity().FindPlanetMultipleRequiresByName(rctx, args["name"].(string))
  1643  	})
  1644  	if err != nil {
  1645  		ec.Error(ctx, err)
  1646  		return graphql.Null
  1647  	}
  1648  	if resTmp == nil {
  1649  		if !graphql.HasFieldError(ctx, fc) {
  1650  			ec.Errorf(ctx, "must not be null")
  1651  		}
  1652  		return graphql.Null
  1653  	}
  1654  	res := resTmp.(*PlanetMultipleRequires)
  1655  	fc.Result = res
  1656  	return ec.marshalNPlanetMultipleRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetMultipleRequires(ctx, field.Selections, res)
  1657  }
  1658  
  1659  func (ec *executionContext) _Entity_findPlanetRequiresByName(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1660  	defer func() {
  1661  		if r := recover(); r != nil {
  1662  			ec.Error(ctx, ec.Recover(ctx, r))
  1663  			ret = graphql.Null
  1664  		}
  1665  	}()
  1666  	fc := &graphql.FieldContext{
  1667  		Object:     "Entity",
  1668  		Field:      field,
  1669  		Args:       nil,
  1670  		IsMethod:   true,
  1671  		IsResolver: true,
  1672  	}
  1673  
  1674  	ctx = graphql.WithFieldContext(ctx, fc)
  1675  	rawArgs := field.ArgumentMap(ec.Variables)
  1676  	args, err := ec.field_Entity_findPlanetRequiresByName_args(ctx, rawArgs)
  1677  	if err != nil {
  1678  		ec.Error(ctx, err)
  1679  		return graphql.Null
  1680  	}
  1681  	fc.Args = args
  1682  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1683  		ctx = rctx // use context from middleware stack in children
  1684  		return ec.resolvers.Entity().FindPlanetRequiresByName(rctx, args["name"].(string))
  1685  	})
  1686  	if err != nil {
  1687  		ec.Error(ctx, err)
  1688  		return graphql.Null
  1689  	}
  1690  	if resTmp == nil {
  1691  		if !graphql.HasFieldError(ctx, fc) {
  1692  			ec.Errorf(ctx, "must not be null")
  1693  		}
  1694  		return graphql.Null
  1695  	}
  1696  	res := resTmp.(*PlanetRequires)
  1697  	fc.Result = res
  1698  	return ec.marshalNPlanetRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetRequires(ctx, field.Selections, res)
  1699  }
  1700  
  1701  func (ec *executionContext) _Entity_findPlanetRequiresNestedByName(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1702  	defer func() {
  1703  		if r := recover(); r != nil {
  1704  			ec.Error(ctx, ec.Recover(ctx, r))
  1705  			ret = graphql.Null
  1706  		}
  1707  	}()
  1708  	fc := &graphql.FieldContext{
  1709  		Object:     "Entity",
  1710  		Field:      field,
  1711  		Args:       nil,
  1712  		IsMethod:   true,
  1713  		IsResolver: true,
  1714  	}
  1715  
  1716  	ctx = graphql.WithFieldContext(ctx, fc)
  1717  	rawArgs := field.ArgumentMap(ec.Variables)
  1718  	args, err := ec.field_Entity_findPlanetRequiresNestedByName_args(ctx, rawArgs)
  1719  	if err != nil {
  1720  		ec.Error(ctx, err)
  1721  		return graphql.Null
  1722  	}
  1723  	fc.Args = args
  1724  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1725  		ctx = rctx // use context from middleware stack in children
  1726  		return ec.resolvers.Entity().FindPlanetRequiresNestedByName(rctx, args["name"].(string))
  1727  	})
  1728  	if err != nil {
  1729  		ec.Error(ctx, err)
  1730  		return graphql.Null
  1731  	}
  1732  	if resTmp == nil {
  1733  		if !graphql.HasFieldError(ctx, fc) {
  1734  			ec.Errorf(ctx, "must not be null")
  1735  		}
  1736  		return graphql.Null
  1737  	}
  1738  	res := resTmp.(*PlanetRequiresNested)
  1739  	fc.Result = res
  1740  	return ec.marshalNPlanetRequiresNested2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetRequiresNested(ctx, field.Selections, res)
  1741  }
  1742  
  1743  func (ec *executionContext) _Entity_findWorldByHelloNameAndFoo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1744  	defer func() {
  1745  		if r := recover(); r != nil {
  1746  			ec.Error(ctx, ec.Recover(ctx, r))
  1747  			ret = graphql.Null
  1748  		}
  1749  	}()
  1750  	fc := &graphql.FieldContext{
  1751  		Object:     "Entity",
  1752  		Field:      field,
  1753  		Args:       nil,
  1754  		IsMethod:   true,
  1755  		IsResolver: true,
  1756  	}
  1757  
  1758  	ctx = graphql.WithFieldContext(ctx, fc)
  1759  	rawArgs := field.ArgumentMap(ec.Variables)
  1760  	args, err := ec.field_Entity_findWorldByHelloNameAndFoo_args(ctx, rawArgs)
  1761  	if err != nil {
  1762  		ec.Error(ctx, err)
  1763  		return graphql.Null
  1764  	}
  1765  	fc.Args = args
  1766  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1767  		ctx = rctx // use context from middleware stack in children
  1768  		return ec.resolvers.Entity().FindWorldByHelloNameAndFoo(rctx, args["helloName"].(string), args["foo"].(string))
  1769  	})
  1770  	if err != nil {
  1771  		ec.Error(ctx, err)
  1772  		return graphql.Null
  1773  	}
  1774  	if resTmp == nil {
  1775  		if !graphql.HasFieldError(ctx, fc) {
  1776  			ec.Errorf(ctx, "must not be null")
  1777  		}
  1778  		return graphql.Null
  1779  	}
  1780  	res := resTmp.(*World)
  1781  	fc.Result = res
  1782  	return ec.marshalNWorld2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorld(ctx, field.Selections, res)
  1783  }
  1784  
  1785  func (ec *executionContext) _Entity_findWorldNameByName(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1786  	defer func() {
  1787  		if r := recover(); r != nil {
  1788  			ec.Error(ctx, ec.Recover(ctx, r))
  1789  			ret = graphql.Null
  1790  		}
  1791  	}()
  1792  	fc := &graphql.FieldContext{
  1793  		Object:     "Entity",
  1794  		Field:      field,
  1795  		Args:       nil,
  1796  		IsMethod:   true,
  1797  		IsResolver: true,
  1798  	}
  1799  
  1800  	ctx = graphql.WithFieldContext(ctx, fc)
  1801  	rawArgs := field.ArgumentMap(ec.Variables)
  1802  	args, err := ec.field_Entity_findWorldNameByName_args(ctx, rawArgs)
  1803  	if err != nil {
  1804  		ec.Error(ctx, err)
  1805  		return graphql.Null
  1806  	}
  1807  	fc.Args = args
  1808  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1809  		ctx = rctx // use context from middleware stack in children
  1810  		return ec.resolvers.Entity().FindWorldNameByName(rctx, args["name"].(string))
  1811  	})
  1812  	if err != nil {
  1813  		ec.Error(ctx, err)
  1814  		return graphql.Null
  1815  	}
  1816  	if resTmp == nil {
  1817  		if !graphql.HasFieldError(ctx, fc) {
  1818  			ec.Errorf(ctx, "must not be null")
  1819  		}
  1820  		return graphql.Null
  1821  	}
  1822  	res := resTmp.(*WorldName)
  1823  	fc.Result = res
  1824  	return ec.marshalNWorldName2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorldName(ctx, field.Selections, res)
  1825  }
  1826  
  1827  func (ec *executionContext) _Entity_findWorldWithMultipleKeysByHelloNameAndFoo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1828  	defer func() {
  1829  		if r := recover(); r != nil {
  1830  			ec.Error(ctx, ec.Recover(ctx, r))
  1831  			ret = graphql.Null
  1832  		}
  1833  	}()
  1834  	fc := &graphql.FieldContext{
  1835  		Object:     "Entity",
  1836  		Field:      field,
  1837  		Args:       nil,
  1838  		IsMethod:   true,
  1839  		IsResolver: true,
  1840  	}
  1841  
  1842  	ctx = graphql.WithFieldContext(ctx, fc)
  1843  	rawArgs := field.ArgumentMap(ec.Variables)
  1844  	args, err := ec.field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx, rawArgs)
  1845  	if err != nil {
  1846  		ec.Error(ctx, err)
  1847  		return graphql.Null
  1848  	}
  1849  	fc.Args = args
  1850  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1851  		ctx = rctx // use context from middleware stack in children
  1852  		return ec.resolvers.Entity().FindWorldWithMultipleKeysByHelloNameAndFoo(rctx, args["helloName"].(string), args["foo"].(string))
  1853  	})
  1854  	if err != nil {
  1855  		ec.Error(ctx, err)
  1856  		return graphql.Null
  1857  	}
  1858  	if resTmp == nil {
  1859  		if !graphql.HasFieldError(ctx, fc) {
  1860  			ec.Errorf(ctx, "must not be null")
  1861  		}
  1862  		return graphql.Null
  1863  	}
  1864  	res := resTmp.(*WorldWithMultipleKeys)
  1865  	fc.Result = res
  1866  	return ec.marshalNWorldWithMultipleKeys2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorldWithMultipleKeys(ctx, field.Selections, res)
  1867  }
  1868  
  1869  func (ec *executionContext) _Entity_findWorldWithMultipleKeysByBar(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1870  	defer func() {
  1871  		if r := recover(); r != nil {
  1872  			ec.Error(ctx, ec.Recover(ctx, r))
  1873  			ret = graphql.Null
  1874  		}
  1875  	}()
  1876  	fc := &graphql.FieldContext{
  1877  		Object:     "Entity",
  1878  		Field:      field,
  1879  		Args:       nil,
  1880  		IsMethod:   true,
  1881  		IsResolver: true,
  1882  	}
  1883  
  1884  	ctx = graphql.WithFieldContext(ctx, fc)
  1885  	rawArgs := field.ArgumentMap(ec.Variables)
  1886  	args, err := ec.field_Entity_findWorldWithMultipleKeysByBar_args(ctx, rawArgs)
  1887  	if err != nil {
  1888  		ec.Error(ctx, err)
  1889  		return graphql.Null
  1890  	}
  1891  	fc.Args = args
  1892  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1893  		ctx = rctx // use context from middleware stack in children
  1894  		return ec.resolvers.Entity().FindWorldWithMultipleKeysByBar(rctx, args["bar"].(int))
  1895  	})
  1896  	if err != nil {
  1897  		ec.Error(ctx, err)
  1898  		return graphql.Null
  1899  	}
  1900  	if resTmp == nil {
  1901  		if !graphql.HasFieldError(ctx, fc) {
  1902  			ec.Errorf(ctx, "must not be null")
  1903  		}
  1904  		return graphql.Null
  1905  	}
  1906  	res := resTmp.(*WorldWithMultipleKeys)
  1907  	fc.Result = res
  1908  	return ec.marshalNWorldWithMultipleKeys2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorldWithMultipleKeys(ctx, field.Selections, res)
  1909  }
  1910  
  1911  func (ec *executionContext) _Hello_name(ctx context.Context, field graphql.CollectedField, obj *Hello) (ret graphql.Marshaler) {
  1912  	defer func() {
  1913  		if r := recover(); r != nil {
  1914  			ec.Error(ctx, ec.Recover(ctx, r))
  1915  			ret = graphql.Null
  1916  		}
  1917  	}()
  1918  	fc := &graphql.FieldContext{
  1919  		Object:     "Hello",
  1920  		Field:      field,
  1921  		Args:       nil,
  1922  		IsMethod:   false,
  1923  		IsResolver: false,
  1924  	}
  1925  
  1926  	ctx = graphql.WithFieldContext(ctx, fc)
  1927  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1928  		ctx = rctx // use context from middleware stack in children
  1929  		return obj.Name, nil
  1930  	})
  1931  	if err != nil {
  1932  		ec.Error(ctx, err)
  1933  		return graphql.Null
  1934  	}
  1935  	if resTmp == nil {
  1936  		if !graphql.HasFieldError(ctx, fc) {
  1937  			ec.Errorf(ctx, "must not be null")
  1938  		}
  1939  		return graphql.Null
  1940  	}
  1941  	res := resTmp.(string)
  1942  	fc.Result = res
  1943  	return ec.marshalNString2string(ctx, field.Selections, res)
  1944  }
  1945  
  1946  func (ec *executionContext) _Hello_secondary(ctx context.Context, field graphql.CollectedField, obj *Hello) (ret graphql.Marshaler) {
  1947  	defer func() {
  1948  		if r := recover(); r != nil {
  1949  			ec.Error(ctx, ec.Recover(ctx, r))
  1950  			ret = graphql.Null
  1951  		}
  1952  	}()
  1953  	fc := &graphql.FieldContext{
  1954  		Object:     "Hello",
  1955  		Field:      field,
  1956  		Args:       nil,
  1957  		IsMethod:   false,
  1958  		IsResolver: false,
  1959  	}
  1960  
  1961  	ctx = graphql.WithFieldContext(ctx, fc)
  1962  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1963  		ctx = rctx // use context from middleware stack in children
  1964  		return obj.Secondary, nil
  1965  	})
  1966  	if err != nil {
  1967  		ec.Error(ctx, err)
  1968  		return graphql.Null
  1969  	}
  1970  	if resTmp == nil {
  1971  		if !graphql.HasFieldError(ctx, fc) {
  1972  			ec.Errorf(ctx, "must not be null")
  1973  		}
  1974  		return graphql.Null
  1975  	}
  1976  	res := resTmp.(string)
  1977  	fc.Result = res
  1978  	return ec.marshalNString2string(ctx, field.Selections, res)
  1979  }
  1980  
  1981  func (ec *executionContext) _HelloMultiSingleKeys_key1(ctx context.Context, field graphql.CollectedField, obj *HelloMultiSingleKeys) (ret graphql.Marshaler) {
  1982  	defer func() {
  1983  		if r := recover(); r != nil {
  1984  			ec.Error(ctx, ec.Recover(ctx, r))
  1985  			ret = graphql.Null
  1986  		}
  1987  	}()
  1988  	fc := &graphql.FieldContext{
  1989  		Object:     "HelloMultiSingleKeys",
  1990  		Field:      field,
  1991  		Args:       nil,
  1992  		IsMethod:   false,
  1993  		IsResolver: false,
  1994  	}
  1995  
  1996  	ctx = graphql.WithFieldContext(ctx, fc)
  1997  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1998  		ctx = rctx // use context from middleware stack in children
  1999  		return obj.Key1, nil
  2000  	})
  2001  	if err != nil {
  2002  		ec.Error(ctx, err)
  2003  		return graphql.Null
  2004  	}
  2005  	if resTmp == nil {
  2006  		if !graphql.HasFieldError(ctx, fc) {
  2007  			ec.Errorf(ctx, "must not be null")
  2008  		}
  2009  		return graphql.Null
  2010  	}
  2011  	res := resTmp.(string)
  2012  	fc.Result = res
  2013  	return ec.marshalNString2string(ctx, field.Selections, res)
  2014  }
  2015  
  2016  func (ec *executionContext) _HelloMultiSingleKeys_key2(ctx context.Context, field graphql.CollectedField, obj *HelloMultiSingleKeys) (ret graphql.Marshaler) {
  2017  	defer func() {
  2018  		if r := recover(); r != nil {
  2019  			ec.Error(ctx, ec.Recover(ctx, r))
  2020  			ret = graphql.Null
  2021  		}
  2022  	}()
  2023  	fc := &graphql.FieldContext{
  2024  		Object:     "HelloMultiSingleKeys",
  2025  		Field:      field,
  2026  		Args:       nil,
  2027  		IsMethod:   false,
  2028  		IsResolver: false,
  2029  	}
  2030  
  2031  	ctx = graphql.WithFieldContext(ctx, fc)
  2032  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2033  		ctx = rctx // use context from middleware stack in children
  2034  		return obj.Key2, nil
  2035  	})
  2036  	if err != nil {
  2037  		ec.Error(ctx, err)
  2038  		return graphql.Null
  2039  	}
  2040  	if resTmp == nil {
  2041  		if !graphql.HasFieldError(ctx, fc) {
  2042  			ec.Errorf(ctx, "must not be null")
  2043  		}
  2044  		return graphql.Null
  2045  	}
  2046  	res := resTmp.(string)
  2047  	fc.Result = res
  2048  	return ec.marshalNString2string(ctx, field.Selections, res)
  2049  }
  2050  
  2051  func (ec *executionContext) _HelloWithErrors_name(ctx context.Context, field graphql.CollectedField, obj *HelloWithErrors) (ret graphql.Marshaler) {
  2052  	defer func() {
  2053  		if r := recover(); r != nil {
  2054  			ec.Error(ctx, ec.Recover(ctx, r))
  2055  			ret = graphql.Null
  2056  		}
  2057  	}()
  2058  	fc := &graphql.FieldContext{
  2059  		Object:     "HelloWithErrors",
  2060  		Field:      field,
  2061  		Args:       nil,
  2062  		IsMethod:   false,
  2063  		IsResolver: false,
  2064  	}
  2065  
  2066  	ctx = graphql.WithFieldContext(ctx, fc)
  2067  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2068  		ctx = rctx // use context from middleware stack in children
  2069  		return obj.Name, nil
  2070  	})
  2071  	if err != nil {
  2072  		ec.Error(ctx, err)
  2073  		return graphql.Null
  2074  	}
  2075  	if resTmp == nil {
  2076  		if !graphql.HasFieldError(ctx, fc) {
  2077  			ec.Errorf(ctx, "must not be null")
  2078  		}
  2079  		return graphql.Null
  2080  	}
  2081  	res := resTmp.(string)
  2082  	fc.Result = res
  2083  	return ec.marshalNString2string(ctx, field.Selections, res)
  2084  }
  2085  
  2086  func (ec *executionContext) _MultiHello_name(ctx context.Context, field graphql.CollectedField, obj *MultiHello) (ret graphql.Marshaler) {
  2087  	defer func() {
  2088  		if r := recover(); r != nil {
  2089  			ec.Error(ctx, ec.Recover(ctx, r))
  2090  			ret = graphql.Null
  2091  		}
  2092  	}()
  2093  	fc := &graphql.FieldContext{
  2094  		Object:     "MultiHello",
  2095  		Field:      field,
  2096  		Args:       nil,
  2097  		IsMethod:   false,
  2098  		IsResolver: false,
  2099  	}
  2100  
  2101  	ctx = graphql.WithFieldContext(ctx, fc)
  2102  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2103  		ctx = rctx // use context from middleware stack in children
  2104  		return obj.Name, nil
  2105  	})
  2106  	if err != nil {
  2107  		ec.Error(ctx, err)
  2108  		return graphql.Null
  2109  	}
  2110  	if resTmp == nil {
  2111  		if !graphql.HasFieldError(ctx, fc) {
  2112  			ec.Errorf(ctx, "must not be null")
  2113  		}
  2114  		return graphql.Null
  2115  	}
  2116  	res := resTmp.(string)
  2117  	fc.Result = res
  2118  	return ec.marshalNString2string(ctx, field.Selections, res)
  2119  }
  2120  
  2121  func (ec *executionContext) _MultiHelloMultipleRequires_name(ctx context.Context, field graphql.CollectedField, obj *MultiHelloMultipleRequires) (ret graphql.Marshaler) {
  2122  	defer func() {
  2123  		if r := recover(); r != nil {
  2124  			ec.Error(ctx, ec.Recover(ctx, r))
  2125  			ret = graphql.Null
  2126  		}
  2127  	}()
  2128  	fc := &graphql.FieldContext{
  2129  		Object:     "MultiHelloMultipleRequires",
  2130  		Field:      field,
  2131  		Args:       nil,
  2132  		IsMethod:   false,
  2133  		IsResolver: false,
  2134  	}
  2135  
  2136  	ctx = graphql.WithFieldContext(ctx, fc)
  2137  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2138  		ctx = rctx // use context from middleware stack in children
  2139  		return obj.Name, nil
  2140  	})
  2141  	if err != nil {
  2142  		ec.Error(ctx, err)
  2143  		return graphql.Null
  2144  	}
  2145  	if resTmp == nil {
  2146  		if !graphql.HasFieldError(ctx, fc) {
  2147  			ec.Errorf(ctx, "must not be null")
  2148  		}
  2149  		return graphql.Null
  2150  	}
  2151  	res := resTmp.(string)
  2152  	fc.Result = res
  2153  	return ec.marshalNString2string(ctx, field.Selections, res)
  2154  }
  2155  
  2156  func (ec *executionContext) _MultiHelloMultipleRequires_key1(ctx context.Context, field graphql.CollectedField, obj *MultiHelloMultipleRequires) (ret graphql.Marshaler) {
  2157  	defer func() {
  2158  		if r := recover(); r != nil {
  2159  			ec.Error(ctx, ec.Recover(ctx, r))
  2160  			ret = graphql.Null
  2161  		}
  2162  	}()
  2163  	fc := &graphql.FieldContext{
  2164  		Object:     "MultiHelloMultipleRequires",
  2165  		Field:      field,
  2166  		Args:       nil,
  2167  		IsMethod:   false,
  2168  		IsResolver: false,
  2169  	}
  2170  
  2171  	ctx = graphql.WithFieldContext(ctx, fc)
  2172  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2173  		ctx = rctx // use context from middleware stack in children
  2174  		return obj.Key1, nil
  2175  	})
  2176  	if err != nil {
  2177  		ec.Error(ctx, err)
  2178  		return graphql.Null
  2179  	}
  2180  	if resTmp == nil {
  2181  		if !graphql.HasFieldError(ctx, fc) {
  2182  			ec.Errorf(ctx, "must not be null")
  2183  		}
  2184  		return graphql.Null
  2185  	}
  2186  	res := resTmp.(string)
  2187  	fc.Result = res
  2188  	return ec.marshalNString2string(ctx, field.Selections, res)
  2189  }
  2190  
  2191  func (ec *executionContext) _MultiHelloMultipleRequires_key2(ctx context.Context, field graphql.CollectedField, obj *MultiHelloMultipleRequires) (ret graphql.Marshaler) {
  2192  	defer func() {
  2193  		if r := recover(); r != nil {
  2194  			ec.Error(ctx, ec.Recover(ctx, r))
  2195  			ret = graphql.Null
  2196  		}
  2197  	}()
  2198  	fc := &graphql.FieldContext{
  2199  		Object:     "MultiHelloMultipleRequires",
  2200  		Field:      field,
  2201  		Args:       nil,
  2202  		IsMethod:   false,
  2203  		IsResolver: false,
  2204  	}
  2205  
  2206  	ctx = graphql.WithFieldContext(ctx, fc)
  2207  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2208  		ctx = rctx // use context from middleware stack in children
  2209  		return obj.Key2, nil
  2210  	})
  2211  	if err != nil {
  2212  		ec.Error(ctx, err)
  2213  		return graphql.Null
  2214  	}
  2215  	if resTmp == nil {
  2216  		if !graphql.HasFieldError(ctx, fc) {
  2217  			ec.Errorf(ctx, "must not be null")
  2218  		}
  2219  		return graphql.Null
  2220  	}
  2221  	res := resTmp.(string)
  2222  	fc.Result = res
  2223  	return ec.marshalNString2string(ctx, field.Selections, res)
  2224  }
  2225  
  2226  func (ec *executionContext) _MultiHelloMultipleRequires_key3(ctx context.Context, field graphql.CollectedField, obj *MultiHelloMultipleRequires) (ret graphql.Marshaler) {
  2227  	defer func() {
  2228  		if r := recover(); r != nil {
  2229  			ec.Error(ctx, ec.Recover(ctx, r))
  2230  			ret = graphql.Null
  2231  		}
  2232  	}()
  2233  	fc := &graphql.FieldContext{
  2234  		Object:     "MultiHelloMultipleRequires",
  2235  		Field:      field,
  2236  		Args:       nil,
  2237  		IsMethod:   false,
  2238  		IsResolver: false,
  2239  	}
  2240  
  2241  	ctx = graphql.WithFieldContext(ctx, fc)
  2242  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2243  		ctx = rctx // use context from middleware stack in children
  2244  		return obj.Key3, nil
  2245  	})
  2246  	if err != nil {
  2247  		ec.Error(ctx, err)
  2248  		return graphql.Null
  2249  	}
  2250  	if resTmp == nil {
  2251  		if !graphql.HasFieldError(ctx, fc) {
  2252  			ec.Errorf(ctx, "must not be null")
  2253  		}
  2254  		return graphql.Null
  2255  	}
  2256  	res := resTmp.(string)
  2257  	fc.Result = res
  2258  	return ec.marshalNString2string(ctx, field.Selections, res)
  2259  }
  2260  
  2261  func (ec *executionContext) _MultiHelloRequires_name(ctx context.Context, field graphql.CollectedField, obj *MultiHelloRequires) (ret graphql.Marshaler) {
  2262  	defer func() {
  2263  		if r := recover(); r != nil {
  2264  			ec.Error(ctx, ec.Recover(ctx, r))
  2265  			ret = graphql.Null
  2266  		}
  2267  	}()
  2268  	fc := &graphql.FieldContext{
  2269  		Object:     "MultiHelloRequires",
  2270  		Field:      field,
  2271  		Args:       nil,
  2272  		IsMethod:   false,
  2273  		IsResolver: false,
  2274  	}
  2275  
  2276  	ctx = graphql.WithFieldContext(ctx, fc)
  2277  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2278  		ctx = rctx // use context from middleware stack in children
  2279  		return obj.Name, nil
  2280  	})
  2281  	if err != nil {
  2282  		ec.Error(ctx, err)
  2283  		return graphql.Null
  2284  	}
  2285  	if resTmp == nil {
  2286  		if !graphql.HasFieldError(ctx, fc) {
  2287  			ec.Errorf(ctx, "must not be null")
  2288  		}
  2289  		return graphql.Null
  2290  	}
  2291  	res := resTmp.(string)
  2292  	fc.Result = res
  2293  	return ec.marshalNString2string(ctx, field.Selections, res)
  2294  }
  2295  
  2296  func (ec *executionContext) _MultiHelloRequires_key1(ctx context.Context, field graphql.CollectedField, obj *MultiHelloRequires) (ret graphql.Marshaler) {
  2297  	defer func() {
  2298  		if r := recover(); r != nil {
  2299  			ec.Error(ctx, ec.Recover(ctx, r))
  2300  			ret = graphql.Null
  2301  		}
  2302  	}()
  2303  	fc := &graphql.FieldContext{
  2304  		Object:     "MultiHelloRequires",
  2305  		Field:      field,
  2306  		Args:       nil,
  2307  		IsMethod:   false,
  2308  		IsResolver: false,
  2309  	}
  2310  
  2311  	ctx = graphql.WithFieldContext(ctx, fc)
  2312  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2313  		ctx = rctx // use context from middleware stack in children
  2314  		return obj.Key1, nil
  2315  	})
  2316  	if err != nil {
  2317  		ec.Error(ctx, err)
  2318  		return graphql.Null
  2319  	}
  2320  	if resTmp == nil {
  2321  		if !graphql.HasFieldError(ctx, fc) {
  2322  			ec.Errorf(ctx, "must not be null")
  2323  		}
  2324  		return graphql.Null
  2325  	}
  2326  	res := resTmp.(string)
  2327  	fc.Result = res
  2328  	return ec.marshalNString2string(ctx, field.Selections, res)
  2329  }
  2330  
  2331  func (ec *executionContext) _MultiHelloRequires_key2(ctx context.Context, field graphql.CollectedField, obj *MultiHelloRequires) (ret graphql.Marshaler) {
  2332  	defer func() {
  2333  		if r := recover(); r != nil {
  2334  			ec.Error(ctx, ec.Recover(ctx, r))
  2335  			ret = graphql.Null
  2336  		}
  2337  	}()
  2338  	fc := &graphql.FieldContext{
  2339  		Object:     "MultiHelloRequires",
  2340  		Field:      field,
  2341  		Args:       nil,
  2342  		IsMethod:   false,
  2343  		IsResolver: false,
  2344  	}
  2345  
  2346  	ctx = graphql.WithFieldContext(ctx, fc)
  2347  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2348  		ctx = rctx // use context from middleware stack in children
  2349  		return obj.Key2, nil
  2350  	})
  2351  	if err != nil {
  2352  		ec.Error(ctx, err)
  2353  		return graphql.Null
  2354  	}
  2355  	if resTmp == nil {
  2356  		if !graphql.HasFieldError(ctx, fc) {
  2357  			ec.Errorf(ctx, "must not be null")
  2358  		}
  2359  		return graphql.Null
  2360  	}
  2361  	res := resTmp.(string)
  2362  	fc.Result = res
  2363  	return ec.marshalNString2string(ctx, field.Selections, res)
  2364  }
  2365  
  2366  func (ec *executionContext) _MultiHelloWithError_name(ctx context.Context, field graphql.CollectedField, obj *MultiHelloWithError) (ret graphql.Marshaler) {
  2367  	defer func() {
  2368  		if r := recover(); r != nil {
  2369  			ec.Error(ctx, ec.Recover(ctx, r))
  2370  			ret = graphql.Null
  2371  		}
  2372  	}()
  2373  	fc := &graphql.FieldContext{
  2374  		Object:     "MultiHelloWithError",
  2375  		Field:      field,
  2376  		Args:       nil,
  2377  		IsMethod:   false,
  2378  		IsResolver: false,
  2379  	}
  2380  
  2381  	ctx = graphql.WithFieldContext(ctx, fc)
  2382  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2383  		ctx = rctx // use context from middleware stack in children
  2384  		return obj.Name, nil
  2385  	})
  2386  	if err != nil {
  2387  		ec.Error(ctx, err)
  2388  		return graphql.Null
  2389  	}
  2390  	if resTmp == nil {
  2391  		if !graphql.HasFieldError(ctx, fc) {
  2392  			ec.Errorf(ctx, "must not be null")
  2393  		}
  2394  		return graphql.Null
  2395  	}
  2396  	res := resTmp.(string)
  2397  	fc.Result = res
  2398  	return ec.marshalNString2string(ctx, field.Selections, res)
  2399  }
  2400  
  2401  func (ec *executionContext) _MultiPlanetRequiresNested_name(ctx context.Context, field graphql.CollectedField, obj *MultiPlanetRequiresNested) (ret graphql.Marshaler) {
  2402  	defer func() {
  2403  		if r := recover(); r != nil {
  2404  			ec.Error(ctx, ec.Recover(ctx, r))
  2405  			ret = graphql.Null
  2406  		}
  2407  	}()
  2408  	fc := &graphql.FieldContext{
  2409  		Object:     "MultiPlanetRequiresNested",
  2410  		Field:      field,
  2411  		Args:       nil,
  2412  		IsMethod:   false,
  2413  		IsResolver: false,
  2414  	}
  2415  
  2416  	ctx = graphql.WithFieldContext(ctx, fc)
  2417  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2418  		ctx = rctx // use context from middleware stack in children
  2419  		return obj.Name, nil
  2420  	})
  2421  	if err != nil {
  2422  		ec.Error(ctx, err)
  2423  		return graphql.Null
  2424  	}
  2425  	if resTmp == nil {
  2426  		if !graphql.HasFieldError(ctx, fc) {
  2427  			ec.Errorf(ctx, "must not be null")
  2428  		}
  2429  		return graphql.Null
  2430  	}
  2431  	res := resTmp.(string)
  2432  	fc.Result = res
  2433  	return ec.marshalNString2string(ctx, field.Selections, res)
  2434  }
  2435  
  2436  func (ec *executionContext) _MultiPlanetRequiresNested_world(ctx context.Context, field graphql.CollectedField, obj *MultiPlanetRequiresNested) (ret graphql.Marshaler) {
  2437  	defer func() {
  2438  		if r := recover(); r != nil {
  2439  			ec.Error(ctx, ec.Recover(ctx, r))
  2440  			ret = graphql.Null
  2441  		}
  2442  	}()
  2443  	fc := &graphql.FieldContext{
  2444  		Object:     "MultiPlanetRequiresNested",
  2445  		Field:      field,
  2446  		Args:       nil,
  2447  		IsMethod:   false,
  2448  		IsResolver: false,
  2449  	}
  2450  
  2451  	ctx = graphql.WithFieldContext(ctx, fc)
  2452  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2453  		ctx = rctx // use context from middleware stack in children
  2454  		return obj.World, nil
  2455  	})
  2456  	if err != nil {
  2457  		ec.Error(ctx, err)
  2458  		return graphql.Null
  2459  	}
  2460  	if resTmp == nil {
  2461  		if !graphql.HasFieldError(ctx, fc) {
  2462  			ec.Errorf(ctx, "must not be null")
  2463  		}
  2464  		return graphql.Null
  2465  	}
  2466  	res := resTmp.(*World)
  2467  	fc.Result = res
  2468  	return ec.marshalNWorld2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorld(ctx, field.Selections, res)
  2469  }
  2470  
  2471  func (ec *executionContext) _MultiPlanetRequiresNested_size(ctx context.Context, field graphql.CollectedField, obj *MultiPlanetRequiresNested) (ret graphql.Marshaler) {
  2472  	defer func() {
  2473  		if r := recover(); r != nil {
  2474  			ec.Error(ctx, ec.Recover(ctx, r))
  2475  			ret = graphql.Null
  2476  		}
  2477  	}()
  2478  	fc := &graphql.FieldContext{
  2479  		Object:     "MultiPlanetRequiresNested",
  2480  		Field:      field,
  2481  		Args:       nil,
  2482  		IsMethod:   false,
  2483  		IsResolver: false,
  2484  	}
  2485  
  2486  	ctx = graphql.WithFieldContext(ctx, fc)
  2487  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2488  		ctx = rctx // use context from middleware stack in children
  2489  		return obj.Size, nil
  2490  	})
  2491  	if err != nil {
  2492  		ec.Error(ctx, err)
  2493  		return graphql.Null
  2494  	}
  2495  	if resTmp == nil {
  2496  		if !graphql.HasFieldError(ctx, fc) {
  2497  			ec.Errorf(ctx, "must not be null")
  2498  		}
  2499  		return graphql.Null
  2500  	}
  2501  	res := resTmp.(int)
  2502  	fc.Result = res
  2503  	return ec.marshalNInt2int(ctx, field.Selections, res)
  2504  }
  2505  
  2506  func (ec *executionContext) _PlanetMultipleRequires_name(ctx context.Context, field graphql.CollectedField, obj *PlanetMultipleRequires) (ret graphql.Marshaler) {
  2507  	defer func() {
  2508  		if r := recover(); r != nil {
  2509  			ec.Error(ctx, ec.Recover(ctx, r))
  2510  			ret = graphql.Null
  2511  		}
  2512  	}()
  2513  	fc := &graphql.FieldContext{
  2514  		Object:     "PlanetMultipleRequires",
  2515  		Field:      field,
  2516  		Args:       nil,
  2517  		IsMethod:   false,
  2518  		IsResolver: false,
  2519  	}
  2520  
  2521  	ctx = graphql.WithFieldContext(ctx, fc)
  2522  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2523  		ctx = rctx // use context from middleware stack in children
  2524  		return obj.Name, nil
  2525  	})
  2526  	if err != nil {
  2527  		ec.Error(ctx, err)
  2528  		return graphql.Null
  2529  	}
  2530  	if resTmp == nil {
  2531  		if !graphql.HasFieldError(ctx, fc) {
  2532  			ec.Errorf(ctx, "must not be null")
  2533  		}
  2534  		return graphql.Null
  2535  	}
  2536  	res := resTmp.(string)
  2537  	fc.Result = res
  2538  	return ec.marshalNString2string(ctx, field.Selections, res)
  2539  }
  2540  
  2541  func (ec *executionContext) _PlanetMultipleRequires_diameter(ctx context.Context, field graphql.CollectedField, obj *PlanetMultipleRequires) (ret graphql.Marshaler) {
  2542  	defer func() {
  2543  		if r := recover(); r != nil {
  2544  			ec.Error(ctx, ec.Recover(ctx, r))
  2545  			ret = graphql.Null
  2546  		}
  2547  	}()
  2548  	fc := &graphql.FieldContext{
  2549  		Object:     "PlanetMultipleRequires",
  2550  		Field:      field,
  2551  		Args:       nil,
  2552  		IsMethod:   false,
  2553  		IsResolver: false,
  2554  	}
  2555  
  2556  	ctx = graphql.WithFieldContext(ctx, fc)
  2557  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2558  		ctx = rctx // use context from middleware stack in children
  2559  		return obj.Diameter, nil
  2560  	})
  2561  	if err != nil {
  2562  		ec.Error(ctx, err)
  2563  		return graphql.Null
  2564  	}
  2565  	if resTmp == nil {
  2566  		if !graphql.HasFieldError(ctx, fc) {
  2567  			ec.Errorf(ctx, "must not be null")
  2568  		}
  2569  		return graphql.Null
  2570  	}
  2571  	res := resTmp.(int)
  2572  	fc.Result = res
  2573  	return ec.marshalNInt2int(ctx, field.Selections, res)
  2574  }
  2575  
  2576  func (ec *executionContext) _PlanetMultipleRequires_density(ctx context.Context, field graphql.CollectedField, obj *PlanetMultipleRequires) (ret graphql.Marshaler) {
  2577  	defer func() {
  2578  		if r := recover(); r != nil {
  2579  			ec.Error(ctx, ec.Recover(ctx, r))
  2580  			ret = graphql.Null
  2581  		}
  2582  	}()
  2583  	fc := &graphql.FieldContext{
  2584  		Object:     "PlanetMultipleRequires",
  2585  		Field:      field,
  2586  		Args:       nil,
  2587  		IsMethod:   false,
  2588  		IsResolver: false,
  2589  	}
  2590  
  2591  	ctx = graphql.WithFieldContext(ctx, fc)
  2592  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2593  		ctx = rctx // use context from middleware stack in children
  2594  		return obj.Density, nil
  2595  	})
  2596  	if err != nil {
  2597  		ec.Error(ctx, err)
  2598  		return graphql.Null
  2599  	}
  2600  	if resTmp == nil {
  2601  		if !graphql.HasFieldError(ctx, fc) {
  2602  			ec.Errorf(ctx, "must not be null")
  2603  		}
  2604  		return graphql.Null
  2605  	}
  2606  	res := resTmp.(int)
  2607  	fc.Result = res
  2608  	return ec.marshalNInt2int(ctx, field.Selections, res)
  2609  }
  2610  
  2611  func (ec *executionContext) _PlanetMultipleRequires_weight(ctx context.Context, field graphql.CollectedField, obj *PlanetMultipleRequires) (ret graphql.Marshaler) {
  2612  	defer func() {
  2613  		if r := recover(); r != nil {
  2614  			ec.Error(ctx, ec.Recover(ctx, r))
  2615  			ret = graphql.Null
  2616  		}
  2617  	}()
  2618  	fc := &graphql.FieldContext{
  2619  		Object:     "PlanetMultipleRequires",
  2620  		Field:      field,
  2621  		Args:       nil,
  2622  		IsMethod:   false,
  2623  		IsResolver: false,
  2624  	}
  2625  
  2626  	ctx = graphql.WithFieldContext(ctx, fc)
  2627  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2628  		ctx = rctx // use context from middleware stack in children
  2629  		return obj.Weight, nil
  2630  	})
  2631  	if err != nil {
  2632  		ec.Error(ctx, err)
  2633  		return graphql.Null
  2634  	}
  2635  	if resTmp == nil {
  2636  		if !graphql.HasFieldError(ctx, fc) {
  2637  			ec.Errorf(ctx, "must not be null")
  2638  		}
  2639  		return graphql.Null
  2640  	}
  2641  	res := resTmp.(int)
  2642  	fc.Result = res
  2643  	return ec.marshalNInt2int(ctx, field.Selections, res)
  2644  }
  2645  
  2646  func (ec *executionContext) _PlanetRequires_name(ctx context.Context, field graphql.CollectedField, obj *PlanetRequires) (ret graphql.Marshaler) {
  2647  	defer func() {
  2648  		if r := recover(); r != nil {
  2649  			ec.Error(ctx, ec.Recover(ctx, r))
  2650  			ret = graphql.Null
  2651  		}
  2652  	}()
  2653  	fc := &graphql.FieldContext{
  2654  		Object:     "PlanetRequires",
  2655  		Field:      field,
  2656  		Args:       nil,
  2657  		IsMethod:   false,
  2658  		IsResolver: false,
  2659  	}
  2660  
  2661  	ctx = graphql.WithFieldContext(ctx, fc)
  2662  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2663  		ctx = rctx // use context from middleware stack in children
  2664  		return obj.Name, nil
  2665  	})
  2666  	if err != nil {
  2667  		ec.Error(ctx, err)
  2668  		return graphql.Null
  2669  	}
  2670  	if resTmp == nil {
  2671  		if !graphql.HasFieldError(ctx, fc) {
  2672  			ec.Errorf(ctx, "must not be null")
  2673  		}
  2674  		return graphql.Null
  2675  	}
  2676  	res := resTmp.(string)
  2677  	fc.Result = res
  2678  	return ec.marshalNString2string(ctx, field.Selections, res)
  2679  }
  2680  
  2681  func (ec *executionContext) _PlanetRequires_size(ctx context.Context, field graphql.CollectedField, obj *PlanetRequires) (ret graphql.Marshaler) {
  2682  	defer func() {
  2683  		if r := recover(); r != nil {
  2684  			ec.Error(ctx, ec.Recover(ctx, r))
  2685  			ret = graphql.Null
  2686  		}
  2687  	}()
  2688  	fc := &graphql.FieldContext{
  2689  		Object:     "PlanetRequires",
  2690  		Field:      field,
  2691  		Args:       nil,
  2692  		IsMethod:   false,
  2693  		IsResolver: false,
  2694  	}
  2695  
  2696  	ctx = graphql.WithFieldContext(ctx, fc)
  2697  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2698  		ctx = rctx // use context from middleware stack in children
  2699  		return obj.Size, nil
  2700  	})
  2701  	if err != nil {
  2702  		ec.Error(ctx, err)
  2703  		return graphql.Null
  2704  	}
  2705  	if resTmp == nil {
  2706  		if !graphql.HasFieldError(ctx, fc) {
  2707  			ec.Errorf(ctx, "must not be null")
  2708  		}
  2709  		return graphql.Null
  2710  	}
  2711  	res := resTmp.(int)
  2712  	fc.Result = res
  2713  	return ec.marshalNInt2int(ctx, field.Selections, res)
  2714  }
  2715  
  2716  func (ec *executionContext) _PlanetRequires_diameter(ctx context.Context, field graphql.CollectedField, obj *PlanetRequires) (ret graphql.Marshaler) {
  2717  	defer func() {
  2718  		if r := recover(); r != nil {
  2719  			ec.Error(ctx, ec.Recover(ctx, r))
  2720  			ret = graphql.Null
  2721  		}
  2722  	}()
  2723  	fc := &graphql.FieldContext{
  2724  		Object:     "PlanetRequires",
  2725  		Field:      field,
  2726  		Args:       nil,
  2727  		IsMethod:   false,
  2728  		IsResolver: false,
  2729  	}
  2730  
  2731  	ctx = graphql.WithFieldContext(ctx, fc)
  2732  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2733  		ctx = rctx // use context from middleware stack in children
  2734  		return obj.Diameter, nil
  2735  	})
  2736  	if err != nil {
  2737  		ec.Error(ctx, err)
  2738  		return graphql.Null
  2739  	}
  2740  	if resTmp == nil {
  2741  		if !graphql.HasFieldError(ctx, fc) {
  2742  			ec.Errorf(ctx, "must not be null")
  2743  		}
  2744  		return graphql.Null
  2745  	}
  2746  	res := resTmp.(int)
  2747  	fc.Result = res
  2748  	return ec.marshalNInt2int(ctx, field.Selections, res)
  2749  }
  2750  
  2751  func (ec *executionContext) _PlanetRequiresNested_name(ctx context.Context, field graphql.CollectedField, obj *PlanetRequiresNested) (ret graphql.Marshaler) {
  2752  	defer func() {
  2753  		if r := recover(); r != nil {
  2754  			ec.Error(ctx, ec.Recover(ctx, r))
  2755  			ret = graphql.Null
  2756  		}
  2757  	}()
  2758  	fc := &graphql.FieldContext{
  2759  		Object:     "PlanetRequiresNested",
  2760  		Field:      field,
  2761  		Args:       nil,
  2762  		IsMethod:   false,
  2763  		IsResolver: false,
  2764  	}
  2765  
  2766  	ctx = graphql.WithFieldContext(ctx, fc)
  2767  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2768  		ctx = rctx // use context from middleware stack in children
  2769  		return obj.Name, nil
  2770  	})
  2771  	if err != nil {
  2772  		ec.Error(ctx, err)
  2773  		return graphql.Null
  2774  	}
  2775  	if resTmp == nil {
  2776  		if !graphql.HasFieldError(ctx, fc) {
  2777  			ec.Errorf(ctx, "must not be null")
  2778  		}
  2779  		return graphql.Null
  2780  	}
  2781  	res := resTmp.(string)
  2782  	fc.Result = res
  2783  	return ec.marshalNString2string(ctx, field.Selections, res)
  2784  }
  2785  
  2786  func (ec *executionContext) _PlanetRequiresNested_world(ctx context.Context, field graphql.CollectedField, obj *PlanetRequiresNested) (ret graphql.Marshaler) {
  2787  	defer func() {
  2788  		if r := recover(); r != nil {
  2789  			ec.Error(ctx, ec.Recover(ctx, r))
  2790  			ret = graphql.Null
  2791  		}
  2792  	}()
  2793  	fc := &graphql.FieldContext{
  2794  		Object:     "PlanetRequiresNested",
  2795  		Field:      field,
  2796  		Args:       nil,
  2797  		IsMethod:   false,
  2798  		IsResolver: false,
  2799  	}
  2800  
  2801  	ctx = graphql.WithFieldContext(ctx, fc)
  2802  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2803  		ctx = rctx // use context from middleware stack in children
  2804  		return obj.World, nil
  2805  	})
  2806  	if err != nil {
  2807  		ec.Error(ctx, err)
  2808  		return graphql.Null
  2809  	}
  2810  	if resTmp == nil {
  2811  		if !graphql.HasFieldError(ctx, fc) {
  2812  			ec.Errorf(ctx, "must not be null")
  2813  		}
  2814  		return graphql.Null
  2815  	}
  2816  	res := resTmp.(*World)
  2817  	fc.Result = res
  2818  	return ec.marshalNWorld2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorld(ctx, field.Selections, res)
  2819  }
  2820  
  2821  func (ec *executionContext) _PlanetRequiresNested_size(ctx context.Context, field graphql.CollectedField, obj *PlanetRequiresNested) (ret graphql.Marshaler) {
  2822  	defer func() {
  2823  		if r := recover(); r != nil {
  2824  			ec.Error(ctx, ec.Recover(ctx, r))
  2825  			ret = graphql.Null
  2826  		}
  2827  	}()
  2828  	fc := &graphql.FieldContext{
  2829  		Object:     "PlanetRequiresNested",
  2830  		Field:      field,
  2831  		Args:       nil,
  2832  		IsMethod:   false,
  2833  		IsResolver: false,
  2834  	}
  2835  
  2836  	ctx = graphql.WithFieldContext(ctx, fc)
  2837  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2838  		ctx = rctx // use context from middleware stack in children
  2839  		return obj.Size, nil
  2840  	})
  2841  	if err != nil {
  2842  		ec.Error(ctx, err)
  2843  		return graphql.Null
  2844  	}
  2845  	if resTmp == nil {
  2846  		if !graphql.HasFieldError(ctx, fc) {
  2847  			ec.Errorf(ctx, "must not be null")
  2848  		}
  2849  		return graphql.Null
  2850  	}
  2851  	res := resTmp.(int)
  2852  	fc.Result = res
  2853  	return ec.marshalNInt2int(ctx, field.Selections, res)
  2854  }
  2855  
  2856  func (ec *executionContext) _Query__entities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  2857  	defer func() {
  2858  		if r := recover(); r != nil {
  2859  			ec.Error(ctx, ec.Recover(ctx, r))
  2860  			ret = graphql.Null
  2861  		}
  2862  	}()
  2863  	fc := &graphql.FieldContext{
  2864  		Object:     "Query",
  2865  		Field:      field,
  2866  		Args:       nil,
  2867  		IsMethod:   true,
  2868  		IsResolver: false,
  2869  	}
  2870  
  2871  	ctx = graphql.WithFieldContext(ctx, fc)
  2872  	rawArgs := field.ArgumentMap(ec.Variables)
  2873  	args, err := ec.field_Query__entities_args(ctx, rawArgs)
  2874  	if err != nil {
  2875  		ec.Error(ctx, err)
  2876  		return graphql.Null
  2877  	}
  2878  	fc.Args = args
  2879  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2880  		ctx = rctx // use context from middleware stack in children
  2881  		return ec.__resolve_entities(ctx, args["representations"].([]map[string]interface{})), nil
  2882  	})
  2883  	if err != nil {
  2884  		ec.Error(ctx, err)
  2885  		return graphql.Null
  2886  	}
  2887  	if resTmp == nil {
  2888  		if !graphql.HasFieldError(ctx, fc) {
  2889  			ec.Errorf(ctx, "must not be null")
  2890  		}
  2891  		return graphql.Null
  2892  	}
  2893  	res := resTmp.([]fedruntime.Entity)
  2894  	fc.Result = res
  2895  	return ec.marshalN_Entity2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx, field.Selections, res)
  2896  }
  2897  
  2898  func (ec *executionContext) _Query__service(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  2899  	defer func() {
  2900  		if r := recover(); r != nil {
  2901  			ec.Error(ctx, ec.Recover(ctx, r))
  2902  			ret = graphql.Null
  2903  		}
  2904  	}()
  2905  	fc := &graphql.FieldContext{
  2906  		Object:     "Query",
  2907  		Field:      field,
  2908  		Args:       nil,
  2909  		IsMethod:   true,
  2910  		IsResolver: false,
  2911  	}
  2912  
  2913  	ctx = graphql.WithFieldContext(ctx, fc)
  2914  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2915  		ctx = rctx // use context from middleware stack in children
  2916  		return ec.__resolve__service(ctx)
  2917  	})
  2918  	if err != nil {
  2919  		ec.Error(ctx, err)
  2920  		return graphql.Null
  2921  	}
  2922  	if resTmp == nil {
  2923  		if !graphql.HasFieldError(ctx, fc) {
  2924  			ec.Errorf(ctx, "must not be null")
  2925  		}
  2926  		return graphql.Null
  2927  	}
  2928  	res := resTmp.(fedruntime.Service)
  2929  	fc.Result = res
  2930  	return ec.marshalN_Service2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐService(ctx, field.Selections, res)
  2931  }
  2932  
  2933  func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  2934  	defer func() {
  2935  		if r := recover(); r != nil {
  2936  			ec.Error(ctx, ec.Recover(ctx, r))
  2937  			ret = graphql.Null
  2938  		}
  2939  	}()
  2940  	fc := &graphql.FieldContext{
  2941  		Object:     "Query",
  2942  		Field:      field,
  2943  		Args:       nil,
  2944  		IsMethod:   true,
  2945  		IsResolver: false,
  2946  	}
  2947  
  2948  	ctx = graphql.WithFieldContext(ctx, fc)
  2949  	rawArgs := field.ArgumentMap(ec.Variables)
  2950  	args, err := ec.field_Query___type_args(ctx, rawArgs)
  2951  	if err != nil {
  2952  		ec.Error(ctx, err)
  2953  		return graphql.Null
  2954  	}
  2955  	fc.Args = args
  2956  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2957  		ctx = rctx // use context from middleware stack in children
  2958  		return ec.introspectType(args["name"].(string))
  2959  	})
  2960  	if err != nil {
  2961  		ec.Error(ctx, err)
  2962  		return graphql.Null
  2963  	}
  2964  	if resTmp == nil {
  2965  		return graphql.Null
  2966  	}
  2967  	res := resTmp.(*introspection.Type)
  2968  	fc.Result = res
  2969  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  2970  }
  2971  
  2972  func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  2973  	defer func() {
  2974  		if r := recover(); r != nil {
  2975  			ec.Error(ctx, ec.Recover(ctx, r))
  2976  			ret = graphql.Null
  2977  		}
  2978  	}()
  2979  	fc := &graphql.FieldContext{
  2980  		Object:     "Query",
  2981  		Field:      field,
  2982  		Args:       nil,
  2983  		IsMethod:   true,
  2984  		IsResolver: false,
  2985  	}
  2986  
  2987  	ctx = graphql.WithFieldContext(ctx, fc)
  2988  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2989  		ctx = rctx // use context from middleware stack in children
  2990  		return ec.introspectSchema()
  2991  	})
  2992  	if err != nil {
  2993  		ec.Error(ctx, err)
  2994  		return graphql.Null
  2995  	}
  2996  	if resTmp == nil {
  2997  		return graphql.Null
  2998  	}
  2999  	res := resTmp.(*introspection.Schema)
  3000  	fc.Result = res
  3001  	return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
  3002  }
  3003  
  3004  func (ec *executionContext) _World_foo(ctx context.Context, field graphql.CollectedField, obj *World) (ret graphql.Marshaler) {
  3005  	defer func() {
  3006  		if r := recover(); r != nil {
  3007  			ec.Error(ctx, ec.Recover(ctx, r))
  3008  			ret = graphql.Null
  3009  		}
  3010  	}()
  3011  	fc := &graphql.FieldContext{
  3012  		Object:     "World",
  3013  		Field:      field,
  3014  		Args:       nil,
  3015  		IsMethod:   false,
  3016  		IsResolver: false,
  3017  	}
  3018  
  3019  	ctx = graphql.WithFieldContext(ctx, fc)
  3020  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3021  		ctx = rctx // use context from middleware stack in children
  3022  		return obj.Foo, nil
  3023  	})
  3024  	if err != nil {
  3025  		ec.Error(ctx, err)
  3026  		return graphql.Null
  3027  	}
  3028  	if resTmp == nil {
  3029  		if !graphql.HasFieldError(ctx, fc) {
  3030  			ec.Errorf(ctx, "must not be null")
  3031  		}
  3032  		return graphql.Null
  3033  	}
  3034  	res := resTmp.(string)
  3035  	fc.Result = res
  3036  	return ec.marshalNString2string(ctx, field.Selections, res)
  3037  }
  3038  
  3039  func (ec *executionContext) _World_bar(ctx context.Context, field graphql.CollectedField, obj *World) (ret graphql.Marshaler) {
  3040  	defer func() {
  3041  		if r := recover(); r != nil {
  3042  			ec.Error(ctx, ec.Recover(ctx, r))
  3043  			ret = graphql.Null
  3044  		}
  3045  	}()
  3046  	fc := &graphql.FieldContext{
  3047  		Object:     "World",
  3048  		Field:      field,
  3049  		Args:       nil,
  3050  		IsMethod:   false,
  3051  		IsResolver: false,
  3052  	}
  3053  
  3054  	ctx = graphql.WithFieldContext(ctx, fc)
  3055  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3056  		ctx = rctx // use context from middleware stack in children
  3057  		return obj.Bar, nil
  3058  	})
  3059  	if err != nil {
  3060  		ec.Error(ctx, err)
  3061  		return graphql.Null
  3062  	}
  3063  	if resTmp == nil {
  3064  		if !graphql.HasFieldError(ctx, fc) {
  3065  			ec.Errorf(ctx, "must not be null")
  3066  		}
  3067  		return graphql.Null
  3068  	}
  3069  	res := resTmp.(int)
  3070  	fc.Result = res
  3071  	return ec.marshalNInt2int(ctx, field.Selections, res)
  3072  }
  3073  
  3074  func (ec *executionContext) _World_hello(ctx context.Context, field graphql.CollectedField, obj *World) (ret graphql.Marshaler) {
  3075  	defer func() {
  3076  		if r := recover(); r != nil {
  3077  			ec.Error(ctx, ec.Recover(ctx, r))
  3078  			ret = graphql.Null
  3079  		}
  3080  	}()
  3081  	fc := &graphql.FieldContext{
  3082  		Object:     "World",
  3083  		Field:      field,
  3084  		Args:       nil,
  3085  		IsMethod:   false,
  3086  		IsResolver: false,
  3087  	}
  3088  
  3089  	ctx = graphql.WithFieldContext(ctx, fc)
  3090  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3091  		ctx = rctx // use context from middleware stack in children
  3092  		return obj.Hello, nil
  3093  	})
  3094  	if err != nil {
  3095  		ec.Error(ctx, err)
  3096  		return graphql.Null
  3097  	}
  3098  	if resTmp == nil {
  3099  		return graphql.Null
  3100  	}
  3101  	res := resTmp.(*Hello)
  3102  	fc.Result = res
  3103  	return ec.marshalOHello2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHello(ctx, field.Selections, res)
  3104  }
  3105  
  3106  func (ec *executionContext) _WorldName_name(ctx context.Context, field graphql.CollectedField, obj *WorldName) (ret graphql.Marshaler) {
  3107  	defer func() {
  3108  		if r := recover(); r != nil {
  3109  			ec.Error(ctx, ec.Recover(ctx, r))
  3110  			ret = graphql.Null
  3111  		}
  3112  	}()
  3113  	fc := &graphql.FieldContext{
  3114  		Object:     "WorldName",
  3115  		Field:      field,
  3116  		Args:       nil,
  3117  		IsMethod:   false,
  3118  		IsResolver: false,
  3119  	}
  3120  
  3121  	ctx = graphql.WithFieldContext(ctx, fc)
  3122  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3123  		ctx = rctx // use context from middleware stack in children
  3124  		return obj.Name, nil
  3125  	})
  3126  	if err != nil {
  3127  		ec.Error(ctx, err)
  3128  		return graphql.Null
  3129  	}
  3130  	if resTmp == nil {
  3131  		if !graphql.HasFieldError(ctx, fc) {
  3132  			ec.Errorf(ctx, "must not be null")
  3133  		}
  3134  		return graphql.Null
  3135  	}
  3136  	res := resTmp.(string)
  3137  	fc.Result = res
  3138  	return ec.marshalNString2string(ctx, field.Selections, res)
  3139  }
  3140  
  3141  func (ec *executionContext) _WorldWithMultipleKeys_foo(ctx context.Context, field graphql.CollectedField, obj *WorldWithMultipleKeys) (ret graphql.Marshaler) {
  3142  	defer func() {
  3143  		if r := recover(); r != nil {
  3144  			ec.Error(ctx, ec.Recover(ctx, r))
  3145  			ret = graphql.Null
  3146  		}
  3147  	}()
  3148  	fc := &graphql.FieldContext{
  3149  		Object:     "WorldWithMultipleKeys",
  3150  		Field:      field,
  3151  		Args:       nil,
  3152  		IsMethod:   false,
  3153  		IsResolver: false,
  3154  	}
  3155  
  3156  	ctx = graphql.WithFieldContext(ctx, fc)
  3157  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3158  		ctx = rctx // use context from middleware stack in children
  3159  		return obj.Foo, nil
  3160  	})
  3161  	if err != nil {
  3162  		ec.Error(ctx, err)
  3163  		return graphql.Null
  3164  	}
  3165  	if resTmp == nil {
  3166  		if !graphql.HasFieldError(ctx, fc) {
  3167  			ec.Errorf(ctx, "must not be null")
  3168  		}
  3169  		return graphql.Null
  3170  	}
  3171  	res := resTmp.(string)
  3172  	fc.Result = res
  3173  	return ec.marshalNString2string(ctx, field.Selections, res)
  3174  }
  3175  
  3176  func (ec *executionContext) _WorldWithMultipleKeys_bar(ctx context.Context, field graphql.CollectedField, obj *WorldWithMultipleKeys) (ret graphql.Marshaler) {
  3177  	defer func() {
  3178  		if r := recover(); r != nil {
  3179  			ec.Error(ctx, ec.Recover(ctx, r))
  3180  			ret = graphql.Null
  3181  		}
  3182  	}()
  3183  	fc := &graphql.FieldContext{
  3184  		Object:     "WorldWithMultipleKeys",
  3185  		Field:      field,
  3186  		Args:       nil,
  3187  		IsMethod:   false,
  3188  		IsResolver: false,
  3189  	}
  3190  
  3191  	ctx = graphql.WithFieldContext(ctx, fc)
  3192  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3193  		ctx = rctx // use context from middleware stack in children
  3194  		return obj.Bar, nil
  3195  	})
  3196  	if err != nil {
  3197  		ec.Error(ctx, err)
  3198  		return graphql.Null
  3199  	}
  3200  	if resTmp == nil {
  3201  		if !graphql.HasFieldError(ctx, fc) {
  3202  			ec.Errorf(ctx, "must not be null")
  3203  		}
  3204  		return graphql.Null
  3205  	}
  3206  	res := resTmp.(int)
  3207  	fc.Result = res
  3208  	return ec.marshalNInt2int(ctx, field.Selections, res)
  3209  }
  3210  
  3211  func (ec *executionContext) _WorldWithMultipleKeys_hello(ctx context.Context, field graphql.CollectedField, obj *WorldWithMultipleKeys) (ret graphql.Marshaler) {
  3212  	defer func() {
  3213  		if r := recover(); r != nil {
  3214  			ec.Error(ctx, ec.Recover(ctx, r))
  3215  			ret = graphql.Null
  3216  		}
  3217  	}()
  3218  	fc := &graphql.FieldContext{
  3219  		Object:     "WorldWithMultipleKeys",
  3220  		Field:      field,
  3221  		Args:       nil,
  3222  		IsMethod:   false,
  3223  		IsResolver: false,
  3224  	}
  3225  
  3226  	ctx = graphql.WithFieldContext(ctx, fc)
  3227  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3228  		ctx = rctx // use context from middleware stack in children
  3229  		return obj.Hello, nil
  3230  	})
  3231  	if err != nil {
  3232  		ec.Error(ctx, err)
  3233  		return graphql.Null
  3234  	}
  3235  	if resTmp == nil {
  3236  		return graphql.Null
  3237  	}
  3238  	res := resTmp.(*Hello)
  3239  	fc.Result = res
  3240  	return ec.marshalOHello2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHello(ctx, field.Selections, res)
  3241  }
  3242  
  3243  func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.CollectedField, obj *fedruntime.Service) (ret graphql.Marshaler) {
  3244  	defer func() {
  3245  		if r := recover(); r != nil {
  3246  			ec.Error(ctx, ec.Recover(ctx, r))
  3247  			ret = graphql.Null
  3248  		}
  3249  	}()
  3250  	fc := &graphql.FieldContext{
  3251  		Object:     "_Service",
  3252  		Field:      field,
  3253  		Args:       nil,
  3254  		IsMethod:   false,
  3255  		IsResolver: false,
  3256  	}
  3257  
  3258  	ctx = graphql.WithFieldContext(ctx, fc)
  3259  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3260  		ctx = rctx // use context from middleware stack in children
  3261  		return obj.SDL, nil
  3262  	})
  3263  	if err != nil {
  3264  		ec.Error(ctx, err)
  3265  		return graphql.Null
  3266  	}
  3267  	if resTmp == nil {
  3268  		return graphql.Null
  3269  	}
  3270  	res := resTmp.(string)
  3271  	fc.Result = res
  3272  	return ec.marshalOString2string(ctx, field.Selections, res)
  3273  }
  3274  
  3275  func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  3276  	defer func() {
  3277  		if r := recover(); r != nil {
  3278  			ec.Error(ctx, ec.Recover(ctx, r))
  3279  			ret = graphql.Null
  3280  		}
  3281  	}()
  3282  	fc := &graphql.FieldContext{
  3283  		Object:     "__Directive",
  3284  		Field:      field,
  3285  		Args:       nil,
  3286  		IsMethod:   false,
  3287  		IsResolver: false,
  3288  	}
  3289  
  3290  	ctx = graphql.WithFieldContext(ctx, fc)
  3291  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3292  		ctx = rctx // use context from middleware stack in children
  3293  		return obj.Name, nil
  3294  	})
  3295  	if err != nil {
  3296  		ec.Error(ctx, err)
  3297  		return graphql.Null
  3298  	}
  3299  	if resTmp == nil {
  3300  		if !graphql.HasFieldError(ctx, fc) {
  3301  			ec.Errorf(ctx, "must not be null")
  3302  		}
  3303  		return graphql.Null
  3304  	}
  3305  	res := resTmp.(string)
  3306  	fc.Result = res
  3307  	return ec.marshalNString2string(ctx, field.Selections, res)
  3308  }
  3309  
  3310  func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  3311  	defer func() {
  3312  		if r := recover(); r != nil {
  3313  			ec.Error(ctx, ec.Recover(ctx, r))
  3314  			ret = graphql.Null
  3315  		}
  3316  	}()
  3317  	fc := &graphql.FieldContext{
  3318  		Object:     "__Directive",
  3319  		Field:      field,
  3320  		Args:       nil,
  3321  		IsMethod:   false,
  3322  		IsResolver: false,
  3323  	}
  3324  
  3325  	ctx = graphql.WithFieldContext(ctx, fc)
  3326  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3327  		ctx = rctx // use context from middleware stack in children
  3328  		return obj.Description, nil
  3329  	})
  3330  	if err != nil {
  3331  		ec.Error(ctx, err)
  3332  		return graphql.Null
  3333  	}
  3334  	if resTmp == nil {
  3335  		return graphql.Null
  3336  	}
  3337  	res := resTmp.(string)
  3338  	fc.Result = res
  3339  	return ec.marshalOString2string(ctx, field.Selections, res)
  3340  }
  3341  
  3342  func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  3343  	defer func() {
  3344  		if r := recover(); r != nil {
  3345  			ec.Error(ctx, ec.Recover(ctx, r))
  3346  			ret = graphql.Null
  3347  		}
  3348  	}()
  3349  	fc := &graphql.FieldContext{
  3350  		Object:     "__Directive",
  3351  		Field:      field,
  3352  		Args:       nil,
  3353  		IsMethod:   false,
  3354  		IsResolver: false,
  3355  	}
  3356  
  3357  	ctx = graphql.WithFieldContext(ctx, fc)
  3358  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3359  		ctx = rctx // use context from middleware stack in children
  3360  		return obj.Locations, nil
  3361  	})
  3362  	if err != nil {
  3363  		ec.Error(ctx, err)
  3364  		return graphql.Null
  3365  	}
  3366  	if resTmp == nil {
  3367  		if !graphql.HasFieldError(ctx, fc) {
  3368  			ec.Errorf(ctx, "must not be null")
  3369  		}
  3370  		return graphql.Null
  3371  	}
  3372  	res := resTmp.([]string)
  3373  	fc.Result = res
  3374  	return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
  3375  }
  3376  
  3377  func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  3378  	defer func() {
  3379  		if r := recover(); r != nil {
  3380  			ec.Error(ctx, ec.Recover(ctx, r))
  3381  			ret = graphql.Null
  3382  		}
  3383  	}()
  3384  	fc := &graphql.FieldContext{
  3385  		Object:     "__Directive",
  3386  		Field:      field,
  3387  		Args:       nil,
  3388  		IsMethod:   false,
  3389  		IsResolver: false,
  3390  	}
  3391  
  3392  	ctx = graphql.WithFieldContext(ctx, fc)
  3393  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3394  		ctx = rctx // use context from middleware stack in children
  3395  		return obj.Args, nil
  3396  	})
  3397  	if err != nil {
  3398  		ec.Error(ctx, err)
  3399  		return graphql.Null
  3400  	}
  3401  	if resTmp == nil {
  3402  		if !graphql.HasFieldError(ctx, fc) {
  3403  			ec.Errorf(ctx, "must not be null")
  3404  		}
  3405  		return graphql.Null
  3406  	}
  3407  	res := resTmp.([]introspection.InputValue)
  3408  	fc.Result = res
  3409  	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  3410  }
  3411  
  3412  func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  3413  	defer func() {
  3414  		if r := recover(); r != nil {
  3415  			ec.Error(ctx, ec.Recover(ctx, r))
  3416  			ret = graphql.Null
  3417  		}
  3418  	}()
  3419  	fc := &graphql.FieldContext{
  3420  		Object:     "__Directive",
  3421  		Field:      field,
  3422  		Args:       nil,
  3423  		IsMethod:   false,
  3424  		IsResolver: false,
  3425  	}
  3426  
  3427  	ctx = graphql.WithFieldContext(ctx, fc)
  3428  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3429  		ctx = rctx // use context from middleware stack in children
  3430  		return obj.IsRepeatable, nil
  3431  	})
  3432  	if err != nil {
  3433  		ec.Error(ctx, err)
  3434  		return graphql.Null
  3435  	}
  3436  	if resTmp == nil {
  3437  		if !graphql.HasFieldError(ctx, fc) {
  3438  			ec.Errorf(ctx, "must not be null")
  3439  		}
  3440  		return graphql.Null
  3441  	}
  3442  	res := resTmp.(bool)
  3443  	fc.Result = res
  3444  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  3445  }
  3446  
  3447  func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  3448  	defer func() {
  3449  		if r := recover(); r != nil {
  3450  			ec.Error(ctx, ec.Recover(ctx, r))
  3451  			ret = graphql.Null
  3452  		}
  3453  	}()
  3454  	fc := &graphql.FieldContext{
  3455  		Object:     "__EnumValue",
  3456  		Field:      field,
  3457  		Args:       nil,
  3458  		IsMethod:   false,
  3459  		IsResolver: false,
  3460  	}
  3461  
  3462  	ctx = graphql.WithFieldContext(ctx, fc)
  3463  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3464  		ctx = rctx // use context from middleware stack in children
  3465  		return obj.Name, nil
  3466  	})
  3467  	if err != nil {
  3468  		ec.Error(ctx, err)
  3469  		return graphql.Null
  3470  	}
  3471  	if resTmp == nil {
  3472  		if !graphql.HasFieldError(ctx, fc) {
  3473  			ec.Errorf(ctx, "must not be null")
  3474  		}
  3475  		return graphql.Null
  3476  	}
  3477  	res := resTmp.(string)
  3478  	fc.Result = res
  3479  	return ec.marshalNString2string(ctx, field.Selections, res)
  3480  }
  3481  
  3482  func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  3483  	defer func() {
  3484  		if r := recover(); r != nil {
  3485  			ec.Error(ctx, ec.Recover(ctx, r))
  3486  			ret = graphql.Null
  3487  		}
  3488  	}()
  3489  	fc := &graphql.FieldContext{
  3490  		Object:     "__EnumValue",
  3491  		Field:      field,
  3492  		Args:       nil,
  3493  		IsMethod:   false,
  3494  		IsResolver: false,
  3495  	}
  3496  
  3497  	ctx = graphql.WithFieldContext(ctx, fc)
  3498  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3499  		ctx = rctx // use context from middleware stack in children
  3500  		return obj.Description, nil
  3501  	})
  3502  	if err != nil {
  3503  		ec.Error(ctx, err)
  3504  		return graphql.Null
  3505  	}
  3506  	if resTmp == nil {
  3507  		return graphql.Null
  3508  	}
  3509  	res := resTmp.(string)
  3510  	fc.Result = res
  3511  	return ec.marshalOString2string(ctx, field.Selections, res)
  3512  }
  3513  
  3514  func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  3515  	defer func() {
  3516  		if r := recover(); r != nil {
  3517  			ec.Error(ctx, ec.Recover(ctx, r))
  3518  			ret = graphql.Null
  3519  		}
  3520  	}()
  3521  	fc := &graphql.FieldContext{
  3522  		Object:     "__EnumValue",
  3523  		Field:      field,
  3524  		Args:       nil,
  3525  		IsMethod:   true,
  3526  		IsResolver: false,
  3527  	}
  3528  
  3529  	ctx = graphql.WithFieldContext(ctx, fc)
  3530  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3531  		ctx = rctx // use context from middleware stack in children
  3532  		return obj.IsDeprecated(), nil
  3533  	})
  3534  	if err != nil {
  3535  		ec.Error(ctx, err)
  3536  		return graphql.Null
  3537  	}
  3538  	if resTmp == nil {
  3539  		if !graphql.HasFieldError(ctx, fc) {
  3540  			ec.Errorf(ctx, "must not be null")
  3541  		}
  3542  		return graphql.Null
  3543  	}
  3544  	res := resTmp.(bool)
  3545  	fc.Result = res
  3546  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  3547  }
  3548  
  3549  func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  3550  	defer func() {
  3551  		if r := recover(); r != nil {
  3552  			ec.Error(ctx, ec.Recover(ctx, r))
  3553  			ret = graphql.Null
  3554  		}
  3555  	}()
  3556  	fc := &graphql.FieldContext{
  3557  		Object:     "__EnumValue",
  3558  		Field:      field,
  3559  		Args:       nil,
  3560  		IsMethod:   true,
  3561  		IsResolver: false,
  3562  	}
  3563  
  3564  	ctx = graphql.WithFieldContext(ctx, fc)
  3565  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3566  		ctx = rctx // use context from middleware stack in children
  3567  		return obj.DeprecationReason(), nil
  3568  	})
  3569  	if err != nil {
  3570  		ec.Error(ctx, err)
  3571  		return graphql.Null
  3572  	}
  3573  	if resTmp == nil {
  3574  		return graphql.Null
  3575  	}
  3576  	res := resTmp.(*string)
  3577  	fc.Result = res
  3578  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  3579  }
  3580  
  3581  func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  3582  	defer func() {
  3583  		if r := recover(); r != nil {
  3584  			ec.Error(ctx, ec.Recover(ctx, r))
  3585  			ret = graphql.Null
  3586  		}
  3587  	}()
  3588  	fc := &graphql.FieldContext{
  3589  		Object:     "__Field",
  3590  		Field:      field,
  3591  		Args:       nil,
  3592  		IsMethod:   false,
  3593  		IsResolver: false,
  3594  	}
  3595  
  3596  	ctx = graphql.WithFieldContext(ctx, fc)
  3597  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3598  		ctx = rctx // use context from middleware stack in children
  3599  		return obj.Name, nil
  3600  	})
  3601  	if err != nil {
  3602  		ec.Error(ctx, err)
  3603  		return graphql.Null
  3604  	}
  3605  	if resTmp == nil {
  3606  		if !graphql.HasFieldError(ctx, fc) {
  3607  			ec.Errorf(ctx, "must not be null")
  3608  		}
  3609  		return graphql.Null
  3610  	}
  3611  	res := resTmp.(string)
  3612  	fc.Result = res
  3613  	return ec.marshalNString2string(ctx, field.Selections, res)
  3614  }
  3615  
  3616  func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  3617  	defer func() {
  3618  		if r := recover(); r != nil {
  3619  			ec.Error(ctx, ec.Recover(ctx, r))
  3620  			ret = graphql.Null
  3621  		}
  3622  	}()
  3623  	fc := &graphql.FieldContext{
  3624  		Object:     "__Field",
  3625  		Field:      field,
  3626  		Args:       nil,
  3627  		IsMethod:   false,
  3628  		IsResolver: false,
  3629  	}
  3630  
  3631  	ctx = graphql.WithFieldContext(ctx, fc)
  3632  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3633  		ctx = rctx // use context from middleware stack in children
  3634  		return obj.Description, nil
  3635  	})
  3636  	if err != nil {
  3637  		ec.Error(ctx, err)
  3638  		return graphql.Null
  3639  	}
  3640  	if resTmp == nil {
  3641  		return graphql.Null
  3642  	}
  3643  	res := resTmp.(string)
  3644  	fc.Result = res
  3645  	return ec.marshalOString2string(ctx, field.Selections, res)
  3646  }
  3647  
  3648  func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  3649  	defer func() {
  3650  		if r := recover(); r != nil {
  3651  			ec.Error(ctx, ec.Recover(ctx, r))
  3652  			ret = graphql.Null
  3653  		}
  3654  	}()
  3655  	fc := &graphql.FieldContext{
  3656  		Object:     "__Field",
  3657  		Field:      field,
  3658  		Args:       nil,
  3659  		IsMethod:   false,
  3660  		IsResolver: false,
  3661  	}
  3662  
  3663  	ctx = graphql.WithFieldContext(ctx, fc)
  3664  	rawArgs := field.ArgumentMap(ec.Variables)
  3665  	args, err := ec.field___Field_args_args(ctx, rawArgs)
  3666  	if err != nil {
  3667  		ec.Error(ctx, err)
  3668  		return graphql.Null
  3669  	}
  3670  	fc.Args = args
  3671  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3672  		ctx = rctx // use context from middleware stack in children
  3673  		return obj.Args, nil
  3674  	})
  3675  	if err != nil {
  3676  		ec.Error(ctx, err)
  3677  		return graphql.Null
  3678  	}
  3679  	if resTmp == nil {
  3680  		if !graphql.HasFieldError(ctx, fc) {
  3681  			ec.Errorf(ctx, "must not be null")
  3682  		}
  3683  		return graphql.Null
  3684  	}
  3685  	res := resTmp.([]introspection.InputValue)
  3686  	fc.Result = res
  3687  	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  3688  }
  3689  
  3690  func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  3691  	defer func() {
  3692  		if r := recover(); r != nil {
  3693  			ec.Error(ctx, ec.Recover(ctx, r))
  3694  			ret = graphql.Null
  3695  		}
  3696  	}()
  3697  	fc := &graphql.FieldContext{
  3698  		Object:     "__Field",
  3699  		Field:      field,
  3700  		Args:       nil,
  3701  		IsMethod:   false,
  3702  		IsResolver: false,
  3703  	}
  3704  
  3705  	ctx = graphql.WithFieldContext(ctx, fc)
  3706  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3707  		ctx = rctx // use context from middleware stack in children
  3708  		return obj.Type, nil
  3709  	})
  3710  	if err != nil {
  3711  		ec.Error(ctx, err)
  3712  		return graphql.Null
  3713  	}
  3714  	if resTmp == nil {
  3715  		if !graphql.HasFieldError(ctx, fc) {
  3716  			ec.Errorf(ctx, "must not be null")
  3717  		}
  3718  		return graphql.Null
  3719  	}
  3720  	res := resTmp.(*introspection.Type)
  3721  	fc.Result = res
  3722  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  3723  }
  3724  
  3725  func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  3726  	defer func() {
  3727  		if r := recover(); r != nil {
  3728  			ec.Error(ctx, ec.Recover(ctx, r))
  3729  			ret = graphql.Null
  3730  		}
  3731  	}()
  3732  	fc := &graphql.FieldContext{
  3733  		Object:     "__Field",
  3734  		Field:      field,
  3735  		Args:       nil,
  3736  		IsMethod:   true,
  3737  		IsResolver: false,
  3738  	}
  3739  
  3740  	ctx = graphql.WithFieldContext(ctx, fc)
  3741  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3742  		ctx = rctx // use context from middleware stack in children
  3743  		return obj.IsDeprecated(), nil
  3744  	})
  3745  	if err != nil {
  3746  		ec.Error(ctx, err)
  3747  		return graphql.Null
  3748  	}
  3749  	if resTmp == nil {
  3750  		if !graphql.HasFieldError(ctx, fc) {
  3751  			ec.Errorf(ctx, "must not be null")
  3752  		}
  3753  		return graphql.Null
  3754  	}
  3755  	res := resTmp.(bool)
  3756  	fc.Result = res
  3757  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  3758  }
  3759  
  3760  func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  3761  	defer func() {
  3762  		if r := recover(); r != nil {
  3763  			ec.Error(ctx, ec.Recover(ctx, r))
  3764  			ret = graphql.Null
  3765  		}
  3766  	}()
  3767  	fc := &graphql.FieldContext{
  3768  		Object:     "__Field",
  3769  		Field:      field,
  3770  		Args:       nil,
  3771  		IsMethod:   true,
  3772  		IsResolver: false,
  3773  	}
  3774  
  3775  	ctx = graphql.WithFieldContext(ctx, fc)
  3776  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3777  		ctx = rctx // use context from middleware stack in children
  3778  		return obj.DeprecationReason(), nil
  3779  	})
  3780  	if err != nil {
  3781  		ec.Error(ctx, err)
  3782  		return graphql.Null
  3783  	}
  3784  	if resTmp == nil {
  3785  		return graphql.Null
  3786  	}
  3787  	res := resTmp.(*string)
  3788  	fc.Result = res
  3789  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  3790  }
  3791  
  3792  func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  3793  	defer func() {
  3794  		if r := recover(); r != nil {
  3795  			ec.Error(ctx, ec.Recover(ctx, r))
  3796  			ret = graphql.Null
  3797  		}
  3798  	}()
  3799  	fc := &graphql.FieldContext{
  3800  		Object:     "__InputValue",
  3801  		Field:      field,
  3802  		Args:       nil,
  3803  		IsMethod:   false,
  3804  		IsResolver: false,
  3805  	}
  3806  
  3807  	ctx = graphql.WithFieldContext(ctx, fc)
  3808  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3809  		ctx = rctx // use context from middleware stack in children
  3810  		return obj.Name, nil
  3811  	})
  3812  	if err != nil {
  3813  		ec.Error(ctx, err)
  3814  		return graphql.Null
  3815  	}
  3816  	if resTmp == nil {
  3817  		if !graphql.HasFieldError(ctx, fc) {
  3818  			ec.Errorf(ctx, "must not be null")
  3819  		}
  3820  		return graphql.Null
  3821  	}
  3822  	res := resTmp.(string)
  3823  	fc.Result = res
  3824  	return ec.marshalNString2string(ctx, field.Selections, res)
  3825  }
  3826  
  3827  func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  3828  	defer func() {
  3829  		if r := recover(); r != nil {
  3830  			ec.Error(ctx, ec.Recover(ctx, r))
  3831  			ret = graphql.Null
  3832  		}
  3833  	}()
  3834  	fc := &graphql.FieldContext{
  3835  		Object:     "__InputValue",
  3836  		Field:      field,
  3837  		Args:       nil,
  3838  		IsMethod:   false,
  3839  		IsResolver: false,
  3840  	}
  3841  
  3842  	ctx = graphql.WithFieldContext(ctx, fc)
  3843  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3844  		ctx = rctx // use context from middleware stack in children
  3845  		return obj.Description, nil
  3846  	})
  3847  	if err != nil {
  3848  		ec.Error(ctx, err)
  3849  		return graphql.Null
  3850  	}
  3851  	if resTmp == nil {
  3852  		return graphql.Null
  3853  	}
  3854  	res := resTmp.(string)
  3855  	fc.Result = res
  3856  	return ec.marshalOString2string(ctx, field.Selections, res)
  3857  }
  3858  
  3859  func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  3860  	defer func() {
  3861  		if r := recover(); r != nil {
  3862  			ec.Error(ctx, ec.Recover(ctx, r))
  3863  			ret = graphql.Null
  3864  		}
  3865  	}()
  3866  	fc := &graphql.FieldContext{
  3867  		Object:     "__InputValue",
  3868  		Field:      field,
  3869  		Args:       nil,
  3870  		IsMethod:   false,
  3871  		IsResolver: false,
  3872  	}
  3873  
  3874  	ctx = graphql.WithFieldContext(ctx, fc)
  3875  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3876  		ctx = rctx // use context from middleware stack in children
  3877  		return obj.Type, nil
  3878  	})
  3879  	if err != nil {
  3880  		ec.Error(ctx, err)
  3881  		return graphql.Null
  3882  	}
  3883  	if resTmp == nil {
  3884  		if !graphql.HasFieldError(ctx, fc) {
  3885  			ec.Errorf(ctx, "must not be null")
  3886  		}
  3887  		return graphql.Null
  3888  	}
  3889  	res := resTmp.(*introspection.Type)
  3890  	fc.Result = res
  3891  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  3892  }
  3893  
  3894  func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  3895  	defer func() {
  3896  		if r := recover(); r != nil {
  3897  			ec.Error(ctx, ec.Recover(ctx, r))
  3898  			ret = graphql.Null
  3899  		}
  3900  	}()
  3901  	fc := &graphql.FieldContext{
  3902  		Object:     "__InputValue",
  3903  		Field:      field,
  3904  		Args:       nil,
  3905  		IsMethod:   false,
  3906  		IsResolver: false,
  3907  	}
  3908  
  3909  	ctx = graphql.WithFieldContext(ctx, fc)
  3910  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3911  		ctx = rctx // use context from middleware stack in children
  3912  		return obj.DefaultValue, nil
  3913  	})
  3914  	if err != nil {
  3915  		ec.Error(ctx, err)
  3916  		return graphql.Null
  3917  	}
  3918  	if resTmp == nil {
  3919  		return graphql.Null
  3920  	}
  3921  	res := resTmp.(*string)
  3922  	fc.Result = res
  3923  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  3924  }
  3925  
  3926  func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  3927  	defer func() {
  3928  		if r := recover(); r != nil {
  3929  			ec.Error(ctx, ec.Recover(ctx, r))
  3930  			ret = graphql.Null
  3931  		}
  3932  	}()
  3933  	fc := &graphql.FieldContext{
  3934  		Object:     "__Schema",
  3935  		Field:      field,
  3936  		Args:       nil,
  3937  		IsMethod:   true,
  3938  		IsResolver: false,
  3939  	}
  3940  
  3941  	ctx = graphql.WithFieldContext(ctx, fc)
  3942  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3943  		ctx = rctx // use context from middleware stack in children
  3944  		return obj.Types(), nil
  3945  	})
  3946  	if err != nil {
  3947  		ec.Error(ctx, err)
  3948  		return graphql.Null
  3949  	}
  3950  	if resTmp == nil {
  3951  		if !graphql.HasFieldError(ctx, fc) {
  3952  			ec.Errorf(ctx, "must not be null")
  3953  		}
  3954  		return graphql.Null
  3955  	}
  3956  	res := resTmp.([]introspection.Type)
  3957  	fc.Result = res
  3958  	return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  3959  }
  3960  
  3961  func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  3962  	defer func() {
  3963  		if r := recover(); r != nil {
  3964  			ec.Error(ctx, ec.Recover(ctx, r))
  3965  			ret = graphql.Null
  3966  		}
  3967  	}()
  3968  	fc := &graphql.FieldContext{
  3969  		Object:     "__Schema",
  3970  		Field:      field,
  3971  		Args:       nil,
  3972  		IsMethod:   true,
  3973  		IsResolver: false,
  3974  	}
  3975  
  3976  	ctx = graphql.WithFieldContext(ctx, fc)
  3977  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3978  		ctx = rctx // use context from middleware stack in children
  3979  		return obj.QueryType(), nil
  3980  	})
  3981  	if err != nil {
  3982  		ec.Error(ctx, err)
  3983  		return graphql.Null
  3984  	}
  3985  	if resTmp == nil {
  3986  		if !graphql.HasFieldError(ctx, fc) {
  3987  			ec.Errorf(ctx, "must not be null")
  3988  		}
  3989  		return graphql.Null
  3990  	}
  3991  	res := resTmp.(*introspection.Type)
  3992  	fc.Result = res
  3993  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  3994  }
  3995  
  3996  func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  3997  	defer func() {
  3998  		if r := recover(); r != nil {
  3999  			ec.Error(ctx, ec.Recover(ctx, r))
  4000  			ret = graphql.Null
  4001  		}
  4002  	}()
  4003  	fc := &graphql.FieldContext{
  4004  		Object:     "__Schema",
  4005  		Field:      field,
  4006  		Args:       nil,
  4007  		IsMethod:   true,
  4008  		IsResolver: false,
  4009  	}
  4010  
  4011  	ctx = graphql.WithFieldContext(ctx, fc)
  4012  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4013  		ctx = rctx // use context from middleware stack in children
  4014  		return obj.MutationType(), nil
  4015  	})
  4016  	if err != nil {
  4017  		ec.Error(ctx, err)
  4018  		return graphql.Null
  4019  	}
  4020  	if resTmp == nil {
  4021  		return graphql.Null
  4022  	}
  4023  	res := resTmp.(*introspection.Type)
  4024  	fc.Result = res
  4025  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  4026  }
  4027  
  4028  func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  4029  	defer func() {
  4030  		if r := recover(); r != nil {
  4031  			ec.Error(ctx, ec.Recover(ctx, r))
  4032  			ret = graphql.Null
  4033  		}
  4034  	}()
  4035  	fc := &graphql.FieldContext{
  4036  		Object:     "__Schema",
  4037  		Field:      field,
  4038  		Args:       nil,
  4039  		IsMethod:   true,
  4040  		IsResolver: false,
  4041  	}
  4042  
  4043  	ctx = graphql.WithFieldContext(ctx, fc)
  4044  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4045  		ctx = rctx // use context from middleware stack in children
  4046  		return obj.SubscriptionType(), nil
  4047  	})
  4048  	if err != nil {
  4049  		ec.Error(ctx, err)
  4050  		return graphql.Null
  4051  	}
  4052  	if resTmp == nil {
  4053  		return graphql.Null
  4054  	}
  4055  	res := resTmp.(*introspection.Type)
  4056  	fc.Result = res
  4057  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  4058  }
  4059  
  4060  func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  4061  	defer func() {
  4062  		if r := recover(); r != nil {
  4063  			ec.Error(ctx, ec.Recover(ctx, r))
  4064  			ret = graphql.Null
  4065  		}
  4066  	}()
  4067  	fc := &graphql.FieldContext{
  4068  		Object:     "__Schema",
  4069  		Field:      field,
  4070  		Args:       nil,
  4071  		IsMethod:   true,
  4072  		IsResolver: false,
  4073  	}
  4074  
  4075  	ctx = graphql.WithFieldContext(ctx, fc)
  4076  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4077  		ctx = rctx // use context from middleware stack in children
  4078  		return obj.Directives(), nil
  4079  	})
  4080  	if err != nil {
  4081  		ec.Error(ctx, err)
  4082  		return graphql.Null
  4083  	}
  4084  	if resTmp == nil {
  4085  		if !graphql.HasFieldError(ctx, fc) {
  4086  			ec.Errorf(ctx, "must not be null")
  4087  		}
  4088  		return graphql.Null
  4089  	}
  4090  	res := resTmp.([]introspection.Directive)
  4091  	fc.Result = res
  4092  	return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
  4093  }
  4094  
  4095  func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4096  	defer func() {
  4097  		if r := recover(); r != nil {
  4098  			ec.Error(ctx, ec.Recover(ctx, r))
  4099  			ret = graphql.Null
  4100  		}
  4101  	}()
  4102  	fc := &graphql.FieldContext{
  4103  		Object:     "__Type",
  4104  		Field:      field,
  4105  		Args:       nil,
  4106  		IsMethod:   true,
  4107  		IsResolver: false,
  4108  	}
  4109  
  4110  	ctx = graphql.WithFieldContext(ctx, fc)
  4111  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4112  		ctx = rctx // use context from middleware stack in children
  4113  		return obj.Kind(), nil
  4114  	})
  4115  	if err != nil {
  4116  		ec.Error(ctx, err)
  4117  		return graphql.Null
  4118  	}
  4119  	if resTmp == nil {
  4120  		if !graphql.HasFieldError(ctx, fc) {
  4121  			ec.Errorf(ctx, "must not be null")
  4122  		}
  4123  		return graphql.Null
  4124  	}
  4125  	res := resTmp.(string)
  4126  	fc.Result = res
  4127  	return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
  4128  }
  4129  
  4130  func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4131  	defer func() {
  4132  		if r := recover(); r != nil {
  4133  			ec.Error(ctx, ec.Recover(ctx, r))
  4134  			ret = graphql.Null
  4135  		}
  4136  	}()
  4137  	fc := &graphql.FieldContext{
  4138  		Object:     "__Type",
  4139  		Field:      field,
  4140  		Args:       nil,
  4141  		IsMethod:   true,
  4142  		IsResolver: false,
  4143  	}
  4144  
  4145  	ctx = graphql.WithFieldContext(ctx, fc)
  4146  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4147  		ctx = rctx // use context from middleware stack in children
  4148  		return obj.Name(), nil
  4149  	})
  4150  	if err != nil {
  4151  		ec.Error(ctx, err)
  4152  		return graphql.Null
  4153  	}
  4154  	if resTmp == nil {
  4155  		return graphql.Null
  4156  	}
  4157  	res := resTmp.(*string)
  4158  	fc.Result = res
  4159  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  4160  }
  4161  
  4162  func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4163  	defer func() {
  4164  		if r := recover(); r != nil {
  4165  			ec.Error(ctx, ec.Recover(ctx, r))
  4166  			ret = graphql.Null
  4167  		}
  4168  	}()
  4169  	fc := &graphql.FieldContext{
  4170  		Object:     "__Type",
  4171  		Field:      field,
  4172  		Args:       nil,
  4173  		IsMethod:   true,
  4174  		IsResolver: false,
  4175  	}
  4176  
  4177  	ctx = graphql.WithFieldContext(ctx, fc)
  4178  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4179  		ctx = rctx // use context from middleware stack in children
  4180  		return obj.Description(), nil
  4181  	})
  4182  	if err != nil {
  4183  		ec.Error(ctx, err)
  4184  		return graphql.Null
  4185  	}
  4186  	if resTmp == nil {
  4187  		return graphql.Null
  4188  	}
  4189  	res := resTmp.(string)
  4190  	fc.Result = res
  4191  	return ec.marshalOString2string(ctx, field.Selections, res)
  4192  }
  4193  
  4194  func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4195  	defer func() {
  4196  		if r := recover(); r != nil {
  4197  			ec.Error(ctx, ec.Recover(ctx, r))
  4198  			ret = graphql.Null
  4199  		}
  4200  	}()
  4201  	fc := &graphql.FieldContext{
  4202  		Object:     "__Type",
  4203  		Field:      field,
  4204  		Args:       nil,
  4205  		IsMethod:   true,
  4206  		IsResolver: false,
  4207  	}
  4208  
  4209  	ctx = graphql.WithFieldContext(ctx, fc)
  4210  	rawArgs := field.ArgumentMap(ec.Variables)
  4211  	args, err := ec.field___Type_fields_args(ctx, rawArgs)
  4212  	if err != nil {
  4213  		ec.Error(ctx, err)
  4214  		return graphql.Null
  4215  	}
  4216  	fc.Args = args
  4217  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4218  		ctx = rctx // use context from middleware stack in children
  4219  		return obj.Fields(args["includeDeprecated"].(bool)), nil
  4220  	})
  4221  	if err != nil {
  4222  		ec.Error(ctx, err)
  4223  		return graphql.Null
  4224  	}
  4225  	if resTmp == nil {
  4226  		return graphql.Null
  4227  	}
  4228  	res := resTmp.([]introspection.Field)
  4229  	fc.Result = res
  4230  	return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
  4231  }
  4232  
  4233  func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4234  	defer func() {
  4235  		if r := recover(); r != nil {
  4236  			ec.Error(ctx, ec.Recover(ctx, r))
  4237  			ret = graphql.Null
  4238  		}
  4239  	}()
  4240  	fc := &graphql.FieldContext{
  4241  		Object:     "__Type",
  4242  		Field:      field,
  4243  		Args:       nil,
  4244  		IsMethod:   true,
  4245  		IsResolver: false,
  4246  	}
  4247  
  4248  	ctx = graphql.WithFieldContext(ctx, fc)
  4249  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4250  		ctx = rctx // use context from middleware stack in children
  4251  		return obj.Interfaces(), nil
  4252  	})
  4253  	if err != nil {
  4254  		ec.Error(ctx, err)
  4255  		return graphql.Null
  4256  	}
  4257  	if resTmp == nil {
  4258  		return graphql.Null
  4259  	}
  4260  	res := resTmp.([]introspection.Type)
  4261  	fc.Result = res
  4262  	return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  4263  }
  4264  
  4265  func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4266  	defer func() {
  4267  		if r := recover(); r != nil {
  4268  			ec.Error(ctx, ec.Recover(ctx, r))
  4269  			ret = graphql.Null
  4270  		}
  4271  	}()
  4272  	fc := &graphql.FieldContext{
  4273  		Object:     "__Type",
  4274  		Field:      field,
  4275  		Args:       nil,
  4276  		IsMethod:   true,
  4277  		IsResolver: false,
  4278  	}
  4279  
  4280  	ctx = graphql.WithFieldContext(ctx, fc)
  4281  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4282  		ctx = rctx // use context from middleware stack in children
  4283  		return obj.PossibleTypes(), nil
  4284  	})
  4285  	if err != nil {
  4286  		ec.Error(ctx, err)
  4287  		return graphql.Null
  4288  	}
  4289  	if resTmp == nil {
  4290  		return graphql.Null
  4291  	}
  4292  	res := resTmp.([]introspection.Type)
  4293  	fc.Result = res
  4294  	return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  4295  }
  4296  
  4297  func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4298  	defer func() {
  4299  		if r := recover(); r != nil {
  4300  			ec.Error(ctx, ec.Recover(ctx, r))
  4301  			ret = graphql.Null
  4302  		}
  4303  	}()
  4304  	fc := &graphql.FieldContext{
  4305  		Object:     "__Type",
  4306  		Field:      field,
  4307  		Args:       nil,
  4308  		IsMethod:   true,
  4309  		IsResolver: false,
  4310  	}
  4311  
  4312  	ctx = graphql.WithFieldContext(ctx, fc)
  4313  	rawArgs := field.ArgumentMap(ec.Variables)
  4314  	args, err := ec.field___Type_enumValues_args(ctx, rawArgs)
  4315  	if err != nil {
  4316  		ec.Error(ctx, err)
  4317  		return graphql.Null
  4318  	}
  4319  	fc.Args = args
  4320  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4321  		ctx = rctx // use context from middleware stack in children
  4322  		return obj.EnumValues(args["includeDeprecated"].(bool)), nil
  4323  	})
  4324  	if err != nil {
  4325  		ec.Error(ctx, err)
  4326  		return graphql.Null
  4327  	}
  4328  	if resTmp == nil {
  4329  		return graphql.Null
  4330  	}
  4331  	res := resTmp.([]introspection.EnumValue)
  4332  	fc.Result = res
  4333  	return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
  4334  }
  4335  
  4336  func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4337  	defer func() {
  4338  		if r := recover(); r != nil {
  4339  			ec.Error(ctx, ec.Recover(ctx, r))
  4340  			ret = graphql.Null
  4341  		}
  4342  	}()
  4343  	fc := &graphql.FieldContext{
  4344  		Object:     "__Type",
  4345  		Field:      field,
  4346  		Args:       nil,
  4347  		IsMethod:   true,
  4348  		IsResolver: false,
  4349  	}
  4350  
  4351  	ctx = graphql.WithFieldContext(ctx, fc)
  4352  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4353  		ctx = rctx // use context from middleware stack in children
  4354  		return obj.InputFields(), nil
  4355  	})
  4356  	if err != nil {
  4357  		ec.Error(ctx, err)
  4358  		return graphql.Null
  4359  	}
  4360  	if resTmp == nil {
  4361  		return graphql.Null
  4362  	}
  4363  	res := resTmp.([]introspection.InputValue)
  4364  	fc.Result = res
  4365  	return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  4366  }
  4367  
  4368  func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  4369  	defer func() {
  4370  		if r := recover(); r != nil {
  4371  			ec.Error(ctx, ec.Recover(ctx, r))
  4372  			ret = graphql.Null
  4373  		}
  4374  	}()
  4375  	fc := &graphql.FieldContext{
  4376  		Object:     "__Type",
  4377  		Field:      field,
  4378  		Args:       nil,
  4379  		IsMethod:   true,
  4380  		IsResolver: false,
  4381  	}
  4382  
  4383  	ctx = graphql.WithFieldContext(ctx, fc)
  4384  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  4385  		ctx = rctx // use context from middleware stack in children
  4386  		return obj.OfType(), nil
  4387  	})
  4388  	if err != nil {
  4389  		ec.Error(ctx, err)
  4390  		return graphql.Null
  4391  	}
  4392  	if resTmp == nil {
  4393  		return graphql.Null
  4394  	}
  4395  	res := resTmp.(*introspection.Type)
  4396  	fc.Result = res
  4397  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  4398  }
  4399  
  4400  // endregion **************************** field.gotpl *****************************
  4401  
  4402  // region    **************************** input.gotpl *****************************
  4403  
  4404  func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Context, obj interface{}) (MultiHelloByNamesInput, error) {
  4405  	var it MultiHelloByNamesInput
  4406  	asMap := map[string]interface{}{}
  4407  	for k, v := range obj.(map[string]interface{}) {
  4408  		asMap[k] = v
  4409  	}
  4410  
  4411  	for k, v := range asMap {
  4412  		switch k {
  4413  		case "Name":
  4414  			var err error
  4415  
  4416  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name"))
  4417  			it.Name, err = ec.unmarshalNString2string(ctx, v)
  4418  			if err != nil {
  4419  				return it, err
  4420  			}
  4421  		}
  4422  	}
  4423  
  4424  	return it, nil
  4425  }
  4426  
  4427  func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, obj interface{}) (MultiHelloMultipleRequiresByNamesInput, error) {
  4428  	var it MultiHelloMultipleRequiresByNamesInput
  4429  	asMap := map[string]interface{}{}
  4430  	for k, v := range obj.(map[string]interface{}) {
  4431  		asMap[k] = v
  4432  	}
  4433  
  4434  	for k, v := range asMap {
  4435  		switch k {
  4436  		case "Name":
  4437  			var err error
  4438  
  4439  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name"))
  4440  			it.Name, err = ec.unmarshalNString2string(ctx, v)
  4441  			if err != nil {
  4442  				return it, err
  4443  			}
  4444  		}
  4445  	}
  4446  
  4447  	return it, nil
  4448  }
  4449  
  4450  func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, obj interface{}) (MultiHelloRequiresByNamesInput, error) {
  4451  	var it MultiHelloRequiresByNamesInput
  4452  	asMap := map[string]interface{}{}
  4453  	for k, v := range obj.(map[string]interface{}) {
  4454  		asMap[k] = v
  4455  	}
  4456  
  4457  	for k, v := range asMap {
  4458  		switch k {
  4459  		case "Name":
  4460  			var err error
  4461  
  4462  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name"))
  4463  			it.Name, err = ec.unmarshalNString2string(ctx, v)
  4464  			if err != nil {
  4465  				return it, err
  4466  			}
  4467  		}
  4468  	}
  4469  
  4470  	return it, nil
  4471  }
  4472  
  4473  func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, obj interface{}) (MultiHelloWithErrorByNamesInput, error) {
  4474  	var it MultiHelloWithErrorByNamesInput
  4475  	asMap := map[string]interface{}{}
  4476  	for k, v := range obj.(map[string]interface{}) {
  4477  		asMap[k] = v
  4478  	}
  4479  
  4480  	for k, v := range asMap {
  4481  		switch k {
  4482  		case "Name":
  4483  			var err error
  4484  
  4485  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name"))
  4486  			it.Name, err = ec.unmarshalNString2string(ctx, v)
  4487  			if err != nil {
  4488  				return it, err
  4489  			}
  4490  		}
  4491  	}
  4492  
  4493  	return it, nil
  4494  }
  4495  
  4496  func (ec *executionContext) unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, obj interface{}) (MultiPlanetRequiresNestedByNamesInput, error) {
  4497  	var it MultiPlanetRequiresNestedByNamesInput
  4498  	asMap := map[string]interface{}{}
  4499  	for k, v := range obj.(map[string]interface{}) {
  4500  		asMap[k] = v
  4501  	}
  4502  
  4503  	for k, v := range asMap {
  4504  		switch k {
  4505  		case "Name":
  4506  			var err error
  4507  
  4508  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name"))
  4509  			it.Name, err = ec.unmarshalNString2string(ctx, v)
  4510  			if err != nil {
  4511  				return it, err
  4512  			}
  4513  		}
  4514  	}
  4515  
  4516  	return it, nil
  4517  }
  4518  
  4519  // endregion **************************** input.gotpl *****************************
  4520  
  4521  // region    ************************** interface.gotpl ***************************
  4522  
  4523  func (ec *executionContext) __Entity(ctx context.Context, sel ast.SelectionSet, obj fedruntime.Entity) graphql.Marshaler {
  4524  	switch obj := (obj).(type) {
  4525  	case nil:
  4526  		return graphql.Null
  4527  	case Hello:
  4528  		return ec._Hello(ctx, sel, &obj)
  4529  	case *Hello:
  4530  		if obj == nil {
  4531  			return graphql.Null
  4532  		}
  4533  		return ec._Hello(ctx, sel, obj)
  4534  	case HelloMultiSingleKeys:
  4535  		return ec._HelloMultiSingleKeys(ctx, sel, &obj)
  4536  	case *HelloMultiSingleKeys:
  4537  		if obj == nil {
  4538  			return graphql.Null
  4539  		}
  4540  		return ec._HelloMultiSingleKeys(ctx, sel, obj)
  4541  	case HelloWithErrors:
  4542  		return ec._HelloWithErrors(ctx, sel, &obj)
  4543  	case *HelloWithErrors:
  4544  		if obj == nil {
  4545  			return graphql.Null
  4546  		}
  4547  		return ec._HelloWithErrors(ctx, sel, obj)
  4548  	case MultiHello:
  4549  		return ec._MultiHello(ctx, sel, &obj)
  4550  	case *MultiHello:
  4551  		if obj == nil {
  4552  			return graphql.Null
  4553  		}
  4554  		return ec._MultiHello(ctx, sel, obj)
  4555  	case MultiHelloMultipleRequires:
  4556  		return ec._MultiHelloMultipleRequires(ctx, sel, &obj)
  4557  	case *MultiHelloMultipleRequires:
  4558  		if obj == nil {
  4559  			return graphql.Null
  4560  		}
  4561  		return ec._MultiHelloMultipleRequires(ctx, sel, obj)
  4562  	case MultiHelloRequires:
  4563  		return ec._MultiHelloRequires(ctx, sel, &obj)
  4564  	case *MultiHelloRequires:
  4565  		if obj == nil {
  4566  			return graphql.Null
  4567  		}
  4568  		return ec._MultiHelloRequires(ctx, sel, obj)
  4569  	case MultiHelloWithError:
  4570  		return ec._MultiHelloWithError(ctx, sel, &obj)
  4571  	case *MultiHelloWithError:
  4572  		if obj == nil {
  4573  			return graphql.Null
  4574  		}
  4575  		return ec._MultiHelloWithError(ctx, sel, obj)
  4576  	case MultiPlanetRequiresNested:
  4577  		return ec._MultiPlanetRequiresNested(ctx, sel, &obj)
  4578  	case *MultiPlanetRequiresNested:
  4579  		if obj == nil {
  4580  			return graphql.Null
  4581  		}
  4582  		return ec._MultiPlanetRequiresNested(ctx, sel, obj)
  4583  	case PlanetMultipleRequires:
  4584  		return ec._PlanetMultipleRequires(ctx, sel, &obj)
  4585  	case *PlanetMultipleRequires:
  4586  		if obj == nil {
  4587  			return graphql.Null
  4588  		}
  4589  		return ec._PlanetMultipleRequires(ctx, sel, obj)
  4590  	case PlanetRequires:
  4591  		return ec._PlanetRequires(ctx, sel, &obj)
  4592  	case *PlanetRequires:
  4593  		if obj == nil {
  4594  			return graphql.Null
  4595  		}
  4596  		return ec._PlanetRequires(ctx, sel, obj)
  4597  	case PlanetRequiresNested:
  4598  		return ec._PlanetRequiresNested(ctx, sel, &obj)
  4599  	case *PlanetRequiresNested:
  4600  		if obj == nil {
  4601  			return graphql.Null
  4602  		}
  4603  		return ec._PlanetRequiresNested(ctx, sel, obj)
  4604  	case World:
  4605  		return ec._World(ctx, sel, &obj)
  4606  	case *World:
  4607  		if obj == nil {
  4608  			return graphql.Null
  4609  		}
  4610  		return ec._World(ctx, sel, obj)
  4611  	case WorldName:
  4612  		return ec._WorldName(ctx, sel, &obj)
  4613  	case *WorldName:
  4614  		if obj == nil {
  4615  			return graphql.Null
  4616  		}
  4617  		return ec._WorldName(ctx, sel, obj)
  4618  	case WorldWithMultipleKeys:
  4619  		return ec._WorldWithMultipleKeys(ctx, sel, &obj)
  4620  	case *WorldWithMultipleKeys:
  4621  		if obj == nil {
  4622  			return graphql.Null
  4623  		}
  4624  		return ec._WorldWithMultipleKeys(ctx, sel, obj)
  4625  	default:
  4626  		panic(fmt.Errorf("unexpected type %T", obj))
  4627  	}
  4628  }
  4629  
  4630  // endregion ************************** interface.gotpl ***************************
  4631  
  4632  // region    **************************** object.gotpl ****************************
  4633  
  4634  var entityImplementors = []string{"Entity"}
  4635  
  4636  func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
  4637  	fields := graphql.CollectFields(ec.OperationContext, sel, entityImplementors)
  4638  	ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
  4639  		Object: "Entity",
  4640  	})
  4641  
  4642  	out := graphql.NewFieldSet(fields)
  4643  	var invalids uint32
  4644  	for i, field := range fields {
  4645  		innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
  4646  			Object: field.Name,
  4647  			Field:  field,
  4648  		})
  4649  
  4650  		switch field.Name {
  4651  		case "__typename":
  4652  			out.Values[i] = graphql.MarshalString("Entity")
  4653  		case "findHelloByName":
  4654  			field := field
  4655  
  4656  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4657  				defer func() {
  4658  					if r := recover(); r != nil {
  4659  						ec.Error(ctx, ec.Recover(ctx, r))
  4660  					}
  4661  				}()
  4662  				res = ec._Entity_findHelloByName(ctx, field)
  4663  				if res == graphql.Null {
  4664  					atomic.AddUint32(&invalids, 1)
  4665  				}
  4666  				return res
  4667  			}
  4668  
  4669  			rrm := func(ctx context.Context) graphql.Marshaler {
  4670  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4671  			}
  4672  
  4673  			out.Concurrently(i, func() graphql.Marshaler {
  4674  				return rrm(innerCtx)
  4675  			})
  4676  		case "findHelloMultiSingleKeysByKey1AndKey2":
  4677  			field := field
  4678  
  4679  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4680  				defer func() {
  4681  					if r := recover(); r != nil {
  4682  						ec.Error(ctx, ec.Recover(ctx, r))
  4683  					}
  4684  				}()
  4685  				res = ec._Entity_findHelloMultiSingleKeysByKey1AndKey2(ctx, field)
  4686  				if res == graphql.Null {
  4687  					atomic.AddUint32(&invalids, 1)
  4688  				}
  4689  				return res
  4690  			}
  4691  
  4692  			rrm := func(ctx context.Context) graphql.Marshaler {
  4693  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4694  			}
  4695  
  4696  			out.Concurrently(i, func() graphql.Marshaler {
  4697  				return rrm(innerCtx)
  4698  			})
  4699  		case "findHelloWithErrorsByName":
  4700  			field := field
  4701  
  4702  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4703  				defer func() {
  4704  					if r := recover(); r != nil {
  4705  						ec.Error(ctx, ec.Recover(ctx, r))
  4706  					}
  4707  				}()
  4708  				res = ec._Entity_findHelloWithErrorsByName(ctx, field)
  4709  				if res == graphql.Null {
  4710  					atomic.AddUint32(&invalids, 1)
  4711  				}
  4712  				return res
  4713  			}
  4714  
  4715  			rrm := func(ctx context.Context) graphql.Marshaler {
  4716  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4717  			}
  4718  
  4719  			out.Concurrently(i, func() graphql.Marshaler {
  4720  				return rrm(innerCtx)
  4721  			})
  4722  		case "findManyMultiHelloByNames":
  4723  			field := field
  4724  
  4725  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4726  				defer func() {
  4727  					if r := recover(); r != nil {
  4728  						ec.Error(ctx, ec.Recover(ctx, r))
  4729  					}
  4730  				}()
  4731  				res = ec._Entity_findManyMultiHelloByNames(ctx, field)
  4732  				return res
  4733  			}
  4734  
  4735  			rrm := func(ctx context.Context) graphql.Marshaler {
  4736  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4737  			}
  4738  
  4739  			out.Concurrently(i, func() graphql.Marshaler {
  4740  				return rrm(innerCtx)
  4741  			})
  4742  		case "findManyMultiHelloMultipleRequiresByNames":
  4743  			field := field
  4744  
  4745  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4746  				defer func() {
  4747  					if r := recover(); r != nil {
  4748  						ec.Error(ctx, ec.Recover(ctx, r))
  4749  					}
  4750  				}()
  4751  				res = ec._Entity_findManyMultiHelloMultipleRequiresByNames(ctx, field)
  4752  				return res
  4753  			}
  4754  
  4755  			rrm := func(ctx context.Context) graphql.Marshaler {
  4756  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4757  			}
  4758  
  4759  			out.Concurrently(i, func() graphql.Marshaler {
  4760  				return rrm(innerCtx)
  4761  			})
  4762  		case "findManyMultiHelloRequiresByNames":
  4763  			field := field
  4764  
  4765  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4766  				defer func() {
  4767  					if r := recover(); r != nil {
  4768  						ec.Error(ctx, ec.Recover(ctx, r))
  4769  					}
  4770  				}()
  4771  				res = ec._Entity_findManyMultiHelloRequiresByNames(ctx, field)
  4772  				return res
  4773  			}
  4774  
  4775  			rrm := func(ctx context.Context) graphql.Marshaler {
  4776  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4777  			}
  4778  
  4779  			out.Concurrently(i, func() graphql.Marshaler {
  4780  				return rrm(innerCtx)
  4781  			})
  4782  		case "findManyMultiHelloWithErrorByNames":
  4783  			field := field
  4784  
  4785  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4786  				defer func() {
  4787  					if r := recover(); r != nil {
  4788  						ec.Error(ctx, ec.Recover(ctx, r))
  4789  					}
  4790  				}()
  4791  				res = ec._Entity_findManyMultiHelloWithErrorByNames(ctx, field)
  4792  				return res
  4793  			}
  4794  
  4795  			rrm := func(ctx context.Context) graphql.Marshaler {
  4796  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4797  			}
  4798  
  4799  			out.Concurrently(i, func() graphql.Marshaler {
  4800  				return rrm(innerCtx)
  4801  			})
  4802  		case "findManyMultiPlanetRequiresNestedByNames":
  4803  			field := field
  4804  
  4805  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4806  				defer func() {
  4807  					if r := recover(); r != nil {
  4808  						ec.Error(ctx, ec.Recover(ctx, r))
  4809  					}
  4810  				}()
  4811  				res = ec._Entity_findManyMultiPlanetRequiresNestedByNames(ctx, field)
  4812  				return res
  4813  			}
  4814  
  4815  			rrm := func(ctx context.Context) graphql.Marshaler {
  4816  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4817  			}
  4818  
  4819  			out.Concurrently(i, func() graphql.Marshaler {
  4820  				return rrm(innerCtx)
  4821  			})
  4822  		case "findPlanetMultipleRequiresByName":
  4823  			field := field
  4824  
  4825  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4826  				defer func() {
  4827  					if r := recover(); r != nil {
  4828  						ec.Error(ctx, ec.Recover(ctx, r))
  4829  					}
  4830  				}()
  4831  				res = ec._Entity_findPlanetMultipleRequiresByName(ctx, field)
  4832  				if res == graphql.Null {
  4833  					atomic.AddUint32(&invalids, 1)
  4834  				}
  4835  				return res
  4836  			}
  4837  
  4838  			rrm := func(ctx context.Context) graphql.Marshaler {
  4839  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4840  			}
  4841  
  4842  			out.Concurrently(i, func() graphql.Marshaler {
  4843  				return rrm(innerCtx)
  4844  			})
  4845  		case "findPlanetRequiresByName":
  4846  			field := field
  4847  
  4848  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4849  				defer func() {
  4850  					if r := recover(); r != nil {
  4851  						ec.Error(ctx, ec.Recover(ctx, r))
  4852  					}
  4853  				}()
  4854  				res = ec._Entity_findPlanetRequiresByName(ctx, field)
  4855  				if res == graphql.Null {
  4856  					atomic.AddUint32(&invalids, 1)
  4857  				}
  4858  				return res
  4859  			}
  4860  
  4861  			rrm := func(ctx context.Context) graphql.Marshaler {
  4862  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4863  			}
  4864  
  4865  			out.Concurrently(i, func() graphql.Marshaler {
  4866  				return rrm(innerCtx)
  4867  			})
  4868  		case "findPlanetRequiresNestedByName":
  4869  			field := field
  4870  
  4871  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4872  				defer func() {
  4873  					if r := recover(); r != nil {
  4874  						ec.Error(ctx, ec.Recover(ctx, r))
  4875  					}
  4876  				}()
  4877  				res = ec._Entity_findPlanetRequiresNestedByName(ctx, field)
  4878  				if res == graphql.Null {
  4879  					atomic.AddUint32(&invalids, 1)
  4880  				}
  4881  				return res
  4882  			}
  4883  
  4884  			rrm := func(ctx context.Context) graphql.Marshaler {
  4885  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4886  			}
  4887  
  4888  			out.Concurrently(i, func() graphql.Marshaler {
  4889  				return rrm(innerCtx)
  4890  			})
  4891  		case "findWorldByHelloNameAndFoo":
  4892  			field := field
  4893  
  4894  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4895  				defer func() {
  4896  					if r := recover(); r != nil {
  4897  						ec.Error(ctx, ec.Recover(ctx, r))
  4898  					}
  4899  				}()
  4900  				res = ec._Entity_findWorldByHelloNameAndFoo(ctx, field)
  4901  				if res == graphql.Null {
  4902  					atomic.AddUint32(&invalids, 1)
  4903  				}
  4904  				return res
  4905  			}
  4906  
  4907  			rrm := func(ctx context.Context) graphql.Marshaler {
  4908  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4909  			}
  4910  
  4911  			out.Concurrently(i, func() graphql.Marshaler {
  4912  				return rrm(innerCtx)
  4913  			})
  4914  		case "findWorldNameByName":
  4915  			field := field
  4916  
  4917  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4918  				defer func() {
  4919  					if r := recover(); r != nil {
  4920  						ec.Error(ctx, ec.Recover(ctx, r))
  4921  					}
  4922  				}()
  4923  				res = ec._Entity_findWorldNameByName(ctx, field)
  4924  				if res == graphql.Null {
  4925  					atomic.AddUint32(&invalids, 1)
  4926  				}
  4927  				return res
  4928  			}
  4929  
  4930  			rrm := func(ctx context.Context) graphql.Marshaler {
  4931  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4932  			}
  4933  
  4934  			out.Concurrently(i, func() graphql.Marshaler {
  4935  				return rrm(innerCtx)
  4936  			})
  4937  		case "findWorldWithMultipleKeysByHelloNameAndFoo":
  4938  			field := field
  4939  
  4940  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4941  				defer func() {
  4942  					if r := recover(); r != nil {
  4943  						ec.Error(ctx, ec.Recover(ctx, r))
  4944  					}
  4945  				}()
  4946  				res = ec._Entity_findWorldWithMultipleKeysByHelloNameAndFoo(ctx, field)
  4947  				if res == graphql.Null {
  4948  					atomic.AddUint32(&invalids, 1)
  4949  				}
  4950  				return res
  4951  			}
  4952  
  4953  			rrm := func(ctx context.Context) graphql.Marshaler {
  4954  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4955  			}
  4956  
  4957  			out.Concurrently(i, func() graphql.Marshaler {
  4958  				return rrm(innerCtx)
  4959  			})
  4960  		case "findWorldWithMultipleKeysByBar":
  4961  			field := field
  4962  
  4963  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  4964  				defer func() {
  4965  					if r := recover(); r != nil {
  4966  						ec.Error(ctx, ec.Recover(ctx, r))
  4967  					}
  4968  				}()
  4969  				res = ec._Entity_findWorldWithMultipleKeysByBar(ctx, field)
  4970  				if res == graphql.Null {
  4971  					atomic.AddUint32(&invalids, 1)
  4972  				}
  4973  				return res
  4974  			}
  4975  
  4976  			rrm := func(ctx context.Context) graphql.Marshaler {
  4977  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  4978  			}
  4979  
  4980  			out.Concurrently(i, func() graphql.Marshaler {
  4981  				return rrm(innerCtx)
  4982  			})
  4983  		default:
  4984  			panic("unknown field " + strconv.Quote(field.Name))
  4985  		}
  4986  	}
  4987  	out.Dispatch()
  4988  	if invalids > 0 {
  4989  		return graphql.Null
  4990  	}
  4991  	return out
  4992  }
  4993  
  4994  var helloImplementors = []string{"Hello", "_Entity"}
  4995  
  4996  func (ec *executionContext) _Hello(ctx context.Context, sel ast.SelectionSet, obj *Hello) graphql.Marshaler {
  4997  	fields := graphql.CollectFields(ec.OperationContext, sel, helloImplementors)
  4998  	out := graphql.NewFieldSet(fields)
  4999  	var invalids uint32
  5000  	for i, field := range fields {
  5001  		switch field.Name {
  5002  		case "__typename":
  5003  			out.Values[i] = graphql.MarshalString("Hello")
  5004  		case "name":
  5005  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5006  				return ec._Hello_name(ctx, field, obj)
  5007  			}
  5008  
  5009  			out.Values[i] = innerFunc(ctx)
  5010  
  5011  			if out.Values[i] == graphql.Null {
  5012  				invalids++
  5013  			}
  5014  		case "secondary":
  5015  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5016  				return ec._Hello_secondary(ctx, field, obj)
  5017  			}
  5018  
  5019  			out.Values[i] = innerFunc(ctx)
  5020  
  5021  			if out.Values[i] == graphql.Null {
  5022  				invalids++
  5023  			}
  5024  		default:
  5025  			panic("unknown field " + strconv.Quote(field.Name))
  5026  		}
  5027  	}
  5028  	out.Dispatch()
  5029  	if invalids > 0 {
  5030  		return graphql.Null
  5031  	}
  5032  	return out
  5033  }
  5034  
  5035  var helloMultiSingleKeysImplementors = []string{"HelloMultiSingleKeys", "_Entity"}
  5036  
  5037  func (ec *executionContext) _HelloMultiSingleKeys(ctx context.Context, sel ast.SelectionSet, obj *HelloMultiSingleKeys) graphql.Marshaler {
  5038  	fields := graphql.CollectFields(ec.OperationContext, sel, helloMultiSingleKeysImplementors)
  5039  	out := graphql.NewFieldSet(fields)
  5040  	var invalids uint32
  5041  	for i, field := range fields {
  5042  		switch field.Name {
  5043  		case "__typename":
  5044  			out.Values[i] = graphql.MarshalString("HelloMultiSingleKeys")
  5045  		case "key1":
  5046  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5047  				return ec._HelloMultiSingleKeys_key1(ctx, field, obj)
  5048  			}
  5049  
  5050  			out.Values[i] = innerFunc(ctx)
  5051  
  5052  			if out.Values[i] == graphql.Null {
  5053  				invalids++
  5054  			}
  5055  		case "key2":
  5056  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5057  				return ec._HelloMultiSingleKeys_key2(ctx, field, obj)
  5058  			}
  5059  
  5060  			out.Values[i] = innerFunc(ctx)
  5061  
  5062  			if out.Values[i] == graphql.Null {
  5063  				invalids++
  5064  			}
  5065  		default:
  5066  			panic("unknown field " + strconv.Quote(field.Name))
  5067  		}
  5068  	}
  5069  	out.Dispatch()
  5070  	if invalids > 0 {
  5071  		return graphql.Null
  5072  	}
  5073  	return out
  5074  }
  5075  
  5076  var helloWithErrorsImplementors = []string{"HelloWithErrors", "_Entity"}
  5077  
  5078  func (ec *executionContext) _HelloWithErrors(ctx context.Context, sel ast.SelectionSet, obj *HelloWithErrors) graphql.Marshaler {
  5079  	fields := graphql.CollectFields(ec.OperationContext, sel, helloWithErrorsImplementors)
  5080  	out := graphql.NewFieldSet(fields)
  5081  	var invalids uint32
  5082  	for i, field := range fields {
  5083  		switch field.Name {
  5084  		case "__typename":
  5085  			out.Values[i] = graphql.MarshalString("HelloWithErrors")
  5086  		case "name":
  5087  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5088  				return ec._HelloWithErrors_name(ctx, field, obj)
  5089  			}
  5090  
  5091  			out.Values[i] = innerFunc(ctx)
  5092  
  5093  			if out.Values[i] == graphql.Null {
  5094  				invalids++
  5095  			}
  5096  		default:
  5097  			panic("unknown field " + strconv.Quote(field.Name))
  5098  		}
  5099  	}
  5100  	out.Dispatch()
  5101  	if invalids > 0 {
  5102  		return graphql.Null
  5103  	}
  5104  	return out
  5105  }
  5106  
  5107  var multiHelloImplementors = []string{"MultiHello", "_Entity"}
  5108  
  5109  func (ec *executionContext) _MultiHello(ctx context.Context, sel ast.SelectionSet, obj *MultiHello) graphql.Marshaler {
  5110  	fields := graphql.CollectFields(ec.OperationContext, sel, multiHelloImplementors)
  5111  	out := graphql.NewFieldSet(fields)
  5112  	var invalids uint32
  5113  	for i, field := range fields {
  5114  		switch field.Name {
  5115  		case "__typename":
  5116  			out.Values[i] = graphql.MarshalString("MultiHello")
  5117  		case "name":
  5118  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5119  				return ec._MultiHello_name(ctx, field, obj)
  5120  			}
  5121  
  5122  			out.Values[i] = innerFunc(ctx)
  5123  
  5124  			if out.Values[i] == graphql.Null {
  5125  				invalids++
  5126  			}
  5127  		default:
  5128  			panic("unknown field " + strconv.Quote(field.Name))
  5129  		}
  5130  	}
  5131  	out.Dispatch()
  5132  	if invalids > 0 {
  5133  		return graphql.Null
  5134  	}
  5135  	return out
  5136  }
  5137  
  5138  var multiHelloMultipleRequiresImplementors = []string{"MultiHelloMultipleRequires", "_Entity"}
  5139  
  5140  func (ec *executionContext) _MultiHelloMultipleRequires(ctx context.Context, sel ast.SelectionSet, obj *MultiHelloMultipleRequires) graphql.Marshaler {
  5141  	fields := graphql.CollectFields(ec.OperationContext, sel, multiHelloMultipleRequiresImplementors)
  5142  	out := graphql.NewFieldSet(fields)
  5143  	var invalids uint32
  5144  	for i, field := range fields {
  5145  		switch field.Name {
  5146  		case "__typename":
  5147  			out.Values[i] = graphql.MarshalString("MultiHelloMultipleRequires")
  5148  		case "name":
  5149  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5150  				return ec._MultiHelloMultipleRequires_name(ctx, field, obj)
  5151  			}
  5152  
  5153  			out.Values[i] = innerFunc(ctx)
  5154  
  5155  			if out.Values[i] == graphql.Null {
  5156  				invalids++
  5157  			}
  5158  		case "key1":
  5159  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5160  				return ec._MultiHelloMultipleRequires_key1(ctx, field, obj)
  5161  			}
  5162  
  5163  			out.Values[i] = innerFunc(ctx)
  5164  
  5165  			if out.Values[i] == graphql.Null {
  5166  				invalids++
  5167  			}
  5168  		case "key2":
  5169  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5170  				return ec._MultiHelloMultipleRequires_key2(ctx, field, obj)
  5171  			}
  5172  
  5173  			out.Values[i] = innerFunc(ctx)
  5174  
  5175  			if out.Values[i] == graphql.Null {
  5176  				invalids++
  5177  			}
  5178  		case "key3":
  5179  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5180  				return ec._MultiHelloMultipleRequires_key3(ctx, field, obj)
  5181  			}
  5182  
  5183  			out.Values[i] = innerFunc(ctx)
  5184  
  5185  			if out.Values[i] == graphql.Null {
  5186  				invalids++
  5187  			}
  5188  		default:
  5189  			panic("unknown field " + strconv.Quote(field.Name))
  5190  		}
  5191  	}
  5192  	out.Dispatch()
  5193  	if invalids > 0 {
  5194  		return graphql.Null
  5195  	}
  5196  	return out
  5197  }
  5198  
  5199  var multiHelloRequiresImplementors = []string{"MultiHelloRequires", "_Entity"}
  5200  
  5201  func (ec *executionContext) _MultiHelloRequires(ctx context.Context, sel ast.SelectionSet, obj *MultiHelloRequires) graphql.Marshaler {
  5202  	fields := graphql.CollectFields(ec.OperationContext, sel, multiHelloRequiresImplementors)
  5203  	out := graphql.NewFieldSet(fields)
  5204  	var invalids uint32
  5205  	for i, field := range fields {
  5206  		switch field.Name {
  5207  		case "__typename":
  5208  			out.Values[i] = graphql.MarshalString("MultiHelloRequires")
  5209  		case "name":
  5210  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5211  				return ec._MultiHelloRequires_name(ctx, field, obj)
  5212  			}
  5213  
  5214  			out.Values[i] = innerFunc(ctx)
  5215  
  5216  			if out.Values[i] == graphql.Null {
  5217  				invalids++
  5218  			}
  5219  		case "key1":
  5220  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5221  				return ec._MultiHelloRequires_key1(ctx, field, obj)
  5222  			}
  5223  
  5224  			out.Values[i] = innerFunc(ctx)
  5225  
  5226  			if out.Values[i] == graphql.Null {
  5227  				invalids++
  5228  			}
  5229  		case "key2":
  5230  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5231  				return ec._MultiHelloRequires_key2(ctx, field, obj)
  5232  			}
  5233  
  5234  			out.Values[i] = innerFunc(ctx)
  5235  
  5236  			if out.Values[i] == graphql.Null {
  5237  				invalids++
  5238  			}
  5239  		default:
  5240  			panic("unknown field " + strconv.Quote(field.Name))
  5241  		}
  5242  	}
  5243  	out.Dispatch()
  5244  	if invalids > 0 {
  5245  		return graphql.Null
  5246  	}
  5247  	return out
  5248  }
  5249  
  5250  var multiHelloWithErrorImplementors = []string{"MultiHelloWithError", "_Entity"}
  5251  
  5252  func (ec *executionContext) _MultiHelloWithError(ctx context.Context, sel ast.SelectionSet, obj *MultiHelloWithError) graphql.Marshaler {
  5253  	fields := graphql.CollectFields(ec.OperationContext, sel, multiHelloWithErrorImplementors)
  5254  	out := graphql.NewFieldSet(fields)
  5255  	var invalids uint32
  5256  	for i, field := range fields {
  5257  		switch field.Name {
  5258  		case "__typename":
  5259  			out.Values[i] = graphql.MarshalString("MultiHelloWithError")
  5260  		case "name":
  5261  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5262  				return ec._MultiHelloWithError_name(ctx, field, obj)
  5263  			}
  5264  
  5265  			out.Values[i] = innerFunc(ctx)
  5266  
  5267  			if out.Values[i] == graphql.Null {
  5268  				invalids++
  5269  			}
  5270  		default:
  5271  			panic("unknown field " + strconv.Quote(field.Name))
  5272  		}
  5273  	}
  5274  	out.Dispatch()
  5275  	if invalids > 0 {
  5276  		return graphql.Null
  5277  	}
  5278  	return out
  5279  }
  5280  
  5281  var multiPlanetRequiresNestedImplementors = []string{"MultiPlanetRequiresNested", "_Entity"}
  5282  
  5283  func (ec *executionContext) _MultiPlanetRequiresNested(ctx context.Context, sel ast.SelectionSet, obj *MultiPlanetRequiresNested) graphql.Marshaler {
  5284  	fields := graphql.CollectFields(ec.OperationContext, sel, multiPlanetRequiresNestedImplementors)
  5285  	out := graphql.NewFieldSet(fields)
  5286  	var invalids uint32
  5287  	for i, field := range fields {
  5288  		switch field.Name {
  5289  		case "__typename":
  5290  			out.Values[i] = graphql.MarshalString("MultiPlanetRequiresNested")
  5291  		case "name":
  5292  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5293  				return ec._MultiPlanetRequiresNested_name(ctx, field, obj)
  5294  			}
  5295  
  5296  			out.Values[i] = innerFunc(ctx)
  5297  
  5298  			if out.Values[i] == graphql.Null {
  5299  				invalids++
  5300  			}
  5301  		case "world":
  5302  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5303  				return ec._MultiPlanetRequiresNested_world(ctx, field, obj)
  5304  			}
  5305  
  5306  			out.Values[i] = innerFunc(ctx)
  5307  
  5308  			if out.Values[i] == graphql.Null {
  5309  				invalids++
  5310  			}
  5311  		case "size":
  5312  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5313  				return ec._MultiPlanetRequiresNested_size(ctx, field, obj)
  5314  			}
  5315  
  5316  			out.Values[i] = innerFunc(ctx)
  5317  
  5318  			if out.Values[i] == graphql.Null {
  5319  				invalids++
  5320  			}
  5321  		default:
  5322  			panic("unknown field " + strconv.Quote(field.Name))
  5323  		}
  5324  	}
  5325  	out.Dispatch()
  5326  	if invalids > 0 {
  5327  		return graphql.Null
  5328  	}
  5329  	return out
  5330  }
  5331  
  5332  var planetMultipleRequiresImplementors = []string{"PlanetMultipleRequires", "_Entity"}
  5333  
  5334  func (ec *executionContext) _PlanetMultipleRequires(ctx context.Context, sel ast.SelectionSet, obj *PlanetMultipleRequires) graphql.Marshaler {
  5335  	fields := graphql.CollectFields(ec.OperationContext, sel, planetMultipleRequiresImplementors)
  5336  	out := graphql.NewFieldSet(fields)
  5337  	var invalids uint32
  5338  	for i, field := range fields {
  5339  		switch field.Name {
  5340  		case "__typename":
  5341  			out.Values[i] = graphql.MarshalString("PlanetMultipleRequires")
  5342  		case "name":
  5343  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5344  				return ec._PlanetMultipleRequires_name(ctx, field, obj)
  5345  			}
  5346  
  5347  			out.Values[i] = innerFunc(ctx)
  5348  
  5349  			if out.Values[i] == graphql.Null {
  5350  				invalids++
  5351  			}
  5352  		case "diameter":
  5353  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5354  				return ec._PlanetMultipleRequires_diameter(ctx, field, obj)
  5355  			}
  5356  
  5357  			out.Values[i] = innerFunc(ctx)
  5358  
  5359  			if out.Values[i] == graphql.Null {
  5360  				invalids++
  5361  			}
  5362  		case "density":
  5363  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5364  				return ec._PlanetMultipleRequires_density(ctx, field, obj)
  5365  			}
  5366  
  5367  			out.Values[i] = innerFunc(ctx)
  5368  
  5369  			if out.Values[i] == graphql.Null {
  5370  				invalids++
  5371  			}
  5372  		case "weight":
  5373  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5374  				return ec._PlanetMultipleRequires_weight(ctx, field, obj)
  5375  			}
  5376  
  5377  			out.Values[i] = innerFunc(ctx)
  5378  
  5379  			if out.Values[i] == graphql.Null {
  5380  				invalids++
  5381  			}
  5382  		default:
  5383  			panic("unknown field " + strconv.Quote(field.Name))
  5384  		}
  5385  	}
  5386  	out.Dispatch()
  5387  	if invalids > 0 {
  5388  		return graphql.Null
  5389  	}
  5390  	return out
  5391  }
  5392  
  5393  var planetRequiresImplementors = []string{"PlanetRequires", "_Entity"}
  5394  
  5395  func (ec *executionContext) _PlanetRequires(ctx context.Context, sel ast.SelectionSet, obj *PlanetRequires) graphql.Marshaler {
  5396  	fields := graphql.CollectFields(ec.OperationContext, sel, planetRequiresImplementors)
  5397  	out := graphql.NewFieldSet(fields)
  5398  	var invalids uint32
  5399  	for i, field := range fields {
  5400  		switch field.Name {
  5401  		case "__typename":
  5402  			out.Values[i] = graphql.MarshalString("PlanetRequires")
  5403  		case "name":
  5404  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5405  				return ec._PlanetRequires_name(ctx, field, obj)
  5406  			}
  5407  
  5408  			out.Values[i] = innerFunc(ctx)
  5409  
  5410  			if out.Values[i] == graphql.Null {
  5411  				invalids++
  5412  			}
  5413  		case "size":
  5414  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5415  				return ec._PlanetRequires_size(ctx, field, obj)
  5416  			}
  5417  
  5418  			out.Values[i] = innerFunc(ctx)
  5419  
  5420  			if out.Values[i] == graphql.Null {
  5421  				invalids++
  5422  			}
  5423  		case "diameter":
  5424  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5425  				return ec._PlanetRequires_diameter(ctx, field, obj)
  5426  			}
  5427  
  5428  			out.Values[i] = innerFunc(ctx)
  5429  
  5430  			if out.Values[i] == graphql.Null {
  5431  				invalids++
  5432  			}
  5433  		default:
  5434  			panic("unknown field " + strconv.Quote(field.Name))
  5435  		}
  5436  	}
  5437  	out.Dispatch()
  5438  	if invalids > 0 {
  5439  		return graphql.Null
  5440  	}
  5441  	return out
  5442  }
  5443  
  5444  var planetRequiresNestedImplementors = []string{"PlanetRequiresNested", "_Entity"}
  5445  
  5446  func (ec *executionContext) _PlanetRequiresNested(ctx context.Context, sel ast.SelectionSet, obj *PlanetRequiresNested) graphql.Marshaler {
  5447  	fields := graphql.CollectFields(ec.OperationContext, sel, planetRequiresNestedImplementors)
  5448  	out := graphql.NewFieldSet(fields)
  5449  	var invalids uint32
  5450  	for i, field := range fields {
  5451  		switch field.Name {
  5452  		case "__typename":
  5453  			out.Values[i] = graphql.MarshalString("PlanetRequiresNested")
  5454  		case "name":
  5455  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5456  				return ec._PlanetRequiresNested_name(ctx, field, obj)
  5457  			}
  5458  
  5459  			out.Values[i] = innerFunc(ctx)
  5460  
  5461  			if out.Values[i] == graphql.Null {
  5462  				invalids++
  5463  			}
  5464  		case "world":
  5465  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5466  				return ec._PlanetRequiresNested_world(ctx, field, obj)
  5467  			}
  5468  
  5469  			out.Values[i] = innerFunc(ctx)
  5470  
  5471  			if out.Values[i] == graphql.Null {
  5472  				invalids++
  5473  			}
  5474  		case "size":
  5475  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5476  				return ec._PlanetRequiresNested_size(ctx, field, obj)
  5477  			}
  5478  
  5479  			out.Values[i] = innerFunc(ctx)
  5480  
  5481  			if out.Values[i] == graphql.Null {
  5482  				invalids++
  5483  			}
  5484  		default:
  5485  			panic("unknown field " + strconv.Quote(field.Name))
  5486  		}
  5487  	}
  5488  	out.Dispatch()
  5489  	if invalids > 0 {
  5490  		return graphql.Null
  5491  	}
  5492  	return out
  5493  }
  5494  
  5495  var queryImplementors = []string{"Query"}
  5496  
  5497  func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
  5498  	fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
  5499  	ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
  5500  		Object: "Query",
  5501  	})
  5502  
  5503  	out := graphql.NewFieldSet(fields)
  5504  	var invalids uint32
  5505  	for i, field := range fields {
  5506  		innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
  5507  			Object: field.Name,
  5508  			Field:  field,
  5509  		})
  5510  
  5511  		switch field.Name {
  5512  		case "__typename":
  5513  			out.Values[i] = graphql.MarshalString("Query")
  5514  		case "_entities":
  5515  			field := field
  5516  
  5517  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5518  				defer func() {
  5519  					if r := recover(); r != nil {
  5520  						ec.Error(ctx, ec.Recover(ctx, r))
  5521  					}
  5522  				}()
  5523  				res = ec._Query__entities(ctx, field)
  5524  				if res == graphql.Null {
  5525  					atomic.AddUint32(&invalids, 1)
  5526  				}
  5527  				return res
  5528  			}
  5529  
  5530  			rrm := func(ctx context.Context) graphql.Marshaler {
  5531  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  5532  			}
  5533  
  5534  			out.Concurrently(i, func() graphql.Marshaler {
  5535  				return rrm(innerCtx)
  5536  			})
  5537  		case "_service":
  5538  			field := field
  5539  
  5540  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5541  				defer func() {
  5542  					if r := recover(); r != nil {
  5543  						ec.Error(ctx, ec.Recover(ctx, r))
  5544  					}
  5545  				}()
  5546  				res = ec._Query__service(ctx, field)
  5547  				if res == graphql.Null {
  5548  					atomic.AddUint32(&invalids, 1)
  5549  				}
  5550  				return res
  5551  			}
  5552  
  5553  			rrm := func(ctx context.Context) graphql.Marshaler {
  5554  				return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  5555  			}
  5556  
  5557  			out.Concurrently(i, func() graphql.Marshaler {
  5558  				return rrm(innerCtx)
  5559  			})
  5560  		case "__type":
  5561  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5562  				return ec._Query___type(ctx, field)
  5563  			}
  5564  
  5565  			out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
  5566  
  5567  		case "__schema":
  5568  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5569  				return ec._Query___schema(ctx, field)
  5570  			}
  5571  
  5572  			out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
  5573  
  5574  		default:
  5575  			panic("unknown field " + strconv.Quote(field.Name))
  5576  		}
  5577  	}
  5578  	out.Dispatch()
  5579  	if invalids > 0 {
  5580  		return graphql.Null
  5581  	}
  5582  	return out
  5583  }
  5584  
  5585  var worldImplementors = []string{"World", "_Entity"}
  5586  
  5587  func (ec *executionContext) _World(ctx context.Context, sel ast.SelectionSet, obj *World) graphql.Marshaler {
  5588  	fields := graphql.CollectFields(ec.OperationContext, sel, worldImplementors)
  5589  	out := graphql.NewFieldSet(fields)
  5590  	var invalids uint32
  5591  	for i, field := range fields {
  5592  		switch field.Name {
  5593  		case "__typename":
  5594  			out.Values[i] = graphql.MarshalString("World")
  5595  		case "foo":
  5596  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5597  				return ec._World_foo(ctx, field, obj)
  5598  			}
  5599  
  5600  			out.Values[i] = innerFunc(ctx)
  5601  
  5602  			if out.Values[i] == graphql.Null {
  5603  				invalids++
  5604  			}
  5605  		case "bar":
  5606  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5607  				return ec._World_bar(ctx, field, obj)
  5608  			}
  5609  
  5610  			out.Values[i] = innerFunc(ctx)
  5611  
  5612  			if out.Values[i] == graphql.Null {
  5613  				invalids++
  5614  			}
  5615  		case "hello":
  5616  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5617  				return ec._World_hello(ctx, field, obj)
  5618  			}
  5619  
  5620  			out.Values[i] = innerFunc(ctx)
  5621  
  5622  		default:
  5623  			panic("unknown field " + strconv.Quote(field.Name))
  5624  		}
  5625  	}
  5626  	out.Dispatch()
  5627  	if invalids > 0 {
  5628  		return graphql.Null
  5629  	}
  5630  	return out
  5631  }
  5632  
  5633  var worldNameImplementors = []string{"WorldName", "_Entity"}
  5634  
  5635  func (ec *executionContext) _WorldName(ctx context.Context, sel ast.SelectionSet, obj *WorldName) graphql.Marshaler {
  5636  	fields := graphql.CollectFields(ec.OperationContext, sel, worldNameImplementors)
  5637  	out := graphql.NewFieldSet(fields)
  5638  	var invalids uint32
  5639  	for i, field := range fields {
  5640  		switch field.Name {
  5641  		case "__typename":
  5642  			out.Values[i] = graphql.MarshalString("WorldName")
  5643  		case "name":
  5644  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5645  				return ec._WorldName_name(ctx, field, obj)
  5646  			}
  5647  
  5648  			out.Values[i] = innerFunc(ctx)
  5649  
  5650  			if out.Values[i] == graphql.Null {
  5651  				invalids++
  5652  			}
  5653  		default:
  5654  			panic("unknown field " + strconv.Quote(field.Name))
  5655  		}
  5656  	}
  5657  	out.Dispatch()
  5658  	if invalids > 0 {
  5659  		return graphql.Null
  5660  	}
  5661  	return out
  5662  }
  5663  
  5664  var worldWithMultipleKeysImplementors = []string{"WorldWithMultipleKeys", "_Entity"}
  5665  
  5666  func (ec *executionContext) _WorldWithMultipleKeys(ctx context.Context, sel ast.SelectionSet, obj *WorldWithMultipleKeys) graphql.Marshaler {
  5667  	fields := graphql.CollectFields(ec.OperationContext, sel, worldWithMultipleKeysImplementors)
  5668  	out := graphql.NewFieldSet(fields)
  5669  	var invalids uint32
  5670  	for i, field := range fields {
  5671  		switch field.Name {
  5672  		case "__typename":
  5673  			out.Values[i] = graphql.MarshalString("WorldWithMultipleKeys")
  5674  		case "foo":
  5675  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5676  				return ec._WorldWithMultipleKeys_foo(ctx, field, obj)
  5677  			}
  5678  
  5679  			out.Values[i] = innerFunc(ctx)
  5680  
  5681  			if out.Values[i] == graphql.Null {
  5682  				invalids++
  5683  			}
  5684  		case "bar":
  5685  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5686  				return ec._WorldWithMultipleKeys_bar(ctx, field, obj)
  5687  			}
  5688  
  5689  			out.Values[i] = innerFunc(ctx)
  5690  
  5691  			if out.Values[i] == graphql.Null {
  5692  				invalids++
  5693  			}
  5694  		case "hello":
  5695  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5696  				return ec._WorldWithMultipleKeys_hello(ctx, field, obj)
  5697  			}
  5698  
  5699  			out.Values[i] = innerFunc(ctx)
  5700  
  5701  		default:
  5702  			panic("unknown field " + strconv.Quote(field.Name))
  5703  		}
  5704  	}
  5705  	out.Dispatch()
  5706  	if invalids > 0 {
  5707  		return graphql.Null
  5708  	}
  5709  	return out
  5710  }
  5711  
  5712  var _ServiceImplementors = []string{"_Service"}
  5713  
  5714  func (ec *executionContext) __Service(ctx context.Context, sel ast.SelectionSet, obj *fedruntime.Service) graphql.Marshaler {
  5715  	fields := graphql.CollectFields(ec.OperationContext, sel, _ServiceImplementors)
  5716  	out := graphql.NewFieldSet(fields)
  5717  	var invalids uint32
  5718  	for i, field := range fields {
  5719  		switch field.Name {
  5720  		case "__typename":
  5721  			out.Values[i] = graphql.MarshalString("_Service")
  5722  		case "sdl":
  5723  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5724  				return ec.__Service_sdl(ctx, field, obj)
  5725  			}
  5726  
  5727  			out.Values[i] = innerFunc(ctx)
  5728  
  5729  		default:
  5730  			panic("unknown field " + strconv.Quote(field.Name))
  5731  		}
  5732  	}
  5733  	out.Dispatch()
  5734  	if invalids > 0 {
  5735  		return graphql.Null
  5736  	}
  5737  	return out
  5738  }
  5739  
  5740  var __DirectiveImplementors = []string{"__Directive"}
  5741  
  5742  func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
  5743  	fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
  5744  	out := graphql.NewFieldSet(fields)
  5745  	var invalids uint32
  5746  	for i, field := range fields {
  5747  		switch field.Name {
  5748  		case "__typename":
  5749  			out.Values[i] = graphql.MarshalString("__Directive")
  5750  		case "name":
  5751  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5752  				return ec.___Directive_name(ctx, field, obj)
  5753  			}
  5754  
  5755  			out.Values[i] = innerFunc(ctx)
  5756  
  5757  			if out.Values[i] == graphql.Null {
  5758  				invalids++
  5759  			}
  5760  		case "description":
  5761  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5762  				return ec.___Directive_description(ctx, field, obj)
  5763  			}
  5764  
  5765  			out.Values[i] = innerFunc(ctx)
  5766  
  5767  		case "locations":
  5768  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5769  				return ec.___Directive_locations(ctx, field, obj)
  5770  			}
  5771  
  5772  			out.Values[i] = innerFunc(ctx)
  5773  
  5774  			if out.Values[i] == graphql.Null {
  5775  				invalids++
  5776  			}
  5777  		case "args":
  5778  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5779  				return ec.___Directive_args(ctx, field, obj)
  5780  			}
  5781  
  5782  			out.Values[i] = innerFunc(ctx)
  5783  
  5784  			if out.Values[i] == graphql.Null {
  5785  				invalids++
  5786  			}
  5787  		case "isRepeatable":
  5788  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5789  				return ec.___Directive_isRepeatable(ctx, field, obj)
  5790  			}
  5791  
  5792  			out.Values[i] = innerFunc(ctx)
  5793  
  5794  			if out.Values[i] == graphql.Null {
  5795  				invalids++
  5796  			}
  5797  		default:
  5798  			panic("unknown field " + strconv.Quote(field.Name))
  5799  		}
  5800  	}
  5801  	out.Dispatch()
  5802  	if invalids > 0 {
  5803  		return graphql.Null
  5804  	}
  5805  	return out
  5806  }
  5807  
  5808  var __EnumValueImplementors = []string{"__EnumValue"}
  5809  
  5810  func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
  5811  	fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
  5812  	out := graphql.NewFieldSet(fields)
  5813  	var invalids uint32
  5814  	for i, field := range fields {
  5815  		switch field.Name {
  5816  		case "__typename":
  5817  			out.Values[i] = graphql.MarshalString("__EnumValue")
  5818  		case "name":
  5819  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5820  				return ec.___EnumValue_name(ctx, field, obj)
  5821  			}
  5822  
  5823  			out.Values[i] = innerFunc(ctx)
  5824  
  5825  			if out.Values[i] == graphql.Null {
  5826  				invalids++
  5827  			}
  5828  		case "description":
  5829  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5830  				return ec.___EnumValue_description(ctx, field, obj)
  5831  			}
  5832  
  5833  			out.Values[i] = innerFunc(ctx)
  5834  
  5835  		case "isDeprecated":
  5836  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5837  				return ec.___EnumValue_isDeprecated(ctx, field, obj)
  5838  			}
  5839  
  5840  			out.Values[i] = innerFunc(ctx)
  5841  
  5842  			if out.Values[i] == graphql.Null {
  5843  				invalids++
  5844  			}
  5845  		case "deprecationReason":
  5846  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5847  				return ec.___EnumValue_deprecationReason(ctx, field, obj)
  5848  			}
  5849  
  5850  			out.Values[i] = innerFunc(ctx)
  5851  
  5852  		default:
  5853  			panic("unknown field " + strconv.Quote(field.Name))
  5854  		}
  5855  	}
  5856  	out.Dispatch()
  5857  	if invalids > 0 {
  5858  		return graphql.Null
  5859  	}
  5860  	return out
  5861  }
  5862  
  5863  var __FieldImplementors = []string{"__Field"}
  5864  
  5865  func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
  5866  	fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
  5867  	out := graphql.NewFieldSet(fields)
  5868  	var invalids uint32
  5869  	for i, field := range fields {
  5870  		switch field.Name {
  5871  		case "__typename":
  5872  			out.Values[i] = graphql.MarshalString("__Field")
  5873  		case "name":
  5874  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5875  				return ec.___Field_name(ctx, field, obj)
  5876  			}
  5877  
  5878  			out.Values[i] = innerFunc(ctx)
  5879  
  5880  			if out.Values[i] == graphql.Null {
  5881  				invalids++
  5882  			}
  5883  		case "description":
  5884  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5885  				return ec.___Field_description(ctx, field, obj)
  5886  			}
  5887  
  5888  			out.Values[i] = innerFunc(ctx)
  5889  
  5890  		case "args":
  5891  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5892  				return ec.___Field_args(ctx, field, obj)
  5893  			}
  5894  
  5895  			out.Values[i] = innerFunc(ctx)
  5896  
  5897  			if out.Values[i] == graphql.Null {
  5898  				invalids++
  5899  			}
  5900  		case "type":
  5901  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5902  				return ec.___Field_type(ctx, field, obj)
  5903  			}
  5904  
  5905  			out.Values[i] = innerFunc(ctx)
  5906  
  5907  			if out.Values[i] == graphql.Null {
  5908  				invalids++
  5909  			}
  5910  		case "isDeprecated":
  5911  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5912  				return ec.___Field_isDeprecated(ctx, field, obj)
  5913  			}
  5914  
  5915  			out.Values[i] = innerFunc(ctx)
  5916  
  5917  			if out.Values[i] == graphql.Null {
  5918  				invalids++
  5919  			}
  5920  		case "deprecationReason":
  5921  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5922  				return ec.___Field_deprecationReason(ctx, field, obj)
  5923  			}
  5924  
  5925  			out.Values[i] = innerFunc(ctx)
  5926  
  5927  		default:
  5928  			panic("unknown field " + strconv.Quote(field.Name))
  5929  		}
  5930  	}
  5931  	out.Dispatch()
  5932  	if invalids > 0 {
  5933  		return graphql.Null
  5934  	}
  5935  	return out
  5936  }
  5937  
  5938  var __InputValueImplementors = []string{"__InputValue"}
  5939  
  5940  func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
  5941  	fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
  5942  	out := graphql.NewFieldSet(fields)
  5943  	var invalids uint32
  5944  	for i, field := range fields {
  5945  		switch field.Name {
  5946  		case "__typename":
  5947  			out.Values[i] = graphql.MarshalString("__InputValue")
  5948  		case "name":
  5949  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5950  				return ec.___InputValue_name(ctx, field, obj)
  5951  			}
  5952  
  5953  			out.Values[i] = innerFunc(ctx)
  5954  
  5955  			if out.Values[i] == graphql.Null {
  5956  				invalids++
  5957  			}
  5958  		case "description":
  5959  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5960  				return ec.___InputValue_description(ctx, field, obj)
  5961  			}
  5962  
  5963  			out.Values[i] = innerFunc(ctx)
  5964  
  5965  		case "type":
  5966  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5967  				return ec.___InputValue_type(ctx, field, obj)
  5968  			}
  5969  
  5970  			out.Values[i] = innerFunc(ctx)
  5971  
  5972  			if out.Values[i] == graphql.Null {
  5973  				invalids++
  5974  			}
  5975  		case "defaultValue":
  5976  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  5977  				return ec.___InputValue_defaultValue(ctx, field, obj)
  5978  			}
  5979  
  5980  			out.Values[i] = innerFunc(ctx)
  5981  
  5982  		default:
  5983  			panic("unknown field " + strconv.Quote(field.Name))
  5984  		}
  5985  	}
  5986  	out.Dispatch()
  5987  	if invalids > 0 {
  5988  		return graphql.Null
  5989  	}
  5990  	return out
  5991  }
  5992  
  5993  var __SchemaImplementors = []string{"__Schema"}
  5994  
  5995  func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
  5996  	fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
  5997  	out := graphql.NewFieldSet(fields)
  5998  	var invalids uint32
  5999  	for i, field := range fields {
  6000  		switch field.Name {
  6001  		case "__typename":
  6002  			out.Values[i] = graphql.MarshalString("__Schema")
  6003  		case "types":
  6004  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6005  				return ec.___Schema_types(ctx, field, obj)
  6006  			}
  6007  
  6008  			out.Values[i] = innerFunc(ctx)
  6009  
  6010  			if out.Values[i] == graphql.Null {
  6011  				invalids++
  6012  			}
  6013  		case "queryType":
  6014  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6015  				return ec.___Schema_queryType(ctx, field, obj)
  6016  			}
  6017  
  6018  			out.Values[i] = innerFunc(ctx)
  6019  
  6020  			if out.Values[i] == graphql.Null {
  6021  				invalids++
  6022  			}
  6023  		case "mutationType":
  6024  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6025  				return ec.___Schema_mutationType(ctx, field, obj)
  6026  			}
  6027  
  6028  			out.Values[i] = innerFunc(ctx)
  6029  
  6030  		case "subscriptionType":
  6031  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6032  				return ec.___Schema_subscriptionType(ctx, field, obj)
  6033  			}
  6034  
  6035  			out.Values[i] = innerFunc(ctx)
  6036  
  6037  		case "directives":
  6038  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6039  				return ec.___Schema_directives(ctx, field, obj)
  6040  			}
  6041  
  6042  			out.Values[i] = innerFunc(ctx)
  6043  
  6044  			if out.Values[i] == graphql.Null {
  6045  				invalids++
  6046  			}
  6047  		default:
  6048  			panic("unknown field " + strconv.Quote(field.Name))
  6049  		}
  6050  	}
  6051  	out.Dispatch()
  6052  	if invalids > 0 {
  6053  		return graphql.Null
  6054  	}
  6055  	return out
  6056  }
  6057  
  6058  var __TypeImplementors = []string{"__Type"}
  6059  
  6060  func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
  6061  	fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
  6062  	out := graphql.NewFieldSet(fields)
  6063  	var invalids uint32
  6064  	for i, field := range fields {
  6065  		switch field.Name {
  6066  		case "__typename":
  6067  			out.Values[i] = graphql.MarshalString("__Type")
  6068  		case "kind":
  6069  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6070  				return ec.___Type_kind(ctx, field, obj)
  6071  			}
  6072  
  6073  			out.Values[i] = innerFunc(ctx)
  6074  
  6075  			if out.Values[i] == graphql.Null {
  6076  				invalids++
  6077  			}
  6078  		case "name":
  6079  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6080  				return ec.___Type_name(ctx, field, obj)
  6081  			}
  6082  
  6083  			out.Values[i] = innerFunc(ctx)
  6084  
  6085  		case "description":
  6086  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6087  				return ec.___Type_description(ctx, field, obj)
  6088  			}
  6089  
  6090  			out.Values[i] = innerFunc(ctx)
  6091  
  6092  		case "fields":
  6093  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6094  				return ec.___Type_fields(ctx, field, obj)
  6095  			}
  6096  
  6097  			out.Values[i] = innerFunc(ctx)
  6098  
  6099  		case "interfaces":
  6100  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6101  				return ec.___Type_interfaces(ctx, field, obj)
  6102  			}
  6103  
  6104  			out.Values[i] = innerFunc(ctx)
  6105  
  6106  		case "possibleTypes":
  6107  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6108  				return ec.___Type_possibleTypes(ctx, field, obj)
  6109  			}
  6110  
  6111  			out.Values[i] = innerFunc(ctx)
  6112  
  6113  		case "enumValues":
  6114  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6115  				return ec.___Type_enumValues(ctx, field, obj)
  6116  			}
  6117  
  6118  			out.Values[i] = innerFunc(ctx)
  6119  
  6120  		case "inputFields":
  6121  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6122  				return ec.___Type_inputFields(ctx, field, obj)
  6123  			}
  6124  
  6125  			out.Values[i] = innerFunc(ctx)
  6126  
  6127  		case "ofType":
  6128  			innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  6129  				return ec.___Type_ofType(ctx, field, obj)
  6130  			}
  6131  
  6132  			out.Values[i] = innerFunc(ctx)
  6133  
  6134  		default:
  6135  			panic("unknown field " + strconv.Quote(field.Name))
  6136  		}
  6137  	}
  6138  	out.Dispatch()
  6139  	if invalids > 0 {
  6140  		return graphql.Null
  6141  	}
  6142  	return out
  6143  }
  6144  
  6145  // endregion **************************** object.gotpl ****************************
  6146  
  6147  // region    ***************************** type.gotpl *****************************
  6148  
  6149  func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  6150  	res, err := graphql.UnmarshalBoolean(v)
  6151  	return res, graphql.ErrorOnPath(ctx, err)
  6152  }
  6153  
  6154  func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  6155  	res := graphql.MarshalBoolean(v)
  6156  	if res == graphql.Null {
  6157  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6158  			ec.Errorf(ctx, "must not be null")
  6159  		}
  6160  	}
  6161  	return res
  6162  }
  6163  
  6164  func (ec *executionContext) marshalNHello2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHello(ctx context.Context, sel ast.SelectionSet, v Hello) graphql.Marshaler {
  6165  	return ec._Hello(ctx, sel, &v)
  6166  }
  6167  
  6168  func (ec *executionContext) marshalNHello2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHello(ctx context.Context, sel ast.SelectionSet, v *Hello) graphql.Marshaler {
  6169  	if v == nil {
  6170  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6171  			ec.Errorf(ctx, "must not be null")
  6172  		}
  6173  		return graphql.Null
  6174  	}
  6175  	return ec._Hello(ctx, sel, v)
  6176  }
  6177  
  6178  func (ec *executionContext) marshalNHelloMultiSingleKeys2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHelloMultiSingleKeys(ctx context.Context, sel ast.SelectionSet, v HelloMultiSingleKeys) graphql.Marshaler {
  6179  	return ec._HelloMultiSingleKeys(ctx, sel, &v)
  6180  }
  6181  
  6182  func (ec *executionContext) marshalNHelloMultiSingleKeys2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHelloMultiSingleKeys(ctx context.Context, sel ast.SelectionSet, v *HelloMultiSingleKeys) graphql.Marshaler {
  6183  	if v == nil {
  6184  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6185  			ec.Errorf(ctx, "must not be null")
  6186  		}
  6187  		return graphql.Null
  6188  	}
  6189  	return ec._HelloMultiSingleKeys(ctx, sel, v)
  6190  }
  6191  
  6192  func (ec *executionContext) marshalNHelloWithErrors2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHelloWithErrors(ctx context.Context, sel ast.SelectionSet, v HelloWithErrors) graphql.Marshaler {
  6193  	return ec._HelloWithErrors(ctx, sel, &v)
  6194  }
  6195  
  6196  func (ec *executionContext) marshalNHelloWithErrors2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHelloWithErrors(ctx context.Context, sel ast.SelectionSet, v *HelloWithErrors) graphql.Marshaler {
  6197  	if v == nil {
  6198  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6199  			ec.Errorf(ctx, "must not be null")
  6200  		}
  6201  		return graphql.Null
  6202  	}
  6203  	return ec._HelloWithErrors(ctx, sel, v)
  6204  }
  6205  
  6206  func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
  6207  	res, err := graphql.UnmarshalInt(v)
  6208  	return res, graphql.ErrorOnPath(ctx, err)
  6209  }
  6210  
  6211  func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
  6212  	res := graphql.MarshalInt(v)
  6213  	if res == graphql.Null {
  6214  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6215  			ec.Errorf(ctx, "must not be null")
  6216  		}
  6217  	}
  6218  	return res
  6219  }
  6220  
  6221  func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloByNamesInputᚄ(ctx context.Context, v interface{}) ([]*MultiHelloByNamesInput, error) {
  6222  	var vSlice []interface{}
  6223  	if v != nil {
  6224  		vSlice = graphql.CoerceList(v)
  6225  	}
  6226  	var err error
  6227  	res := make([]*MultiHelloByNamesInput, len(vSlice))
  6228  	for i := range vSlice {
  6229  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  6230  		res[i], err = ec.unmarshalNMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloByNamesInput(ctx, vSlice[i])
  6231  		if err != nil {
  6232  			return nil, err
  6233  		}
  6234  	}
  6235  	return res, nil
  6236  }
  6237  
  6238  func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloByNamesInput(ctx context.Context, v interface{}) (*MultiHelloByNamesInput, error) {
  6239  	res, err := ec.unmarshalInputMultiHelloByNamesInput(ctx, v)
  6240  	return &res, graphql.ErrorOnPath(ctx, err)
  6241  }
  6242  
  6243  func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloMultipleRequiresByNamesInputᚄ(ctx context.Context, v interface{}) ([]*MultiHelloMultipleRequiresByNamesInput, error) {
  6244  	var vSlice []interface{}
  6245  	if v != nil {
  6246  		vSlice = graphql.CoerceList(v)
  6247  	}
  6248  	var err error
  6249  	res := make([]*MultiHelloMultipleRequiresByNamesInput, len(vSlice))
  6250  	for i := range vSlice {
  6251  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  6252  		res[i], err = ec.unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloMultipleRequiresByNamesInput(ctx, vSlice[i])
  6253  		if err != nil {
  6254  			return nil, err
  6255  		}
  6256  	}
  6257  	return res, nil
  6258  }
  6259  
  6260  func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v interface{}) (*MultiHelloMultipleRequiresByNamesInput, error) {
  6261  	res, err := ec.unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx, v)
  6262  	return &res, graphql.ErrorOnPath(ctx, err)
  6263  }
  6264  
  6265  func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloRequiresByNamesInputᚄ(ctx context.Context, v interface{}) ([]*MultiHelloRequiresByNamesInput, error) {
  6266  	var vSlice []interface{}
  6267  	if v != nil {
  6268  		vSlice = graphql.CoerceList(v)
  6269  	}
  6270  	var err error
  6271  	res := make([]*MultiHelloRequiresByNamesInput, len(vSlice))
  6272  	for i := range vSlice {
  6273  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  6274  		res[i], err = ec.unmarshalNMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloRequiresByNamesInput(ctx, vSlice[i])
  6275  		if err != nil {
  6276  			return nil, err
  6277  		}
  6278  	}
  6279  	return res, nil
  6280  }
  6281  
  6282  func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloRequiresByNamesInput(ctx context.Context, v interface{}) (*MultiHelloRequiresByNamesInput, error) {
  6283  	res, err := ec.unmarshalInputMultiHelloRequiresByNamesInput(ctx, v)
  6284  	return &res, graphql.ErrorOnPath(ctx, err)
  6285  }
  6286  
  6287  func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloWithErrorByNamesInputᚄ(ctx context.Context, v interface{}) ([]*MultiHelloWithErrorByNamesInput, error) {
  6288  	var vSlice []interface{}
  6289  	if v != nil {
  6290  		vSlice = graphql.CoerceList(v)
  6291  	}
  6292  	var err error
  6293  	res := make([]*MultiHelloWithErrorByNamesInput, len(vSlice))
  6294  	for i := range vSlice {
  6295  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  6296  		res[i], err = ec.unmarshalNMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloWithErrorByNamesInput(ctx, vSlice[i])
  6297  		if err != nil {
  6298  			return nil, err
  6299  		}
  6300  	}
  6301  	return res, nil
  6302  }
  6303  
  6304  func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v interface{}) (*MultiHelloWithErrorByNamesInput, error) {
  6305  	res, err := ec.unmarshalInputMultiHelloWithErrorByNamesInput(ctx, v)
  6306  	return &res, graphql.ErrorOnPath(ctx, err)
  6307  }
  6308  
  6309  func (ec *executionContext) unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiPlanetRequiresNestedByNamesInputᚄ(ctx context.Context, v interface{}) ([]*MultiPlanetRequiresNestedByNamesInput, error) {
  6310  	var vSlice []interface{}
  6311  	if v != nil {
  6312  		vSlice = graphql.CoerceList(v)
  6313  	}
  6314  	var err error
  6315  	res := make([]*MultiPlanetRequiresNestedByNamesInput, len(vSlice))
  6316  	for i := range vSlice {
  6317  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  6318  		res[i], err = ec.unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiPlanetRequiresNestedByNamesInput(ctx, vSlice[i])
  6319  		if err != nil {
  6320  			return nil, err
  6321  		}
  6322  	}
  6323  	return res, nil
  6324  }
  6325  
  6326  func (ec *executionContext) unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v interface{}) (*MultiPlanetRequiresNestedByNamesInput, error) {
  6327  	res, err := ec.unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx, v)
  6328  	return &res, graphql.ErrorOnPath(ctx, err)
  6329  }
  6330  
  6331  func (ec *executionContext) marshalNPlanetMultipleRequires2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetMultipleRequires(ctx context.Context, sel ast.SelectionSet, v PlanetMultipleRequires) graphql.Marshaler {
  6332  	return ec._PlanetMultipleRequires(ctx, sel, &v)
  6333  }
  6334  
  6335  func (ec *executionContext) marshalNPlanetMultipleRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetMultipleRequires(ctx context.Context, sel ast.SelectionSet, v *PlanetMultipleRequires) graphql.Marshaler {
  6336  	if v == nil {
  6337  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6338  			ec.Errorf(ctx, "must not be null")
  6339  		}
  6340  		return graphql.Null
  6341  	}
  6342  	return ec._PlanetMultipleRequires(ctx, sel, v)
  6343  }
  6344  
  6345  func (ec *executionContext) marshalNPlanetRequires2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetRequires(ctx context.Context, sel ast.SelectionSet, v PlanetRequires) graphql.Marshaler {
  6346  	return ec._PlanetRequires(ctx, sel, &v)
  6347  }
  6348  
  6349  func (ec *executionContext) marshalNPlanetRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetRequires(ctx context.Context, sel ast.SelectionSet, v *PlanetRequires) graphql.Marshaler {
  6350  	if v == nil {
  6351  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6352  			ec.Errorf(ctx, "must not be null")
  6353  		}
  6354  		return graphql.Null
  6355  	}
  6356  	return ec._PlanetRequires(ctx, sel, v)
  6357  }
  6358  
  6359  func (ec *executionContext) marshalNPlanetRequiresNested2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetRequiresNested(ctx context.Context, sel ast.SelectionSet, v PlanetRequiresNested) graphql.Marshaler {
  6360  	return ec._PlanetRequiresNested(ctx, sel, &v)
  6361  }
  6362  
  6363  func (ec *executionContext) marshalNPlanetRequiresNested2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐPlanetRequiresNested(ctx context.Context, sel ast.SelectionSet, v *PlanetRequiresNested) graphql.Marshaler {
  6364  	if v == nil {
  6365  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6366  			ec.Errorf(ctx, "must not be null")
  6367  		}
  6368  		return graphql.Null
  6369  	}
  6370  	return ec._PlanetRequiresNested(ctx, sel, v)
  6371  }
  6372  
  6373  func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
  6374  	res, err := graphql.UnmarshalString(v)
  6375  	return res, graphql.ErrorOnPath(ctx, err)
  6376  }
  6377  
  6378  func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  6379  	res := graphql.MarshalString(v)
  6380  	if res == graphql.Null {
  6381  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6382  			ec.Errorf(ctx, "must not be null")
  6383  		}
  6384  	}
  6385  	return res
  6386  }
  6387  
  6388  func (ec *executionContext) marshalNWorld2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorld(ctx context.Context, sel ast.SelectionSet, v World) graphql.Marshaler {
  6389  	return ec._World(ctx, sel, &v)
  6390  }
  6391  
  6392  func (ec *executionContext) marshalNWorld2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorld(ctx context.Context, sel ast.SelectionSet, v *World) graphql.Marshaler {
  6393  	if v == nil {
  6394  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6395  			ec.Errorf(ctx, "must not be null")
  6396  		}
  6397  		return graphql.Null
  6398  	}
  6399  	return ec._World(ctx, sel, v)
  6400  }
  6401  
  6402  func (ec *executionContext) marshalNWorldName2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorldName(ctx context.Context, sel ast.SelectionSet, v WorldName) graphql.Marshaler {
  6403  	return ec._WorldName(ctx, sel, &v)
  6404  }
  6405  
  6406  func (ec *executionContext) marshalNWorldName2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorldName(ctx context.Context, sel ast.SelectionSet, v *WorldName) graphql.Marshaler {
  6407  	if v == nil {
  6408  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6409  			ec.Errorf(ctx, "must not be null")
  6410  		}
  6411  		return graphql.Null
  6412  	}
  6413  	return ec._WorldName(ctx, sel, v)
  6414  }
  6415  
  6416  func (ec *executionContext) marshalNWorldWithMultipleKeys2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorldWithMultipleKeys(ctx context.Context, sel ast.SelectionSet, v WorldWithMultipleKeys) graphql.Marshaler {
  6417  	return ec._WorldWithMultipleKeys(ctx, sel, &v)
  6418  }
  6419  
  6420  func (ec *executionContext) marshalNWorldWithMultipleKeys2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐWorldWithMultipleKeys(ctx context.Context, sel ast.SelectionSet, v *WorldWithMultipleKeys) graphql.Marshaler {
  6421  	if v == nil {
  6422  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6423  			ec.Errorf(ctx, "must not be null")
  6424  		}
  6425  		return graphql.Null
  6426  	}
  6427  	return ec._WorldWithMultipleKeys(ctx, sel, v)
  6428  }
  6429  
  6430  func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) {
  6431  	res, err := graphql.UnmarshalMap(v)
  6432  	return res, graphql.ErrorOnPath(ctx, err)
  6433  }
  6434  
  6435  func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler {
  6436  	if v == nil {
  6437  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6438  			ec.Errorf(ctx, "must not be null")
  6439  		}
  6440  		return graphql.Null
  6441  	}
  6442  	res := graphql.MarshalMap(v)
  6443  	if res == graphql.Null {
  6444  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6445  			ec.Errorf(ctx, "must not be null")
  6446  		}
  6447  	}
  6448  	return res
  6449  }
  6450  
  6451  func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) {
  6452  	var vSlice []interface{}
  6453  	if v != nil {
  6454  		vSlice = graphql.CoerceList(v)
  6455  	}
  6456  	var err error
  6457  	res := make([]map[string]interface{}, len(vSlice))
  6458  	for i := range vSlice {
  6459  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  6460  		res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i])
  6461  		if err != nil {
  6462  			return nil, err
  6463  		}
  6464  	}
  6465  	return res, nil
  6466  }
  6467  
  6468  func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler {
  6469  	ret := make(graphql.Array, len(v))
  6470  	for i := range v {
  6471  		ret[i] = ec.marshalN_Any2map(ctx, sel, v[i])
  6472  	}
  6473  
  6474  	for _, e := range ret {
  6475  		if e == graphql.Null {
  6476  			return graphql.Null
  6477  		}
  6478  	}
  6479  
  6480  	return ret
  6481  }
  6482  
  6483  func (ec *executionContext) marshalN_Entity2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx context.Context, sel ast.SelectionSet, v []fedruntime.Entity) graphql.Marshaler {
  6484  	ret := make(graphql.Array, len(v))
  6485  	var wg sync.WaitGroup
  6486  	isLen1 := len(v) == 1
  6487  	if !isLen1 {
  6488  		wg.Add(len(v))
  6489  	}
  6490  	for i := range v {
  6491  		i := i
  6492  		fc := &graphql.FieldContext{
  6493  			Index:  &i,
  6494  			Result: &v[i],
  6495  		}
  6496  		ctx := graphql.WithFieldContext(ctx, fc)
  6497  		f := func(i int) {
  6498  			defer func() {
  6499  				if r := recover(); r != nil {
  6500  					ec.Error(ctx, ec.Recover(ctx, r))
  6501  					ret = nil
  6502  				}
  6503  			}()
  6504  			if !isLen1 {
  6505  				defer wg.Done()
  6506  			}
  6507  			ret[i] = ec.marshalO_Entity2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx, sel, v[i])
  6508  		}
  6509  		if isLen1 {
  6510  			f(i)
  6511  		} else {
  6512  			go f(i)
  6513  		}
  6514  
  6515  	}
  6516  	wg.Wait()
  6517  
  6518  	return ret
  6519  }
  6520  
  6521  func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v interface{}) (string, error) {
  6522  	res, err := graphql.UnmarshalString(v)
  6523  	return res, graphql.ErrorOnPath(ctx, err)
  6524  }
  6525  
  6526  func (ec *executionContext) marshalN_FieldSet2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  6527  	res := graphql.MarshalString(v)
  6528  	if res == graphql.Null {
  6529  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6530  			ec.Errorf(ctx, "must not be null")
  6531  		}
  6532  	}
  6533  	return res
  6534  }
  6535  
  6536  func (ec *executionContext) marshalN_Service2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐService(ctx context.Context, sel ast.SelectionSet, v fedruntime.Service) graphql.Marshaler {
  6537  	return ec.__Service(ctx, sel, &v)
  6538  }
  6539  
  6540  func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
  6541  	return ec.___Directive(ctx, sel, &v)
  6542  }
  6543  
  6544  func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
  6545  	ret := make(graphql.Array, len(v))
  6546  	var wg sync.WaitGroup
  6547  	isLen1 := len(v) == 1
  6548  	if !isLen1 {
  6549  		wg.Add(len(v))
  6550  	}
  6551  	for i := range v {
  6552  		i := i
  6553  		fc := &graphql.FieldContext{
  6554  			Index:  &i,
  6555  			Result: &v[i],
  6556  		}
  6557  		ctx := graphql.WithFieldContext(ctx, fc)
  6558  		f := func(i int) {
  6559  			defer func() {
  6560  				if r := recover(); r != nil {
  6561  					ec.Error(ctx, ec.Recover(ctx, r))
  6562  					ret = nil
  6563  				}
  6564  			}()
  6565  			if !isLen1 {
  6566  				defer wg.Done()
  6567  			}
  6568  			ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
  6569  		}
  6570  		if isLen1 {
  6571  			f(i)
  6572  		} else {
  6573  			go f(i)
  6574  		}
  6575  
  6576  	}
  6577  	wg.Wait()
  6578  
  6579  	for _, e := range ret {
  6580  		if e == graphql.Null {
  6581  			return graphql.Null
  6582  		}
  6583  	}
  6584  
  6585  	return ret
  6586  }
  6587  
  6588  func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
  6589  	res, err := graphql.UnmarshalString(v)
  6590  	return res, graphql.ErrorOnPath(ctx, err)
  6591  }
  6592  
  6593  func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  6594  	res := graphql.MarshalString(v)
  6595  	if res == graphql.Null {
  6596  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6597  			ec.Errorf(ctx, "must not be null")
  6598  		}
  6599  	}
  6600  	return res
  6601  }
  6602  
  6603  func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  6604  	var vSlice []interface{}
  6605  	if v != nil {
  6606  		vSlice = graphql.CoerceList(v)
  6607  	}
  6608  	var err error
  6609  	res := make([]string, len(vSlice))
  6610  	for i := range vSlice {
  6611  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  6612  		res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
  6613  		if err != nil {
  6614  			return nil, err
  6615  		}
  6616  	}
  6617  	return res, nil
  6618  }
  6619  
  6620  func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  6621  	ret := make(graphql.Array, len(v))
  6622  	var wg sync.WaitGroup
  6623  	isLen1 := len(v) == 1
  6624  	if !isLen1 {
  6625  		wg.Add(len(v))
  6626  	}
  6627  	for i := range v {
  6628  		i := i
  6629  		fc := &graphql.FieldContext{
  6630  			Index:  &i,
  6631  			Result: &v[i],
  6632  		}
  6633  		ctx := graphql.WithFieldContext(ctx, fc)
  6634  		f := func(i int) {
  6635  			defer func() {
  6636  				if r := recover(); r != nil {
  6637  					ec.Error(ctx, ec.Recover(ctx, r))
  6638  					ret = nil
  6639  				}
  6640  			}()
  6641  			if !isLen1 {
  6642  				defer wg.Done()
  6643  			}
  6644  			ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
  6645  		}
  6646  		if isLen1 {
  6647  			f(i)
  6648  		} else {
  6649  			go f(i)
  6650  		}
  6651  
  6652  	}
  6653  	wg.Wait()
  6654  
  6655  	for _, e := range ret {
  6656  		if e == graphql.Null {
  6657  			return graphql.Null
  6658  		}
  6659  	}
  6660  
  6661  	return ret
  6662  }
  6663  
  6664  func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
  6665  	return ec.___EnumValue(ctx, sel, &v)
  6666  }
  6667  
  6668  func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
  6669  	return ec.___Field(ctx, sel, &v)
  6670  }
  6671  
  6672  func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
  6673  	return ec.___InputValue(ctx, sel, &v)
  6674  }
  6675  
  6676  func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  6677  	ret := make(graphql.Array, len(v))
  6678  	var wg sync.WaitGroup
  6679  	isLen1 := len(v) == 1
  6680  	if !isLen1 {
  6681  		wg.Add(len(v))
  6682  	}
  6683  	for i := range v {
  6684  		i := i
  6685  		fc := &graphql.FieldContext{
  6686  			Index:  &i,
  6687  			Result: &v[i],
  6688  		}
  6689  		ctx := graphql.WithFieldContext(ctx, fc)
  6690  		f := func(i int) {
  6691  			defer func() {
  6692  				if r := recover(); r != nil {
  6693  					ec.Error(ctx, ec.Recover(ctx, r))
  6694  					ret = nil
  6695  				}
  6696  			}()
  6697  			if !isLen1 {
  6698  				defer wg.Done()
  6699  			}
  6700  			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  6701  		}
  6702  		if isLen1 {
  6703  			f(i)
  6704  		} else {
  6705  			go f(i)
  6706  		}
  6707  
  6708  	}
  6709  	wg.Wait()
  6710  
  6711  	for _, e := range ret {
  6712  		if e == graphql.Null {
  6713  			return graphql.Null
  6714  		}
  6715  	}
  6716  
  6717  	return ret
  6718  }
  6719  
  6720  func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
  6721  	return ec.___Type(ctx, sel, &v)
  6722  }
  6723  
  6724  func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  6725  	ret := make(graphql.Array, len(v))
  6726  	var wg sync.WaitGroup
  6727  	isLen1 := len(v) == 1
  6728  	if !isLen1 {
  6729  		wg.Add(len(v))
  6730  	}
  6731  	for i := range v {
  6732  		i := i
  6733  		fc := &graphql.FieldContext{
  6734  			Index:  &i,
  6735  			Result: &v[i],
  6736  		}
  6737  		ctx := graphql.WithFieldContext(ctx, fc)
  6738  		f := func(i int) {
  6739  			defer func() {
  6740  				if r := recover(); r != nil {
  6741  					ec.Error(ctx, ec.Recover(ctx, r))
  6742  					ret = nil
  6743  				}
  6744  			}()
  6745  			if !isLen1 {
  6746  				defer wg.Done()
  6747  			}
  6748  			ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  6749  		}
  6750  		if isLen1 {
  6751  			f(i)
  6752  		} else {
  6753  			go f(i)
  6754  		}
  6755  
  6756  	}
  6757  	wg.Wait()
  6758  
  6759  	for _, e := range ret {
  6760  		if e == graphql.Null {
  6761  			return graphql.Null
  6762  		}
  6763  	}
  6764  
  6765  	return ret
  6766  }
  6767  
  6768  func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  6769  	if v == nil {
  6770  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6771  			ec.Errorf(ctx, "must not be null")
  6772  		}
  6773  		return graphql.Null
  6774  	}
  6775  	return ec.___Type(ctx, sel, v)
  6776  }
  6777  
  6778  func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
  6779  	res, err := graphql.UnmarshalString(v)
  6780  	return res, graphql.ErrorOnPath(ctx, err)
  6781  }
  6782  
  6783  func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  6784  	res := graphql.MarshalString(v)
  6785  	if res == graphql.Null {
  6786  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  6787  			ec.Errorf(ctx, "must not be null")
  6788  		}
  6789  	}
  6790  	return res
  6791  }
  6792  
  6793  func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  6794  	res, err := graphql.UnmarshalBoolean(v)
  6795  	return res, graphql.ErrorOnPath(ctx, err)
  6796  }
  6797  
  6798  func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  6799  	res := graphql.MarshalBoolean(v)
  6800  	return res
  6801  }
  6802  
  6803  func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
  6804  	if v == nil {
  6805  		return nil, nil
  6806  	}
  6807  	res, err := graphql.UnmarshalBoolean(v)
  6808  	return &res, graphql.ErrorOnPath(ctx, err)
  6809  }
  6810  
  6811  func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
  6812  	if v == nil {
  6813  		return graphql.Null
  6814  	}
  6815  	res := graphql.MarshalBoolean(*v)
  6816  	return res
  6817  }
  6818  
  6819  func (ec *executionContext) marshalOHello2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐHello(ctx context.Context, sel ast.SelectionSet, v *Hello) graphql.Marshaler {
  6820  	if v == nil {
  6821  		return graphql.Null
  6822  	}
  6823  	return ec._Hello(ctx, sel, v)
  6824  }
  6825  
  6826  func (ec *executionContext) marshalOMultiHello2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHello(ctx context.Context, sel ast.SelectionSet, v []*MultiHello) graphql.Marshaler {
  6827  	if v == nil {
  6828  		return graphql.Null
  6829  	}
  6830  	ret := make(graphql.Array, len(v))
  6831  	var wg sync.WaitGroup
  6832  	isLen1 := len(v) == 1
  6833  	if !isLen1 {
  6834  		wg.Add(len(v))
  6835  	}
  6836  	for i := range v {
  6837  		i := i
  6838  		fc := &graphql.FieldContext{
  6839  			Index:  &i,
  6840  			Result: &v[i],
  6841  		}
  6842  		ctx := graphql.WithFieldContext(ctx, fc)
  6843  		f := func(i int) {
  6844  			defer func() {
  6845  				if r := recover(); r != nil {
  6846  					ec.Error(ctx, ec.Recover(ctx, r))
  6847  					ret = nil
  6848  				}
  6849  			}()
  6850  			if !isLen1 {
  6851  				defer wg.Done()
  6852  			}
  6853  			ret[i] = ec.marshalOMultiHello2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHello(ctx, sel, v[i])
  6854  		}
  6855  		if isLen1 {
  6856  			f(i)
  6857  		} else {
  6858  			go f(i)
  6859  		}
  6860  
  6861  	}
  6862  	wg.Wait()
  6863  
  6864  	return ret
  6865  }
  6866  
  6867  func (ec *executionContext) marshalOMultiHello2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHello(ctx context.Context, sel ast.SelectionSet, v *MultiHello) graphql.Marshaler {
  6868  	if v == nil {
  6869  		return graphql.Null
  6870  	}
  6871  	return ec._MultiHello(ctx, sel, v)
  6872  }
  6873  
  6874  func (ec *executionContext) marshalOMultiHelloMultipleRequires2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloMultipleRequires(ctx context.Context, sel ast.SelectionSet, v []*MultiHelloMultipleRequires) graphql.Marshaler {
  6875  	if v == nil {
  6876  		return graphql.Null
  6877  	}
  6878  	ret := make(graphql.Array, len(v))
  6879  	var wg sync.WaitGroup
  6880  	isLen1 := len(v) == 1
  6881  	if !isLen1 {
  6882  		wg.Add(len(v))
  6883  	}
  6884  	for i := range v {
  6885  		i := i
  6886  		fc := &graphql.FieldContext{
  6887  			Index:  &i,
  6888  			Result: &v[i],
  6889  		}
  6890  		ctx := graphql.WithFieldContext(ctx, fc)
  6891  		f := func(i int) {
  6892  			defer func() {
  6893  				if r := recover(); r != nil {
  6894  					ec.Error(ctx, ec.Recover(ctx, r))
  6895  					ret = nil
  6896  				}
  6897  			}()
  6898  			if !isLen1 {
  6899  				defer wg.Done()
  6900  			}
  6901  			ret[i] = ec.marshalOMultiHelloMultipleRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloMultipleRequires(ctx, sel, v[i])
  6902  		}
  6903  		if isLen1 {
  6904  			f(i)
  6905  		} else {
  6906  			go f(i)
  6907  		}
  6908  
  6909  	}
  6910  	wg.Wait()
  6911  
  6912  	return ret
  6913  }
  6914  
  6915  func (ec *executionContext) marshalOMultiHelloMultipleRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloMultipleRequires(ctx context.Context, sel ast.SelectionSet, v *MultiHelloMultipleRequires) graphql.Marshaler {
  6916  	if v == nil {
  6917  		return graphql.Null
  6918  	}
  6919  	return ec._MultiHelloMultipleRequires(ctx, sel, v)
  6920  }
  6921  
  6922  func (ec *executionContext) marshalOMultiHelloRequires2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloRequires(ctx context.Context, sel ast.SelectionSet, v []*MultiHelloRequires) graphql.Marshaler {
  6923  	if v == nil {
  6924  		return graphql.Null
  6925  	}
  6926  	ret := make(graphql.Array, len(v))
  6927  	var wg sync.WaitGroup
  6928  	isLen1 := len(v) == 1
  6929  	if !isLen1 {
  6930  		wg.Add(len(v))
  6931  	}
  6932  	for i := range v {
  6933  		i := i
  6934  		fc := &graphql.FieldContext{
  6935  			Index:  &i,
  6936  			Result: &v[i],
  6937  		}
  6938  		ctx := graphql.WithFieldContext(ctx, fc)
  6939  		f := func(i int) {
  6940  			defer func() {
  6941  				if r := recover(); r != nil {
  6942  					ec.Error(ctx, ec.Recover(ctx, r))
  6943  					ret = nil
  6944  				}
  6945  			}()
  6946  			if !isLen1 {
  6947  				defer wg.Done()
  6948  			}
  6949  			ret[i] = ec.marshalOMultiHelloRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloRequires(ctx, sel, v[i])
  6950  		}
  6951  		if isLen1 {
  6952  			f(i)
  6953  		} else {
  6954  			go f(i)
  6955  		}
  6956  
  6957  	}
  6958  	wg.Wait()
  6959  
  6960  	return ret
  6961  }
  6962  
  6963  func (ec *executionContext) marshalOMultiHelloRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloRequires(ctx context.Context, sel ast.SelectionSet, v *MultiHelloRequires) graphql.Marshaler {
  6964  	if v == nil {
  6965  		return graphql.Null
  6966  	}
  6967  	return ec._MultiHelloRequires(ctx, sel, v)
  6968  }
  6969  
  6970  func (ec *executionContext) marshalOMultiHelloWithError2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloWithError(ctx context.Context, sel ast.SelectionSet, v []*MultiHelloWithError) graphql.Marshaler {
  6971  	if v == nil {
  6972  		return graphql.Null
  6973  	}
  6974  	ret := make(graphql.Array, len(v))
  6975  	var wg sync.WaitGroup
  6976  	isLen1 := len(v) == 1
  6977  	if !isLen1 {
  6978  		wg.Add(len(v))
  6979  	}
  6980  	for i := range v {
  6981  		i := i
  6982  		fc := &graphql.FieldContext{
  6983  			Index:  &i,
  6984  			Result: &v[i],
  6985  		}
  6986  		ctx := graphql.WithFieldContext(ctx, fc)
  6987  		f := func(i int) {
  6988  			defer func() {
  6989  				if r := recover(); r != nil {
  6990  					ec.Error(ctx, ec.Recover(ctx, r))
  6991  					ret = nil
  6992  				}
  6993  			}()
  6994  			if !isLen1 {
  6995  				defer wg.Done()
  6996  			}
  6997  			ret[i] = ec.marshalOMultiHelloWithError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloWithError(ctx, sel, v[i])
  6998  		}
  6999  		if isLen1 {
  7000  			f(i)
  7001  		} else {
  7002  			go f(i)
  7003  		}
  7004  
  7005  	}
  7006  	wg.Wait()
  7007  
  7008  	return ret
  7009  }
  7010  
  7011  func (ec *executionContext) marshalOMultiHelloWithError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiHelloWithError(ctx context.Context, sel ast.SelectionSet, v *MultiHelloWithError) graphql.Marshaler {
  7012  	if v == nil {
  7013  		return graphql.Null
  7014  	}
  7015  	return ec._MultiHelloWithError(ctx, sel, v)
  7016  }
  7017  
  7018  func (ec *executionContext) marshalOMultiPlanetRequiresNested2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiPlanetRequiresNested(ctx context.Context, sel ast.SelectionSet, v []*MultiPlanetRequiresNested) graphql.Marshaler {
  7019  	if v == nil {
  7020  		return graphql.Null
  7021  	}
  7022  	ret := make(graphql.Array, len(v))
  7023  	var wg sync.WaitGroup
  7024  	isLen1 := len(v) == 1
  7025  	if !isLen1 {
  7026  		wg.Add(len(v))
  7027  	}
  7028  	for i := range v {
  7029  		i := i
  7030  		fc := &graphql.FieldContext{
  7031  			Index:  &i,
  7032  			Result: &v[i],
  7033  		}
  7034  		ctx := graphql.WithFieldContext(ctx, fc)
  7035  		f := func(i int) {
  7036  			defer func() {
  7037  				if r := recover(); r != nil {
  7038  					ec.Error(ctx, ec.Recover(ctx, r))
  7039  					ret = nil
  7040  				}
  7041  			}()
  7042  			if !isLen1 {
  7043  				defer wg.Done()
  7044  			}
  7045  			ret[i] = ec.marshalOMultiPlanetRequiresNested2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiPlanetRequiresNested(ctx, sel, v[i])
  7046  		}
  7047  		if isLen1 {
  7048  			f(i)
  7049  		} else {
  7050  			go f(i)
  7051  		}
  7052  
  7053  	}
  7054  	wg.Wait()
  7055  
  7056  	return ret
  7057  }
  7058  
  7059  func (ec *executionContext) marshalOMultiPlanetRequiresNested2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚐMultiPlanetRequiresNested(ctx context.Context, sel ast.SelectionSet, v *MultiPlanetRequiresNested) graphql.Marshaler {
  7060  	if v == nil {
  7061  		return graphql.Null
  7062  	}
  7063  	return ec._MultiPlanetRequiresNested(ctx, sel, v)
  7064  }
  7065  
  7066  func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
  7067  	res, err := graphql.UnmarshalString(v)
  7068  	return res, graphql.ErrorOnPath(ctx, err)
  7069  }
  7070  
  7071  func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  7072  	res := graphql.MarshalString(v)
  7073  	return res
  7074  }
  7075  
  7076  func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  7077  	if v == nil {
  7078  		return nil, nil
  7079  	}
  7080  	res, err := graphql.UnmarshalString(v)
  7081  	return &res, graphql.ErrorOnPath(ctx, err)
  7082  }
  7083  
  7084  func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  7085  	if v == nil {
  7086  		return graphql.Null
  7087  	}
  7088  	res := graphql.MarshalString(*v)
  7089  	return res
  7090  }
  7091  
  7092  func (ec *executionContext) marshalO_Entity2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx context.Context, sel ast.SelectionSet, v fedruntime.Entity) graphql.Marshaler {
  7093  	if v == nil {
  7094  		return graphql.Null
  7095  	}
  7096  	return ec.__Entity(ctx, sel, v)
  7097  }
  7098  
  7099  func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
  7100  	if v == nil {
  7101  		return graphql.Null
  7102  	}
  7103  	ret := make(graphql.Array, len(v))
  7104  	var wg sync.WaitGroup
  7105  	isLen1 := len(v) == 1
  7106  	if !isLen1 {
  7107  		wg.Add(len(v))
  7108  	}
  7109  	for i := range v {
  7110  		i := i
  7111  		fc := &graphql.FieldContext{
  7112  			Index:  &i,
  7113  			Result: &v[i],
  7114  		}
  7115  		ctx := graphql.WithFieldContext(ctx, fc)
  7116  		f := func(i int) {
  7117  			defer func() {
  7118  				if r := recover(); r != nil {
  7119  					ec.Error(ctx, ec.Recover(ctx, r))
  7120  					ret = nil
  7121  				}
  7122  			}()
  7123  			if !isLen1 {
  7124  				defer wg.Done()
  7125  			}
  7126  			ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
  7127  		}
  7128  		if isLen1 {
  7129  			f(i)
  7130  		} else {
  7131  			go f(i)
  7132  		}
  7133  
  7134  	}
  7135  	wg.Wait()
  7136  
  7137  	for _, e := range ret {
  7138  		if e == graphql.Null {
  7139  			return graphql.Null
  7140  		}
  7141  	}
  7142  
  7143  	return ret
  7144  }
  7145  
  7146  func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
  7147  	if v == nil {
  7148  		return graphql.Null
  7149  	}
  7150  	ret := make(graphql.Array, len(v))
  7151  	var wg sync.WaitGroup
  7152  	isLen1 := len(v) == 1
  7153  	if !isLen1 {
  7154  		wg.Add(len(v))
  7155  	}
  7156  	for i := range v {
  7157  		i := i
  7158  		fc := &graphql.FieldContext{
  7159  			Index:  &i,
  7160  			Result: &v[i],
  7161  		}
  7162  		ctx := graphql.WithFieldContext(ctx, fc)
  7163  		f := func(i int) {
  7164  			defer func() {
  7165  				if r := recover(); r != nil {
  7166  					ec.Error(ctx, ec.Recover(ctx, r))
  7167  					ret = nil
  7168  				}
  7169  			}()
  7170  			if !isLen1 {
  7171  				defer wg.Done()
  7172  			}
  7173  			ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
  7174  		}
  7175  		if isLen1 {
  7176  			f(i)
  7177  		} else {
  7178  			go f(i)
  7179  		}
  7180  
  7181  	}
  7182  	wg.Wait()
  7183  
  7184  	for _, e := range ret {
  7185  		if e == graphql.Null {
  7186  			return graphql.Null
  7187  		}
  7188  	}
  7189  
  7190  	return ret
  7191  }
  7192  
  7193  func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  7194  	if v == nil {
  7195  		return graphql.Null
  7196  	}
  7197  	ret := make(graphql.Array, len(v))
  7198  	var wg sync.WaitGroup
  7199  	isLen1 := len(v) == 1
  7200  	if !isLen1 {
  7201  		wg.Add(len(v))
  7202  	}
  7203  	for i := range v {
  7204  		i := i
  7205  		fc := &graphql.FieldContext{
  7206  			Index:  &i,
  7207  			Result: &v[i],
  7208  		}
  7209  		ctx := graphql.WithFieldContext(ctx, fc)
  7210  		f := func(i int) {
  7211  			defer func() {
  7212  				if r := recover(); r != nil {
  7213  					ec.Error(ctx, ec.Recover(ctx, r))
  7214  					ret = nil
  7215  				}
  7216  			}()
  7217  			if !isLen1 {
  7218  				defer wg.Done()
  7219  			}
  7220  			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  7221  		}
  7222  		if isLen1 {
  7223  			f(i)
  7224  		} else {
  7225  			go f(i)
  7226  		}
  7227  
  7228  	}
  7229  	wg.Wait()
  7230  
  7231  	for _, e := range ret {
  7232  		if e == graphql.Null {
  7233  			return graphql.Null
  7234  		}
  7235  	}
  7236  
  7237  	return ret
  7238  }
  7239  
  7240  func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
  7241  	if v == nil {
  7242  		return graphql.Null
  7243  	}
  7244  	return ec.___Schema(ctx, sel, v)
  7245  }
  7246  
  7247  func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  7248  	if v == nil {
  7249  		return graphql.Null
  7250  	}
  7251  	ret := make(graphql.Array, len(v))
  7252  	var wg sync.WaitGroup
  7253  	isLen1 := len(v) == 1
  7254  	if !isLen1 {
  7255  		wg.Add(len(v))
  7256  	}
  7257  	for i := range v {
  7258  		i := i
  7259  		fc := &graphql.FieldContext{
  7260  			Index:  &i,
  7261  			Result: &v[i],
  7262  		}
  7263  		ctx := graphql.WithFieldContext(ctx, fc)
  7264  		f := func(i int) {
  7265  			defer func() {
  7266  				if r := recover(); r != nil {
  7267  					ec.Error(ctx, ec.Recover(ctx, r))
  7268  					ret = nil
  7269  				}
  7270  			}()
  7271  			if !isLen1 {
  7272  				defer wg.Done()
  7273  			}
  7274  			ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  7275  		}
  7276  		if isLen1 {
  7277  			f(i)
  7278  		} else {
  7279  			go f(i)
  7280  		}
  7281  
  7282  	}
  7283  	wg.Wait()
  7284  
  7285  	for _, e := range ret {
  7286  		if e == graphql.Null {
  7287  			return graphql.Null
  7288  		}
  7289  	}
  7290  
  7291  	return ret
  7292  }
  7293  
  7294  func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  7295  	if v == nil {
  7296  		return graphql.Null
  7297  	}
  7298  	return ec.___Type(ctx, sel, v)
  7299  }
  7300  
  7301  // endregion ***************************** type.gotpl *****************************