github.com/fortexxx/gqlgen@v0.10.3-0.20191216030626-ca5ea8b21ead/example/scalars/generated.go (about)

     1  // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
     2  
     3  package scalars
     4  
     5  import (
     6  	"bytes"
     7  	"context"
     8  	"errors"
     9  	"strconv"
    10  	"sync"
    11  	"sync/atomic"
    12  	"time"
    13  
    14  	"github.com/99designs/gqlgen/example/scalars/external"
    15  	"github.com/99designs/gqlgen/example/scalars/model"
    16  	"github.com/99designs/gqlgen/graphql"
    17  	"github.com/99designs/gqlgen/graphql/introspection"
    18  	"github.com/vektah/gqlparser"
    19  	"github.com/vektah/gqlparser/ast"
    20  )
    21  
    22  // region    ************************** generated!.gotpl **************************
    23  
    24  // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
    25  func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
    26  	return &executableSchema{
    27  		resolvers:  cfg.Resolvers,
    28  		directives: cfg.Directives,
    29  		complexity: cfg.Complexity,
    30  	}
    31  }
    32  
    33  type Config struct {
    34  	Resolvers  ResolverRoot
    35  	Directives DirectiveRoot
    36  	Complexity ComplexityRoot
    37  }
    38  
    39  type ResolverRoot interface {
    40  	Query() QueryResolver
    41  	User() UserResolver
    42  }
    43  
    44  type DirectiveRoot struct {
    45  }
    46  
    47  type ComplexityRoot struct {
    48  	Address struct {
    49  		ID       func(childComplexity int) int
    50  		Location func(childComplexity int) int
    51  	}
    52  
    53  	Query struct {
    54  		Search func(childComplexity int, input *model.SearchArgs) int
    55  		User   func(childComplexity int, id external.ObjectID) int
    56  	}
    57  
    58  	User struct {
    59  		Address           func(childComplexity int) int
    60  		Created           func(childComplexity int) int
    61  		CustomResolver    func(childComplexity int) int
    62  		ID                func(childComplexity int) int
    63  		IsBanned          func(childComplexity int) int
    64  		Name              func(childComplexity int) int
    65  		PrimitiveResolver func(childComplexity int) int
    66  		Tier              func(childComplexity int) int
    67  	}
    68  }
    69  
    70  type QueryResolver interface {
    71  	User(ctx context.Context, id external.ObjectID) (*model.User, error)
    72  	Search(ctx context.Context, input *model.SearchArgs) ([]*model.User, error)
    73  }
    74  type UserResolver interface {
    75  	PrimitiveResolver(ctx context.Context, obj *model.User) (string, error)
    76  	CustomResolver(ctx context.Context, obj *model.User) (*model.Point, error)
    77  }
    78  
    79  type executableSchema struct {
    80  	resolvers  ResolverRoot
    81  	directives DirectiveRoot
    82  	complexity ComplexityRoot
    83  }
    84  
    85  func (e *executableSchema) Schema() *ast.Schema {
    86  	return parsedSchema
    87  }
    88  
    89  func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
    90  	ec := executionContext{nil, e}
    91  	_ = ec
    92  	switch typeName + "." + field {
    93  
    94  	case "Address.id":
    95  		if e.complexity.Address.ID == nil {
    96  			break
    97  		}
    98  
    99  		return e.complexity.Address.ID(childComplexity), true
   100  
   101  	case "Address.location":
   102  		if e.complexity.Address.Location == nil {
   103  			break
   104  		}
   105  
   106  		return e.complexity.Address.Location(childComplexity), true
   107  
   108  	case "Query.search":
   109  		if e.complexity.Query.Search == nil {
   110  			break
   111  		}
   112  
   113  		args, err := ec.field_Query_search_args(context.TODO(), rawArgs)
   114  		if err != nil {
   115  			return 0, false
   116  		}
   117  
   118  		return e.complexity.Query.Search(childComplexity, args["input"].(*model.SearchArgs)), true
   119  
   120  	case "Query.user":
   121  		if e.complexity.Query.User == nil {
   122  			break
   123  		}
   124  
   125  		args, err := ec.field_Query_user_args(context.TODO(), rawArgs)
   126  		if err != nil {
   127  			return 0, false
   128  		}
   129  
   130  		return e.complexity.Query.User(childComplexity, args["id"].(external.ObjectID)), true
   131  
   132  	case "User.address":
   133  		if e.complexity.User.Address == nil {
   134  			break
   135  		}
   136  
   137  		return e.complexity.User.Address(childComplexity), true
   138  
   139  	case "User.created":
   140  		if e.complexity.User.Created == nil {
   141  			break
   142  		}
   143  
   144  		return e.complexity.User.Created(childComplexity), true
   145  
   146  	case "User.customResolver":
   147  		if e.complexity.User.CustomResolver == nil {
   148  			break
   149  		}
   150  
   151  		return e.complexity.User.CustomResolver(childComplexity), true
   152  
   153  	case "User.id":
   154  		if e.complexity.User.ID == nil {
   155  			break
   156  		}
   157  
   158  		return e.complexity.User.ID(childComplexity), true
   159  
   160  	case "User.isBanned":
   161  		if e.complexity.User.IsBanned == nil {
   162  			break
   163  		}
   164  
   165  		return e.complexity.User.IsBanned(childComplexity), true
   166  
   167  	case "User.name":
   168  		if e.complexity.User.Name == nil {
   169  			break
   170  		}
   171  
   172  		return e.complexity.User.Name(childComplexity), true
   173  
   174  	case "User.primitiveResolver":
   175  		if e.complexity.User.PrimitiveResolver == nil {
   176  			break
   177  		}
   178  
   179  		return e.complexity.User.PrimitiveResolver(childComplexity), true
   180  
   181  	case "User.tier":
   182  		if e.complexity.User.Tier == nil {
   183  			break
   184  		}
   185  
   186  		return e.complexity.User.Tier(childComplexity), true
   187  
   188  	}
   189  	return 0, false
   190  }
   191  
   192  func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
   193  	rc := graphql.GetOperationContext(ctx)
   194  	ec := executionContext{rc, e}
   195  	first := true
   196  
   197  	switch rc.Operation.Operation {
   198  	case ast.Query:
   199  		return func(ctx context.Context) *graphql.Response {
   200  			if !first {
   201  				return nil
   202  			}
   203  			first = false
   204  			data := ec._Query(ctx, rc.Operation.SelectionSet)
   205  			var buf bytes.Buffer
   206  			data.MarshalGQL(&buf)
   207  
   208  			return &graphql.Response{
   209  				Data: buf.Bytes(),
   210  			}
   211  		}
   212  
   213  	default:
   214  		return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
   215  	}
   216  }
   217  
   218  type executionContext struct {
   219  	*graphql.OperationContext
   220  	*executableSchema
   221  }
   222  
   223  func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
   224  	if ec.DisableIntrospection {
   225  		return nil, errors.New("introspection disabled")
   226  	}
   227  	return introspection.WrapSchema(parsedSchema), nil
   228  }
   229  
   230  func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
   231  	if ec.DisableIntrospection {
   232  		return nil, errors.New("introspection disabled")
   233  	}
   234  	return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
   235  }
   236  
   237  var parsedSchema = gqlparser.MustLoadSchema(
   238  	&ast.Source{Name: "schema.graphql", Input: `type Query {
   239      user(id: ID!): User
   240      search(input: SearchArgs = {location: "37,144", isBanned: false}): [User!]!
   241  }
   242  
   243  type User {
   244      id: ID!
   245      name: String!
   246      created: Timestamp
   247      isBanned: Banned!
   248      primitiveResolver: String!
   249      customResolver: Point!
   250      address: Address
   251      tier: Tier
   252  }
   253  
   254  type Address {
   255      id: ID!
   256      location: Point
   257  }
   258  
   259  input SearchArgs {
   260      location: Point
   261      createdAfter: Timestamp
   262      isBanned: Banned # TODO: This can be a Boolean again once multiple backing types are allowed
   263  }
   264  
   265  enum Tier {
   266      A
   267      B
   268      C
   269  }
   270  
   271  scalar Timestamp
   272  scalar Point
   273  scalar Banned
   274  `},
   275  )
   276  
   277  // endregion ************************** generated!.gotpl **************************
   278  
   279  // region    ***************************** args.gotpl *****************************
   280  
   281  func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   282  	var err error
   283  	args := map[string]interface{}{}
   284  	var arg0 string
   285  	if tmp, ok := rawArgs["name"]; ok {
   286  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
   287  		if err != nil {
   288  			return nil, err
   289  		}
   290  	}
   291  	args["name"] = arg0
   292  	return args, nil
   293  }
   294  
   295  func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   296  	var err error
   297  	args := map[string]interface{}{}
   298  	var arg0 *model.SearchArgs
   299  	if tmp, ok := rawArgs["input"]; ok {
   300  		arg0, err = ec.unmarshalOSearchArgs2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐSearchArgs(ctx, tmp)
   301  		if err != nil {
   302  			return nil, err
   303  		}
   304  	}
   305  	args["input"] = arg0
   306  	return args, nil
   307  }
   308  
   309  func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   310  	var err error
   311  	args := map[string]interface{}{}
   312  	var arg0 external.ObjectID
   313  	if tmp, ok := rawArgs["id"]; ok {
   314  		arg0, err = ec.unmarshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋexternalᚐObjectID(ctx, tmp)
   315  		if err != nil {
   316  			return nil, err
   317  		}
   318  	}
   319  	args["id"] = arg0
   320  	return args, nil
   321  }
   322  
   323  func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   324  	var err error
   325  	args := map[string]interface{}{}
   326  	var arg0 bool
   327  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
   328  		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
   329  		if err != nil {
   330  			return nil, err
   331  		}
   332  	}
   333  	args["includeDeprecated"] = arg0
   334  	return args, nil
   335  }
   336  
   337  func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   338  	var err error
   339  	args := map[string]interface{}{}
   340  	var arg0 bool
   341  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
   342  		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
   343  		if err != nil {
   344  			return nil, err
   345  		}
   346  	}
   347  	args["includeDeprecated"] = arg0
   348  	return args, nil
   349  }
   350  
   351  // endregion ***************************** args.gotpl *****************************
   352  
   353  // region    ************************** directives.gotpl **************************
   354  
   355  // endregion ************************** directives.gotpl **************************
   356  
   357  // region    **************************** field.gotpl *****************************
   358  
   359  func (ec *executionContext) _Address_id(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) {
   360  	defer func() {
   361  		if r := recover(); r != nil {
   362  			ec.Error(ctx, ec.Recover(ctx, r))
   363  			ret = graphql.Null
   364  		}
   365  	}()
   366  	fc := &graphql.FieldContext{
   367  		Object:   "Address",
   368  		Field:    field,
   369  		Args:     nil,
   370  		IsMethod: false,
   371  	}
   372  
   373  	ctx = graphql.WithFieldContext(ctx, fc)
   374  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   375  		ctx = rctx // use context from middleware stack in children
   376  		return obj.ID, nil
   377  	})
   378  	if err != nil {
   379  		ec.Error(ctx, err)
   380  		return graphql.Null
   381  	}
   382  	if resTmp == nil {
   383  		if !graphql.HasFieldError(ctx, fc) {
   384  			ec.Errorf(ctx, "must not be null")
   385  		}
   386  		return graphql.Null
   387  	}
   388  	res := resTmp.(external.ObjectID)
   389  	fc.Result = res
   390  	return ec.marshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋexternalᚐObjectID(ctx, field.Selections, res)
   391  }
   392  
   393  func (ec *executionContext) _Address_location(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) {
   394  	defer func() {
   395  		if r := recover(); r != nil {
   396  			ec.Error(ctx, ec.Recover(ctx, r))
   397  			ret = graphql.Null
   398  		}
   399  	}()
   400  	fc := &graphql.FieldContext{
   401  		Object:   "Address",
   402  		Field:    field,
   403  		Args:     nil,
   404  		IsMethod: false,
   405  	}
   406  
   407  	ctx = graphql.WithFieldContext(ctx, fc)
   408  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   409  		ctx = rctx // use context from middleware stack in children
   410  		return obj.Location, nil
   411  	})
   412  	if err != nil {
   413  		ec.Error(ctx, err)
   414  		return graphql.Null
   415  	}
   416  	if resTmp == nil {
   417  		return graphql.Null
   418  	}
   419  	res := resTmp.(*model.Point)
   420  	fc.Result = res
   421  	return ec.marshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx, field.Selections, res)
   422  }
   423  
   424  func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   425  	defer func() {
   426  		if r := recover(); r != nil {
   427  			ec.Error(ctx, ec.Recover(ctx, r))
   428  			ret = graphql.Null
   429  		}
   430  	}()
   431  	fc := &graphql.FieldContext{
   432  		Object:   "Query",
   433  		Field:    field,
   434  		Args:     nil,
   435  		IsMethod: true,
   436  	}
   437  
   438  	ctx = graphql.WithFieldContext(ctx, fc)
   439  	rawArgs := field.ArgumentMap(ec.Variables)
   440  	args, err := ec.field_Query_user_args(ctx, rawArgs)
   441  	if err != nil {
   442  		ec.Error(ctx, err)
   443  		return graphql.Null
   444  	}
   445  	fc.Args = args
   446  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   447  		ctx = rctx // use context from middleware stack in children
   448  		return ec.resolvers.Query().User(rctx, args["id"].(external.ObjectID))
   449  	})
   450  	if err != nil {
   451  		ec.Error(ctx, err)
   452  		return graphql.Null
   453  	}
   454  	if resTmp == nil {
   455  		return graphql.Null
   456  	}
   457  	res := resTmp.(*model.User)
   458  	fc.Result = res
   459  	return ec.marshalOUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐUser(ctx, field.Selections, res)
   460  }
   461  
   462  func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   463  	defer func() {
   464  		if r := recover(); r != nil {
   465  			ec.Error(ctx, ec.Recover(ctx, r))
   466  			ret = graphql.Null
   467  		}
   468  	}()
   469  	fc := &graphql.FieldContext{
   470  		Object:   "Query",
   471  		Field:    field,
   472  		Args:     nil,
   473  		IsMethod: true,
   474  	}
   475  
   476  	ctx = graphql.WithFieldContext(ctx, fc)
   477  	rawArgs := field.ArgumentMap(ec.Variables)
   478  	args, err := ec.field_Query_search_args(ctx, rawArgs)
   479  	if err != nil {
   480  		ec.Error(ctx, err)
   481  		return graphql.Null
   482  	}
   483  	fc.Args = args
   484  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   485  		ctx = rctx // use context from middleware stack in children
   486  		return ec.resolvers.Query().Search(rctx, args["input"].(*model.SearchArgs))
   487  	})
   488  	if err != nil {
   489  		ec.Error(ctx, err)
   490  		return graphql.Null
   491  	}
   492  	if resTmp == nil {
   493  		if !graphql.HasFieldError(ctx, fc) {
   494  			ec.Errorf(ctx, "must not be null")
   495  		}
   496  		return graphql.Null
   497  	}
   498  	res := resTmp.([]*model.User)
   499  	fc.Result = res
   500  	return ec.marshalNUser2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐUserᚄ(ctx, field.Selections, res)
   501  }
   502  
   503  func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   504  	defer func() {
   505  		if r := recover(); r != nil {
   506  			ec.Error(ctx, ec.Recover(ctx, r))
   507  			ret = graphql.Null
   508  		}
   509  	}()
   510  	fc := &graphql.FieldContext{
   511  		Object:   "Query",
   512  		Field:    field,
   513  		Args:     nil,
   514  		IsMethod: true,
   515  	}
   516  
   517  	ctx = graphql.WithFieldContext(ctx, fc)
   518  	rawArgs := field.ArgumentMap(ec.Variables)
   519  	args, err := ec.field_Query___type_args(ctx, rawArgs)
   520  	if err != nil {
   521  		ec.Error(ctx, err)
   522  		return graphql.Null
   523  	}
   524  	fc.Args = args
   525  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   526  		ctx = rctx // use context from middleware stack in children
   527  		return ec.introspectType(args["name"].(string))
   528  	})
   529  	if err != nil {
   530  		ec.Error(ctx, err)
   531  		return graphql.Null
   532  	}
   533  	if resTmp == nil {
   534  		return graphql.Null
   535  	}
   536  	res := resTmp.(*introspection.Type)
   537  	fc.Result = res
   538  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
   539  }
   540  
   541  func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   542  	defer func() {
   543  		if r := recover(); r != nil {
   544  			ec.Error(ctx, ec.Recover(ctx, r))
   545  			ret = graphql.Null
   546  		}
   547  	}()
   548  	fc := &graphql.FieldContext{
   549  		Object:   "Query",
   550  		Field:    field,
   551  		Args:     nil,
   552  		IsMethod: true,
   553  	}
   554  
   555  	ctx = graphql.WithFieldContext(ctx, fc)
   556  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   557  		ctx = rctx // use context from middleware stack in children
   558  		return ec.introspectSchema()
   559  	})
   560  	if err != nil {
   561  		ec.Error(ctx, err)
   562  		return graphql.Null
   563  	}
   564  	if resTmp == nil {
   565  		return graphql.Null
   566  	}
   567  	res := resTmp.(*introspection.Schema)
   568  	fc.Result = res
   569  	return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
   570  }
   571  
   572  func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
   573  	defer func() {
   574  		if r := recover(); r != nil {
   575  			ec.Error(ctx, ec.Recover(ctx, r))
   576  			ret = graphql.Null
   577  		}
   578  	}()
   579  	fc := &graphql.FieldContext{
   580  		Object:   "User",
   581  		Field:    field,
   582  		Args:     nil,
   583  		IsMethod: false,
   584  	}
   585  
   586  	ctx = graphql.WithFieldContext(ctx, fc)
   587  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   588  		ctx = rctx // use context from middleware stack in children
   589  		return obj.ID, nil
   590  	})
   591  	if err != nil {
   592  		ec.Error(ctx, err)
   593  		return graphql.Null
   594  	}
   595  	if resTmp == nil {
   596  		if !graphql.HasFieldError(ctx, fc) {
   597  			ec.Errorf(ctx, "must not be null")
   598  		}
   599  		return graphql.Null
   600  	}
   601  	res := resTmp.(external.ObjectID)
   602  	fc.Result = res
   603  	return ec.marshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋexternalᚐObjectID(ctx, field.Selections, res)
   604  }
   605  
   606  func (ec *executionContext) _User_name(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
   607  	defer func() {
   608  		if r := recover(); r != nil {
   609  			ec.Error(ctx, ec.Recover(ctx, r))
   610  			ret = graphql.Null
   611  		}
   612  	}()
   613  	fc := &graphql.FieldContext{
   614  		Object:   "User",
   615  		Field:    field,
   616  		Args:     nil,
   617  		IsMethod: false,
   618  	}
   619  
   620  	ctx = graphql.WithFieldContext(ctx, fc)
   621  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   622  		ctx = rctx // use context from middleware stack in children
   623  		return obj.Name, nil
   624  	})
   625  	if err != nil {
   626  		ec.Error(ctx, err)
   627  		return graphql.Null
   628  	}
   629  	if resTmp == nil {
   630  		if !graphql.HasFieldError(ctx, fc) {
   631  			ec.Errorf(ctx, "must not be null")
   632  		}
   633  		return graphql.Null
   634  	}
   635  	res := resTmp.(string)
   636  	fc.Result = res
   637  	return ec.marshalNString2string(ctx, field.Selections, res)
   638  }
   639  
   640  func (ec *executionContext) _User_created(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
   641  	defer func() {
   642  		if r := recover(); r != nil {
   643  			ec.Error(ctx, ec.Recover(ctx, r))
   644  			ret = graphql.Null
   645  		}
   646  	}()
   647  	fc := &graphql.FieldContext{
   648  		Object:   "User",
   649  		Field:    field,
   650  		Args:     nil,
   651  		IsMethod: false,
   652  	}
   653  
   654  	ctx = graphql.WithFieldContext(ctx, fc)
   655  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   656  		ctx = rctx // use context from middleware stack in children
   657  		return obj.Created, nil
   658  	})
   659  	if err != nil {
   660  		ec.Error(ctx, err)
   661  		return graphql.Null
   662  	}
   663  	if resTmp == nil {
   664  		return graphql.Null
   665  	}
   666  	res := resTmp.(time.Time)
   667  	fc.Result = res
   668  	return ec.marshalOTimestamp2timeᚐTime(ctx, field.Selections, res)
   669  }
   670  
   671  func (ec *executionContext) _User_isBanned(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
   672  	defer func() {
   673  		if r := recover(); r != nil {
   674  			ec.Error(ctx, ec.Recover(ctx, r))
   675  			ret = graphql.Null
   676  		}
   677  	}()
   678  	fc := &graphql.FieldContext{
   679  		Object:   "User",
   680  		Field:    field,
   681  		Args:     nil,
   682  		IsMethod: false,
   683  	}
   684  
   685  	ctx = graphql.WithFieldContext(ctx, fc)
   686  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   687  		ctx = rctx // use context from middleware stack in children
   688  		return obj.IsBanned, nil
   689  	})
   690  	if err != nil {
   691  		ec.Error(ctx, err)
   692  		return graphql.Null
   693  	}
   694  	if resTmp == nil {
   695  		if !graphql.HasFieldError(ctx, fc) {
   696  			ec.Errorf(ctx, "must not be null")
   697  		}
   698  		return graphql.Null
   699  	}
   700  	res := resTmp.(model.Banned)
   701  	fc.Result = res
   702  	return ec.marshalNBanned2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐBanned(ctx, field.Selections, res)
   703  }
   704  
   705  func (ec *executionContext) _User_primitiveResolver(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
   706  	defer func() {
   707  		if r := recover(); r != nil {
   708  			ec.Error(ctx, ec.Recover(ctx, r))
   709  			ret = graphql.Null
   710  		}
   711  	}()
   712  	fc := &graphql.FieldContext{
   713  		Object:   "User",
   714  		Field:    field,
   715  		Args:     nil,
   716  		IsMethod: true,
   717  	}
   718  
   719  	ctx = graphql.WithFieldContext(ctx, fc)
   720  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   721  		ctx = rctx // use context from middleware stack in children
   722  		return ec.resolvers.User().PrimitiveResolver(rctx, obj)
   723  	})
   724  	if err != nil {
   725  		ec.Error(ctx, err)
   726  		return graphql.Null
   727  	}
   728  	if resTmp == nil {
   729  		if !graphql.HasFieldError(ctx, fc) {
   730  			ec.Errorf(ctx, "must not be null")
   731  		}
   732  		return graphql.Null
   733  	}
   734  	res := resTmp.(string)
   735  	fc.Result = res
   736  	return ec.marshalNString2string(ctx, field.Selections, res)
   737  }
   738  
   739  func (ec *executionContext) _User_customResolver(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
   740  	defer func() {
   741  		if r := recover(); r != nil {
   742  			ec.Error(ctx, ec.Recover(ctx, r))
   743  			ret = graphql.Null
   744  		}
   745  	}()
   746  	fc := &graphql.FieldContext{
   747  		Object:   "User",
   748  		Field:    field,
   749  		Args:     nil,
   750  		IsMethod: true,
   751  	}
   752  
   753  	ctx = graphql.WithFieldContext(ctx, fc)
   754  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   755  		ctx = rctx // use context from middleware stack in children
   756  		return ec.resolvers.User().CustomResolver(rctx, obj)
   757  	})
   758  	if err != nil {
   759  		ec.Error(ctx, err)
   760  		return graphql.Null
   761  	}
   762  	if resTmp == nil {
   763  		if !graphql.HasFieldError(ctx, fc) {
   764  			ec.Errorf(ctx, "must not be null")
   765  		}
   766  		return graphql.Null
   767  	}
   768  	res := resTmp.(*model.Point)
   769  	fc.Result = res
   770  	return ec.marshalNPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx, field.Selections, res)
   771  }
   772  
   773  func (ec *executionContext) _User_address(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
   774  	defer func() {
   775  		if r := recover(); r != nil {
   776  			ec.Error(ctx, ec.Recover(ctx, r))
   777  			ret = graphql.Null
   778  		}
   779  	}()
   780  	fc := &graphql.FieldContext{
   781  		Object:   "User",
   782  		Field:    field,
   783  		Args:     nil,
   784  		IsMethod: false,
   785  	}
   786  
   787  	ctx = graphql.WithFieldContext(ctx, fc)
   788  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   789  		ctx = rctx // use context from middleware stack in children
   790  		return obj.Address, nil
   791  	})
   792  	if err != nil {
   793  		ec.Error(ctx, err)
   794  		return graphql.Null
   795  	}
   796  	if resTmp == nil {
   797  		return graphql.Null
   798  	}
   799  	res := resTmp.(model.Address)
   800  	fc.Result = res
   801  	return ec.marshalOAddress2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐAddress(ctx, field.Selections, res)
   802  }
   803  
   804  func (ec *executionContext) _User_tier(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
   805  	defer func() {
   806  		if r := recover(); r != nil {
   807  			ec.Error(ctx, ec.Recover(ctx, r))
   808  			ret = graphql.Null
   809  		}
   810  	}()
   811  	fc := &graphql.FieldContext{
   812  		Object:   "User",
   813  		Field:    field,
   814  		Args:     nil,
   815  		IsMethod: false,
   816  	}
   817  
   818  	ctx = graphql.WithFieldContext(ctx, fc)
   819  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   820  		ctx = rctx // use context from middleware stack in children
   821  		return obj.Tier, nil
   822  	})
   823  	if err != nil {
   824  		ec.Error(ctx, err)
   825  		return graphql.Null
   826  	}
   827  	if resTmp == nil {
   828  		return graphql.Null
   829  	}
   830  	res := resTmp.(model.Tier)
   831  	fc.Result = res
   832  	return ec.marshalOTier2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐTier(ctx, field.Selections, res)
   833  }
   834  
   835  func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
   836  	defer func() {
   837  		if r := recover(); r != nil {
   838  			ec.Error(ctx, ec.Recover(ctx, r))
   839  			ret = graphql.Null
   840  		}
   841  	}()
   842  	fc := &graphql.FieldContext{
   843  		Object:   "__Directive",
   844  		Field:    field,
   845  		Args:     nil,
   846  		IsMethod: false,
   847  	}
   848  
   849  	ctx = graphql.WithFieldContext(ctx, fc)
   850  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   851  		ctx = rctx // use context from middleware stack in children
   852  		return obj.Name, nil
   853  	})
   854  	if err != nil {
   855  		ec.Error(ctx, err)
   856  		return graphql.Null
   857  	}
   858  	if resTmp == nil {
   859  		if !graphql.HasFieldError(ctx, fc) {
   860  			ec.Errorf(ctx, "must not be null")
   861  		}
   862  		return graphql.Null
   863  	}
   864  	res := resTmp.(string)
   865  	fc.Result = res
   866  	return ec.marshalNString2string(ctx, field.Selections, res)
   867  }
   868  
   869  func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
   870  	defer func() {
   871  		if r := recover(); r != nil {
   872  			ec.Error(ctx, ec.Recover(ctx, r))
   873  			ret = graphql.Null
   874  		}
   875  	}()
   876  	fc := &graphql.FieldContext{
   877  		Object:   "__Directive",
   878  		Field:    field,
   879  		Args:     nil,
   880  		IsMethod: false,
   881  	}
   882  
   883  	ctx = graphql.WithFieldContext(ctx, fc)
   884  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   885  		ctx = rctx // use context from middleware stack in children
   886  		return obj.Description, nil
   887  	})
   888  	if err != nil {
   889  		ec.Error(ctx, err)
   890  		return graphql.Null
   891  	}
   892  	if resTmp == nil {
   893  		return graphql.Null
   894  	}
   895  	res := resTmp.(string)
   896  	fc.Result = res
   897  	return ec.marshalOString2string(ctx, field.Selections, res)
   898  }
   899  
   900  func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
   901  	defer func() {
   902  		if r := recover(); r != nil {
   903  			ec.Error(ctx, ec.Recover(ctx, r))
   904  			ret = graphql.Null
   905  		}
   906  	}()
   907  	fc := &graphql.FieldContext{
   908  		Object:   "__Directive",
   909  		Field:    field,
   910  		Args:     nil,
   911  		IsMethod: false,
   912  	}
   913  
   914  	ctx = graphql.WithFieldContext(ctx, fc)
   915  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   916  		ctx = rctx // use context from middleware stack in children
   917  		return obj.Locations, nil
   918  	})
   919  	if err != nil {
   920  		ec.Error(ctx, err)
   921  		return graphql.Null
   922  	}
   923  	if resTmp == nil {
   924  		if !graphql.HasFieldError(ctx, fc) {
   925  			ec.Errorf(ctx, "must not be null")
   926  		}
   927  		return graphql.Null
   928  	}
   929  	res := resTmp.([]string)
   930  	fc.Result = res
   931  	return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
   932  }
   933  
   934  func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
   935  	defer func() {
   936  		if r := recover(); r != nil {
   937  			ec.Error(ctx, ec.Recover(ctx, r))
   938  			ret = graphql.Null
   939  		}
   940  	}()
   941  	fc := &graphql.FieldContext{
   942  		Object:   "__Directive",
   943  		Field:    field,
   944  		Args:     nil,
   945  		IsMethod: false,
   946  	}
   947  
   948  	ctx = graphql.WithFieldContext(ctx, fc)
   949  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   950  		ctx = rctx // use context from middleware stack in children
   951  		return obj.Args, nil
   952  	})
   953  	if err != nil {
   954  		ec.Error(ctx, err)
   955  		return graphql.Null
   956  	}
   957  	if resTmp == nil {
   958  		if !graphql.HasFieldError(ctx, fc) {
   959  			ec.Errorf(ctx, "must not be null")
   960  		}
   961  		return graphql.Null
   962  	}
   963  	res := resTmp.([]introspection.InputValue)
   964  	fc.Result = res
   965  	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
   966  }
   967  
   968  func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
   969  	defer func() {
   970  		if r := recover(); r != nil {
   971  			ec.Error(ctx, ec.Recover(ctx, r))
   972  			ret = graphql.Null
   973  		}
   974  	}()
   975  	fc := &graphql.FieldContext{
   976  		Object:   "__EnumValue",
   977  		Field:    field,
   978  		Args:     nil,
   979  		IsMethod: false,
   980  	}
   981  
   982  	ctx = graphql.WithFieldContext(ctx, fc)
   983  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   984  		ctx = rctx // use context from middleware stack in children
   985  		return obj.Name, nil
   986  	})
   987  	if err != nil {
   988  		ec.Error(ctx, err)
   989  		return graphql.Null
   990  	}
   991  	if resTmp == nil {
   992  		if !graphql.HasFieldError(ctx, fc) {
   993  			ec.Errorf(ctx, "must not be null")
   994  		}
   995  		return graphql.Null
   996  	}
   997  	res := resTmp.(string)
   998  	fc.Result = res
   999  	return ec.marshalNString2string(ctx, field.Selections, res)
  1000  }
  1001  
  1002  func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  1003  	defer func() {
  1004  		if r := recover(); r != nil {
  1005  			ec.Error(ctx, ec.Recover(ctx, r))
  1006  			ret = graphql.Null
  1007  		}
  1008  	}()
  1009  	fc := &graphql.FieldContext{
  1010  		Object:   "__EnumValue",
  1011  		Field:    field,
  1012  		Args:     nil,
  1013  		IsMethod: false,
  1014  	}
  1015  
  1016  	ctx = graphql.WithFieldContext(ctx, fc)
  1017  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1018  		ctx = rctx // use context from middleware stack in children
  1019  		return obj.Description, nil
  1020  	})
  1021  	if err != nil {
  1022  		ec.Error(ctx, err)
  1023  		return graphql.Null
  1024  	}
  1025  	if resTmp == nil {
  1026  		return graphql.Null
  1027  	}
  1028  	res := resTmp.(string)
  1029  	fc.Result = res
  1030  	return ec.marshalOString2string(ctx, field.Selections, res)
  1031  }
  1032  
  1033  func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  1034  	defer func() {
  1035  		if r := recover(); r != nil {
  1036  			ec.Error(ctx, ec.Recover(ctx, r))
  1037  			ret = graphql.Null
  1038  		}
  1039  	}()
  1040  	fc := &graphql.FieldContext{
  1041  		Object:   "__EnumValue",
  1042  		Field:    field,
  1043  		Args:     nil,
  1044  		IsMethod: true,
  1045  	}
  1046  
  1047  	ctx = graphql.WithFieldContext(ctx, fc)
  1048  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1049  		ctx = rctx // use context from middleware stack in children
  1050  		return obj.IsDeprecated(), nil
  1051  	})
  1052  	if err != nil {
  1053  		ec.Error(ctx, err)
  1054  		return graphql.Null
  1055  	}
  1056  	if resTmp == nil {
  1057  		if !graphql.HasFieldError(ctx, fc) {
  1058  			ec.Errorf(ctx, "must not be null")
  1059  		}
  1060  		return graphql.Null
  1061  	}
  1062  	res := resTmp.(bool)
  1063  	fc.Result = res
  1064  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  1065  }
  1066  
  1067  func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  1068  	defer func() {
  1069  		if r := recover(); r != nil {
  1070  			ec.Error(ctx, ec.Recover(ctx, r))
  1071  			ret = graphql.Null
  1072  		}
  1073  	}()
  1074  	fc := &graphql.FieldContext{
  1075  		Object:   "__EnumValue",
  1076  		Field:    field,
  1077  		Args:     nil,
  1078  		IsMethod: true,
  1079  	}
  1080  
  1081  	ctx = graphql.WithFieldContext(ctx, fc)
  1082  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1083  		ctx = rctx // use context from middleware stack in children
  1084  		return obj.DeprecationReason(), nil
  1085  	})
  1086  	if err != nil {
  1087  		ec.Error(ctx, err)
  1088  		return graphql.Null
  1089  	}
  1090  	if resTmp == nil {
  1091  		return graphql.Null
  1092  	}
  1093  	res := resTmp.(*string)
  1094  	fc.Result = res
  1095  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1096  }
  1097  
  1098  func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1099  	defer func() {
  1100  		if r := recover(); r != nil {
  1101  			ec.Error(ctx, ec.Recover(ctx, r))
  1102  			ret = graphql.Null
  1103  		}
  1104  	}()
  1105  	fc := &graphql.FieldContext{
  1106  		Object:   "__Field",
  1107  		Field:    field,
  1108  		Args:     nil,
  1109  		IsMethod: false,
  1110  	}
  1111  
  1112  	ctx = graphql.WithFieldContext(ctx, fc)
  1113  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1114  		ctx = rctx // use context from middleware stack in children
  1115  		return obj.Name, nil
  1116  	})
  1117  	if err != nil {
  1118  		ec.Error(ctx, err)
  1119  		return graphql.Null
  1120  	}
  1121  	if resTmp == nil {
  1122  		if !graphql.HasFieldError(ctx, fc) {
  1123  			ec.Errorf(ctx, "must not be null")
  1124  		}
  1125  		return graphql.Null
  1126  	}
  1127  	res := resTmp.(string)
  1128  	fc.Result = res
  1129  	return ec.marshalNString2string(ctx, field.Selections, res)
  1130  }
  1131  
  1132  func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1133  	defer func() {
  1134  		if r := recover(); r != nil {
  1135  			ec.Error(ctx, ec.Recover(ctx, r))
  1136  			ret = graphql.Null
  1137  		}
  1138  	}()
  1139  	fc := &graphql.FieldContext{
  1140  		Object:   "__Field",
  1141  		Field:    field,
  1142  		Args:     nil,
  1143  		IsMethod: false,
  1144  	}
  1145  
  1146  	ctx = graphql.WithFieldContext(ctx, fc)
  1147  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1148  		ctx = rctx // use context from middleware stack in children
  1149  		return obj.Description, nil
  1150  	})
  1151  	if err != nil {
  1152  		ec.Error(ctx, err)
  1153  		return graphql.Null
  1154  	}
  1155  	if resTmp == nil {
  1156  		return graphql.Null
  1157  	}
  1158  	res := resTmp.(string)
  1159  	fc.Result = res
  1160  	return ec.marshalOString2string(ctx, field.Selections, res)
  1161  }
  1162  
  1163  func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1164  	defer func() {
  1165  		if r := recover(); r != nil {
  1166  			ec.Error(ctx, ec.Recover(ctx, r))
  1167  			ret = graphql.Null
  1168  		}
  1169  	}()
  1170  	fc := &graphql.FieldContext{
  1171  		Object:   "__Field",
  1172  		Field:    field,
  1173  		Args:     nil,
  1174  		IsMethod: false,
  1175  	}
  1176  
  1177  	ctx = graphql.WithFieldContext(ctx, fc)
  1178  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1179  		ctx = rctx // use context from middleware stack in children
  1180  		return obj.Args, nil
  1181  	})
  1182  	if err != nil {
  1183  		ec.Error(ctx, err)
  1184  		return graphql.Null
  1185  	}
  1186  	if resTmp == nil {
  1187  		if !graphql.HasFieldError(ctx, fc) {
  1188  			ec.Errorf(ctx, "must not be null")
  1189  		}
  1190  		return graphql.Null
  1191  	}
  1192  	res := resTmp.([]introspection.InputValue)
  1193  	fc.Result = res
  1194  	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  1195  }
  1196  
  1197  func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1198  	defer func() {
  1199  		if r := recover(); r != nil {
  1200  			ec.Error(ctx, ec.Recover(ctx, r))
  1201  			ret = graphql.Null
  1202  		}
  1203  	}()
  1204  	fc := &graphql.FieldContext{
  1205  		Object:   "__Field",
  1206  		Field:    field,
  1207  		Args:     nil,
  1208  		IsMethod: false,
  1209  	}
  1210  
  1211  	ctx = graphql.WithFieldContext(ctx, fc)
  1212  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1213  		ctx = rctx // use context from middleware stack in children
  1214  		return obj.Type, nil
  1215  	})
  1216  	if err != nil {
  1217  		ec.Error(ctx, err)
  1218  		return graphql.Null
  1219  	}
  1220  	if resTmp == nil {
  1221  		if !graphql.HasFieldError(ctx, fc) {
  1222  			ec.Errorf(ctx, "must not be null")
  1223  		}
  1224  		return graphql.Null
  1225  	}
  1226  	res := resTmp.(*introspection.Type)
  1227  	fc.Result = res
  1228  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1229  }
  1230  
  1231  func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1232  	defer func() {
  1233  		if r := recover(); r != nil {
  1234  			ec.Error(ctx, ec.Recover(ctx, r))
  1235  			ret = graphql.Null
  1236  		}
  1237  	}()
  1238  	fc := &graphql.FieldContext{
  1239  		Object:   "__Field",
  1240  		Field:    field,
  1241  		Args:     nil,
  1242  		IsMethod: true,
  1243  	}
  1244  
  1245  	ctx = graphql.WithFieldContext(ctx, fc)
  1246  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1247  		ctx = rctx // use context from middleware stack in children
  1248  		return obj.IsDeprecated(), nil
  1249  	})
  1250  	if err != nil {
  1251  		ec.Error(ctx, err)
  1252  		return graphql.Null
  1253  	}
  1254  	if resTmp == nil {
  1255  		if !graphql.HasFieldError(ctx, fc) {
  1256  			ec.Errorf(ctx, "must not be null")
  1257  		}
  1258  		return graphql.Null
  1259  	}
  1260  	res := resTmp.(bool)
  1261  	fc.Result = res
  1262  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  1263  }
  1264  
  1265  func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1266  	defer func() {
  1267  		if r := recover(); r != nil {
  1268  			ec.Error(ctx, ec.Recover(ctx, r))
  1269  			ret = graphql.Null
  1270  		}
  1271  	}()
  1272  	fc := &graphql.FieldContext{
  1273  		Object:   "__Field",
  1274  		Field:    field,
  1275  		Args:     nil,
  1276  		IsMethod: true,
  1277  	}
  1278  
  1279  	ctx = graphql.WithFieldContext(ctx, fc)
  1280  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1281  		ctx = rctx // use context from middleware stack in children
  1282  		return obj.DeprecationReason(), nil
  1283  	})
  1284  	if err != nil {
  1285  		ec.Error(ctx, err)
  1286  		return graphql.Null
  1287  	}
  1288  	if resTmp == nil {
  1289  		return graphql.Null
  1290  	}
  1291  	res := resTmp.(*string)
  1292  	fc.Result = res
  1293  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1294  }
  1295  
  1296  func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  1297  	defer func() {
  1298  		if r := recover(); r != nil {
  1299  			ec.Error(ctx, ec.Recover(ctx, r))
  1300  			ret = graphql.Null
  1301  		}
  1302  	}()
  1303  	fc := &graphql.FieldContext{
  1304  		Object:   "__InputValue",
  1305  		Field:    field,
  1306  		Args:     nil,
  1307  		IsMethod: false,
  1308  	}
  1309  
  1310  	ctx = graphql.WithFieldContext(ctx, fc)
  1311  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1312  		ctx = rctx // use context from middleware stack in children
  1313  		return obj.Name, nil
  1314  	})
  1315  	if err != nil {
  1316  		ec.Error(ctx, err)
  1317  		return graphql.Null
  1318  	}
  1319  	if resTmp == nil {
  1320  		if !graphql.HasFieldError(ctx, fc) {
  1321  			ec.Errorf(ctx, "must not be null")
  1322  		}
  1323  		return graphql.Null
  1324  	}
  1325  	res := resTmp.(string)
  1326  	fc.Result = res
  1327  	return ec.marshalNString2string(ctx, field.Selections, res)
  1328  }
  1329  
  1330  func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  1331  	defer func() {
  1332  		if r := recover(); r != nil {
  1333  			ec.Error(ctx, ec.Recover(ctx, r))
  1334  			ret = graphql.Null
  1335  		}
  1336  	}()
  1337  	fc := &graphql.FieldContext{
  1338  		Object:   "__InputValue",
  1339  		Field:    field,
  1340  		Args:     nil,
  1341  		IsMethod: false,
  1342  	}
  1343  
  1344  	ctx = graphql.WithFieldContext(ctx, fc)
  1345  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1346  		ctx = rctx // use context from middleware stack in children
  1347  		return obj.Description, nil
  1348  	})
  1349  	if err != nil {
  1350  		ec.Error(ctx, err)
  1351  		return graphql.Null
  1352  	}
  1353  	if resTmp == nil {
  1354  		return graphql.Null
  1355  	}
  1356  	res := resTmp.(string)
  1357  	fc.Result = res
  1358  	return ec.marshalOString2string(ctx, field.Selections, res)
  1359  }
  1360  
  1361  func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  1362  	defer func() {
  1363  		if r := recover(); r != nil {
  1364  			ec.Error(ctx, ec.Recover(ctx, r))
  1365  			ret = graphql.Null
  1366  		}
  1367  	}()
  1368  	fc := &graphql.FieldContext{
  1369  		Object:   "__InputValue",
  1370  		Field:    field,
  1371  		Args:     nil,
  1372  		IsMethod: false,
  1373  	}
  1374  
  1375  	ctx = graphql.WithFieldContext(ctx, fc)
  1376  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1377  		ctx = rctx // use context from middleware stack in children
  1378  		return obj.Type, nil
  1379  	})
  1380  	if err != nil {
  1381  		ec.Error(ctx, err)
  1382  		return graphql.Null
  1383  	}
  1384  	if resTmp == nil {
  1385  		if !graphql.HasFieldError(ctx, fc) {
  1386  			ec.Errorf(ctx, "must not be null")
  1387  		}
  1388  		return graphql.Null
  1389  	}
  1390  	res := resTmp.(*introspection.Type)
  1391  	fc.Result = res
  1392  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1393  }
  1394  
  1395  func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  1396  	defer func() {
  1397  		if r := recover(); r != nil {
  1398  			ec.Error(ctx, ec.Recover(ctx, r))
  1399  			ret = graphql.Null
  1400  		}
  1401  	}()
  1402  	fc := &graphql.FieldContext{
  1403  		Object:   "__InputValue",
  1404  		Field:    field,
  1405  		Args:     nil,
  1406  		IsMethod: false,
  1407  	}
  1408  
  1409  	ctx = graphql.WithFieldContext(ctx, fc)
  1410  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1411  		ctx = rctx // use context from middleware stack in children
  1412  		return obj.DefaultValue, nil
  1413  	})
  1414  	if err != nil {
  1415  		ec.Error(ctx, err)
  1416  		return graphql.Null
  1417  	}
  1418  	if resTmp == nil {
  1419  		return graphql.Null
  1420  	}
  1421  	res := resTmp.(*string)
  1422  	fc.Result = res
  1423  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1424  }
  1425  
  1426  func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  1427  	defer func() {
  1428  		if r := recover(); r != nil {
  1429  			ec.Error(ctx, ec.Recover(ctx, r))
  1430  			ret = graphql.Null
  1431  		}
  1432  	}()
  1433  	fc := &graphql.FieldContext{
  1434  		Object:   "__Schema",
  1435  		Field:    field,
  1436  		Args:     nil,
  1437  		IsMethod: true,
  1438  	}
  1439  
  1440  	ctx = graphql.WithFieldContext(ctx, fc)
  1441  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1442  		ctx = rctx // use context from middleware stack in children
  1443  		return obj.Types(), nil
  1444  	})
  1445  	if err != nil {
  1446  		ec.Error(ctx, err)
  1447  		return graphql.Null
  1448  	}
  1449  	if resTmp == nil {
  1450  		if !graphql.HasFieldError(ctx, fc) {
  1451  			ec.Errorf(ctx, "must not be null")
  1452  		}
  1453  		return graphql.Null
  1454  	}
  1455  	res := resTmp.([]introspection.Type)
  1456  	fc.Result = res
  1457  	return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  1458  }
  1459  
  1460  func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  1461  	defer func() {
  1462  		if r := recover(); r != nil {
  1463  			ec.Error(ctx, ec.Recover(ctx, r))
  1464  			ret = graphql.Null
  1465  		}
  1466  	}()
  1467  	fc := &graphql.FieldContext{
  1468  		Object:   "__Schema",
  1469  		Field:    field,
  1470  		Args:     nil,
  1471  		IsMethod: true,
  1472  	}
  1473  
  1474  	ctx = graphql.WithFieldContext(ctx, fc)
  1475  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1476  		ctx = rctx // use context from middleware stack in children
  1477  		return obj.QueryType(), nil
  1478  	})
  1479  	if err != nil {
  1480  		ec.Error(ctx, err)
  1481  		return graphql.Null
  1482  	}
  1483  	if resTmp == nil {
  1484  		if !graphql.HasFieldError(ctx, fc) {
  1485  			ec.Errorf(ctx, "must not be null")
  1486  		}
  1487  		return graphql.Null
  1488  	}
  1489  	res := resTmp.(*introspection.Type)
  1490  	fc.Result = res
  1491  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1492  }
  1493  
  1494  func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  1495  	defer func() {
  1496  		if r := recover(); r != nil {
  1497  			ec.Error(ctx, ec.Recover(ctx, r))
  1498  			ret = graphql.Null
  1499  		}
  1500  	}()
  1501  	fc := &graphql.FieldContext{
  1502  		Object:   "__Schema",
  1503  		Field:    field,
  1504  		Args:     nil,
  1505  		IsMethod: true,
  1506  	}
  1507  
  1508  	ctx = graphql.WithFieldContext(ctx, fc)
  1509  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1510  		ctx = rctx // use context from middleware stack in children
  1511  		return obj.MutationType(), nil
  1512  	})
  1513  	if err != nil {
  1514  		ec.Error(ctx, err)
  1515  		return graphql.Null
  1516  	}
  1517  	if resTmp == nil {
  1518  		return graphql.Null
  1519  	}
  1520  	res := resTmp.(*introspection.Type)
  1521  	fc.Result = res
  1522  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1523  }
  1524  
  1525  func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  1526  	defer func() {
  1527  		if r := recover(); r != nil {
  1528  			ec.Error(ctx, ec.Recover(ctx, r))
  1529  			ret = graphql.Null
  1530  		}
  1531  	}()
  1532  	fc := &graphql.FieldContext{
  1533  		Object:   "__Schema",
  1534  		Field:    field,
  1535  		Args:     nil,
  1536  		IsMethod: true,
  1537  	}
  1538  
  1539  	ctx = graphql.WithFieldContext(ctx, fc)
  1540  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1541  		ctx = rctx // use context from middleware stack in children
  1542  		return obj.SubscriptionType(), nil
  1543  	})
  1544  	if err != nil {
  1545  		ec.Error(ctx, err)
  1546  		return graphql.Null
  1547  	}
  1548  	if resTmp == nil {
  1549  		return graphql.Null
  1550  	}
  1551  	res := resTmp.(*introspection.Type)
  1552  	fc.Result = res
  1553  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1554  }
  1555  
  1556  func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  1557  	defer func() {
  1558  		if r := recover(); r != nil {
  1559  			ec.Error(ctx, ec.Recover(ctx, r))
  1560  			ret = graphql.Null
  1561  		}
  1562  	}()
  1563  	fc := &graphql.FieldContext{
  1564  		Object:   "__Schema",
  1565  		Field:    field,
  1566  		Args:     nil,
  1567  		IsMethod: true,
  1568  	}
  1569  
  1570  	ctx = graphql.WithFieldContext(ctx, fc)
  1571  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1572  		ctx = rctx // use context from middleware stack in children
  1573  		return obj.Directives(), nil
  1574  	})
  1575  	if err != nil {
  1576  		ec.Error(ctx, err)
  1577  		return graphql.Null
  1578  	}
  1579  	if resTmp == nil {
  1580  		if !graphql.HasFieldError(ctx, fc) {
  1581  			ec.Errorf(ctx, "must not be null")
  1582  		}
  1583  		return graphql.Null
  1584  	}
  1585  	res := resTmp.([]introspection.Directive)
  1586  	fc.Result = res
  1587  	return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
  1588  }
  1589  
  1590  func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1591  	defer func() {
  1592  		if r := recover(); r != nil {
  1593  			ec.Error(ctx, ec.Recover(ctx, r))
  1594  			ret = graphql.Null
  1595  		}
  1596  	}()
  1597  	fc := &graphql.FieldContext{
  1598  		Object:   "__Type",
  1599  		Field:    field,
  1600  		Args:     nil,
  1601  		IsMethod: true,
  1602  	}
  1603  
  1604  	ctx = graphql.WithFieldContext(ctx, fc)
  1605  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1606  		ctx = rctx // use context from middleware stack in children
  1607  		return obj.Kind(), nil
  1608  	})
  1609  	if err != nil {
  1610  		ec.Error(ctx, err)
  1611  		return graphql.Null
  1612  	}
  1613  	if resTmp == nil {
  1614  		if !graphql.HasFieldError(ctx, fc) {
  1615  			ec.Errorf(ctx, "must not be null")
  1616  		}
  1617  		return graphql.Null
  1618  	}
  1619  	res := resTmp.(string)
  1620  	fc.Result = res
  1621  	return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
  1622  }
  1623  
  1624  func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1625  	defer func() {
  1626  		if r := recover(); r != nil {
  1627  			ec.Error(ctx, ec.Recover(ctx, r))
  1628  			ret = graphql.Null
  1629  		}
  1630  	}()
  1631  	fc := &graphql.FieldContext{
  1632  		Object:   "__Type",
  1633  		Field:    field,
  1634  		Args:     nil,
  1635  		IsMethod: true,
  1636  	}
  1637  
  1638  	ctx = graphql.WithFieldContext(ctx, fc)
  1639  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1640  		ctx = rctx // use context from middleware stack in children
  1641  		return obj.Name(), nil
  1642  	})
  1643  	if err != nil {
  1644  		ec.Error(ctx, err)
  1645  		return graphql.Null
  1646  	}
  1647  	if resTmp == nil {
  1648  		return graphql.Null
  1649  	}
  1650  	res := resTmp.(*string)
  1651  	fc.Result = res
  1652  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1653  }
  1654  
  1655  func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1656  	defer func() {
  1657  		if r := recover(); r != nil {
  1658  			ec.Error(ctx, ec.Recover(ctx, r))
  1659  			ret = graphql.Null
  1660  		}
  1661  	}()
  1662  	fc := &graphql.FieldContext{
  1663  		Object:   "__Type",
  1664  		Field:    field,
  1665  		Args:     nil,
  1666  		IsMethod: true,
  1667  	}
  1668  
  1669  	ctx = graphql.WithFieldContext(ctx, fc)
  1670  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1671  		ctx = rctx // use context from middleware stack in children
  1672  		return obj.Description(), nil
  1673  	})
  1674  	if err != nil {
  1675  		ec.Error(ctx, err)
  1676  		return graphql.Null
  1677  	}
  1678  	if resTmp == nil {
  1679  		return graphql.Null
  1680  	}
  1681  	res := resTmp.(string)
  1682  	fc.Result = res
  1683  	return ec.marshalOString2string(ctx, field.Selections, res)
  1684  }
  1685  
  1686  func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1687  	defer func() {
  1688  		if r := recover(); r != nil {
  1689  			ec.Error(ctx, ec.Recover(ctx, r))
  1690  			ret = graphql.Null
  1691  		}
  1692  	}()
  1693  	fc := &graphql.FieldContext{
  1694  		Object:   "__Type",
  1695  		Field:    field,
  1696  		Args:     nil,
  1697  		IsMethod: true,
  1698  	}
  1699  
  1700  	ctx = graphql.WithFieldContext(ctx, fc)
  1701  	rawArgs := field.ArgumentMap(ec.Variables)
  1702  	args, err := ec.field___Type_fields_args(ctx, rawArgs)
  1703  	if err != nil {
  1704  		ec.Error(ctx, err)
  1705  		return graphql.Null
  1706  	}
  1707  	fc.Args = args
  1708  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1709  		ctx = rctx // use context from middleware stack in children
  1710  		return obj.Fields(args["includeDeprecated"].(bool)), nil
  1711  	})
  1712  	if err != nil {
  1713  		ec.Error(ctx, err)
  1714  		return graphql.Null
  1715  	}
  1716  	if resTmp == nil {
  1717  		return graphql.Null
  1718  	}
  1719  	res := resTmp.([]introspection.Field)
  1720  	fc.Result = res
  1721  	return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
  1722  }
  1723  
  1724  func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1725  	defer func() {
  1726  		if r := recover(); r != nil {
  1727  			ec.Error(ctx, ec.Recover(ctx, r))
  1728  			ret = graphql.Null
  1729  		}
  1730  	}()
  1731  	fc := &graphql.FieldContext{
  1732  		Object:   "__Type",
  1733  		Field:    field,
  1734  		Args:     nil,
  1735  		IsMethod: true,
  1736  	}
  1737  
  1738  	ctx = graphql.WithFieldContext(ctx, fc)
  1739  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1740  		ctx = rctx // use context from middleware stack in children
  1741  		return obj.Interfaces(), nil
  1742  	})
  1743  	if err != nil {
  1744  		ec.Error(ctx, err)
  1745  		return graphql.Null
  1746  	}
  1747  	if resTmp == nil {
  1748  		return graphql.Null
  1749  	}
  1750  	res := resTmp.([]introspection.Type)
  1751  	fc.Result = res
  1752  	return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  1753  }
  1754  
  1755  func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1756  	defer func() {
  1757  		if r := recover(); r != nil {
  1758  			ec.Error(ctx, ec.Recover(ctx, r))
  1759  			ret = graphql.Null
  1760  		}
  1761  	}()
  1762  	fc := &graphql.FieldContext{
  1763  		Object:   "__Type",
  1764  		Field:    field,
  1765  		Args:     nil,
  1766  		IsMethod: true,
  1767  	}
  1768  
  1769  	ctx = graphql.WithFieldContext(ctx, fc)
  1770  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1771  		ctx = rctx // use context from middleware stack in children
  1772  		return obj.PossibleTypes(), nil
  1773  	})
  1774  	if err != nil {
  1775  		ec.Error(ctx, err)
  1776  		return graphql.Null
  1777  	}
  1778  	if resTmp == nil {
  1779  		return graphql.Null
  1780  	}
  1781  	res := resTmp.([]introspection.Type)
  1782  	fc.Result = res
  1783  	return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  1784  }
  1785  
  1786  func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1787  	defer func() {
  1788  		if r := recover(); r != nil {
  1789  			ec.Error(ctx, ec.Recover(ctx, r))
  1790  			ret = graphql.Null
  1791  		}
  1792  	}()
  1793  	fc := &graphql.FieldContext{
  1794  		Object:   "__Type",
  1795  		Field:    field,
  1796  		Args:     nil,
  1797  		IsMethod: true,
  1798  	}
  1799  
  1800  	ctx = graphql.WithFieldContext(ctx, fc)
  1801  	rawArgs := field.ArgumentMap(ec.Variables)
  1802  	args, err := ec.field___Type_enumValues_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 obj.EnumValues(args["includeDeprecated"].(bool)), nil
  1811  	})
  1812  	if err != nil {
  1813  		ec.Error(ctx, err)
  1814  		return graphql.Null
  1815  	}
  1816  	if resTmp == nil {
  1817  		return graphql.Null
  1818  	}
  1819  	res := resTmp.([]introspection.EnumValue)
  1820  	fc.Result = res
  1821  	return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
  1822  }
  1823  
  1824  func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1825  	defer func() {
  1826  		if r := recover(); r != nil {
  1827  			ec.Error(ctx, ec.Recover(ctx, r))
  1828  			ret = graphql.Null
  1829  		}
  1830  	}()
  1831  	fc := &graphql.FieldContext{
  1832  		Object:   "__Type",
  1833  		Field:    field,
  1834  		Args:     nil,
  1835  		IsMethod: true,
  1836  	}
  1837  
  1838  	ctx = graphql.WithFieldContext(ctx, fc)
  1839  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1840  		ctx = rctx // use context from middleware stack in children
  1841  		return obj.InputFields(), nil
  1842  	})
  1843  	if err != nil {
  1844  		ec.Error(ctx, err)
  1845  		return graphql.Null
  1846  	}
  1847  	if resTmp == nil {
  1848  		return graphql.Null
  1849  	}
  1850  	res := resTmp.([]introspection.InputValue)
  1851  	fc.Result = res
  1852  	return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  1853  }
  1854  
  1855  func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  1856  	defer func() {
  1857  		if r := recover(); r != nil {
  1858  			ec.Error(ctx, ec.Recover(ctx, r))
  1859  			ret = graphql.Null
  1860  		}
  1861  	}()
  1862  	fc := &graphql.FieldContext{
  1863  		Object:   "__Type",
  1864  		Field:    field,
  1865  		Args:     nil,
  1866  		IsMethod: true,
  1867  	}
  1868  
  1869  	ctx = graphql.WithFieldContext(ctx, fc)
  1870  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1871  		ctx = rctx // use context from middleware stack in children
  1872  		return obj.OfType(), nil
  1873  	})
  1874  	if err != nil {
  1875  		ec.Error(ctx, err)
  1876  		return graphql.Null
  1877  	}
  1878  	if resTmp == nil {
  1879  		return graphql.Null
  1880  	}
  1881  	res := resTmp.(*introspection.Type)
  1882  	fc.Result = res
  1883  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1884  }
  1885  
  1886  // endregion **************************** field.gotpl *****************************
  1887  
  1888  // region    **************************** input.gotpl *****************************
  1889  
  1890  func (ec *executionContext) unmarshalInputSearchArgs(ctx context.Context, obj interface{}) (model.SearchArgs, error) {
  1891  	var it model.SearchArgs
  1892  	var asMap = obj.(map[string]interface{})
  1893  
  1894  	for k, v := range asMap {
  1895  		switch k {
  1896  		case "location":
  1897  			var err error
  1898  			it.Location, err = ec.unmarshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx, v)
  1899  			if err != nil {
  1900  				return it, err
  1901  			}
  1902  		case "createdAfter":
  1903  			var err error
  1904  			it.CreatedAfter, err = ec.unmarshalOTimestamp2ᚖtimeᚐTime(ctx, v)
  1905  			if err != nil {
  1906  				return it, err
  1907  			}
  1908  		case "isBanned":
  1909  			var err error
  1910  			it.IsBanned, err = ec.unmarshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐBanned(ctx, v)
  1911  			if err != nil {
  1912  				return it, err
  1913  			}
  1914  		}
  1915  	}
  1916  
  1917  	return it, nil
  1918  }
  1919  
  1920  // endregion **************************** input.gotpl *****************************
  1921  
  1922  // region    ************************** interface.gotpl ***************************
  1923  
  1924  // endregion ************************** interface.gotpl ***************************
  1925  
  1926  // region    **************************** object.gotpl ****************************
  1927  
  1928  var addressImplementors = []string{"Address"}
  1929  
  1930  func (ec *executionContext) _Address(ctx context.Context, sel ast.SelectionSet, obj *model.Address) graphql.Marshaler {
  1931  	fields := graphql.CollectFields(ec.OperationContext, sel, addressImplementors)
  1932  
  1933  	out := graphql.NewFieldSet(fields)
  1934  	var invalids uint32
  1935  	for i, field := range fields {
  1936  		switch field.Name {
  1937  		case "__typename":
  1938  			out.Values[i] = graphql.MarshalString("Address")
  1939  		case "id":
  1940  			out.Values[i] = ec._Address_id(ctx, field, obj)
  1941  			if out.Values[i] == graphql.Null {
  1942  				invalids++
  1943  			}
  1944  		case "location":
  1945  			out.Values[i] = ec._Address_location(ctx, field, obj)
  1946  		default:
  1947  			panic("unknown field " + strconv.Quote(field.Name))
  1948  		}
  1949  	}
  1950  	out.Dispatch()
  1951  	if invalids > 0 {
  1952  		return graphql.Null
  1953  	}
  1954  	return out
  1955  }
  1956  
  1957  var queryImplementors = []string{"Query"}
  1958  
  1959  func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
  1960  	fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
  1961  
  1962  	ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
  1963  		Object: "Query",
  1964  	})
  1965  
  1966  	out := graphql.NewFieldSet(fields)
  1967  	var invalids uint32
  1968  	for i, field := range fields {
  1969  		switch field.Name {
  1970  		case "__typename":
  1971  			out.Values[i] = graphql.MarshalString("Query")
  1972  		case "user":
  1973  			field := field
  1974  			out.Concurrently(i, func() (res graphql.Marshaler) {
  1975  				defer func() {
  1976  					if r := recover(); r != nil {
  1977  						ec.Error(ctx, ec.Recover(ctx, r))
  1978  					}
  1979  				}()
  1980  				res = ec._Query_user(ctx, field)
  1981  				return res
  1982  			})
  1983  		case "search":
  1984  			field := field
  1985  			out.Concurrently(i, func() (res graphql.Marshaler) {
  1986  				defer func() {
  1987  					if r := recover(); r != nil {
  1988  						ec.Error(ctx, ec.Recover(ctx, r))
  1989  					}
  1990  				}()
  1991  				res = ec._Query_search(ctx, field)
  1992  				if res == graphql.Null {
  1993  					atomic.AddUint32(&invalids, 1)
  1994  				}
  1995  				return res
  1996  			})
  1997  		case "__type":
  1998  			out.Values[i] = ec._Query___type(ctx, field)
  1999  		case "__schema":
  2000  			out.Values[i] = ec._Query___schema(ctx, field)
  2001  		default:
  2002  			panic("unknown field " + strconv.Quote(field.Name))
  2003  		}
  2004  	}
  2005  	out.Dispatch()
  2006  	if invalids > 0 {
  2007  		return graphql.Null
  2008  	}
  2009  	return out
  2010  }
  2011  
  2012  var userImplementors = []string{"User"}
  2013  
  2014  func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *model.User) graphql.Marshaler {
  2015  	fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors)
  2016  
  2017  	out := graphql.NewFieldSet(fields)
  2018  	var invalids uint32
  2019  	for i, field := range fields {
  2020  		switch field.Name {
  2021  		case "__typename":
  2022  			out.Values[i] = graphql.MarshalString("User")
  2023  		case "id":
  2024  			out.Values[i] = ec._User_id(ctx, field, obj)
  2025  			if out.Values[i] == graphql.Null {
  2026  				atomic.AddUint32(&invalids, 1)
  2027  			}
  2028  		case "name":
  2029  			out.Values[i] = ec._User_name(ctx, field, obj)
  2030  			if out.Values[i] == graphql.Null {
  2031  				atomic.AddUint32(&invalids, 1)
  2032  			}
  2033  		case "created":
  2034  			out.Values[i] = ec._User_created(ctx, field, obj)
  2035  		case "isBanned":
  2036  			out.Values[i] = ec._User_isBanned(ctx, field, obj)
  2037  			if out.Values[i] == graphql.Null {
  2038  				atomic.AddUint32(&invalids, 1)
  2039  			}
  2040  		case "primitiveResolver":
  2041  			field := field
  2042  			out.Concurrently(i, func() (res graphql.Marshaler) {
  2043  				defer func() {
  2044  					if r := recover(); r != nil {
  2045  						ec.Error(ctx, ec.Recover(ctx, r))
  2046  					}
  2047  				}()
  2048  				res = ec._User_primitiveResolver(ctx, field, obj)
  2049  				if res == graphql.Null {
  2050  					atomic.AddUint32(&invalids, 1)
  2051  				}
  2052  				return res
  2053  			})
  2054  		case "customResolver":
  2055  			field := field
  2056  			out.Concurrently(i, func() (res graphql.Marshaler) {
  2057  				defer func() {
  2058  					if r := recover(); r != nil {
  2059  						ec.Error(ctx, ec.Recover(ctx, r))
  2060  					}
  2061  				}()
  2062  				res = ec._User_customResolver(ctx, field, obj)
  2063  				if res == graphql.Null {
  2064  					atomic.AddUint32(&invalids, 1)
  2065  				}
  2066  				return res
  2067  			})
  2068  		case "address":
  2069  			out.Values[i] = ec._User_address(ctx, field, obj)
  2070  		case "tier":
  2071  			out.Values[i] = ec._User_tier(ctx, field, obj)
  2072  		default:
  2073  			panic("unknown field " + strconv.Quote(field.Name))
  2074  		}
  2075  	}
  2076  	out.Dispatch()
  2077  	if invalids > 0 {
  2078  		return graphql.Null
  2079  	}
  2080  	return out
  2081  }
  2082  
  2083  var __DirectiveImplementors = []string{"__Directive"}
  2084  
  2085  func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
  2086  	fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
  2087  
  2088  	out := graphql.NewFieldSet(fields)
  2089  	var invalids uint32
  2090  	for i, field := range fields {
  2091  		switch field.Name {
  2092  		case "__typename":
  2093  			out.Values[i] = graphql.MarshalString("__Directive")
  2094  		case "name":
  2095  			out.Values[i] = ec.___Directive_name(ctx, field, obj)
  2096  			if out.Values[i] == graphql.Null {
  2097  				invalids++
  2098  			}
  2099  		case "description":
  2100  			out.Values[i] = ec.___Directive_description(ctx, field, obj)
  2101  		case "locations":
  2102  			out.Values[i] = ec.___Directive_locations(ctx, field, obj)
  2103  			if out.Values[i] == graphql.Null {
  2104  				invalids++
  2105  			}
  2106  		case "args":
  2107  			out.Values[i] = ec.___Directive_args(ctx, field, obj)
  2108  			if out.Values[i] == graphql.Null {
  2109  				invalids++
  2110  			}
  2111  		default:
  2112  			panic("unknown field " + strconv.Quote(field.Name))
  2113  		}
  2114  	}
  2115  	out.Dispatch()
  2116  	if invalids > 0 {
  2117  		return graphql.Null
  2118  	}
  2119  	return out
  2120  }
  2121  
  2122  var __EnumValueImplementors = []string{"__EnumValue"}
  2123  
  2124  func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
  2125  	fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
  2126  
  2127  	out := graphql.NewFieldSet(fields)
  2128  	var invalids uint32
  2129  	for i, field := range fields {
  2130  		switch field.Name {
  2131  		case "__typename":
  2132  			out.Values[i] = graphql.MarshalString("__EnumValue")
  2133  		case "name":
  2134  			out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
  2135  			if out.Values[i] == graphql.Null {
  2136  				invalids++
  2137  			}
  2138  		case "description":
  2139  			out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
  2140  		case "isDeprecated":
  2141  			out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
  2142  			if out.Values[i] == graphql.Null {
  2143  				invalids++
  2144  			}
  2145  		case "deprecationReason":
  2146  			out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
  2147  		default:
  2148  			panic("unknown field " + strconv.Quote(field.Name))
  2149  		}
  2150  	}
  2151  	out.Dispatch()
  2152  	if invalids > 0 {
  2153  		return graphql.Null
  2154  	}
  2155  	return out
  2156  }
  2157  
  2158  var __FieldImplementors = []string{"__Field"}
  2159  
  2160  func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
  2161  	fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
  2162  
  2163  	out := graphql.NewFieldSet(fields)
  2164  	var invalids uint32
  2165  	for i, field := range fields {
  2166  		switch field.Name {
  2167  		case "__typename":
  2168  			out.Values[i] = graphql.MarshalString("__Field")
  2169  		case "name":
  2170  			out.Values[i] = ec.___Field_name(ctx, field, obj)
  2171  			if out.Values[i] == graphql.Null {
  2172  				invalids++
  2173  			}
  2174  		case "description":
  2175  			out.Values[i] = ec.___Field_description(ctx, field, obj)
  2176  		case "args":
  2177  			out.Values[i] = ec.___Field_args(ctx, field, obj)
  2178  			if out.Values[i] == graphql.Null {
  2179  				invalids++
  2180  			}
  2181  		case "type":
  2182  			out.Values[i] = ec.___Field_type(ctx, field, obj)
  2183  			if out.Values[i] == graphql.Null {
  2184  				invalids++
  2185  			}
  2186  		case "isDeprecated":
  2187  			out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
  2188  			if out.Values[i] == graphql.Null {
  2189  				invalids++
  2190  			}
  2191  		case "deprecationReason":
  2192  			out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
  2193  		default:
  2194  			panic("unknown field " + strconv.Quote(field.Name))
  2195  		}
  2196  	}
  2197  	out.Dispatch()
  2198  	if invalids > 0 {
  2199  		return graphql.Null
  2200  	}
  2201  	return out
  2202  }
  2203  
  2204  var __InputValueImplementors = []string{"__InputValue"}
  2205  
  2206  func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
  2207  	fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
  2208  
  2209  	out := graphql.NewFieldSet(fields)
  2210  	var invalids uint32
  2211  	for i, field := range fields {
  2212  		switch field.Name {
  2213  		case "__typename":
  2214  			out.Values[i] = graphql.MarshalString("__InputValue")
  2215  		case "name":
  2216  			out.Values[i] = ec.___InputValue_name(ctx, field, obj)
  2217  			if out.Values[i] == graphql.Null {
  2218  				invalids++
  2219  			}
  2220  		case "description":
  2221  			out.Values[i] = ec.___InputValue_description(ctx, field, obj)
  2222  		case "type":
  2223  			out.Values[i] = ec.___InputValue_type(ctx, field, obj)
  2224  			if out.Values[i] == graphql.Null {
  2225  				invalids++
  2226  			}
  2227  		case "defaultValue":
  2228  			out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
  2229  		default:
  2230  			panic("unknown field " + strconv.Quote(field.Name))
  2231  		}
  2232  	}
  2233  	out.Dispatch()
  2234  	if invalids > 0 {
  2235  		return graphql.Null
  2236  	}
  2237  	return out
  2238  }
  2239  
  2240  var __SchemaImplementors = []string{"__Schema"}
  2241  
  2242  func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
  2243  	fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
  2244  
  2245  	out := graphql.NewFieldSet(fields)
  2246  	var invalids uint32
  2247  	for i, field := range fields {
  2248  		switch field.Name {
  2249  		case "__typename":
  2250  			out.Values[i] = graphql.MarshalString("__Schema")
  2251  		case "types":
  2252  			out.Values[i] = ec.___Schema_types(ctx, field, obj)
  2253  			if out.Values[i] == graphql.Null {
  2254  				invalids++
  2255  			}
  2256  		case "queryType":
  2257  			out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
  2258  			if out.Values[i] == graphql.Null {
  2259  				invalids++
  2260  			}
  2261  		case "mutationType":
  2262  			out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
  2263  		case "subscriptionType":
  2264  			out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
  2265  		case "directives":
  2266  			out.Values[i] = ec.___Schema_directives(ctx, field, obj)
  2267  			if out.Values[i] == graphql.Null {
  2268  				invalids++
  2269  			}
  2270  		default:
  2271  			panic("unknown field " + strconv.Quote(field.Name))
  2272  		}
  2273  	}
  2274  	out.Dispatch()
  2275  	if invalids > 0 {
  2276  		return graphql.Null
  2277  	}
  2278  	return out
  2279  }
  2280  
  2281  var __TypeImplementors = []string{"__Type"}
  2282  
  2283  func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
  2284  	fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
  2285  
  2286  	out := graphql.NewFieldSet(fields)
  2287  	var invalids uint32
  2288  	for i, field := range fields {
  2289  		switch field.Name {
  2290  		case "__typename":
  2291  			out.Values[i] = graphql.MarshalString("__Type")
  2292  		case "kind":
  2293  			out.Values[i] = ec.___Type_kind(ctx, field, obj)
  2294  			if out.Values[i] == graphql.Null {
  2295  				invalids++
  2296  			}
  2297  		case "name":
  2298  			out.Values[i] = ec.___Type_name(ctx, field, obj)
  2299  		case "description":
  2300  			out.Values[i] = ec.___Type_description(ctx, field, obj)
  2301  		case "fields":
  2302  			out.Values[i] = ec.___Type_fields(ctx, field, obj)
  2303  		case "interfaces":
  2304  			out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
  2305  		case "possibleTypes":
  2306  			out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
  2307  		case "enumValues":
  2308  			out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
  2309  		case "inputFields":
  2310  			out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
  2311  		case "ofType":
  2312  			out.Values[i] = ec.___Type_ofType(ctx, field, obj)
  2313  		default:
  2314  			panic("unknown field " + strconv.Quote(field.Name))
  2315  		}
  2316  	}
  2317  	out.Dispatch()
  2318  	if invalids > 0 {
  2319  		return graphql.Null
  2320  	}
  2321  	return out
  2322  }
  2323  
  2324  // endregion **************************** object.gotpl ****************************
  2325  
  2326  // region    ***************************** type.gotpl *****************************
  2327  
  2328  func (ec *executionContext) unmarshalNBanned2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐBanned(ctx context.Context, v interface{}) (model.Banned, error) {
  2329  	var res model.Banned
  2330  	return res, res.UnmarshalGQL(v)
  2331  }
  2332  
  2333  func (ec *executionContext) marshalNBanned2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐBanned(ctx context.Context, sel ast.SelectionSet, v model.Banned) graphql.Marshaler {
  2334  	return v
  2335  }
  2336  
  2337  func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  2338  	return graphql.UnmarshalBoolean(v)
  2339  }
  2340  
  2341  func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  2342  	res := graphql.MarshalBoolean(v)
  2343  	if res == graphql.Null {
  2344  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  2345  			ec.Errorf(ctx, "must not be null")
  2346  		}
  2347  	}
  2348  	return res
  2349  }
  2350  
  2351  func (ec *executionContext) unmarshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋexternalᚐObjectID(ctx context.Context, v interface{}) (external.ObjectID, error) {
  2352  	return model.UnmarshalID(v)
  2353  }
  2354  
  2355  func (ec *executionContext) marshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋexternalᚐObjectID(ctx context.Context, sel ast.SelectionSet, v external.ObjectID) graphql.Marshaler {
  2356  	res := model.MarshalID(v)
  2357  	if res == graphql.Null {
  2358  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  2359  			ec.Errorf(ctx, "must not be null")
  2360  		}
  2361  	}
  2362  	return res
  2363  }
  2364  
  2365  func (ec *executionContext) unmarshalNPoint2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx context.Context, v interface{}) (model.Point, error) {
  2366  	var res model.Point
  2367  	return res, res.UnmarshalGQL(v)
  2368  }
  2369  
  2370  func (ec *executionContext) marshalNPoint2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx context.Context, sel ast.SelectionSet, v model.Point) graphql.Marshaler {
  2371  	return v
  2372  }
  2373  
  2374  func (ec *executionContext) unmarshalNPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx context.Context, v interface{}) (*model.Point, error) {
  2375  	if v == nil {
  2376  		return nil, nil
  2377  	}
  2378  	res, err := ec.unmarshalNPoint2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx, v)
  2379  	return &res, err
  2380  }
  2381  
  2382  func (ec *executionContext) marshalNPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx context.Context, sel ast.SelectionSet, v *model.Point) graphql.Marshaler {
  2383  	if v == nil {
  2384  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  2385  			ec.Errorf(ctx, "must not be null")
  2386  		}
  2387  		return graphql.Null
  2388  	}
  2389  	return v
  2390  }
  2391  
  2392  func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
  2393  	return graphql.UnmarshalString(v)
  2394  }
  2395  
  2396  func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  2397  	res := graphql.MarshalString(v)
  2398  	if res == graphql.Null {
  2399  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  2400  			ec.Errorf(ctx, "must not be null")
  2401  		}
  2402  	}
  2403  	return res
  2404  }
  2405  
  2406  func (ec *executionContext) marshalNUser2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v model.User) graphql.Marshaler {
  2407  	return ec._User(ctx, sel, &v)
  2408  }
  2409  
  2410  func (ec *executionContext) marshalNUser2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐUserᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.User) graphql.Marshaler {
  2411  	ret := make(graphql.Array, len(v))
  2412  	var wg sync.WaitGroup
  2413  	isLen1 := len(v) == 1
  2414  	if !isLen1 {
  2415  		wg.Add(len(v))
  2416  	}
  2417  	for i := range v {
  2418  		i := i
  2419  		fc := &graphql.FieldContext{
  2420  			Index:  &i,
  2421  			Result: &v[i],
  2422  		}
  2423  		ctx := graphql.WithFieldContext(ctx, fc)
  2424  		f := func(i int) {
  2425  			defer func() {
  2426  				if r := recover(); r != nil {
  2427  					ec.Error(ctx, ec.Recover(ctx, r))
  2428  					ret = nil
  2429  				}
  2430  			}()
  2431  			if !isLen1 {
  2432  				defer wg.Done()
  2433  			}
  2434  			ret[i] = ec.marshalNUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐUser(ctx, sel, v[i])
  2435  		}
  2436  		if isLen1 {
  2437  			f(i)
  2438  		} else {
  2439  			go f(i)
  2440  		}
  2441  
  2442  	}
  2443  	wg.Wait()
  2444  	return ret
  2445  }
  2446  
  2447  func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model.User) graphql.Marshaler {
  2448  	if v == nil {
  2449  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  2450  			ec.Errorf(ctx, "must not be null")
  2451  		}
  2452  		return graphql.Null
  2453  	}
  2454  	return ec._User(ctx, sel, v)
  2455  }
  2456  
  2457  func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
  2458  	return ec.___Directive(ctx, sel, &v)
  2459  }
  2460  
  2461  func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
  2462  	ret := make(graphql.Array, len(v))
  2463  	var wg sync.WaitGroup
  2464  	isLen1 := len(v) == 1
  2465  	if !isLen1 {
  2466  		wg.Add(len(v))
  2467  	}
  2468  	for i := range v {
  2469  		i := i
  2470  		fc := &graphql.FieldContext{
  2471  			Index:  &i,
  2472  			Result: &v[i],
  2473  		}
  2474  		ctx := graphql.WithFieldContext(ctx, fc)
  2475  		f := func(i int) {
  2476  			defer func() {
  2477  				if r := recover(); r != nil {
  2478  					ec.Error(ctx, ec.Recover(ctx, r))
  2479  					ret = nil
  2480  				}
  2481  			}()
  2482  			if !isLen1 {
  2483  				defer wg.Done()
  2484  			}
  2485  			ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
  2486  		}
  2487  		if isLen1 {
  2488  			f(i)
  2489  		} else {
  2490  			go f(i)
  2491  		}
  2492  
  2493  	}
  2494  	wg.Wait()
  2495  	return ret
  2496  }
  2497  
  2498  func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
  2499  	return graphql.UnmarshalString(v)
  2500  }
  2501  
  2502  func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  2503  	res := graphql.MarshalString(v)
  2504  	if res == graphql.Null {
  2505  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  2506  			ec.Errorf(ctx, "must not be null")
  2507  		}
  2508  	}
  2509  	return res
  2510  }
  2511  
  2512  func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  2513  	var vSlice []interface{}
  2514  	if v != nil {
  2515  		if tmp1, ok := v.([]interface{}); ok {
  2516  			vSlice = tmp1
  2517  		} else {
  2518  			vSlice = []interface{}{v}
  2519  		}
  2520  	}
  2521  	var err error
  2522  	res := make([]string, len(vSlice))
  2523  	for i := range vSlice {
  2524  		res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
  2525  		if err != nil {
  2526  			return nil, err
  2527  		}
  2528  	}
  2529  	return res, nil
  2530  }
  2531  
  2532  func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  2533  	ret := make(graphql.Array, len(v))
  2534  	var wg sync.WaitGroup
  2535  	isLen1 := len(v) == 1
  2536  	if !isLen1 {
  2537  		wg.Add(len(v))
  2538  	}
  2539  	for i := range v {
  2540  		i := i
  2541  		fc := &graphql.FieldContext{
  2542  			Index:  &i,
  2543  			Result: &v[i],
  2544  		}
  2545  		ctx := graphql.WithFieldContext(ctx, fc)
  2546  		f := func(i int) {
  2547  			defer func() {
  2548  				if r := recover(); r != nil {
  2549  					ec.Error(ctx, ec.Recover(ctx, r))
  2550  					ret = nil
  2551  				}
  2552  			}()
  2553  			if !isLen1 {
  2554  				defer wg.Done()
  2555  			}
  2556  			ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
  2557  		}
  2558  		if isLen1 {
  2559  			f(i)
  2560  		} else {
  2561  			go f(i)
  2562  		}
  2563  
  2564  	}
  2565  	wg.Wait()
  2566  	return ret
  2567  }
  2568  
  2569  func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
  2570  	return ec.___EnumValue(ctx, sel, &v)
  2571  }
  2572  
  2573  func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
  2574  	return ec.___Field(ctx, sel, &v)
  2575  }
  2576  
  2577  func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
  2578  	return ec.___InputValue(ctx, sel, &v)
  2579  }
  2580  
  2581  func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  2582  	ret := make(graphql.Array, len(v))
  2583  	var wg sync.WaitGroup
  2584  	isLen1 := len(v) == 1
  2585  	if !isLen1 {
  2586  		wg.Add(len(v))
  2587  	}
  2588  	for i := range v {
  2589  		i := i
  2590  		fc := &graphql.FieldContext{
  2591  			Index:  &i,
  2592  			Result: &v[i],
  2593  		}
  2594  		ctx := graphql.WithFieldContext(ctx, fc)
  2595  		f := func(i int) {
  2596  			defer func() {
  2597  				if r := recover(); r != nil {
  2598  					ec.Error(ctx, ec.Recover(ctx, r))
  2599  					ret = nil
  2600  				}
  2601  			}()
  2602  			if !isLen1 {
  2603  				defer wg.Done()
  2604  			}
  2605  			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  2606  		}
  2607  		if isLen1 {
  2608  			f(i)
  2609  		} else {
  2610  			go f(i)
  2611  		}
  2612  
  2613  	}
  2614  	wg.Wait()
  2615  	return ret
  2616  }
  2617  
  2618  func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
  2619  	return ec.___Type(ctx, sel, &v)
  2620  }
  2621  
  2622  func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  2623  	ret := make(graphql.Array, len(v))
  2624  	var wg sync.WaitGroup
  2625  	isLen1 := len(v) == 1
  2626  	if !isLen1 {
  2627  		wg.Add(len(v))
  2628  	}
  2629  	for i := range v {
  2630  		i := i
  2631  		fc := &graphql.FieldContext{
  2632  			Index:  &i,
  2633  			Result: &v[i],
  2634  		}
  2635  		ctx := graphql.WithFieldContext(ctx, fc)
  2636  		f := func(i int) {
  2637  			defer func() {
  2638  				if r := recover(); r != nil {
  2639  					ec.Error(ctx, ec.Recover(ctx, r))
  2640  					ret = nil
  2641  				}
  2642  			}()
  2643  			if !isLen1 {
  2644  				defer wg.Done()
  2645  			}
  2646  			ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  2647  		}
  2648  		if isLen1 {
  2649  			f(i)
  2650  		} else {
  2651  			go f(i)
  2652  		}
  2653  
  2654  	}
  2655  	wg.Wait()
  2656  	return ret
  2657  }
  2658  
  2659  func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  2660  	if v == nil {
  2661  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  2662  			ec.Errorf(ctx, "must not be null")
  2663  		}
  2664  		return graphql.Null
  2665  	}
  2666  	return ec.___Type(ctx, sel, v)
  2667  }
  2668  
  2669  func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
  2670  	return graphql.UnmarshalString(v)
  2671  }
  2672  
  2673  func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  2674  	res := graphql.MarshalString(v)
  2675  	if res == graphql.Null {
  2676  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  2677  			ec.Errorf(ctx, "must not be null")
  2678  		}
  2679  	}
  2680  	return res
  2681  }
  2682  
  2683  func (ec *executionContext) marshalOAddress2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐAddress(ctx context.Context, sel ast.SelectionSet, v model.Address) graphql.Marshaler {
  2684  	return ec._Address(ctx, sel, &v)
  2685  }
  2686  
  2687  func (ec *executionContext) unmarshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐBanned(ctx context.Context, v interface{}) (model.Banned, error) {
  2688  	var res model.Banned
  2689  	return res, res.UnmarshalGQL(v)
  2690  }
  2691  
  2692  func (ec *executionContext) marshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐBanned(ctx context.Context, sel ast.SelectionSet, v model.Banned) graphql.Marshaler {
  2693  	return v
  2694  }
  2695  
  2696  func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  2697  	return graphql.UnmarshalBoolean(v)
  2698  }
  2699  
  2700  func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  2701  	return graphql.MarshalBoolean(v)
  2702  }
  2703  
  2704  func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
  2705  	if v == nil {
  2706  		return nil, nil
  2707  	}
  2708  	res, err := ec.unmarshalOBoolean2bool(ctx, v)
  2709  	return &res, err
  2710  }
  2711  
  2712  func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
  2713  	if v == nil {
  2714  		return graphql.Null
  2715  	}
  2716  	return ec.marshalOBoolean2bool(ctx, sel, *v)
  2717  }
  2718  
  2719  func (ec *executionContext) unmarshalOPoint2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx context.Context, v interface{}) (model.Point, error) {
  2720  	var res model.Point
  2721  	return res, res.UnmarshalGQL(v)
  2722  }
  2723  
  2724  func (ec *executionContext) marshalOPoint2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx context.Context, sel ast.SelectionSet, v model.Point) graphql.Marshaler {
  2725  	return v
  2726  }
  2727  
  2728  func (ec *executionContext) unmarshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx context.Context, v interface{}) (*model.Point, error) {
  2729  	if v == nil {
  2730  		return nil, nil
  2731  	}
  2732  	res, err := ec.unmarshalOPoint2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx, v)
  2733  	return &res, err
  2734  }
  2735  
  2736  func (ec *executionContext) marshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx context.Context, sel ast.SelectionSet, v *model.Point) graphql.Marshaler {
  2737  	if v == nil {
  2738  		return graphql.Null
  2739  	}
  2740  	return v
  2741  }
  2742  
  2743  func (ec *executionContext) unmarshalOSearchArgs2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐSearchArgs(ctx context.Context, v interface{}) (model.SearchArgs, error) {
  2744  	return ec.unmarshalInputSearchArgs(ctx, v)
  2745  }
  2746  
  2747  func (ec *executionContext) unmarshalOSearchArgs2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐSearchArgs(ctx context.Context, v interface{}) (*model.SearchArgs, error) {
  2748  	if v == nil {
  2749  		return nil, nil
  2750  	}
  2751  	res, err := ec.unmarshalOSearchArgs2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐSearchArgs(ctx, v)
  2752  	return &res, err
  2753  }
  2754  
  2755  func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
  2756  	return graphql.UnmarshalString(v)
  2757  }
  2758  
  2759  func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  2760  	return graphql.MarshalString(v)
  2761  }
  2762  
  2763  func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  2764  	if v == nil {
  2765  		return nil, nil
  2766  	}
  2767  	res, err := ec.unmarshalOString2string(ctx, v)
  2768  	return &res, err
  2769  }
  2770  
  2771  func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  2772  	if v == nil {
  2773  		return graphql.Null
  2774  	}
  2775  	return ec.marshalOString2string(ctx, sel, *v)
  2776  }
  2777  
  2778  func (ec *executionContext) unmarshalOTier2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐTier(ctx context.Context, v interface{}) (model.Tier, error) {
  2779  	var res model.Tier
  2780  	return res, res.UnmarshalGQL(v)
  2781  }
  2782  
  2783  func (ec *executionContext) marshalOTier2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐTier(ctx context.Context, sel ast.SelectionSet, v model.Tier) graphql.Marshaler {
  2784  	return v
  2785  }
  2786  
  2787  func (ec *executionContext) unmarshalOTimestamp2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) {
  2788  	return model.UnmarshalTimestamp(v)
  2789  }
  2790  
  2791  func (ec *executionContext) marshalOTimestamp2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
  2792  	return model.MarshalTimestamp(v)
  2793  }
  2794  
  2795  func (ec *executionContext) unmarshalOTimestamp2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) {
  2796  	if v == nil {
  2797  		return nil, nil
  2798  	}
  2799  	res, err := ec.unmarshalOTimestamp2timeᚐTime(ctx, v)
  2800  	return &res, err
  2801  }
  2802  
  2803  func (ec *executionContext) marshalOTimestamp2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
  2804  	if v == nil {
  2805  		return graphql.Null
  2806  	}
  2807  	return ec.marshalOTimestamp2timeᚐTime(ctx, sel, *v)
  2808  }
  2809  
  2810  func (ec *executionContext) marshalOUser2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v model.User) graphql.Marshaler {
  2811  	return ec._User(ctx, sel, &v)
  2812  }
  2813  
  2814  func (ec *executionContext) marshalOUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model.User) graphql.Marshaler {
  2815  	if v == nil {
  2816  		return graphql.Null
  2817  	}
  2818  	return ec._User(ctx, sel, v)
  2819  }
  2820  
  2821  func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
  2822  	if v == nil {
  2823  		return graphql.Null
  2824  	}
  2825  	ret := make(graphql.Array, len(v))
  2826  	var wg sync.WaitGroup
  2827  	isLen1 := len(v) == 1
  2828  	if !isLen1 {
  2829  		wg.Add(len(v))
  2830  	}
  2831  	for i := range v {
  2832  		i := i
  2833  		fc := &graphql.FieldContext{
  2834  			Index:  &i,
  2835  			Result: &v[i],
  2836  		}
  2837  		ctx := graphql.WithFieldContext(ctx, fc)
  2838  		f := func(i int) {
  2839  			defer func() {
  2840  				if r := recover(); r != nil {
  2841  					ec.Error(ctx, ec.Recover(ctx, r))
  2842  					ret = nil
  2843  				}
  2844  			}()
  2845  			if !isLen1 {
  2846  				defer wg.Done()
  2847  			}
  2848  			ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
  2849  		}
  2850  		if isLen1 {
  2851  			f(i)
  2852  		} else {
  2853  			go f(i)
  2854  		}
  2855  
  2856  	}
  2857  	wg.Wait()
  2858  	return ret
  2859  }
  2860  
  2861  func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
  2862  	if v == nil {
  2863  		return graphql.Null
  2864  	}
  2865  	ret := make(graphql.Array, len(v))
  2866  	var wg sync.WaitGroup
  2867  	isLen1 := len(v) == 1
  2868  	if !isLen1 {
  2869  		wg.Add(len(v))
  2870  	}
  2871  	for i := range v {
  2872  		i := i
  2873  		fc := &graphql.FieldContext{
  2874  			Index:  &i,
  2875  			Result: &v[i],
  2876  		}
  2877  		ctx := graphql.WithFieldContext(ctx, fc)
  2878  		f := func(i int) {
  2879  			defer func() {
  2880  				if r := recover(); r != nil {
  2881  					ec.Error(ctx, ec.Recover(ctx, r))
  2882  					ret = nil
  2883  				}
  2884  			}()
  2885  			if !isLen1 {
  2886  				defer wg.Done()
  2887  			}
  2888  			ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
  2889  		}
  2890  		if isLen1 {
  2891  			f(i)
  2892  		} else {
  2893  			go f(i)
  2894  		}
  2895  
  2896  	}
  2897  	wg.Wait()
  2898  	return ret
  2899  }
  2900  
  2901  func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  2902  	if v == nil {
  2903  		return graphql.Null
  2904  	}
  2905  	ret := make(graphql.Array, len(v))
  2906  	var wg sync.WaitGroup
  2907  	isLen1 := len(v) == 1
  2908  	if !isLen1 {
  2909  		wg.Add(len(v))
  2910  	}
  2911  	for i := range v {
  2912  		i := i
  2913  		fc := &graphql.FieldContext{
  2914  			Index:  &i,
  2915  			Result: &v[i],
  2916  		}
  2917  		ctx := graphql.WithFieldContext(ctx, fc)
  2918  		f := func(i int) {
  2919  			defer func() {
  2920  				if r := recover(); r != nil {
  2921  					ec.Error(ctx, ec.Recover(ctx, r))
  2922  					ret = nil
  2923  				}
  2924  			}()
  2925  			if !isLen1 {
  2926  				defer wg.Done()
  2927  			}
  2928  			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  2929  		}
  2930  		if isLen1 {
  2931  			f(i)
  2932  		} else {
  2933  			go f(i)
  2934  		}
  2935  
  2936  	}
  2937  	wg.Wait()
  2938  	return ret
  2939  }
  2940  
  2941  func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v introspection.Schema) graphql.Marshaler {
  2942  	return ec.___Schema(ctx, sel, &v)
  2943  }
  2944  
  2945  func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
  2946  	if v == nil {
  2947  		return graphql.Null
  2948  	}
  2949  	return ec.___Schema(ctx, sel, v)
  2950  }
  2951  
  2952  func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
  2953  	return ec.___Type(ctx, sel, &v)
  2954  }
  2955  
  2956  func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  2957  	if v == nil {
  2958  		return graphql.Null
  2959  	}
  2960  	ret := make(graphql.Array, len(v))
  2961  	var wg sync.WaitGroup
  2962  	isLen1 := len(v) == 1
  2963  	if !isLen1 {
  2964  		wg.Add(len(v))
  2965  	}
  2966  	for i := range v {
  2967  		i := i
  2968  		fc := &graphql.FieldContext{
  2969  			Index:  &i,
  2970  			Result: &v[i],
  2971  		}
  2972  		ctx := graphql.WithFieldContext(ctx, fc)
  2973  		f := func(i int) {
  2974  			defer func() {
  2975  				if r := recover(); r != nil {
  2976  					ec.Error(ctx, ec.Recover(ctx, r))
  2977  					ret = nil
  2978  				}
  2979  			}()
  2980  			if !isLen1 {
  2981  				defer wg.Done()
  2982  			}
  2983  			ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  2984  		}
  2985  		if isLen1 {
  2986  			f(i)
  2987  		} else {
  2988  			go f(i)
  2989  		}
  2990  
  2991  	}
  2992  	wg.Wait()
  2993  	return ret
  2994  }
  2995  
  2996  func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  2997  	if v == nil {
  2998  		return graphql.Null
  2999  	}
  3000  	return ec.___Type(ctx, sel, v)
  3001  }
  3002  
  3003  // endregion ***************************** type.gotpl *****************************