github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/example/fileupload/generated.go (about)

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