github.com/geneva/gqlgen@v0.17.7-0.20230801155730-7b9317164836/integration/server/generated.go (about)

     1  // Code generated by github.com/geneva/gqlgen, DO NOT EDIT.
     2  
     3  package server
     4  
     5  import (
     6  	"bytes"
     7  	"context"
     8  	"embed"
     9  	"errors"
    10  	"fmt"
    11  	"strconv"
    12  	"sync"
    13  	"sync/atomic"
    14  
    15  	"github.com/geneva/gqlgen/graphql"
    16  	"github.com/geneva/gqlgen/graphql/introspection"
    17  	models "github.com/geneva/gqlgen/integration/server/models-go"
    18  	"github.com/geneva/gqlgen/integration/server/remote_api"
    19  	"github.com/geneva/gqlgen/integration/server/testomitempty"
    20  	gqlparser "github.com/vektah/gqlparser/v2"
    21  	"github.com/vektah/gqlparser/v2/ast"
    22  )
    23  
    24  // region    ************************** generated!.gotpl **************************
    25  
    26  // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
    27  func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
    28  	return &executableSchema{
    29  		resolvers:  cfg.Resolvers,
    30  		directives: cfg.Directives,
    31  		complexity: cfg.Complexity,
    32  	}
    33  }
    34  
    35  type Config struct {
    36  	Resolvers  ResolverRoot
    37  	Directives DirectiveRoot
    38  	Complexity ComplexityRoot
    39  }
    40  
    41  type ResolverRoot interface {
    42  	Element() ElementResolver
    43  	Query() QueryResolver
    44  	User() UserResolver
    45  }
    46  
    47  type DirectiveRoot struct {
    48  	Magic func(ctx context.Context, obj interface{}, next graphql.Resolver, kind *int) (res interface{}, err error)
    49  }
    50  
    51  type ComplexityRoot struct {
    52  	Element struct {
    53  		Child      func(childComplexity int) int
    54  		Error      func(childComplexity int) int
    55  		Mismatched func(childComplexity int) int
    56  	}
    57  
    58  	Query struct {
    59  		Coercion     func(childComplexity int, value []*models.ListCoercion) int
    60  		Complexity   func(childComplexity int, value int) int
    61  		Date         func(childComplexity int, filter models.DateFilter) int
    62  		Error        func(childComplexity int, typeArg *models.ErrorType) int
    63  		JSONEncoding func(childComplexity int) int
    64  		Path         func(childComplexity int) int
    65  		Viewer       func(childComplexity int) int
    66  	}
    67  
    68  	RemoteModelWithOmitempty struct {
    69  		Description func(childComplexity int) int
    70  	}
    71  
    72  	User struct {
    73  		Likes       func(childComplexity int) int
    74  		Name        func(childComplexity int) int
    75  		PhoneNumber func(childComplexity int) int
    76  	}
    77  
    78  	Viewer struct {
    79  		User func(childComplexity int) int
    80  	}
    81  }
    82  
    83  type ElementResolver interface {
    84  	Child(ctx context.Context, obj *models.Element) (*models.Element, error)
    85  	Error(ctx context.Context, obj *models.Element) (bool, error)
    86  	Mismatched(ctx context.Context, obj *models.Element) ([]bool, error)
    87  }
    88  type QueryResolver interface {
    89  	Path(ctx context.Context) ([]*models.Element, error)
    90  	Date(ctx context.Context, filter models.DateFilter) (bool, error)
    91  	Viewer(ctx context.Context) (*models.Viewer, error)
    92  	JSONEncoding(ctx context.Context) (string, error)
    93  	Error(ctx context.Context, typeArg *models.ErrorType) (bool, error)
    94  	Complexity(ctx context.Context, value int) (bool, error)
    95  	Coercion(ctx context.Context, value []*models.ListCoercion) (bool, error)
    96  }
    97  type UserResolver interface {
    98  	Likes(ctx context.Context, obj *remote_api.User) ([]string, error)
    99  }
   100  
   101  type executableSchema struct {
   102  	resolvers  ResolverRoot
   103  	directives DirectiveRoot
   104  	complexity ComplexityRoot
   105  }
   106  
   107  func (e *executableSchema) Schema() *ast.Schema {
   108  	return parsedSchema
   109  }
   110  
   111  func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
   112  	ec := executionContext{nil, e, 0, 0, nil}
   113  	_ = ec
   114  	switch typeName + "." + field {
   115  
   116  	case "Element.child":
   117  		if e.complexity.Element.Child == nil {
   118  			break
   119  		}
   120  
   121  		return e.complexity.Element.Child(childComplexity), true
   122  
   123  	case "Element.error":
   124  		if e.complexity.Element.Error == nil {
   125  			break
   126  		}
   127  
   128  		return e.complexity.Element.Error(childComplexity), true
   129  
   130  	case "Element.mismatched":
   131  		if e.complexity.Element.Mismatched == nil {
   132  			break
   133  		}
   134  
   135  		return e.complexity.Element.Mismatched(childComplexity), true
   136  
   137  	case "Query.coercion":
   138  		if e.complexity.Query.Coercion == nil {
   139  			break
   140  		}
   141  
   142  		args, err := ec.field_Query_coercion_args(context.TODO(), rawArgs)
   143  		if err != nil {
   144  			return 0, false
   145  		}
   146  
   147  		return e.complexity.Query.Coercion(childComplexity, args["value"].([]*models.ListCoercion)), true
   148  
   149  	case "Query.complexity":
   150  		if e.complexity.Query.Complexity == nil {
   151  			break
   152  		}
   153  
   154  		args, err := ec.field_Query_complexity_args(context.TODO(), rawArgs)
   155  		if err != nil {
   156  			return 0, false
   157  		}
   158  
   159  		return e.complexity.Query.Complexity(childComplexity, args["value"].(int)), true
   160  
   161  	case "Query.date":
   162  		if e.complexity.Query.Date == nil {
   163  			break
   164  		}
   165  
   166  		args, err := ec.field_Query_date_args(context.TODO(), rawArgs)
   167  		if err != nil {
   168  			return 0, false
   169  		}
   170  
   171  		return e.complexity.Query.Date(childComplexity, args["filter"].(models.DateFilter)), true
   172  
   173  	case "Query.error":
   174  		if e.complexity.Query.Error == nil {
   175  			break
   176  		}
   177  
   178  		args, err := ec.field_Query_error_args(context.TODO(), rawArgs)
   179  		if err != nil {
   180  			return 0, false
   181  		}
   182  
   183  		return e.complexity.Query.Error(childComplexity, args["type"].(*models.ErrorType)), true
   184  
   185  	case "Query.jsonEncoding":
   186  		if e.complexity.Query.JSONEncoding == nil {
   187  			break
   188  		}
   189  
   190  		return e.complexity.Query.JSONEncoding(childComplexity), true
   191  
   192  	case "Query.path":
   193  		if e.complexity.Query.Path == nil {
   194  			break
   195  		}
   196  
   197  		return e.complexity.Query.Path(childComplexity), true
   198  
   199  	case "Query.viewer":
   200  		if e.complexity.Query.Viewer == nil {
   201  			break
   202  		}
   203  
   204  		return e.complexity.Query.Viewer(childComplexity), true
   205  
   206  	case "RemoteModelWithOmitempty.newDesc":
   207  		if e.complexity.RemoteModelWithOmitempty.Description == nil {
   208  			break
   209  		}
   210  
   211  		return e.complexity.RemoteModelWithOmitempty.Description(childComplexity), true
   212  
   213  	case "User.likes":
   214  		if e.complexity.User.Likes == nil {
   215  			break
   216  		}
   217  
   218  		return e.complexity.User.Likes(childComplexity), true
   219  
   220  	case "User.name":
   221  		if e.complexity.User.Name == nil {
   222  			break
   223  		}
   224  
   225  		return e.complexity.User.Name(childComplexity), true
   226  
   227  	case "User.phoneNumber":
   228  		if e.complexity.User.PhoneNumber == nil {
   229  			break
   230  		}
   231  
   232  		return e.complexity.User.PhoneNumber(childComplexity), true
   233  
   234  	case "Viewer.user":
   235  		if e.complexity.Viewer.User == nil {
   236  			break
   237  		}
   238  
   239  		return e.complexity.Viewer.User(childComplexity), true
   240  
   241  	}
   242  	return 0, false
   243  }
   244  
   245  func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
   246  	rc := graphql.GetOperationContext(ctx)
   247  	ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)}
   248  	inputUnmarshalMap := graphql.BuildUnmarshalerMap(
   249  		ec.unmarshalInputDateFilter,
   250  		ec.unmarshalInputListCoercion,
   251  	)
   252  	first := true
   253  
   254  	switch rc.Operation.Operation {
   255  	case ast.Query:
   256  		return func(ctx context.Context) *graphql.Response {
   257  			var response graphql.Response
   258  			var data graphql.Marshaler
   259  			if first {
   260  				first = false
   261  				ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
   262  				data = ec._Query(ctx, rc.Operation.SelectionSet)
   263  			} else {
   264  				if atomic.LoadInt32(&ec.pendingDeferred) > 0 {
   265  					result := <-ec.deferredResults
   266  					atomic.AddInt32(&ec.pendingDeferred, -1)
   267  					data = result.Result
   268  					response.Path = result.Path
   269  					response.Label = result.Label
   270  					response.Errors = result.Errors
   271  				} else {
   272  					return nil
   273  				}
   274  			}
   275  			var buf bytes.Buffer
   276  			data.MarshalGQL(&buf)
   277  			response.Data = buf.Bytes()
   278  			if atomic.LoadInt32(&ec.deferred) > 0 {
   279  				hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0
   280  				response.HasNext = &hasNext
   281  			}
   282  
   283  			return &response
   284  		}
   285  
   286  	default:
   287  		return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
   288  	}
   289  }
   290  
   291  type executionContext struct {
   292  	*graphql.OperationContext
   293  	*executableSchema
   294  	deferred        int32
   295  	pendingDeferred int32
   296  	deferredResults chan graphql.DeferredResult
   297  }
   298  
   299  func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
   300  	atomic.AddInt32(&ec.pendingDeferred, 1)
   301  	go func() {
   302  		ctx := graphql.WithFreshResponseContext(dg.Context)
   303  		dg.FieldSet.Dispatch(ctx)
   304  		ds := graphql.DeferredResult{
   305  			Path:   dg.Path,
   306  			Label:  dg.Label,
   307  			Result: dg.FieldSet,
   308  			Errors: graphql.GetErrors(ctx),
   309  		}
   310  		// null fields should bubble up
   311  		if dg.FieldSet.Invalids > 0 {
   312  			ds.Result = graphql.Null
   313  		}
   314  		ec.deferredResults <- ds
   315  	}()
   316  }
   317  
   318  func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
   319  	if ec.DisableIntrospection {
   320  		return nil, errors.New("introspection disabled")
   321  	}
   322  	return introspection.WrapSchema(parsedSchema), nil
   323  }
   324  
   325  func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
   326  	if ec.DisableIntrospection {
   327  		return nil, errors.New("introspection disabled")
   328  	}
   329  	return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
   330  }
   331  
   332  //go:embed "schema/schema.graphql" "schema/testomitempty.graphql" "schema/user.graphql"
   333  var sourcesFS embed.FS
   334  
   335  func sourceData(filename string) string {
   336  	data, err := sourcesFS.ReadFile(filename)
   337  	if err != nil {
   338  		panic(fmt.Sprintf("codegen problem: %s not available", filename))
   339  	}
   340  	return string(data)
   341  }
   342  
   343  var sources = []*ast.Source{
   344  	{Name: "schema/schema.graphql", Input: sourceData("schema/schema.graphql"), BuiltIn: false},
   345  	{Name: "schema/testomitempty.graphql", Input: sourceData("schema/testomitempty.graphql"), BuiltIn: false},
   346  	{Name: "schema/user.graphql", Input: sourceData("schema/user.graphql"), BuiltIn: false},
   347  }
   348  var parsedSchema = gqlparser.MustLoadSchema(sources...)
   349  
   350  // endregion ************************** generated!.gotpl **************************
   351  
   352  // region    ***************************** args.gotpl *****************************
   353  
   354  func (ec *executionContext) dir_magic_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   355  	var err error
   356  	args := map[string]interface{}{}
   357  	var arg0 *int
   358  	if tmp, ok := rawArgs["kind"]; ok {
   359  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
   360  		arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
   361  		if err != nil {
   362  			return nil, err
   363  		}
   364  	}
   365  	args["kind"] = arg0
   366  	return args, nil
   367  }
   368  
   369  func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   370  	var err error
   371  	args := map[string]interface{}{}
   372  	var arg0 string
   373  	if tmp, ok := rawArgs["name"]; ok {
   374  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
   375  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
   376  		if err != nil {
   377  			return nil, err
   378  		}
   379  	}
   380  	args["name"] = arg0
   381  	return args, nil
   382  }
   383  
   384  func (ec *executionContext) field_Query_coercion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   385  	var err error
   386  	args := map[string]interface{}{}
   387  	var arg0 []*models.ListCoercion
   388  	if tmp, ok := rawArgs["value"]; ok {
   389  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
   390  		arg0, err = ec.unmarshalOListCoercion2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐListCoercionᚄ(ctx, tmp)
   391  		if err != nil {
   392  			return nil, err
   393  		}
   394  	}
   395  	args["value"] = arg0
   396  	return args, nil
   397  }
   398  
   399  func (ec *executionContext) field_Query_complexity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   400  	var err error
   401  	args := map[string]interface{}{}
   402  	var arg0 int
   403  	if tmp, ok := rawArgs["value"]; ok {
   404  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
   405  		arg0, err = ec.unmarshalNInt2int(ctx, tmp)
   406  		if err != nil {
   407  			return nil, err
   408  		}
   409  	}
   410  	args["value"] = arg0
   411  	return args, nil
   412  }
   413  
   414  func (ec *executionContext) field_Query_date_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   415  	var err error
   416  	args := map[string]interface{}{}
   417  	var arg0 models.DateFilter
   418  	if tmp, ok := rawArgs["filter"]; ok {
   419  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
   420  		arg0, err = ec.unmarshalNDateFilter2githubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilter(ctx, tmp)
   421  		if err != nil {
   422  			return nil, err
   423  		}
   424  	}
   425  	args["filter"] = arg0
   426  	return args, nil
   427  }
   428  
   429  func (ec *executionContext) field_Query_error_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   430  	var err error
   431  	args := map[string]interface{}{}
   432  	var arg0 *models.ErrorType
   433  	if tmp, ok := rawArgs["type"]; ok {
   434  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
   435  		arg0, err = ec.unmarshalOErrorType2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx, tmp)
   436  		if err != nil {
   437  			return nil, err
   438  		}
   439  	}
   440  	args["type"] = arg0
   441  	return args, nil
   442  }
   443  
   444  func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   445  	var err error
   446  	args := map[string]interface{}{}
   447  	var arg0 bool
   448  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
   449  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
   450  		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
   451  		if err != nil {
   452  			return nil, err
   453  		}
   454  	}
   455  	args["includeDeprecated"] = arg0
   456  	return args, nil
   457  }
   458  
   459  func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   460  	var err error
   461  	args := map[string]interface{}{}
   462  	var arg0 bool
   463  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
   464  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
   465  		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
   466  		if err != nil {
   467  			return nil, err
   468  		}
   469  	}
   470  	args["includeDeprecated"] = arg0
   471  	return args, nil
   472  }
   473  
   474  // endregion ***************************** args.gotpl *****************************
   475  
   476  // region    ************************** directives.gotpl **************************
   477  
   478  // endregion ************************** directives.gotpl **************************
   479  
   480  // region    **************************** field.gotpl *****************************
   481  
   482  func (ec *executionContext) _Element_child(ctx context.Context, field graphql.CollectedField, obj *models.Element) (ret graphql.Marshaler) {
   483  	fc, err := ec.fieldContext_Element_child(ctx, field)
   484  	if err != nil {
   485  		return graphql.Null
   486  	}
   487  	ctx = graphql.WithFieldContext(ctx, fc)
   488  	defer func() {
   489  		if r := recover(); r != nil {
   490  			ec.Error(ctx, ec.Recover(ctx, r))
   491  			ret = graphql.Null
   492  		}
   493  	}()
   494  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   495  		ctx = rctx // use context from middleware stack in children
   496  		return ec.resolvers.Element().Child(rctx, obj)
   497  	})
   498  	if err != nil {
   499  		ec.Error(ctx, err)
   500  		return graphql.Null
   501  	}
   502  	if resTmp == nil {
   503  		if !graphql.HasFieldError(ctx, fc) {
   504  			ec.Errorf(ctx, "must not be null")
   505  		}
   506  		return graphql.Null
   507  	}
   508  	res := resTmp.(*models.Element)
   509  	fc.Result = res
   510  	return ec.marshalNElement2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐElement(ctx, field.Selections, res)
   511  }
   512  
   513  func (ec *executionContext) fieldContext_Element_child(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   514  	fc = &graphql.FieldContext{
   515  		Object:     "Element",
   516  		Field:      field,
   517  		IsMethod:   true,
   518  		IsResolver: true,
   519  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   520  			switch field.Name {
   521  			case "child":
   522  				return ec.fieldContext_Element_child(ctx, field)
   523  			case "error":
   524  				return ec.fieldContext_Element_error(ctx, field)
   525  			case "mismatched":
   526  				return ec.fieldContext_Element_mismatched(ctx, field)
   527  			}
   528  			return nil, fmt.Errorf("no field named %q was found under type Element", field.Name)
   529  		},
   530  	}
   531  	return fc, nil
   532  }
   533  
   534  func (ec *executionContext) _Element_error(ctx context.Context, field graphql.CollectedField, obj *models.Element) (ret graphql.Marshaler) {
   535  	fc, err := ec.fieldContext_Element_error(ctx, field)
   536  	if err != nil {
   537  		return graphql.Null
   538  	}
   539  	ctx = graphql.WithFieldContext(ctx, fc)
   540  	defer func() {
   541  		if r := recover(); r != nil {
   542  			ec.Error(ctx, ec.Recover(ctx, r))
   543  			ret = graphql.Null
   544  		}
   545  	}()
   546  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   547  		ctx = rctx // use context from middleware stack in children
   548  		return ec.resolvers.Element().Error(rctx, obj)
   549  	})
   550  	if err != nil {
   551  		ec.Error(ctx, err)
   552  		return graphql.Null
   553  	}
   554  	if resTmp == nil {
   555  		if !graphql.HasFieldError(ctx, fc) {
   556  			ec.Errorf(ctx, "must not be null")
   557  		}
   558  		return graphql.Null
   559  	}
   560  	res := resTmp.(bool)
   561  	fc.Result = res
   562  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
   563  }
   564  
   565  func (ec *executionContext) fieldContext_Element_error(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   566  	fc = &graphql.FieldContext{
   567  		Object:     "Element",
   568  		Field:      field,
   569  		IsMethod:   true,
   570  		IsResolver: true,
   571  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   572  			return nil, errors.New("field of type Boolean does not have child fields")
   573  		},
   574  	}
   575  	return fc, nil
   576  }
   577  
   578  func (ec *executionContext) _Element_mismatched(ctx context.Context, field graphql.CollectedField, obj *models.Element) (ret graphql.Marshaler) {
   579  	fc, err := ec.fieldContext_Element_mismatched(ctx, field)
   580  	if err != nil {
   581  		return graphql.Null
   582  	}
   583  	ctx = graphql.WithFieldContext(ctx, fc)
   584  	defer func() {
   585  		if r := recover(); r != nil {
   586  			ec.Error(ctx, ec.Recover(ctx, r))
   587  			ret = graphql.Null
   588  		}
   589  	}()
   590  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   591  		ctx = rctx // use context from middleware stack in children
   592  		return ec.resolvers.Element().Mismatched(rctx, obj)
   593  	})
   594  	if err != nil {
   595  		ec.Error(ctx, err)
   596  		return graphql.Null
   597  	}
   598  	if resTmp == nil {
   599  		return graphql.Null
   600  	}
   601  	res := resTmp.([]bool)
   602  	fc.Result = res
   603  	return ec.marshalOBoolean2ᚕboolᚄ(ctx, field.Selections, res)
   604  }
   605  
   606  func (ec *executionContext) fieldContext_Element_mismatched(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   607  	fc = &graphql.FieldContext{
   608  		Object:     "Element",
   609  		Field:      field,
   610  		IsMethod:   true,
   611  		IsResolver: true,
   612  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   613  			return nil, errors.New("field of type Boolean does not have child fields")
   614  		},
   615  	}
   616  	return fc, nil
   617  }
   618  
   619  func (ec *executionContext) _Query_path(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   620  	fc, err := ec.fieldContext_Query_path(ctx, field)
   621  	if err != nil {
   622  		return graphql.Null
   623  	}
   624  	ctx = graphql.WithFieldContext(ctx, fc)
   625  	defer func() {
   626  		if r := recover(); r != nil {
   627  			ec.Error(ctx, ec.Recover(ctx, r))
   628  			ret = graphql.Null
   629  		}
   630  	}()
   631  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   632  		ctx = rctx // use context from middleware stack in children
   633  		return ec.resolvers.Query().Path(rctx)
   634  	})
   635  	if err != nil {
   636  		ec.Error(ctx, err)
   637  		return graphql.Null
   638  	}
   639  	if resTmp == nil {
   640  		return graphql.Null
   641  	}
   642  	res := resTmp.([]*models.Element)
   643  	fc.Result = res
   644  	return ec.marshalOElement2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐElement(ctx, field.Selections, res)
   645  }
   646  
   647  func (ec *executionContext) fieldContext_Query_path(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   648  	fc = &graphql.FieldContext{
   649  		Object:     "Query",
   650  		Field:      field,
   651  		IsMethod:   true,
   652  		IsResolver: true,
   653  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   654  			switch field.Name {
   655  			case "child":
   656  				return ec.fieldContext_Element_child(ctx, field)
   657  			case "error":
   658  				return ec.fieldContext_Element_error(ctx, field)
   659  			case "mismatched":
   660  				return ec.fieldContext_Element_mismatched(ctx, field)
   661  			}
   662  			return nil, fmt.Errorf("no field named %q was found under type Element", field.Name)
   663  		},
   664  	}
   665  	return fc, nil
   666  }
   667  
   668  func (ec *executionContext) _Query_date(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   669  	fc, err := ec.fieldContext_Query_date(ctx, field)
   670  	if err != nil {
   671  		return graphql.Null
   672  	}
   673  	ctx = graphql.WithFieldContext(ctx, fc)
   674  	defer func() {
   675  		if r := recover(); r != nil {
   676  			ec.Error(ctx, ec.Recover(ctx, r))
   677  			ret = graphql.Null
   678  		}
   679  	}()
   680  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   681  		ctx = rctx // use context from middleware stack in children
   682  		return ec.resolvers.Query().Date(rctx, fc.Args["filter"].(models.DateFilter))
   683  	})
   684  	if err != nil {
   685  		ec.Error(ctx, err)
   686  		return graphql.Null
   687  	}
   688  	if resTmp == nil {
   689  		if !graphql.HasFieldError(ctx, fc) {
   690  			ec.Errorf(ctx, "must not be null")
   691  		}
   692  		return graphql.Null
   693  	}
   694  	res := resTmp.(bool)
   695  	fc.Result = res
   696  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
   697  }
   698  
   699  func (ec *executionContext) fieldContext_Query_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   700  	fc = &graphql.FieldContext{
   701  		Object:     "Query",
   702  		Field:      field,
   703  		IsMethod:   true,
   704  		IsResolver: true,
   705  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   706  			return nil, errors.New("field of type Boolean does not have child fields")
   707  		},
   708  	}
   709  	defer func() {
   710  		if r := recover(); r != nil {
   711  			err = ec.Recover(ctx, r)
   712  			ec.Error(ctx, err)
   713  		}
   714  	}()
   715  	ctx = graphql.WithFieldContext(ctx, fc)
   716  	if fc.Args, err = ec.field_Query_date_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
   717  		ec.Error(ctx, err)
   718  		return fc, err
   719  	}
   720  	return fc, nil
   721  }
   722  
   723  func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   724  	fc, err := ec.fieldContext_Query_viewer(ctx, field)
   725  	if err != nil {
   726  		return graphql.Null
   727  	}
   728  	ctx = graphql.WithFieldContext(ctx, fc)
   729  	defer func() {
   730  		if r := recover(); r != nil {
   731  			ec.Error(ctx, ec.Recover(ctx, r))
   732  			ret = graphql.Null
   733  		}
   734  	}()
   735  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   736  		ctx = rctx // use context from middleware stack in children
   737  		return ec.resolvers.Query().Viewer(rctx)
   738  	})
   739  	if err != nil {
   740  		ec.Error(ctx, err)
   741  		return graphql.Null
   742  	}
   743  	if resTmp == nil {
   744  		return graphql.Null
   745  	}
   746  	res := resTmp.(*models.Viewer)
   747  	fc.Result = res
   748  	return ec.marshalOViewer2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐViewer(ctx, field.Selections, res)
   749  }
   750  
   751  func (ec *executionContext) fieldContext_Query_viewer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   752  	fc = &graphql.FieldContext{
   753  		Object:     "Query",
   754  		Field:      field,
   755  		IsMethod:   true,
   756  		IsResolver: true,
   757  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   758  			switch field.Name {
   759  			case "user":
   760  				return ec.fieldContext_Viewer_user(ctx, field)
   761  			}
   762  			return nil, fmt.Errorf("no field named %q was found under type Viewer", field.Name)
   763  		},
   764  	}
   765  	return fc, nil
   766  }
   767  
   768  func (ec *executionContext) _Query_jsonEncoding(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   769  	fc, err := ec.fieldContext_Query_jsonEncoding(ctx, field)
   770  	if err != nil {
   771  		return graphql.Null
   772  	}
   773  	ctx = graphql.WithFieldContext(ctx, fc)
   774  	defer func() {
   775  		if r := recover(); r != nil {
   776  			ec.Error(ctx, ec.Recover(ctx, r))
   777  			ret = graphql.Null
   778  		}
   779  	}()
   780  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   781  		ctx = rctx // use context from middleware stack in children
   782  		return ec.resolvers.Query().JSONEncoding(rctx)
   783  	})
   784  	if err != nil {
   785  		ec.Error(ctx, err)
   786  		return graphql.Null
   787  	}
   788  	if resTmp == nil {
   789  		if !graphql.HasFieldError(ctx, fc) {
   790  			ec.Errorf(ctx, "must not be null")
   791  		}
   792  		return graphql.Null
   793  	}
   794  	res := resTmp.(string)
   795  	fc.Result = res
   796  	return ec.marshalNString2string(ctx, field.Selections, res)
   797  }
   798  
   799  func (ec *executionContext) fieldContext_Query_jsonEncoding(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   800  	fc = &graphql.FieldContext{
   801  		Object:     "Query",
   802  		Field:      field,
   803  		IsMethod:   true,
   804  		IsResolver: true,
   805  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   806  			return nil, errors.New("field of type String does not have child fields")
   807  		},
   808  	}
   809  	return fc, nil
   810  }
   811  
   812  func (ec *executionContext) _Query_error(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   813  	fc, err := ec.fieldContext_Query_error(ctx, field)
   814  	if err != nil {
   815  		return graphql.Null
   816  	}
   817  	ctx = graphql.WithFieldContext(ctx, fc)
   818  	defer func() {
   819  		if r := recover(); r != nil {
   820  			ec.Error(ctx, ec.Recover(ctx, r))
   821  			ret = graphql.Null
   822  		}
   823  	}()
   824  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   825  		ctx = rctx // use context from middleware stack in children
   826  		return ec.resolvers.Query().Error(rctx, fc.Args["type"].(*models.ErrorType))
   827  	})
   828  	if err != nil {
   829  		ec.Error(ctx, err)
   830  		return graphql.Null
   831  	}
   832  	if resTmp == nil {
   833  		if !graphql.HasFieldError(ctx, fc) {
   834  			ec.Errorf(ctx, "must not be null")
   835  		}
   836  		return graphql.Null
   837  	}
   838  	res := resTmp.(bool)
   839  	fc.Result = res
   840  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
   841  }
   842  
   843  func (ec *executionContext) fieldContext_Query_error(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   844  	fc = &graphql.FieldContext{
   845  		Object:     "Query",
   846  		Field:      field,
   847  		IsMethod:   true,
   848  		IsResolver: true,
   849  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   850  			return nil, errors.New("field of type Boolean does not have child fields")
   851  		},
   852  	}
   853  	defer func() {
   854  		if r := recover(); r != nil {
   855  			err = ec.Recover(ctx, r)
   856  			ec.Error(ctx, err)
   857  		}
   858  	}()
   859  	ctx = graphql.WithFieldContext(ctx, fc)
   860  	if fc.Args, err = ec.field_Query_error_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
   861  		ec.Error(ctx, err)
   862  		return fc, err
   863  	}
   864  	return fc, nil
   865  }
   866  
   867  func (ec *executionContext) _Query_complexity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   868  	fc, err := ec.fieldContext_Query_complexity(ctx, field)
   869  	if err != nil {
   870  		return graphql.Null
   871  	}
   872  	ctx = graphql.WithFieldContext(ctx, fc)
   873  	defer func() {
   874  		if r := recover(); r != nil {
   875  			ec.Error(ctx, ec.Recover(ctx, r))
   876  			ret = graphql.Null
   877  		}
   878  	}()
   879  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   880  		ctx = rctx // use context from middleware stack in children
   881  		return ec.resolvers.Query().Complexity(rctx, fc.Args["value"].(int))
   882  	})
   883  	if err != nil {
   884  		ec.Error(ctx, err)
   885  		return graphql.Null
   886  	}
   887  	if resTmp == nil {
   888  		if !graphql.HasFieldError(ctx, fc) {
   889  			ec.Errorf(ctx, "must not be null")
   890  		}
   891  		return graphql.Null
   892  	}
   893  	res := resTmp.(bool)
   894  	fc.Result = res
   895  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
   896  }
   897  
   898  func (ec *executionContext) fieldContext_Query_complexity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   899  	fc = &graphql.FieldContext{
   900  		Object:     "Query",
   901  		Field:      field,
   902  		IsMethod:   true,
   903  		IsResolver: true,
   904  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   905  			return nil, errors.New("field of type Boolean does not have child fields")
   906  		},
   907  	}
   908  	defer func() {
   909  		if r := recover(); r != nil {
   910  			err = ec.Recover(ctx, r)
   911  			ec.Error(ctx, err)
   912  		}
   913  	}()
   914  	ctx = graphql.WithFieldContext(ctx, fc)
   915  	if fc.Args, err = ec.field_Query_complexity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
   916  		ec.Error(ctx, err)
   917  		return fc, err
   918  	}
   919  	return fc, nil
   920  }
   921  
   922  func (ec *executionContext) _Query_coercion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   923  	fc, err := ec.fieldContext_Query_coercion(ctx, field)
   924  	if err != nil {
   925  		return graphql.Null
   926  	}
   927  	ctx = graphql.WithFieldContext(ctx, fc)
   928  	defer func() {
   929  		if r := recover(); r != nil {
   930  			ec.Error(ctx, ec.Recover(ctx, r))
   931  			ret = graphql.Null
   932  		}
   933  	}()
   934  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   935  		ctx = rctx // use context from middleware stack in children
   936  		return ec.resolvers.Query().Coercion(rctx, fc.Args["value"].([]*models.ListCoercion))
   937  	})
   938  	if err != nil {
   939  		ec.Error(ctx, err)
   940  		return graphql.Null
   941  	}
   942  	if resTmp == nil {
   943  		if !graphql.HasFieldError(ctx, fc) {
   944  			ec.Errorf(ctx, "must not be null")
   945  		}
   946  		return graphql.Null
   947  	}
   948  	res := resTmp.(bool)
   949  	fc.Result = res
   950  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
   951  }
   952  
   953  func (ec *executionContext) fieldContext_Query_coercion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   954  	fc = &graphql.FieldContext{
   955  		Object:     "Query",
   956  		Field:      field,
   957  		IsMethod:   true,
   958  		IsResolver: true,
   959  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   960  			return nil, errors.New("field of type Boolean does not have child fields")
   961  		},
   962  	}
   963  	defer func() {
   964  		if r := recover(); r != nil {
   965  			err = ec.Recover(ctx, r)
   966  			ec.Error(ctx, err)
   967  		}
   968  	}()
   969  	ctx = graphql.WithFieldContext(ctx, fc)
   970  	if fc.Args, err = ec.field_Query_coercion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
   971  		ec.Error(ctx, err)
   972  		return fc, err
   973  	}
   974  	return fc, nil
   975  }
   976  
   977  func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
   978  	fc, err := ec.fieldContext_Query___type(ctx, field)
   979  	if err != nil {
   980  		return graphql.Null
   981  	}
   982  	ctx = graphql.WithFieldContext(ctx, fc)
   983  	defer func() {
   984  		if r := recover(); r != nil {
   985  			ec.Error(ctx, ec.Recover(ctx, r))
   986  			ret = graphql.Null
   987  		}
   988  	}()
   989  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
   990  		ctx = rctx // use context from middleware stack in children
   991  		return ec.introspectType(fc.Args["name"].(string))
   992  	})
   993  	if err != nil {
   994  		ec.Error(ctx, err)
   995  		return graphql.Null
   996  	}
   997  	if resTmp == nil {
   998  		return graphql.Null
   999  	}
  1000  	res := resTmp.(*introspection.Type)
  1001  	fc.Result = res
  1002  	return ec.marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1003  }
  1004  
  1005  func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1006  	fc = &graphql.FieldContext{
  1007  		Object:     "Query",
  1008  		Field:      field,
  1009  		IsMethod:   true,
  1010  		IsResolver: false,
  1011  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1012  			switch field.Name {
  1013  			case "kind":
  1014  				return ec.fieldContext___Type_kind(ctx, field)
  1015  			case "name":
  1016  				return ec.fieldContext___Type_name(ctx, field)
  1017  			case "description":
  1018  				return ec.fieldContext___Type_description(ctx, field)
  1019  			case "fields":
  1020  				return ec.fieldContext___Type_fields(ctx, field)
  1021  			case "interfaces":
  1022  				return ec.fieldContext___Type_interfaces(ctx, field)
  1023  			case "possibleTypes":
  1024  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  1025  			case "enumValues":
  1026  				return ec.fieldContext___Type_enumValues(ctx, field)
  1027  			case "inputFields":
  1028  				return ec.fieldContext___Type_inputFields(ctx, field)
  1029  			case "ofType":
  1030  				return ec.fieldContext___Type_ofType(ctx, field)
  1031  			case "specifiedByURL":
  1032  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  1033  			}
  1034  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  1035  		},
  1036  	}
  1037  	defer func() {
  1038  		if r := recover(); r != nil {
  1039  			err = ec.Recover(ctx, r)
  1040  			ec.Error(ctx, err)
  1041  		}
  1042  	}()
  1043  	ctx = graphql.WithFieldContext(ctx, fc)
  1044  	if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  1045  		ec.Error(ctx, err)
  1046  		return fc, err
  1047  	}
  1048  	return fc, nil
  1049  }
  1050  
  1051  func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  1052  	fc, err := ec.fieldContext_Query___schema(ctx, field)
  1053  	if err != nil {
  1054  		return graphql.Null
  1055  	}
  1056  	ctx = graphql.WithFieldContext(ctx, fc)
  1057  	defer func() {
  1058  		if r := recover(); r != nil {
  1059  			ec.Error(ctx, ec.Recover(ctx, r))
  1060  			ret = graphql.Null
  1061  		}
  1062  	}()
  1063  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1064  		ctx = rctx // use context from middleware stack in children
  1065  		return ec.introspectSchema()
  1066  	})
  1067  	if err != nil {
  1068  		ec.Error(ctx, err)
  1069  		return graphql.Null
  1070  	}
  1071  	if resTmp == nil {
  1072  		return graphql.Null
  1073  	}
  1074  	res := resTmp.(*introspection.Schema)
  1075  	fc.Result = res
  1076  	return ec.marshalO__Schema2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
  1077  }
  1078  
  1079  func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1080  	fc = &graphql.FieldContext{
  1081  		Object:     "Query",
  1082  		Field:      field,
  1083  		IsMethod:   true,
  1084  		IsResolver: false,
  1085  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1086  			switch field.Name {
  1087  			case "description":
  1088  				return ec.fieldContext___Schema_description(ctx, field)
  1089  			case "types":
  1090  				return ec.fieldContext___Schema_types(ctx, field)
  1091  			case "queryType":
  1092  				return ec.fieldContext___Schema_queryType(ctx, field)
  1093  			case "mutationType":
  1094  				return ec.fieldContext___Schema_mutationType(ctx, field)
  1095  			case "subscriptionType":
  1096  				return ec.fieldContext___Schema_subscriptionType(ctx, field)
  1097  			case "directives":
  1098  				return ec.fieldContext___Schema_directives(ctx, field)
  1099  			}
  1100  			return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
  1101  		},
  1102  	}
  1103  	return fc, nil
  1104  }
  1105  
  1106  func (ec *executionContext) _RemoteModelWithOmitempty_newDesc(ctx context.Context, field graphql.CollectedField, obj *testomitempty.RemoteModelWithOmitempty) (ret graphql.Marshaler) {
  1107  	fc, err := ec.fieldContext_RemoteModelWithOmitempty_newDesc(ctx, field)
  1108  	if err != nil {
  1109  		return graphql.Null
  1110  	}
  1111  	ctx = graphql.WithFieldContext(ctx, fc)
  1112  	defer func() {
  1113  		if r := recover(); r != nil {
  1114  			ec.Error(ctx, ec.Recover(ctx, r))
  1115  			ret = graphql.Null
  1116  		}
  1117  	}()
  1118  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1119  		ctx = rctx // use context from middleware stack in children
  1120  		return obj.Description, nil
  1121  	})
  1122  	if err != nil {
  1123  		ec.Error(ctx, err)
  1124  		return graphql.Null
  1125  	}
  1126  	if resTmp == nil {
  1127  		return graphql.Null
  1128  	}
  1129  	res := resTmp.(string)
  1130  	fc.Result = res
  1131  	return ec.marshalOString2string(ctx, field.Selections, res)
  1132  }
  1133  
  1134  func (ec *executionContext) fieldContext_RemoteModelWithOmitempty_newDesc(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1135  	fc = &graphql.FieldContext{
  1136  		Object:     "RemoteModelWithOmitempty",
  1137  		Field:      field,
  1138  		IsMethod:   false,
  1139  		IsResolver: false,
  1140  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1141  			return nil, errors.New("field of type String does not have child fields")
  1142  		},
  1143  	}
  1144  	return fc, nil
  1145  }
  1146  
  1147  func (ec *executionContext) _User_name(ctx context.Context, field graphql.CollectedField, obj *remote_api.User) (ret graphql.Marshaler) {
  1148  	fc, err := ec.fieldContext_User_name(ctx, field)
  1149  	if err != nil {
  1150  		return graphql.Null
  1151  	}
  1152  	ctx = graphql.WithFieldContext(ctx, fc)
  1153  	defer func() {
  1154  		if r := recover(); r != nil {
  1155  			ec.Error(ctx, ec.Recover(ctx, r))
  1156  			ret = graphql.Null
  1157  		}
  1158  	}()
  1159  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1160  		ctx = rctx // use context from middleware stack in children
  1161  		return obj.Name, nil
  1162  	})
  1163  	if err != nil {
  1164  		ec.Error(ctx, err)
  1165  		return graphql.Null
  1166  	}
  1167  	if resTmp == nil {
  1168  		if !graphql.HasFieldError(ctx, fc) {
  1169  			ec.Errorf(ctx, "must not be null")
  1170  		}
  1171  		return graphql.Null
  1172  	}
  1173  	res := resTmp.(string)
  1174  	fc.Result = res
  1175  	return ec.marshalNString2string(ctx, field.Selections, res)
  1176  }
  1177  
  1178  func (ec *executionContext) fieldContext_User_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1179  	fc = &graphql.FieldContext{
  1180  		Object:     "User",
  1181  		Field:      field,
  1182  		IsMethod:   false,
  1183  		IsResolver: false,
  1184  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1185  			return nil, errors.New("field of type String does not have child fields")
  1186  		},
  1187  	}
  1188  	return fc, nil
  1189  }
  1190  
  1191  func (ec *executionContext) _User_likes(ctx context.Context, field graphql.CollectedField, obj *remote_api.User) (ret graphql.Marshaler) {
  1192  	fc, err := ec.fieldContext_User_likes(ctx, field)
  1193  	if err != nil {
  1194  		return graphql.Null
  1195  	}
  1196  	ctx = graphql.WithFieldContext(ctx, fc)
  1197  	defer func() {
  1198  		if r := recover(); r != nil {
  1199  			ec.Error(ctx, ec.Recover(ctx, r))
  1200  			ret = graphql.Null
  1201  		}
  1202  	}()
  1203  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1204  		ctx = rctx // use context from middleware stack in children
  1205  		return ec.resolvers.User().Likes(rctx, obj)
  1206  	})
  1207  	if err != nil {
  1208  		ec.Error(ctx, err)
  1209  		return graphql.Null
  1210  	}
  1211  	if resTmp == nil {
  1212  		if !graphql.HasFieldError(ctx, fc) {
  1213  			ec.Errorf(ctx, "must not be null")
  1214  		}
  1215  		return graphql.Null
  1216  	}
  1217  	res := resTmp.([]string)
  1218  	fc.Result = res
  1219  	return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  1220  }
  1221  
  1222  func (ec *executionContext) fieldContext_User_likes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1223  	fc = &graphql.FieldContext{
  1224  		Object:     "User",
  1225  		Field:      field,
  1226  		IsMethod:   true,
  1227  		IsResolver: true,
  1228  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1229  			return nil, errors.New("field of type String does not have child fields")
  1230  		},
  1231  	}
  1232  	return fc, nil
  1233  }
  1234  
  1235  func (ec *executionContext) _User_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *remote_api.User) (ret graphql.Marshaler) {
  1236  	fc, err := ec.fieldContext_User_phoneNumber(ctx, field)
  1237  	if err != nil {
  1238  		return graphql.Null
  1239  	}
  1240  	ctx = graphql.WithFieldContext(ctx, fc)
  1241  	defer func() {
  1242  		if r := recover(); r != nil {
  1243  			ec.Error(ctx, ec.Recover(ctx, r))
  1244  			ret = graphql.Null
  1245  		}
  1246  	}()
  1247  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1248  		ctx = rctx // use context from middleware stack in children
  1249  		return obj.PhoneNumber, nil
  1250  	})
  1251  	if err != nil {
  1252  		ec.Error(ctx, err)
  1253  		return graphql.Null
  1254  	}
  1255  	if resTmp == nil {
  1256  		return graphql.Null
  1257  	}
  1258  	res := resTmp.(string)
  1259  	fc.Result = res
  1260  	return ec.marshalOString2string(ctx, field.Selections, res)
  1261  }
  1262  
  1263  func (ec *executionContext) fieldContext_User_phoneNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1264  	fc = &graphql.FieldContext{
  1265  		Object:     "User",
  1266  		Field:      field,
  1267  		IsMethod:   false,
  1268  		IsResolver: false,
  1269  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1270  			return nil, errors.New("field of type String does not have child fields")
  1271  		},
  1272  	}
  1273  	return fc, nil
  1274  }
  1275  
  1276  func (ec *executionContext) _Viewer_user(ctx context.Context, field graphql.CollectedField, obj *models.Viewer) (ret graphql.Marshaler) {
  1277  	fc, err := ec.fieldContext_Viewer_user(ctx, field)
  1278  	if err != nil {
  1279  		return graphql.Null
  1280  	}
  1281  	ctx = graphql.WithFieldContext(ctx, fc)
  1282  	defer func() {
  1283  		if r := recover(); r != nil {
  1284  			ec.Error(ctx, ec.Recover(ctx, r))
  1285  			ret = graphql.Null
  1286  		}
  1287  	}()
  1288  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1289  		ctx = rctx // use context from middleware stack in children
  1290  		return obj.User, nil
  1291  	})
  1292  	if err != nil {
  1293  		ec.Error(ctx, err)
  1294  		return graphql.Null
  1295  	}
  1296  	if resTmp == nil {
  1297  		return graphql.Null
  1298  	}
  1299  	res := resTmp.(*remote_api.User)
  1300  	fc.Result = res
  1301  	return ec.marshalOUser2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋremote_apiᚐUser(ctx, field.Selections, res)
  1302  }
  1303  
  1304  func (ec *executionContext) fieldContext_Viewer_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1305  	fc = &graphql.FieldContext{
  1306  		Object:     "Viewer",
  1307  		Field:      field,
  1308  		IsMethod:   false,
  1309  		IsResolver: false,
  1310  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1311  			switch field.Name {
  1312  			case "name":
  1313  				return ec.fieldContext_User_name(ctx, field)
  1314  			case "likes":
  1315  				return ec.fieldContext_User_likes(ctx, field)
  1316  			case "phoneNumber":
  1317  				return ec.fieldContext_User_phoneNumber(ctx, field)
  1318  			}
  1319  			return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
  1320  		},
  1321  	}
  1322  	return fc, nil
  1323  }
  1324  
  1325  func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  1326  	fc, err := ec.fieldContext___Directive_name(ctx, field)
  1327  	if err != nil {
  1328  		return graphql.Null
  1329  	}
  1330  	ctx = graphql.WithFieldContext(ctx, fc)
  1331  	defer func() {
  1332  		if r := recover(); r != nil {
  1333  			ec.Error(ctx, ec.Recover(ctx, r))
  1334  			ret = graphql.Null
  1335  		}
  1336  	}()
  1337  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1338  		ctx = rctx // use context from middleware stack in children
  1339  		return obj.Name, nil
  1340  	})
  1341  	if err != nil {
  1342  		ec.Error(ctx, err)
  1343  		return graphql.Null
  1344  	}
  1345  	if resTmp == nil {
  1346  		if !graphql.HasFieldError(ctx, fc) {
  1347  			ec.Errorf(ctx, "must not be null")
  1348  		}
  1349  		return graphql.Null
  1350  	}
  1351  	res := resTmp.(string)
  1352  	fc.Result = res
  1353  	return ec.marshalNString2string(ctx, field.Selections, res)
  1354  }
  1355  
  1356  func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1357  	fc = &graphql.FieldContext{
  1358  		Object:     "__Directive",
  1359  		Field:      field,
  1360  		IsMethod:   false,
  1361  		IsResolver: false,
  1362  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1363  			return nil, errors.New("field of type String does not have child fields")
  1364  		},
  1365  	}
  1366  	return fc, nil
  1367  }
  1368  
  1369  func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  1370  	fc, err := ec.fieldContext___Directive_description(ctx, field)
  1371  	if err != nil {
  1372  		return graphql.Null
  1373  	}
  1374  	ctx = graphql.WithFieldContext(ctx, fc)
  1375  	defer func() {
  1376  		if r := recover(); r != nil {
  1377  			ec.Error(ctx, ec.Recover(ctx, r))
  1378  			ret = graphql.Null
  1379  		}
  1380  	}()
  1381  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1382  		ctx = rctx // use context from middleware stack in children
  1383  		return obj.Description(), nil
  1384  	})
  1385  	if err != nil {
  1386  		ec.Error(ctx, err)
  1387  		return graphql.Null
  1388  	}
  1389  	if resTmp == nil {
  1390  		return graphql.Null
  1391  	}
  1392  	res := resTmp.(*string)
  1393  	fc.Result = res
  1394  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1395  }
  1396  
  1397  func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1398  	fc = &graphql.FieldContext{
  1399  		Object:     "__Directive",
  1400  		Field:      field,
  1401  		IsMethod:   true,
  1402  		IsResolver: false,
  1403  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1404  			return nil, errors.New("field of type String does not have child fields")
  1405  		},
  1406  	}
  1407  	return fc, nil
  1408  }
  1409  
  1410  func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  1411  	fc, err := ec.fieldContext___Directive_locations(ctx, field)
  1412  	if err != nil {
  1413  		return graphql.Null
  1414  	}
  1415  	ctx = graphql.WithFieldContext(ctx, fc)
  1416  	defer func() {
  1417  		if r := recover(); r != nil {
  1418  			ec.Error(ctx, ec.Recover(ctx, r))
  1419  			ret = graphql.Null
  1420  		}
  1421  	}()
  1422  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1423  		ctx = rctx // use context from middleware stack in children
  1424  		return obj.Locations, nil
  1425  	})
  1426  	if err != nil {
  1427  		ec.Error(ctx, err)
  1428  		return graphql.Null
  1429  	}
  1430  	if resTmp == nil {
  1431  		if !graphql.HasFieldError(ctx, fc) {
  1432  			ec.Errorf(ctx, "must not be null")
  1433  		}
  1434  		return graphql.Null
  1435  	}
  1436  	res := resTmp.([]string)
  1437  	fc.Result = res
  1438  	return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
  1439  }
  1440  
  1441  func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1442  	fc = &graphql.FieldContext{
  1443  		Object:     "__Directive",
  1444  		Field:      field,
  1445  		IsMethod:   false,
  1446  		IsResolver: false,
  1447  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1448  			return nil, errors.New("field of type __DirectiveLocation does not have child fields")
  1449  		},
  1450  	}
  1451  	return fc, nil
  1452  }
  1453  
  1454  func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  1455  	fc, err := ec.fieldContext___Directive_args(ctx, field)
  1456  	if err != nil {
  1457  		return graphql.Null
  1458  	}
  1459  	ctx = graphql.WithFieldContext(ctx, fc)
  1460  	defer func() {
  1461  		if r := recover(); r != nil {
  1462  			ec.Error(ctx, ec.Recover(ctx, r))
  1463  			ret = graphql.Null
  1464  		}
  1465  	}()
  1466  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1467  		ctx = rctx // use context from middleware stack in children
  1468  		return obj.Args, nil
  1469  	})
  1470  	if err != nil {
  1471  		ec.Error(ctx, err)
  1472  		return graphql.Null
  1473  	}
  1474  	if resTmp == nil {
  1475  		if !graphql.HasFieldError(ctx, fc) {
  1476  			ec.Errorf(ctx, "must not be null")
  1477  		}
  1478  		return graphql.Null
  1479  	}
  1480  	res := resTmp.([]introspection.InputValue)
  1481  	fc.Result = res
  1482  	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  1483  }
  1484  
  1485  func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1486  	fc = &graphql.FieldContext{
  1487  		Object:     "__Directive",
  1488  		Field:      field,
  1489  		IsMethod:   false,
  1490  		IsResolver: false,
  1491  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1492  			switch field.Name {
  1493  			case "name":
  1494  				return ec.fieldContext___InputValue_name(ctx, field)
  1495  			case "description":
  1496  				return ec.fieldContext___InputValue_description(ctx, field)
  1497  			case "type":
  1498  				return ec.fieldContext___InputValue_type(ctx, field)
  1499  			case "defaultValue":
  1500  				return ec.fieldContext___InputValue_defaultValue(ctx, field)
  1501  			}
  1502  			return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
  1503  		},
  1504  	}
  1505  	return fc, nil
  1506  }
  1507  
  1508  func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  1509  	fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field)
  1510  	if err != nil {
  1511  		return graphql.Null
  1512  	}
  1513  	ctx = graphql.WithFieldContext(ctx, fc)
  1514  	defer func() {
  1515  		if r := recover(); r != nil {
  1516  			ec.Error(ctx, ec.Recover(ctx, r))
  1517  			ret = graphql.Null
  1518  		}
  1519  	}()
  1520  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1521  		ctx = rctx // use context from middleware stack in children
  1522  		return obj.IsRepeatable, nil
  1523  	})
  1524  	if err != nil {
  1525  		ec.Error(ctx, err)
  1526  		return graphql.Null
  1527  	}
  1528  	if resTmp == nil {
  1529  		if !graphql.HasFieldError(ctx, fc) {
  1530  			ec.Errorf(ctx, "must not be null")
  1531  		}
  1532  		return graphql.Null
  1533  	}
  1534  	res := resTmp.(bool)
  1535  	fc.Result = res
  1536  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  1537  }
  1538  
  1539  func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1540  	fc = &graphql.FieldContext{
  1541  		Object:     "__Directive",
  1542  		Field:      field,
  1543  		IsMethod:   false,
  1544  		IsResolver: false,
  1545  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1546  			return nil, errors.New("field of type Boolean does not have child fields")
  1547  		},
  1548  	}
  1549  	return fc, nil
  1550  }
  1551  
  1552  func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  1553  	fc, err := ec.fieldContext___EnumValue_name(ctx, field)
  1554  	if err != nil {
  1555  		return graphql.Null
  1556  	}
  1557  	ctx = graphql.WithFieldContext(ctx, fc)
  1558  	defer func() {
  1559  		if r := recover(); r != nil {
  1560  			ec.Error(ctx, ec.Recover(ctx, r))
  1561  			ret = graphql.Null
  1562  		}
  1563  	}()
  1564  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1565  		ctx = rctx // use context from middleware stack in children
  1566  		return obj.Name, nil
  1567  	})
  1568  	if err != nil {
  1569  		ec.Error(ctx, err)
  1570  		return graphql.Null
  1571  	}
  1572  	if resTmp == nil {
  1573  		if !graphql.HasFieldError(ctx, fc) {
  1574  			ec.Errorf(ctx, "must not be null")
  1575  		}
  1576  		return graphql.Null
  1577  	}
  1578  	res := resTmp.(string)
  1579  	fc.Result = res
  1580  	return ec.marshalNString2string(ctx, field.Selections, res)
  1581  }
  1582  
  1583  func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1584  	fc = &graphql.FieldContext{
  1585  		Object:     "__EnumValue",
  1586  		Field:      field,
  1587  		IsMethod:   false,
  1588  		IsResolver: false,
  1589  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1590  			return nil, errors.New("field of type String does not have child fields")
  1591  		},
  1592  	}
  1593  	return fc, nil
  1594  }
  1595  
  1596  func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  1597  	fc, err := ec.fieldContext___EnumValue_description(ctx, field)
  1598  	if err != nil {
  1599  		return graphql.Null
  1600  	}
  1601  	ctx = graphql.WithFieldContext(ctx, fc)
  1602  	defer func() {
  1603  		if r := recover(); r != nil {
  1604  			ec.Error(ctx, ec.Recover(ctx, r))
  1605  			ret = graphql.Null
  1606  		}
  1607  	}()
  1608  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1609  		ctx = rctx // use context from middleware stack in children
  1610  		return obj.Description(), nil
  1611  	})
  1612  	if err != nil {
  1613  		ec.Error(ctx, err)
  1614  		return graphql.Null
  1615  	}
  1616  	if resTmp == nil {
  1617  		return graphql.Null
  1618  	}
  1619  	res := resTmp.(*string)
  1620  	fc.Result = res
  1621  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1622  }
  1623  
  1624  func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1625  	fc = &graphql.FieldContext{
  1626  		Object:     "__EnumValue",
  1627  		Field:      field,
  1628  		IsMethod:   true,
  1629  		IsResolver: false,
  1630  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1631  			return nil, errors.New("field of type String does not have child fields")
  1632  		},
  1633  	}
  1634  	return fc, nil
  1635  }
  1636  
  1637  func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  1638  	fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field)
  1639  	if err != nil {
  1640  		return graphql.Null
  1641  	}
  1642  	ctx = graphql.WithFieldContext(ctx, fc)
  1643  	defer func() {
  1644  		if r := recover(); r != nil {
  1645  			ec.Error(ctx, ec.Recover(ctx, r))
  1646  			ret = graphql.Null
  1647  		}
  1648  	}()
  1649  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1650  		ctx = rctx // use context from middleware stack in children
  1651  		return obj.IsDeprecated(), nil
  1652  	})
  1653  	if err != nil {
  1654  		ec.Error(ctx, err)
  1655  		return graphql.Null
  1656  	}
  1657  	if resTmp == nil {
  1658  		if !graphql.HasFieldError(ctx, fc) {
  1659  			ec.Errorf(ctx, "must not be null")
  1660  		}
  1661  		return graphql.Null
  1662  	}
  1663  	res := resTmp.(bool)
  1664  	fc.Result = res
  1665  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  1666  }
  1667  
  1668  func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1669  	fc = &graphql.FieldContext{
  1670  		Object:     "__EnumValue",
  1671  		Field:      field,
  1672  		IsMethod:   true,
  1673  		IsResolver: false,
  1674  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1675  			return nil, errors.New("field of type Boolean does not have child fields")
  1676  		},
  1677  	}
  1678  	return fc, nil
  1679  }
  1680  
  1681  func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  1682  	fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field)
  1683  	if err != nil {
  1684  		return graphql.Null
  1685  	}
  1686  	ctx = graphql.WithFieldContext(ctx, fc)
  1687  	defer func() {
  1688  		if r := recover(); r != nil {
  1689  			ec.Error(ctx, ec.Recover(ctx, r))
  1690  			ret = graphql.Null
  1691  		}
  1692  	}()
  1693  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1694  		ctx = rctx // use context from middleware stack in children
  1695  		return obj.DeprecationReason(), nil
  1696  	})
  1697  	if err != nil {
  1698  		ec.Error(ctx, err)
  1699  		return graphql.Null
  1700  	}
  1701  	if resTmp == nil {
  1702  		return graphql.Null
  1703  	}
  1704  	res := resTmp.(*string)
  1705  	fc.Result = res
  1706  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1707  }
  1708  
  1709  func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1710  	fc = &graphql.FieldContext{
  1711  		Object:     "__EnumValue",
  1712  		Field:      field,
  1713  		IsMethod:   true,
  1714  		IsResolver: false,
  1715  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1716  			return nil, errors.New("field of type String does not have child fields")
  1717  		},
  1718  	}
  1719  	return fc, nil
  1720  }
  1721  
  1722  func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1723  	fc, err := ec.fieldContext___Field_name(ctx, field)
  1724  	if err != nil {
  1725  		return graphql.Null
  1726  	}
  1727  	ctx = graphql.WithFieldContext(ctx, fc)
  1728  	defer func() {
  1729  		if r := recover(); r != nil {
  1730  			ec.Error(ctx, ec.Recover(ctx, r))
  1731  			ret = graphql.Null
  1732  		}
  1733  	}()
  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.Name, nil
  1737  	})
  1738  	if err != nil {
  1739  		ec.Error(ctx, err)
  1740  		return graphql.Null
  1741  	}
  1742  	if resTmp == nil {
  1743  		if !graphql.HasFieldError(ctx, fc) {
  1744  			ec.Errorf(ctx, "must not be null")
  1745  		}
  1746  		return graphql.Null
  1747  	}
  1748  	res := resTmp.(string)
  1749  	fc.Result = res
  1750  	return ec.marshalNString2string(ctx, field.Selections, res)
  1751  }
  1752  
  1753  func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1754  	fc = &graphql.FieldContext{
  1755  		Object:     "__Field",
  1756  		Field:      field,
  1757  		IsMethod:   false,
  1758  		IsResolver: false,
  1759  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1760  			return nil, errors.New("field of type String does not have child fields")
  1761  		},
  1762  	}
  1763  	return fc, nil
  1764  }
  1765  
  1766  func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1767  	fc, err := ec.fieldContext___Field_description(ctx, field)
  1768  	if err != nil {
  1769  		return graphql.Null
  1770  	}
  1771  	ctx = graphql.WithFieldContext(ctx, fc)
  1772  	defer func() {
  1773  		if r := recover(); r != nil {
  1774  			ec.Error(ctx, ec.Recover(ctx, r))
  1775  			ret = graphql.Null
  1776  		}
  1777  	}()
  1778  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1779  		ctx = rctx // use context from middleware stack in children
  1780  		return obj.Description(), nil
  1781  	})
  1782  	if err != nil {
  1783  		ec.Error(ctx, err)
  1784  		return graphql.Null
  1785  	}
  1786  	if resTmp == nil {
  1787  		return graphql.Null
  1788  	}
  1789  	res := resTmp.(*string)
  1790  	fc.Result = res
  1791  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1792  }
  1793  
  1794  func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1795  	fc = &graphql.FieldContext{
  1796  		Object:     "__Field",
  1797  		Field:      field,
  1798  		IsMethod:   true,
  1799  		IsResolver: false,
  1800  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1801  			return nil, errors.New("field of type String does not have child fields")
  1802  		},
  1803  	}
  1804  	return fc, nil
  1805  }
  1806  
  1807  func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1808  	fc, err := ec.fieldContext___Field_args(ctx, field)
  1809  	if err != nil {
  1810  		return graphql.Null
  1811  	}
  1812  	ctx = graphql.WithFieldContext(ctx, fc)
  1813  	defer func() {
  1814  		if r := recover(); r != nil {
  1815  			ec.Error(ctx, ec.Recover(ctx, r))
  1816  			ret = graphql.Null
  1817  		}
  1818  	}()
  1819  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1820  		ctx = rctx // use context from middleware stack in children
  1821  		return obj.Args, nil
  1822  	})
  1823  	if err != nil {
  1824  		ec.Error(ctx, err)
  1825  		return graphql.Null
  1826  	}
  1827  	if resTmp == nil {
  1828  		if !graphql.HasFieldError(ctx, fc) {
  1829  			ec.Errorf(ctx, "must not be null")
  1830  		}
  1831  		return graphql.Null
  1832  	}
  1833  	res := resTmp.([]introspection.InputValue)
  1834  	fc.Result = res
  1835  	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  1836  }
  1837  
  1838  func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1839  	fc = &graphql.FieldContext{
  1840  		Object:     "__Field",
  1841  		Field:      field,
  1842  		IsMethod:   false,
  1843  		IsResolver: false,
  1844  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1845  			switch field.Name {
  1846  			case "name":
  1847  				return ec.fieldContext___InputValue_name(ctx, field)
  1848  			case "description":
  1849  				return ec.fieldContext___InputValue_description(ctx, field)
  1850  			case "type":
  1851  				return ec.fieldContext___InputValue_type(ctx, field)
  1852  			case "defaultValue":
  1853  				return ec.fieldContext___InputValue_defaultValue(ctx, field)
  1854  			}
  1855  			return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
  1856  		},
  1857  	}
  1858  	return fc, nil
  1859  }
  1860  
  1861  func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1862  	fc, err := ec.fieldContext___Field_type(ctx, field)
  1863  	if err != nil {
  1864  		return graphql.Null
  1865  	}
  1866  	ctx = graphql.WithFieldContext(ctx, fc)
  1867  	defer func() {
  1868  		if r := recover(); r != nil {
  1869  			ec.Error(ctx, ec.Recover(ctx, r))
  1870  			ret = graphql.Null
  1871  		}
  1872  	}()
  1873  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1874  		ctx = rctx // use context from middleware stack in children
  1875  		return obj.Type, nil
  1876  	})
  1877  	if err != nil {
  1878  		ec.Error(ctx, err)
  1879  		return graphql.Null
  1880  	}
  1881  	if resTmp == nil {
  1882  		if !graphql.HasFieldError(ctx, fc) {
  1883  			ec.Errorf(ctx, "must not be null")
  1884  		}
  1885  		return graphql.Null
  1886  	}
  1887  	res := resTmp.(*introspection.Type)
  1888  	fc.Result = res
  1889  	return ec.marshalN__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1890  }
  1891  
  1892  func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1893  	fc = &graphql.FieldContext{
  1894  		Object:     "__Field",
  1895  		Field:      field,
  1896  		IsMethod:   false,
  1897  		IsResolver: false,
  1898  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1899  			switch field.Name {
  1900  			case "kind":
  1901  				return ec.fieldContext___Type_kind(ctx, field)
  1902  			case "name":
  1903  				return ec.fieldContext___Type_name(ctx, field)
  1904  			case "description":
  1905  				return ec.fieldContext___Type_description(ctx, field)
  1906  			case "fields":
  1907  				return ec.fieldContext___Type_fields(ctx, field)
  1908  			case "interfaces":
  1909  				return ec.fieldContext___Type_interfaces(ctx, field)
  1910  			case "possibleTypes":
  1911  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  1912  			case "enumValues":
  1913  				return ec.fieldContext___Type_enumValues(ctx, field)
  1914  			case "inputFields":
  1915  				return ec.fieldContext___Type_inputFields(ctx, field)
  1916  			case "ofType":
  1917  				return ec.fieldContext___Type_ofType(ctx, field)
  1918  			case "specifiedByURL":
  1919  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  1920  			}
  1921  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  1922  		},
  1923  	}
  1924  	return fc, nil
  1925  }
  1926  
  1927  func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1928  	fc, err := ec.fieldContext___Field_isDeprecated(ctx, field)
  1929  	if err != nil {
  1930  		return graphql.Null
  1931  	}
  1932  	ctx = graphql.WithFieldContext(ctx, fc)
  1933  	defer func() {
  1934  		if r := recover(); r != nil {
  1935  			ec.Error(ctx, ec.Recover(ctx, r))
  1936  			ret = graphql.Null
  1937  		}
  1938  	}()
  1939  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1940  		ctx = rctx // use context from middleware stack in children
  1941  		return obj.IsDeprecated(), nil
  1942  	})
  1943  	if err != nil {
  1944  		ec.Error(ctx, err)
  1945  		return graphql.Null
  1946  	}
  1947  	if resTmp == nil {
  1948  		if !graphql.HasFieldError(ctx, fc) {
  1949  			ec.Errorf(ctx, "must not be null")
  1950  		}
  1951  		return graphql.Null
  1952  	}
  1953  	res := resTmp.(bool)
  1954  	fc.Result = res
  1955  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  1956  }
  1957  
  1958  func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  1959  	fc = &graphql.FieldContext{
  1960  		Object:     "__Field",
  1961  		Field:      field,
  1962  		IsMethod:   true,
  1963  		IsResolver: false,
  1964  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  1965  			return nil, errors.New("field of type Boolean does not have child fields")
  1966  		},
  1967  	}
  1968  	return fc, nil
  1969  }
  1970  
  1971  func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  1972  	fc, err := ec.fieldContext___Field_deprecationReason(ctx, field)
  1973  	if err != nil {
  1974  		return graphql.Null
  1975  	}
  1976  	ctx = graphql.WithFieldContext(ctx, fc)
  1977  	defer func() {
  1978  		if r := recover(); r != nil {
  1979  			ec.Error(ctx, ec.Recover(ctx, r))
  1980  			ret = graphql.Null
  1981  		}
  1982  	}()
  1983  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  1984  		ctx = rctx // use context from middleware stack in children
  1985  		return obj.DeprecationReason(), nil
  1986  	})
  1987  	if err != nil {
  1988  		ec.Error(ctx, err)
  1989  		return graphql.Null
  1990  	}
  1991  	if resTmp == nil {
  1992  		return graphql.Null
  1993  	}
  1994  	res := resTmp.(*string)
  1995  	fc.Result = res
  1996  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1997  }
  1998  
  1999  func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2000  	fc = &graphql.FieldContext{
  2001  		Object:     "__Field",
  2002  		Field:      field,
  2003  		IsMethod:   true,
  2004  		IsResolver: false,
  2005  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2006  			return nil, errors.New("field of type String does not have child fields")
  2007  		},
  2008  	}
  2009  	return fc, nil
  2010  }
  2011  
  2012  func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  2013  	fc, err := ec.fieldContext___InputValue_name(ctx, field)
  2014  	if err != nil {
  2015  		return graphql.Null
  2016  	}
  2017  	ctx = graphql.WithFieldContext(ctx, fc)
  2018  	defer func() {
  2019  		if r := recover(); r != nil {
  2020  			ec.Error(ctx, ec.Recover(ctx, r))
  2021  			ret = graphql.Null
  2022  		}
  2023  	}()
  2024  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2025  		ctx = rctx // use context from middleware stack in children
  2026  		return obj.Name, nil
  2027  	})
  2028  	if err != nil {
  2029  		ec.Error(ctx, err)
  2030  		return graphql.Null
  2031  	}
  2032  	if resTmp == nil {
  2033  		if !graphql.HasFieldError(ctx, fc) {
  2034  			ec.Errorf(ctx, "must not be null")
  2035  		}
  2036  		return graphql.Null
  2037  	}
  2038  	res := resTmp.(string)
  2039  	fc.Result = res
  2040  	return ec.marshalNString2string(ctx, field.Selections, res)
  2041  }
  2042  
  2043  func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2044  	fc = &graphql.FieldContext{
  2045  		Object:     "__InputValue",
  2046  		Field:      field,
  2047  		IsMethod:   false,
  2048  		IsResolver: false,
  2049  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2050  			return nil, errors.New("field of type String does not have child fields")
  2051  		},
  2052  	}
  2053  	return fc, nil
  2054  }
  2055  
  2056  func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  2057  	fc, err := ec.fieldContext___InputValue_description(ctx, field)
  2058  	if err != nil {
  2059  		return graphql.Null
  2060  	}
  2061  	ctx = graphql.WithFieldContext(ctx, fc)
  2062  	defer func() {
  2063  		if r := recover(); r != nil {
  2064  			ec.Error(ctx, ec.Recover(ctx, r))
  2065  			ret = graphql.Null
  2066  		}
  2067  	}()
  2068  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2069  		ctx = rctx // use context from middleware stack in children
  2070  		return obj.Description(), nil
  2071  	})
  2072  	if err != nil {
  2073  		ec.Error(ctx, err)
  2074  		return graphql.Null
  2075  	}
  2076  	if resTmp == nil {
  2077  		return graphql.Null
  2078  	}
  2079  	res := resTmp.(*string)
  2080  	fc.Result = res
  2081  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  2082  }
  2083  
  2084  func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2085  	fc = &graphql.FieldContext{
  2086  		Object:     "__InputValue",
  2087  		Field:      field,
  2088  		IsMethod:   true,
  2089  		IsResolver: false,
  2090  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2091  			return nil, errors.New("field of type String does not have child fields")
  2092  		},
  2093  	}
  2094  	return fc, nil
  2095  }
  2096  
  2097  func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  2098  	fc, err := ec.fieldContext___InputValue_type(ctx, field)
  2099  	if err != nil {
  2100  		return graphql.Null
  2101  	}
  2102  	ctx = graphql.WithFieldContext(ctx, fc)
  2103  	defer func() {
  2104  		if r := recover(); r != nil {
  2105  			ec.Error(ctx, ec.Recover(ctx, r))
  2106  			ret = graphql.Null
  2107  		}
  2108  	}()
  2109  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2110  		ctx = rctx // use context from middleware stack in children
  2111  		return obj.Type, nil
  2112  	})
  2113  	if err != nil {
  2114  		ec.Error(ctx, err)
  2115  		return graphql.Null
  2116  	}
  2117  	if resTmp == nil {
  2118  		if !graphql.HasFieldError(ctx, fc) {
  2119  			ec.Errorf(ctx, "must not be null")
  2120  		}
  2121  		return graphql.Null
  2122  	}
  2123  	res := resTmp.(*introspection.Type)
  2124  	fc.Result = res
  2125  	return ec.marshalN__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  2126  }
  2127  
  2128  func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2129  	fc = &graphql.FieldContext{
  2130  		Object:     "__InputValue",
  2131  		Field:      field,
  2132  		IsMethod:   false,
  2133  		IsResolver: false,
  2134  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2135  			switch field.Name {
  2136  			case "kind":
  2137  				return ec.fieldContext___Type_kind(ctx, field)
  2138  			case "name":
  2139  				return ec.fieldContext___Type_name(ctx, field)
  2140  			case "description":
  2141  				return ec.fieldContext___Type_description(ctx, field)
  2142  			case "fields":
  2143  				return ec.fieldContext___Type_fields(ctx, field)
  2144  			case "interfaces":
  2145  				return ec.fieldContext___Type_interfaces(ctx, field)
  2146  			case "possibleTypes":
  2147  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  2148  			case "enumValues":
  2149  				return ec.fieldContext___Type_enumValues(ctx, field)
  2150  			case "inputFields":
  2151  				return ec.fieldContext___Type_inputFields(ctx, field)
  2152  			case "ofType":
  2153  				return ec.fieldContext___Type_ofType(ctx, field)
  2154  			case "specifiedByURL":
  2155  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  2156  			}
  2157  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  2158  		},
  2159  	}
  2160  	return fc, nil
  2161  }
  2162  
  2163  func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  2164  	fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field)
  2165  	if err != nil {
  2166  		return graphql.Null
  2167  	}
  2168  	ctx = graphql.WithFieldContext(ctx, fc)
  2169  	defer func() {
  2170  		if r := recover(); r != nil {
  2171  			ec.Error(ctx, ec.Recover(ctx, r))
  2172  			ret = graphql.Null
  2173  		}
  2174  	}()
  2175  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2176  		ctx = rctx // use context from middleware stack in children
  2177  		return obj.DefaultValue, nil
  2178  	})
  2179  	if err != nil {
  2180  		ec.Error(ctx, err)
  2181  		return graphql.Null
  2182  	}
  2183  	if resTmp == nil {
  2184  		return graphql.Null
  2185  	}
  2186  	res := resTmp.(*string)
  2187  	fc.Result = res
  2188  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  2189  }
  2190  
  2191  func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2192  	fc = &graphql.FieldContext{
  2193  		Object:     "__InputValue",
  2194  		Field:      field,
  2195  		IsMethod:   false,
  2196  		IsResolver: false,
  2197  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2198  			return nil, errors.New("field of type String does not have child fields")
  2199  		},
  2200  	}
  2201  	return fc, nil
  2202  }
  2203  
  2204  func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  2205  	fc, err := ec.fieldContext___Schema_description(ctx, field)
  2206  	if err != nil {
  2207  		return graphql.Null
  2208  	}
  2209  	ctx = graphql.WithFieldContext(ctx, fc)
  2210  	defer func() {
  2211  		if r := recover(); r != nil {
  2212  			ec.Error(ctx, ec.Recover(ctx, r))
  2213  			ret = graphql.Null
  2214  		}
  2215  	}()
  2216  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2217  		ctx = rctx // use context from middleware stack in children
  2218  		return obj.Description(), nil
  2219  	})
  2220  	if err != nil {
  2221  		ec.Error(ctx, err)
  2222  		return graphql.Null
  2223  	}
  2224  	if resTmp == nil {
  2225  		return graphql.Null
  2226  	}
  2227  	res := resTmp.(*string)
  2228  	fc.Result = res
  2229  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  2230  }
  2231  
  2232  func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2233  	fc = &graphql.FieldContext{
  2234  		Object:     "__Schema",
  2235  		Field:      field,
  2236  		IsMethod:   true,
  2237  		IsResolver: false,
  2238  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2239  			return nil, errors.New("field of type String does not have child fields")
  2240  		},
  2241  	}
  2242  	return fc, nil
  2243  }
  2244  
  2245  func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  2246  	fc, err := ec.fieldContext___Schema_types(ctx, field)
  2247  	if err != nil {
  2248  		return graphql.Null
  2249  	}
  2250  	ctx = graphql.WithFieldContext(ctx, fc)
  2251  	defer func() {
  2252  		if r := recover(); r != nil {
  2253  			ec.Error(ctx, ec.Recover(ctx, r))
  2254  			ret = graphql.Null
  2255  		}
  2256  	}()
  2257  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2258  		ctx = rctx // use context from middleware stack in children
  2259  		return obj.Types(), nil
  2260  	})
  2261  	if err != nil {
  2262  		ec.Error(ctx, err)
  2263  		return graphql.Null
  2264  	}
  2265  	if resTmp == nil {
  2266  		if !graphql.HasFieldError(ctx, fc) {
  2267  			ec.Errorf(ctx, "must not be null")
  2268  		}
  2269  		return graphql.Null
  2270  	}
  2271  	res := resTmp.([]introspection.Type)
  2272  	fc.Result = res
  2273  	return ec.marshalN__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  2274  }
  2275  
  2276  func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2277  	fc = &graphql.FieldContext{
  2278  		Object:     "__Schema",
  2279  		Field:      field,
  2280  		IsMethod:   true,
  2281  		IsResolver: false,
  2282  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2283  			switch field.Name {
  2284  			case "kind":
  2285  				return ec.fieldContext___Type_kind(ctx, field)
  2286  			case "name":
  2287  				return ec.fieldContext___Type_name(ctx, field)
  2288  			case "description":
  2289  				return ec.fieldContext___Type_description(ctx, field)
  2290  			case "fields":
  2291  				return ec.fieldContext___Type_fields(ctx, field)
  2292  			case "interfaces":
  2293  				return ec.fieldContext___Type_interfaces(ctx, field)
  2294  			case "possibleTypes":
  2295  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  2296  			case "enumValues":
  2297  				return ec.fieldContext___Type_enumValues(ctx, field)
  2298  			case "inputFields":
  2299  				return ec.fieldContext___Type_inputFields(ctx, field)
  2300  			case "ofType":
  2301  				return ec.fieldContext___Type_ofType(ctx, field)
  2302  			case "specifiedByURL":
  2303  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  2304  			}
  2305  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  2306  		},
  2307  	}
  2308  	return fc, nil
  2309  }
  2310  
  2311  func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  2312  	fc, err := ec.fieldContext___Schema_queryType(ctx, field)
  2313  	if err != nil {
  2314  		return graphql.Null
  2315  	}
  2316  	ctx = graphql.WithFieldContext(ctx, fc)
  2317  	defer func() {
  2318  		if r := recover(); r != nil {
  2319  			ec.Error(ctx, ec.Recover(ctx, r))
  2320  			ret = graphql.Null
  2321  		}
  2322  	}()
  2323  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2324  		ctx = rctx // use context from middleware stack in children
  2325  		return obj.QueryType(), nil
  2326  	})
  2327  	if err != nil {
  2328  		ec.Error(ctx, err)
  2329  		return graphql.Null
  2330  	}
  2331  	if resTmp == nil {
  2332  		if !graphql.HasFieldError(ctx, fc) {
  2333  			ec.Errorf(ctx, "must not be null")
  2334  		}
  2335  		return graphql.Null
  2336  	}
  2337  	res := resTmp.(*introspection.Type)
  2338  	fc.Result = res
  2339  	return ec.marshalN__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  2340  }
  2341  
  2342  func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2343  	fc = &graphql.FieldContext{
  2344  		Object:     "__Schema",
  2345  		Field:      field,
  2346  		IsMethod:   true,
  2347  		IsResolver: false,
  2348  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2349  			switch field.Name {
  2350  			case "kind":
  2351  				return ec.fieldContext___Type_kind(ctx, field)
  2352  			case "name":
  2353  				return ec.fieldContext___Type_name(ctx, field)
  2354  			case "description":
  2355  				return ec.fieldContext___Type_description(ctx, field)
  2356  			case "fields":
  2357  				return ec.fieldContext___Type_fields(ctx, field)
  2358  			case "interfaces":
  2359  				return ec.fieldContext___Type_interfaces(ctx, field)
  2360  			case "possibleTypes":
  2361  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  2362  			case "enumValues":
  2363  				return ec.fieldContext___Type_enumValues(ctx, field)
  2364  			case "inputFields":
  2365  				return ec.fieldContext___Type_inputFields(ctx, field)
  2366  			case "ofType":
  2367  				return ec.fieldContext___Type_ofType(ctx, field)
  2368  			case "specifiedByURL":
  2369  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  2370  			}
  2371  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  2372  		},
  2373  	}
  2374  	return fc, nil
  2375  }
  2376  
  2377  func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  2378  	fc, err := ec.fieldContext___Schema_mutationType(ctx, field)
  2379  	if err != nil {
  2380  		return graphql.Null
  2381  	}
  2382  	ctx = graphql.WithFieldContext(ctx, fc)
  2383  	defer func() {
  2384  		if r := recover(); r != nil {
  2385  			ec.Error(ctx, ec.Recover(ctx, r))
  2386  			ret = graphql.Null
  2387  		}
  2388  	}()
  2389  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2390  		ctx = rctx // use context from middleware stack in children
  2391  		return obj.MutationType(), nil
  2392  	})
  2393  	if err != nil {
  2394  		ec.Error(ctx, err)
  2395  		return graphql.Null
  2396  	}
  2397  	if resTmp == nil {
  2398  		return graphql.Null
  2399  	}
  2400  	res := resTmp.(*introspection.Type)
  2401  	fc.Result = res
  2402  	return ec.marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  2403  }
  2404  
  2405  func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2406  	fc = &graphql.FieldContext{
  2407  		Object:     "__Schema",
  2408  		Field:      field,
  2409  		IsMethod:   true,
  2410  		IsResolver: false,
  2411  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2412  			switch field.Name {
  2413  			case "kind":
  2414  				return ec.fieldContext___Type_kind(ctx, field)
  2415  			case "name":
  2416  				return ec.fieldContext___Type_name(ctx, field)
  2417  			case "description":
  2418  				return ec.fieldContext___Type_description(ctx, field)
  2419  			case "fields":
  2420  				return ec.fieldContext___Type_fields(ctx, field)
  2421  			case "interfaces":
  2422  				return ec.fieldContext___Type_interfaces(ctx, field)
  2423  			case "possibleTypes":
  2424  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  2425  			case "enumValues":
  2426  				return ec.fieldContext___Type_enumValues(ctx, field)
  2427  			case "inputFields":
  2428  				return ec.fieldContext___Type_inputFields(ctx, field)
  2429  			case "ofType":
  2430  				return ec.fieldContext___Type_ofType(ctx, field)
  2431  			case "specifiedByURL":
  2432  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  2433  			}
  2434  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  2435  		},
  2436  	}
  2437  	return fc, nil
  2438  }
  2439  
  2440  func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  2441  	fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field)
  2442  	if err != nil {
  2443  		return graphql.Null
  2444  	}
  2445  	ctx = graphql.WithFieldContext(ctx, fc)
  2446  	defer func() {
  2447  		if r := recover(); r != nil {
  2448  			ec.Error(ctx, ec.Recover(ctx, r))
  2449  			ret = graphql.Null
  2450  		}
  2451  	}()
  2452  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2453  		ctx = rctx // use context from middleware stack in children
  2454  		return obj.SubscriptionType(), nil
  2455  	})
  2456  	if err != nil {
  2457  		ec.Error(ctx, err)
  2458  		return graphql.Null
  2459  	}
  2460  	if resTmp == nil {
  2461  		return graphql.Null
  2462  	}
  2463  	res := resTmp.(*introspection.Type)
  2464  	fc.Result = res
  2465  	return ec.marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  2466  }
  2467  
  2468  func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2469  	fc = &graphql.FieldContext{
  2470  		Object:     "__Schema",
  2471  		Field:      field,
  2472  		IsMethod:   true,
  2473  		IsResolver: false,
  2474  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2475  			switch field.Name {
  2476  			case "kind":
  2477  				return ec.fieldContext___Type_kind(ctx, field)
  2478  			case "name":
  2479  				return ec.fieldContext___Type_name(ctx, field)
  2480  			case "description":
  2481  				return ec.fieldContext___Type_description(ctx, field)
  2482  			case "fields":
  2483  				return ec.fieldContext___Type_fields(ctx, field)
  2484  			case "interfaces":
  2485  				return ec.fieldContext___Type_interfaces(ctx, field)
  2486  			case "possibleTypes":
  2487  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  2488  			case "enumValues":
  2489  				return ec.fieldContext___Type_enumValues(ctx, field)
  2490  			case "inputFields":
  2491  				return ec.fieldContext___Type_inputFields(ctx, field)
  2492  			case "ofType":
  2493  				return ec.fieldContext___Type_ofType(ctx, field)
  2494  			case "specifiedByURL":
  2495  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  2496  			}
  2497  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  2498  		},
  2499  	}
  2500  	return fc, nil
  2501  }
  2502  
  2503  func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  2504  	fc, err := ec.fieldContext___Schema_directives(ctx, field)
  2505  	if err != nil {
  2506  		return graphql.Null
  2507  	}
  2508  	ctx = graphql.WithFieldContext(ctx, fc)
  2509  	defer func() {
  2510  		if r := recover(); r != nil {
  2511  			ec.Error(ctx, ec.Recover(ctx, r))
  2512  			ret = graphql.Null
  2513  		}
  2514  	}()
  2515  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2516  		ctx = rctx // use context from middleware stack in children
  2517  		return obj.Directives(), nil
  2518  	})
  2519  	if err != nil {
  2520  		ec.Error(ctx, err)
  2521  		return graphql.Null
  2522  	}
  2523  	if resTmp == nil {
  2524  		if !graphql.HasFieldError(ctx, fc) {
  2525  			ec.Errorf(ctx, "must not be null")
  2526  		}
  2527  		return graphql.Null
  2528  	}
  2529  	res := resTmp.([]introspection.Directive)
  2530  	fc.Result = res
  2531  	return ec.marshalN__Directive2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
  2532  }
  2533  
  2534  func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2535  	fc = &graphql.FieldContext{
  2536  		Object:     "__Schema",
  2537  		Field:      field,
  2538  		IsMethod:   true,
  2539  		IsResolver: false,
  2540  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2541  			switch field.Name {
  2542  			case "name":
  2543  				return ec.fieldContext___Directive_name(ctx, field)
  2544  			case "description":
  2545  				return ec.fieldContext___Directive_description(ctx, field)
  2546  			case "locations":
  2547  				return ec.fieldContext___Directive_locations(ctx, field)
  2548  			case "args":
  2549  				return ec.fieldContext___Directive_args(ctx, field)
  2550  			case "isRepeatable":
  2551  				return ec.fieldContext___Directive_isRepeatable(ctx, field)
  2552  			}
  2553  			return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
  2554  		},
  2555  	}
  2556  	return fc, nil
  2557  }
  2558  
  2559  func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2560  	fc, err := ec.fieldContext___Type_kind(ctx, field)
  2561  	if err != nil {
  2562  		return graphql.Null
  2563  	}
  2564  	ctx = graphql.WithFieldContext(ctx, fc)
  2565  	defer func() {
  2566  		if r := recover(); r != nil {
  2567  			ec.Error(ctx, ec.Recover(ctx, r))
  2568  			ret = graphql.Null
  2569  		}
  2570  	}()
  2571  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2572  		ctx = rctx // use context from middleware stack in children
  2573  		return obj.Kind(), nil
  2574  	})
  2575  	if err != nil {
  2576  		ec.Error(ctx, err)
  2577  		return graphql.Null
  2578  	}
  2579  	if resTmp == nil {
  2580  		if !graphql.HasFieldError(ctx, fc) {
  2581  			ec.Errorf(ctx, "must not be null")
  2582  		}
  2583  		return graphql.Null
  2584  	}
  2585  	res := resTmp.(string)
  2586  	fc.Result = res
  2587  	return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
  2588  }
  2589  
  2590  func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2591  	fc = &graphql.FieldContext{
  2592  		Object:     "__Type",
  2593  		Field:      field,
  2594  		IsMethod:   true,
  2595  		IsResolver: false,
  2596  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2597  			return nil, errors.New("field of type __TypeKind does not have child fields")
  2598  		},
  2599  	}
  2600  	return fc, nil
  2601  }
  2602  
  2603  func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2604  	fc, err := ec.fieldContext___Type_name(ctx, field)
  2605  	if err != nil {
  2606  		return graphql.Null
  2607  	}
  2608  	ctx = graphql.WithFieldContext(ctx, fc)
  2609  	defer func() {
  2610  		if r := recover(); r != nil {
  2611  			ec.Error(ctx, ec.Recover(ctx, r))
  2612  			ret = graphql.Null
  2613  		}
  2614  	}()
  2615  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2616  		ctx = rctx // use context from middleware stack in children
  2617  		return obj.Name(), nil
  2618  	})
  2619  	if err != nil {
  2620  		ec.Error(ctx, err)
  2621  		return graphql.Null
  2622  	}
  2623  	if resTmp == nil {
  2624  		return graphql.Null
  2625  	}
  2626  	res := resTmp.(*string)
  2627  	fc.Result = res
  2628  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  2629  }
  2630  
  2631  func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2632  	fc = &graphql.FieldContext{
  2633  		Object:     "__Type",
  2634  		Field:      field,
  2635  		IsMethod:   true,
  2636  		IsResolver: false,
  2637  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2638  			return nil, errors.New("field of type String does not have child fields")
  2639  		},
  2640  	}
  2641  	return fc, nil
  2642  }
  2643  
  2644  func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2645  	fc, err := ec.fieldContext___Type_description(ctx, field)
  2646  	if err != nil {
  2647  		return graphql.Null
  2648  	}
  2649  	ctx = graphql.WithFieldContext(ctx, fc)
  2650  	defer func() {
  2651  		if r := recover(); r != nil {
  2652  			ec.Error(ctx, ec.Recover(ctx, r))
  2653  			ret = graphql.Null
  2654  		}
  2655  	}()
  2656  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2657  		ctx = rctx // use context from middleware stack in children
  2658  		return obj.Description(), nil
  2659  	})
  2660  	if err != nil {
  2661  		ec.Error(ctx, err)
  2662  		return graphql.Null
  2663  	}
  2664  	if resTmp == nil {
  2665  		return graphql.Null
  2666  	}
  2667  	res := resTmp.(*string)
  2668  	fc.Result = res
  2669  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  2670  }
  2671  
  2672  func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2673  	fc = &graphql.FieldContext{
  2674  		Object:     "__Type",
  2675  		Field:      field,
  2676  		IsMethod:   true,
  2677  		IsResolver: false,
  2678  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2679  			return nil, errors.New("field of type String does not have child fields")
  2680  		},
  2681  	}
  2682  	return fc, nil
  2683  }
  2684  
  2685  func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2686  	fc, err := ec.fieldContext___Type_fields(ctx, field)
  2687  	if err != nil {
  2688  		return graphql.Null
  2689  	}
  2690  	ctx = graphql.WithFieldContext(ctx, fc)
  2691  	defer func() {
  2692  		if r := recover(); r != nil {
  2693  			ec.Error(ctx, ec.Recover(ctx, r))
  2694  			ret = graphql.Null
  2695  		}
  2696  	}()
  2697  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2698  		ctx = rctx // use context from middleware stack in children
  2699  		return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
  2700  	})
  2701  	if err != nil {
  2702  		ec.Error(ctx, err)
  2703  		return graphql.Null
  2704  	}
  2705  	if resTmp == nil {
  2706  		return graphql.Null
  2707  	}
  2708  	res := resTmp.([]introspection.Field)
  2709  	fc.Result = res
  2710  	return ec.marshalO__Field2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
  2711  }
  2712  
  2713  func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2714  	fc = &graphql.FieldContext{
  2715  		Object:     "__Type",
  2716  		Field:      field,
  2717  		IsMethod:   true,
  2718  		IsResolver: false,
  2719  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2720  			switch field.Name {
  2721  			case "name":
  2722  				return ec.fieldContext___Field_name(ctx, field)
  2723  			case "description":
  2724  				return ec.fieldContext___Field_description(ctx, field)
  2725  			case "args":
  2726  				return ec.fieldContext___Field_args(ctx, field)
  2727  			case "type":
  2728  				return ec.fieldContext___Field_type(ctx, field)
  2729  			case "isDeprecated":
  2730  				return ec.fieldContext___Field_isDeprecated(ctx, field)
  2731  			case "deprecationReason":
  2732  				return ec.fieldContext___Field_deprecationReason(ctx, field)
  2733  			}
  2734  			return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
  2735  		},
  2736  	}
  2737  	defer func() {
  2738  		if r := recover(); r != nil {
  2739  			err = ec.Recover(ctx, r)
  2740  			ec.Error(ctx, err)
  2741  		}
  2742  	}()
  2743  	ctx = graphql.WithFieldContext(ctx, fc)
  2744  	if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  2745  		ec.Error(ctx, err)
  2746  		return fc, err
  2747  	}
  2748  	return fc, nil
  2749  }
  2750  
  2751  func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2752  	fc, err := ec.fieldContext___Type_interfaces(ctx, field)
  2753  	if err != nil {
  2754  		return graphql.Null
  2755  	}
  2756  	ctx = graphql.WithFieldContext(ctx, fc)
  2757  	defer func() {
  2758  		if r := recover(); r != nil {
  2759  			ec.Error(ctx, ec.Recover(ctx, r))
  2760  			ret = graphql.Null
  2761  		}
  2762  	}()
  2763  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2764  		ctx = rctx // use context from middleware stack in children
  2765  		return obj.Interfaces(), nil
  2766  	})
  2767  	if err != nil {
  2768  		ec.Error(ctx, err)
  2769  		return graphql.Null
  2770  	}
  2771  	if resTmp == nil {
  2772  		return graphql.Null
  2773  	}
  2774  	res := resTmp.([]introspection.Type)
  2775  	fc.Result = res
  2776  	return ec.marshalO__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  2777  }
  2778  
  2779  func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2780  	fc = &graphql.FieldContext{
  2781  		Object:     "__Type",
  2782  		Field:      field,
  2783  		IsMethod:   true,
  2784  		IsResolver: false,
  2785  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2786  			switch field.Name {
  2787  			case "kind":
  2788  				return ec.fieldContext___Type_kind(ctx, field)
  2789  			case "name":
  2790  				return ec.fieldContext___Type_name(ctx, field)
  2791  			case "description":
  2792  				return ec.fieldContext___Type_description(ctx, field)
  2793  			case "fields":
  2794  				return ec.fieldContext___Type_fields(ctx, field)
  2795  			case "interfaces":
  2796  				return ec.fieldContext___Type_interfaces(ctx, field)
  2797  			case "possibleTypes":
  2798  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  2799  			case "enumValues":
  2800  				return ec.fieldContext___Type_enumValues(ctx, field)
  2801  			case "inputFields":
  2802  				return ec.fieldContext___Type_inputFields(ctx, field)
  2803  			case "ofType":
  2804  				return ec.fieldContext___Type_ofType(ctx, field)
  2805  			case "specifiedByURL":
  2806  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  2807  			}
  2808  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  2809  		},
  2810  	}
  2811  	return fc, nil
  2812  }
  2813  
  2814  func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2815  	fc, err := ec.fieldContext___Type_possibleTypes(ctx, field)
  2816  	if err != nil {
  2817  		return graphql.Null
  2818  	}
  2819  	ctx = graphql.WithFieldContext(ctx, fc)
  2820  	defer func() {
  2821  		if r := recover(); r != nil {
  2822  			ec.Error(ctx, ec.Recover(ctx, r))
  2823  			ret = graphql.Null
  2824  		}
  2825  	}()
  2826  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2827  		ctx = rctx // use context from middleware stack in children
  2828  		return obj.PossibleTypes(), nil
  2829  	})
  2830  	if err != nil {
  2831  		ec.Error(ctx, err)
  2832  		return graphql.Null
  2833  	}
  2834  	if resTmp == nil {
  2835  		return graphql.Null
  2836  	}
  2837  	res := resTmp.([]introspection.Type)
  2838  	fc.Result = res
  2839  	return ec.marshalO__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  2840  }
  2841  
  2842  func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2843  	fc = &graphql.FieldContext{
  2844  		Object:     "__Type",
  2845  		Field:      field,
  2846  		IsMethod:   true,
  2847  		IsResolver: false,
  2848  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2849  			switch field.Name {
  2850  			case "kind":
  2851  				return ec.fieldContext___Type_kind(ctx, field)
  2852  			case "name":
  2853  				return ec.fieldContext___Type_name(ctx, field)
  2854  			case "description":
  2855  				return ec.fieldContext___Type_description(ctx, field)
  2856  			case "fields":
  2857  				return ec.fieldContext___Type_fields(ctx, field)
  2858  			case "interfaces":
  2859  				return ec.fieldContext___Type_interfaces(ctx, field)
  2860  			case "possibleTypes":
  2861  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  2862  			case "enumValues":
  2863  				return ec.fieldContext___Type_enumValues(ctx, field)
  2864  			case "inputFields":
  2865  				return ec.fieldContext___Type_inputFields(ctx, field)
  2866  			case "ofType":
  2867  				return ec.fieldContext___Type_ofType(ctx, field)
  2868  			case "specifiedByURL":
  2869  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  2870  			}
  2871  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  2872  		},
  2873  	}
  2874  	return fc, nil
  2875  }
  2876  
  2877  func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2878  	fc, err := ec.fieldContext___Type_enumValues(ctx, field)
  2879  	if err != nil {
  2880  		return graphql.Null
  2881  	}
  2882  	ctx = graphql.WithFieldContext(ctx, fc)
  2883  	defer func() {
  2884  		if r := recover(); r != nil {
  2885  			ec.Error(ctx, ec.Recover(ctx, r))
  2886  			ret = graphql.Null
  2887  		}
  2888  	}()
  2889  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2890  		ctx = rctx // use context from middleware stack in children
  2891  		return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
  2892  	})
  2893  	if err != nil {
  2894  		ec.Error(ctx, err)
  2895  		return graphql.Null
  2896  	}
  2897  	if resTmp == nil {
  2898  		return graphql.Null
  2899  	}
  2900  	res := resTmp.([]introspection.EnumValue)
  2901  	fc.Result = res
  2902  	return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
  2903  }
  2904  
  2905  func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2906  	fc = &graphql.FieldContext{
  2907  		Object:     "__Type",
  2908  		Field:      field,
  2909  		IsMethod:   true,
  2910  		IsResolver: false,
  2911  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2912  			switch field.Name {
  2913  			case "name":
  2914  				return ec.fieldContext___EnumValue_name(ctx, field)
  2915  			case "description":
  2916  				return ec.fieldContext___EnumValue_description(ctx, field)
  2917  			case "isDeprecated":
  2918  				return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
  2919  			case "deprecationReason":
  2920  				return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
  2921  			}
  2922  			return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
  2923  		},
  2924  	}
  2925  	defer func() {
  2926  		if r := recover(); r != nil {
  2927  			err = ec.Recover(ctx, r)
  2928  			ec.Error(ctx, err)
  2929  		}
  2930  	}()
  2931  	ctx = graphql.WithFieldContext(ctx, fc)
  2932  	if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  2933  		ec.Error(ctx, err)
  2934  		return fc, err
  2935  	}
  2936  	return fc, nil
  2937  }
  2938  
  2939  func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2940  	fc, err := ec.fieldContext___Type_inputFields(ctx, field)
  2941  	if err != nil {
  2942  		return graphql.Null
  2943  	}
  2944  	ctx = graphql.WithFieldContext(ctx, fc)
  2945  	defer func() {
  2946  		if r := recover(); r != nil {
  2947  			ec.Error(ctx, ec.Recover(ctx, r))
  2948  			ret = graphql.Null
  2949  		}
  2950  	}()
  2951  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  2952  		ctx = rctx // use context from middleware stack in children
  2953  		return obj.InputFields(), nil
  2954  	})
  2955  	if err != nil {
  2956  		ec.Error(ctx, err)
  2957  		return graphql.Null
  2958  	}
  2959  	if resTmp == nil {
  2960  		return graphql.Null
  2961  	}
  2962  	res := resTmp.([]introspection.InputValue)
  2963  	fc.Result = res
  2964  	return ec.marshalO__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  2965  }
  2966  
  2967  func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  2968  	fc = &graphql.FieldContext{
  2969  		Object:     "__Type",
  2970  		Field:      field,
  2971  		IsMethod:   true,
  2972  		IsResolver: false,
  2973  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  2974  			switch field.Name {
  2975  			case "name":
  2976  				return ec.fieldContext___InputValue_name(ctx, field)
  2977  			case "description":
  2978  				return ec.fieldContext___InputValue_description(ctx, field)
  2979  			case "type":
  2980  				return ec.fieldContext___InputValue_type(ctx, field)
  2981  			case "defaultValue":
  2982  				return ec.fieldContext___InputValue_defaultValue(ctx, field)
  2983  			}
  2984  			return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
  2985  		},
  2986  	}
  2987  	return fc, nil
  2988  }
  2989  
  2990  func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  2991  	fc, err := ec.fieldContext___Type_ofType(ctx, field)
  2992  	if err != nil {
  2993  		return graphql.Null
  2994  	}
  2995  	ctx = graphql.WithFieldContext(ctx, fc)
  2996  	defer func() {
  2997  		if r := recover(); r != nil {
  2998  			ec.Error(ctx, ec.Recover(ctx, r))
  2999  			ret = graphql.Null
  3000  		}
  3001  	}()
  3002  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3003  		ctx = rctx // use context from middleware stack in children
  3004  		return obj.OfType(), nil
  3005  	})
  3006  	if err != nil {
  3007  		ec.Error(ctx, err)
  3008  		return graphql.Null
  3009  	}
  3010  	if resTmp == nil {
  3011  		return graphql.Null
  3012  	}
  3013  	res := resTmp.(*introspection.Type)
  3014  	fc.Result = res
  3015  	return ec.marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  3016  }
  3017  
  3018  func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  3019  	fc = &graphql.FieldContext{
  3020  		Object:     "__Type",
  3021  		Field:      field,
  3022  		IsMethod:   true,
  3023  		IsResolver: false,
  3024  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  3025  			switch field.Name {
  3026  			case "kind":
  3027  				return ec.fieldContext___Type_kind(ctx, field)
  3028  			case "name":
  3029  				return ec.fieldContext___Type_name(ctx, field)
  3030  			case "description":
  3031  				return ec.fieldContext___Type_description(ctx, field)
  3032  			case "fields":
  3033  				return ec.fieldContext___Type_fields(ctx, field)
  3034  			case "interfaces":
  3035  				return ec.fieldContext___Type_interfaces(ctx, field)
  3036  			case "possibleTypes":
  3037  				return ec.fieldContext___Type_possibleTypes(ctx, field)
  3038  			case "enumValues":
  3039  				return ec.fieldContext___Type_enumValues(ctx, field)
  3040  			case "inputFields":
  3041  				return ec.fieldContext___Type_inputFields(ctx, field)
  3042  			case "ofType":
  3043  				return ec.fieldContext___Type_ofType(ctx, field)
  3044  			case "specifiedByURL":
  3045  				return ec.fieldContext___Type_specifiedByURL(ctx, field)
  3046  			}
  3047  			return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  3048  		},
  3049  	}
  3050  	return fc, nil
  3051  }
  3052  
  3053  func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  3054  	fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field)
  3055  	if err != nil {
  3056  		return graphql.Null
  3057  	}
  3058  	ctx = graphql.WithFieldContext(ctx, fc)
  3059  	defer func() {
  3060  		if r := recover(); r != nil {
  3061  			ec.Error(ctx, ec.Recover(ctx, r))
  3062  			ret = graphql.Null
  3063  		}
  3064  	}()
  3065  	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  3066  		ctx = rctx // use context from middleware stack in children
  3067  		return obj.SpecifiedByURL(), nil
  3068  	})
  3069  	if err != nil {
  3070  		ec.Error(ctx, err)
  3071  		return graphql.Null
  3072  	}
  3073  	if resTmp == nil {
  3074  		return graphql.Null
  3075  	}
  3076  	res := resTmp.(*string)
  3077  	fc.Result = res
  3078  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  3079  }
  3080  
  3081  func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  3082  	fc = &graphql.FieldContext{
  3083  		Object:     "__Type",
  3084  		Field:      field,
  3085  		IsMethod:   true,
  3086  		IsResolver: false,
  3087  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  3088  			return nil, errors.New("field of type String does not have child fields")
  3089  		},
  3090  	}
  3091  	return fc, nil
  3092  }
  3093  
  3094  // endregion **************************** field.gotpl *****************************
  3095  
  3096  // region    **************************** input.gotpl *****************************
  3097  
  3098  func (ec *executionContext) unmarshalInputDateFilter(ctx context.Context, obj interface{}) (models.DateFilter, error) {
  3099  	var it models.DateFilter
  3100  	asMap := map[string]interface{}{}
  3101  	for k, v := range obj.(map[string]interface{}) {
  3102  		asMap[k] = v
  3103  	}
  3104  
  3105  	if _, present := asMap["timezone"]; !present {
  3106  		asMap["timezone"] = "UTC"
  3107  	}
  3108  	if _, present := asMap["op"]; !present {
  3109  		asMap["op"] = "EQ"
  3110  	}
  3111  
  3112  	fieldsInOrder := [...]string{"value", "timezone", "op"}
  3113  	for _, k := range fieldsInOrder {
  3114  		v, ok := asMap[k]
  3115  		if !ok {
  3116  			continue
  3117  		}
  3118  		switch k {
  3119  		case "value":
  3120  			var err error
  3121  
  3122  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
  3123  			data, err := ec.unmarshalNString2string(ctx, v)
  3124  			if err != nil {
  3125  				return it, err
  3126  			}
  3127  			it.Value = data
  3128  		case "timezone":
  3129  			var err error
  3130  
  3131  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timezone"))
  3132  			data, err := ec.unmarshalOString2ᚖstring(ctx, v)
  3133  			if err != nil {
  3134  				return it, err
  3135  			}
  3136  			it.Timezone = data
  3137  		case "op":
  3138  			var err error
  3139  
  3140  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("op"))
  3141  			data, err := ec.unmarshalODATE_FILTER_OP2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilterOp(ctx, v)
  3142  			if err != nil {
  3143  				return it, err
  3144  			}
  3145  			it.Op = data
  3146  		}
  3147  	}
  3148  
  3149  	return it, nil
  3150  }
  3151  
  3152  func (ec *executionContext) unmarshalInputListCoercion(ctx context.Context, obj interface{}) (models.ListCoercion, error) {
  3153  	var it models.ListCoercion
  3154  	asMap := map[string]interface{}{}
  3155  	for k, v := range obj.(map[string]interface{}) {
  3156  		asMap[k] = v
  3157  	}
  3158  
  3159  	fieldsInOrder := [...]string{"enumVal", "strVal", "intVal", "scalarVal"}
  3160  	for _, k := range fieldsInOrder {
  3161  		v, ok := asMap[k]
  3162  		if !ok {
  3163  			continue
  3164  		}
  3165  		switch k {
  3166  		case "enumVal":
  3167  			var err error
  3168  
  3169  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enumVal"))
  3170  			data, err := ec.unmarshalOErrorType2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx, v)
  3171  			if err != nil {
  3172  				return it, err
  3173  			}
  3174  			it.EnumVal = data
  3175  		case "strVal":
  3176  			var err error
  3177  
  3178  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("strVal"))
  3179  			data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v)
  3180  			if err != nil {
  3181  				return it, err
  3182  			}
  3183  			it.StrVal = data
  3184  		case "intVal":
  3185  			var err error
  3186  
  3187  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("intVal"))
  3188  			data, err := ec.unmarshalOInt2ᚕᚖint(ctx, v)
  3189  			if err != nil {
  3190  				return it, err
  3191  			}
  3192  			it.IntVal = data
  3193  		case "scalarVal":
  3194  			var err error
  3195  
  3196  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scalarVal"))
  3197  			data, err := ec.unmarshalOMap2ᚕmap(ctx, v)
  3198  			if err != nil {
  3199  				return it, err
  3200  			}
  3201  			it.ScalarVal = data
  3202  		}
  3203  	}
  3204  
  3205  	return it, nil
  3206  }
  3207  
  3208  // endregion **************************** input.gotpl *****************************
  3209  
  3210  // region    ************************** interface.gotpl ***************************
  3211  
  3212  // endregion ************************** interface.gotpl ***************************
  3213  
  3214  // region    **************************** object.gotpl ****************************
  3215  
  3216  var elementImplementors = []string{"Element"}
  3217  
  3218  func (ec *executionContext) _Element(ctx context.Context, sel ast.SelectionSet, obj *models.Element) graphql.Marshaler {
  3219  	fields := graphql.CollectFields(ec.OperationContext, sel, elementImplementors)
  3220  
  3221  	out := graphql.NewFieldSet(fields)
  3222  	deferred := make(map[string]*graphql.FieldSet)
  3223  	for i, field := range fields {
  3224  		switch field.Name {
  3225  		case "__typename":
  3226  			out.Values[i] = graphql.MarshalString("Element")
  3227  		case "child":
  3228  			field := field
  3229  
  3230  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3231  				defer func() {
  3232  					if r := recover(); r != nil {
  3233  						ec.Error(ctx, ec.Recover(ctx, r))
  3234  					}
  3235  				}()
  3236  				res = ec._Element_child(ctx, field, obj)
  3237  				if res == graphql.Null {
  3238  					atomic.AddUint32(&fs.Invalids, 1)
  3239  				}
  3240  				return res
  3241  			}
  3242  
  3243  			if field.Deferrable != nil {
  3244  				dfs, ok := deferred[field.Deferrable.Label]
  3245  				di := 0
  3246  				if ok {
  3247  					dfs.AddField(field)
  3248  					di = len(dfs.Values) - 1
  3249  				} else {
  3250  					dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
  3251  					deferred[field.Deferrable.Label] = dfs
  3252  				}
  3253  				dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
  3254  					return innerFunc(ctx, dfs)
  3255  				})
  3256  
  3257  				// don't run the out.Concurrently() call below
  3258  				out.Values[i] = graphql.Null
  3259  				continue
  3260  			}
  3261  
  3262  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3263  		case "error":
  3264  			field := field
  3265  
  3266  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3267  				defer func() {
  3268  					if r := recover(); r != nil {
  3269  						ec.Error(ctx, ec.Recover(ctx, r))
  3270  					}
  3271  				}()
  3272  				res = ec._Element_error(ctx, field, obj)
  3273  				if res == graphql.Null {
  3274  					atomic.AddUint32(&fs.Invalids, 1)
  3275  				}
  3276  				return res
  3277  			}
  3278  
  3279  			if field.Deferrable != nil {
  3280  				dfs, ok := deferred[field.Deferrable.Label]
  3281  				di := 0
  3282  				if ok {
  3283  					dfs.AddField(field)
  3284  					di = len(dfs.Values) - 1
  3285  				} else {
  3286  					dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
  3287  					deferred[field.Deferrable.Label] = dfs
  3288  				}
  3289  				dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
  3290  					return innerFunc(ctx, dfs)
  3291  				})
  3292  
  3293  				// don't run the out.Concurrently() call below
  3294  				out.Values[i] = graphql.Null
  3295  				continue
  3296  			}
  3297  
  3298  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3299  		case "mismatched":
  3300  			field := field
  3301  
  3302  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3303  				defer func() {
  3304  					if r := recover(); r != nil {
  3305  						ec.Error(ctx, ec.Recover(ctx, r))
  3306  					}
  3307  				}()
  3308  				res = ec._Element_mismatched(ctx, field, obj)
  3309  				return res
  3310  			}
  3311  
  3312  			if field.Deferrable != nil {
  3313  				dfs, ok := deferred[field.Deferrable.Label]
  3314  				di := 0
  3315  				if ok {
  3316  					dfs.AddField(field)
  3317  					di = len(dfs.Values) - 1
  3318  				} else {
  3319  					dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
  3320  					deferred[field.Deferrable.Label] = dfs
  3321  				}
  3322  				dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
  3323  					return innerFunc(ctx, dfs)
  3324  				})
  3325  
  3326  				// don't run the out.Concurrently() call below
  3327  				out.Values[i] = graphql.Null
  3328  				continue
  3329  			}
  3330  
  3331  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3332  		default:
  3333  			panic("unknown field " + strconv.Quote(field.Name))
  3334  		}
  3335  	}
  3336  	out.Dispatch(ctx)
  3337  	if out.Invalids > 0 {
  3338  		return graphql.Null
  3339  	}
  3340  
  3341  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3342  
  3343  	for label, dfs := range deferred {
  3344  		ec.processDeferredGroup(graphql.DeferredGroup{
  3345  			Label:    label,
  3346  			Path:     graphql.GetPath(ctx),
  3347  			FieldSet: dfs,
  3348  			Context:  ctx,
  3349  		})
  3350  	}
  3351  
  3352  	return out
  3353  }
  3354  
  3355  var queryImplementors = []string{"Query"}
  3356  
  3357  func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
  3358  	fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
  3359  	ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
  3360  		Object: "Query",
  3361  	})
  3362  
  3363  	out := graphql.NewFieldSet(fields)
  3364  	deferred := make(map[string]*graphql.FieldSet)
  3365  	for i, field := range fields {
  3366  		innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
  3367  			Object: field.Name,
  3368  			Field:  field,
  3369  		})
  3370  
  3371  		switch field.Name {
  3372  		case "__typename":
  3373  			out.Values[i] = graphql.MarshalString("Query")
  3374  		case "path":
  3375  			field := field
  3376  
  3377  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3378  				defer func() {
  3379  					if r := recover(); r != nil {
  3380  						ec.Error(ctx, ec.Recover(ctx, r))
  3381  					}
  3382  				}()
  3383  				res = ec._Query_path(ctx, field)
  3384  				return res
  3385  			}
  3386  
  3387  			rrm := func(ctx context.Context) graphql.Marshaler {
  3388  				return ec.OperationContext.RootResolverMiddleware(ctx,
  3389  					func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3390  			}
  3391  
  3392  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
  3393  		case "date":
  3394  			field := field
  3395  
  3396  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3397  				defer func() {
  3398  					if r := recover(); r != nil {
  3399  						ec.Error(ctx, ec.Recover(ctx, r))
  3400  					}
  3401  				}()
  3402  				res = ec._Query_date(ctx, field)
  3403  				if res == graphql.Null {
  3404  					atomic.AddUint32(&fs.Invalids, 1)
  3405  				}
  3406  				return res
  3407  			}
  3408  
  3409  			rrm := func(ctx context.Context) graphql.Marshaler {
  3410  				return ec.OperationContext.RootResolverMiddleware(ctx,
  3411  					func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3412  			}
  3413  
  3414  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
  3415  		case "viewer":
  3416  			field := field
  3417  
  3418  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3419  				defer func() {
  3420  					if r := recover(); r != nil {
  3421  						ec.Error(ctx, ec.Recover(ctx, r))
  3422  					}
  3423  				}()
  3424  				res = ec._Query_viewer(ctx, field)
  3425  				return res
  3426  			}
  3427  
  3428  			rrm := func(ctx context.Context) graphql.Marshaler {
  3429  				return ec.OperationContext.RootResolverMiddleware(ctx,
  3430  					func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3431  			}
  3432  
  3433  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
  3434  		case "jsonEncoding":
  3435  			field := field
  3436  
  3437  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3438  				defer func() {
  3439  					if r := recover(); r != nil {
  3440  						ec.Error(ctx, ec.Recover(ctx, r))
  3441  					}
  3442  				}()
  3443  				res = ec._Query_jsonEncoding(ctx, field)
  3444  				if res == graphql.Null {
  3445  					atomic.AddUint32(&fs.Invalids, 1)
  3446  				}
  3447  				return res
  3448  			}
  3449  
  3450  			rrm := func(ctx context.Context) graphql.Marshaler {
  3451  				return ec.OperationContext.RootResolverMiddleware(ctx,
  3452  					func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3453  			}
  3454  
  3455  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
  3456  		case "error":
  3457  			field := field
  3458  
  3459  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3460  				defer func() {
  3461  					if r := recover(); r != nil {
  3462  						ec.Error(ctx, ec.Recover(ctx, r))
  3463  					}
  3464  				}()
  3465  				res = ec._Query_error(ctx, field)
  3466  				if res == graphql.Null {
  3467  					atomic.AddUint32(&fs.Invalids, 1)
  3468  				}
  3469  				return res
  3470  			}
  3471  
  3472  			rrm := func(ctx context.Context) graphql.Marshaler {
  3473  				return ec.OperationContext.RootResolverMiddleware(ctx,
  3474  					func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3475  			}
  3476  
  3477  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
  3478  		case "complexity":
  3479  			field := field
  3480  
  3481  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3482  				defer func() {
  3483  					if r := recover(); r != nil {
  3484  						ec.Error(ctx, ec.Recover(ctx, r))
  3485  					}
  3486  				}()
  3487  				res = ec._Query_complexity(ctx, field)
  3488  				if res == graphql.Null {
  3489  					atomic.AddUint32(&fs.Invalids, 1)
  3490  				}
  3491  				return res
  3492  			}
  3493  
  3494  			rrm := func(ctx context.Context) graphql.Marshaler {
  3495  				return ec.OperationContext.RootResolverMiddleware(ctx,
  3496  					func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3497  			}
  3498  
  3499  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
  3500  		case "coercion":
  3501  			field := field
  3502  
  3503  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3504  				defer func() {
  3505  					if r := recover(); r != nil {
  3506  						ec.Error(ctx, ec.Recover(ctx, r))
  3507  					}
  3508  				}()
  3509  				res = ec._Query_coercion(ctx, field)
  3510  				if res == graphql.Null {
  3511  					atomic.AddUint32(&fs.Invalids, 1)
  3512  				}
  3513  				return res
  3514  			}
  3515  
  3516  			rrm := func(ctx context.Context) graphql.Marshaler {
  3517  				return ec.OperationContext.RootResolverMiddleware(ctx,
  3518  					func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3519  			}
  3520  
  3521  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
  3522  		case "__type":
  3523  			out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
  3524  				return ec._Query___type(ctx, field)
  3525  			})
  3526  		case "__schema":
  3527  			out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
  3528  				return ec._Query___schema(ctx, field)
  3529  			})
  3530  		default:
  3531  			panic("unknown field " + strconv.Quote(field.Name))
  3532  		}
  3533  	}
  3534  	out.Dispatch(ctx)
  3535  	if out.Invalids > 0 {
  3536  		return graphql.Null
  3537  	}
  3538  
  3539  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3540  
  3541  	for label, dfs := range deferred {
  3542  		ec.processDeferredGroup(graphql.DeferredGroup{
  3543  			Label:    label,
  3544  			Path:     graphql.GetPath(ctx),
  3545  			FieldSet: dfs,
  3546  			Context:  ctx,
  3547  		})
  3548  	}
  3549  
  3550  	return out
  3551  }
  3552  
  3553  var remoteModelWithOmitemptyImplementors = []string{"RemoteModelWithOmitempty"}
  3554  
  3555  func (ec *executionContext) _RemoteModelWithOmitempty(ctx context.Context, sel ast.SelectionSet, obj *testomitempty.RemoteModelWithOmitempty) graphql.Marshaler {
  3556  	fields := graphql.CollectFields(ec.OperationContext, sel, remoteModelWithOmitemptyImplementors)
  3557  
  3558  	out := graphql.NewFieldSet(fields)
  3559  	deferred := make(map[string]*graphql.FieldSet)
  3560  	for i, field := range fields {
  3561  		switch field.Name {
  3562  		case "__typename":
  3563  			out.Values[i] = graphql.MarshalString("RemoteModelWithOmitempty")
  3564  		case "newDesc":
  3565  			out.Values[i] = ec._RemoteModelWithOmitempty_newDesc(ctx, field, obj)
  3566  		default:
  3567  			panic("unknown field " + strconv.Quote(field.Name))
  3568  		}
  3569  	}
  3570  	out.Dispatch(ctx)
  3571  	if out.Invalids > 0 {
  3572  		return graphql.Null
  3573  	}
  3574  
  3575  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3576  
  3577  	for label, dfs := range deferred {
  3578  		ec.processDeferredGroup(graphql.DeferredGroup{
  3579  			Label:    label,
  3580  			Path:     graphql.GetPath(ctx),
  3581  			FieldSet: dfs,
  3582  			Context:  ctx,
  3583  		})
  3584  	}
  3585  
  3586  	return out
  3587  }
  3588  
  3589  var userImplementors = []string{"User"}
  3590  
  3591  func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *remote_api.User) graphql.Marshaler {
  3592  	fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors)
  3593  
  3594  	out := graphql.NewFieldSet(fields)
  3595  	deferred := make(map[string]*graphql.FieldSet)
  3596  	for i, field := range fields {
  3597  		switch field.Name {
  3598  		case "__typename":
  3599  			out.Values[i] = graphql.MarshalString("User")
  3600  		case "name":
  3601  			out.Values[i] = ec._User_name(ctx, field, obj)
  3602  			if out.Values[i] == graphql.Null {
  3603  				atomic.AddUint32(&out.Invalids, 1)
  3604  			}
  3605  		case "likes":
  3606  			field := field
  3607  
  3608  			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
  3609  				defer func() {
  3610  					if r := recover(); r != nil {
  3611  						ec.Error(ctx, ec.Recover(ctx, r))
  3612  					}
  3613  				}()
  3614  				res = ec._User_likes(ctx, field, obj)
  3615  				if res == graphql.Null {
  3616  					atomic.AddUint32(&fs.Invalids, 1)
  3617  				}
  3618  				return res
  3619  			}
  3620  
  3621  			if field.Deferrable != nil {
  3622  				dfs, ok := deferred[field.Deferrable.Label]
  3623  				di := 0
  3624  				if ok {
  3625  					dfs.AddField(field)
  3626  					di = len(dfs.Values) - 1
  3627  				} else {
  3628  					dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
  3629  					deferred[field.Deferrable.Label] = dfs
  3630  				}
  3631  				dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
  3632  					return innerFunc(ctx, dfs)
  3633  				})
  3634  
  3635  				// don't run the out.Concurrently() call below
  3636  				out.Values[i] = graphql.Null
  3637  				continue
  3638  			}
  3639  
  3640  			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
  3641  		case "phoneNumber":
  3642  			out.Values[i] = ec._User_phoneNumber(ctx, field, obj)
  3643  		default:
  3644  			panic("unknown field " + strconv.Quote(field.Name))
  3645  		}
  3646  	}
  3647  	out.Dispatch(ctx)
  3648  	if out.Invalids > 0 {
  3649  		return graphql.Null
  3650  	}
  3651  
  3652  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3653  
  3654  	for label, dfs := range deferred {
  3655  		ec.processDeferredGroup(graphql.DeferredGroup{
  3656  			Label:    label,
  3657  			Path:     graphql.GetPath(ctx),
  3658  			FieldSet: dfs,
  3659  			Context:  ctx,
  3660  		})
  3661  	}
  3662  
  3663  	return out
  3664  }
  3665  
  3666  var viewerImplementors = []string{"Viewer"}
  3667  
  3668  func (ec *executionContext) _Viewer(ctx context.Context, sel ast.SelectionSet, obj *models.Viewer) graphql.Marshaler {
  3669  	fields := graphql.CollectFields(ec.OperationContext, sel, viewerImplementors)
  3670  
  3671  	out := graphql.NewFieldSet(fields)
  3672  	deferred := make(map[string]*graphql.FieldSet)
  3673  	for i, field := range fields {
  3674  		switch field.Name {
  3675  		case "__typename":
  3676  			out.Values[i] = graphql.MarshalString("Viewer")
  3677  		case "user":
  3678  			out.Values[i] = ec._Viewer_user(ctx, field, obj)
  3679  		default:
  3680  			panic("unknown field " + strconv.Quote(field.Name))
  3681  		}
  3682  	}
  3683  	out.Dispatch(ctx)
  3684  	if out.Invalids > 0 {
  3685  		return graphql.Null
  3686  	}
  3687  
  3688  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3689  
  3690  	for label, dfs := range deferred {
  3691  		ec.processDeferredGroup(graphql.DeferredGroup{
  3692  			Label:    label,
  3693  			Path:     graphql.GetPath(ctx),
  3694  			FieldSet: dfs,
  3695  			Context:  ctx,
  3696  		})
  3697  	}
  3698  
  3699  	return out
  3700  }
  3701  
  3702  var __DirectiveImplementors = []string{"__Directive"}
  3703  
  3704  func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
  3705  	fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
  3706  
  3707  	out := graphql.NewFieldSet(fields)
  3708  	deferred := make(map[string]*graphql.FieldSet)
  3709  	for i, field := range fields {
  3710  		switch field.Name {
  3711  		case "__typename":
  3712  			out.Values[i] = graphql.MarshalString("__Directive")
  3713  		case "name":
  3714  			out.Values[i] = ec.___Directive_name(ctx, field, obj)
  3715  			if out.Values[i] == graphql.Null {
  3716  				out.Invalids++
  3717  			}
  3718  		case "description":
  3719  			out.Values[i] = ec.___Directive_description(ctx, field, obj)
  3720  		case "locations":
  3721  			out.Values[i] = ec.___Directive_locations(ctx, field, obj)
  3722  			if out.Values[i] == graphql.Null {
  3723  				out.Invalids++
  3724  			}
  3725  		case "args":
  3726  			out.Values[i] = ec.___Directive_args(ctx, field, obj)
  3727  			if out.Values[i] == graphql.Null {
  3728  				out.Invalids++
  3729  			}
  3730  		case "isRepeatable":
  3731  			out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
  3732  			if out.Values[i] == graphql.Null {
  3733  				out.Invalids++
  3734  			}
  3735  		default:
  3736  			panic("unknown field " + strconv.Quote(field.Name))
  3737  		}
  3738  	}
  3739  	out.Dispatch(ctx)
  3740  	if out.Invalids > 0 {
  3741  		return graphql.Null
  3742  	}
  3743  
  3744  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3745  
  3746  	for label, dfs := range deferred {
  3747  		ec.processDeferredGroup(graphql.DeferredGroup{
  3748  			Label:    label,
  3749  			Path:     graphql.GetPath(ctx),
  3750  			FieldSet: dfs,
  3751  			Context:  ctx,
  3752  		})
  3753  	}
  3754  
  3755  	return out
  3756  }
  3757  
  3758  var __EnumValueImplementors = []string{"__EnumValue"}
  3759  
  3760  func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
  3761  	fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
  3762  
  3763  	out := graphql.NewFieldSet(fields)
  3764  	deferred := make(map[string]*graphql.FieldSet)
  3765  	for i, field := range fields {
  3766  		switch field.Name {
  3767  		case "__typename":
  3768  			out.Values[i] = graphql.MarshalString("__EnumValue")
  3769  		case "name":
  3770  			out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
  3771  			if out.Values[i] == graphql.Null {
  3772  				out.Invalids++
  3773  			}
  3774  		case "description":
  3775  			out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
  3776  		case "isDeprecated":
  3777  			out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
  3778  			if out.Values[i] == graphql.Null {
  3779  				out.Invalids++
  3780  			}
  3781  		case "deprecationReason":
  3782  			out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
  3783  		default:
  3784  			panic("unknown field " + strconv.Quote(field.Name))
  3785  		}
  3786  	}
  3787  	out.Dispatch(ctx)
  3788  	if out.Invalids > 0 {
  3789  		return graphql.Null
  3790  	}
  3791  
  3792  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3793  
  3794  	for label, dfs := range deferred {
  3795  		ec.processDeferredGroup(graphql.DeferredGroup{
  3796  			Label:    label,
  3797  			Path:     graphql.GetPath(ctx),
  3798  			FieldSet: dfs,
  3799  			Context:  ctx,
  3800  		})
  3801  	}
  3802  
  3803  	return out
  3804  }
  3805  
  3806  var __FieldImplementors = []string{"__Field"}
  3807  
  3808  func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
  3809  	fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
  3810  
  3811  	out := graphql.NewFieldSet(fields)
  3812  	deferred := make(map[string]*graphql.FieldSet)
  3813  	for i, field := range fields {
  3814  		switch field.Name {
  3815  		case "__typename":
  3816  			out.Values[i] = graphql.MarshalString("__Field")
  3817  		case "name":
  3818  			out.Values[i] = ec.___Field_name(ctx, field, obj)
  3819  			if out.Values[i] == graphql.Null {
  3820  				out.Invalids++
  3821  			}
  3822  		case "description":
  3823  			out.Values[i] = ec.___Field_description(ctx, field, obj)
  3824  		case "args":
  3825  			out.Values[i] = ec.___Field_args(ctx, field, obj)
  3826  			if out.Values[i] == graphql.Null {
  3827  				out.Invalids++
  3828  			}
  3829  		case "type":
  3830  			out.Values[i] = ec.___Field_type(ctx, field, obj)
  3831  			if out.Values[i] == graphql.Null {
  3832  				out.Invalids++
  3833  			}
  3834  		case "isDeprecated":
  3835  			out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
  3836  			if out.Values[i] == graphql.Null {
  3837  				out.Invalids++
  3838  			}
  3839  		case "deprecationReason":
  3840  			out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
  3841  		default:
  3842  			panic("unknown field " + strconv.Quote(field.Name))
  3843  		}
  3844  	}
  3845  	out.Dispatch(ctx)
  3846  	if out.Invalids > 0 {
  3847  		return graphql.Null
  3848  	}
  3849  
  3850  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3851  
  3852  	for label, dfs := range deferred {
  3853  		ec.processDeferredGroup(graphql.DeferredGroup{
  3854  			Label:    label,
  3855  			Path:     graphql.GetPath(ctx),
  3856  			FieldSet: dfs,
  3857  			Context:  ctx,
  3858  		})
  3859  	}
  3860  
  3861  	return out
  3862  }
  3863  
  3864  var __InputValueImplementors = []string{"__InputValue"}
  3865  
  3866  func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
  3867  	fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
  3868  
  3869  	out := graphql.NewFieldSet(fields)
  3870  	deferred := make(map[string]*graphql.FieldSet)
  3871  	for i, field := range fields {
  3872  		switch field.Name {
  3873  		case "__typename":
  3874  			out.Values[i] = graphql.MarshalString("__InputValue")
  3875  		case "name":
  3876  			out.Values[i] = ec.___InputValue_name(ctx, field, obj)
  3877  			if out.Values[i] == graphql.Null {
  3878  				out.Invalids++
  3879  			}
  3880  		case "description":
  3881  			out.Values[i] = ec.___InputValue_description(ctx, field, obj)
  3882  		case "type":
  3883  			out.Values[i] = ec.___InputValue_type(ctx, field, obj)
  3884  			if out.Values[i] == graphql.Null {
  3885  				out.Invalids++
  3886  			}
  3887  		case "defaultValue":
  3888  			out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
  3889  		default:
  3890  			panic("unknown field " + strconv.Quote(field.Name))
  3891  		}
  3892  	}
  3893  	out.Dispatch(ctx)
  3894  	if out.Invalids > 0 {
  3895  		return graphql.Null
  3896  	}
  3897  
  3898  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3899  
  3900  	for label, dfs := range deferred {
  3901  		ec.processDeferredGroup(graphql.DeferredGroup{
  3902  			Label:    label,
  3903  			Path:     graphql.GetPath(ctx),
  3904  			FieldSet: dfs,
  3905  			Context:  ctx,
  3906  		})
  3907  	}
  3908  
  3909  	return out
  3910  }
  3911  
  3912  var __SchemaImplementors = []string{"__Schema"}
  3913  
  3914  func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
  3915  	fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
  3916  
  3917  	out := graphql.NewFieldSet(fields)
  3918  	deferred := make(map[string]*graphql.FieldSet)
  3919  	for i, field := range fields {
  3920  		switch field.Name {
  3921  		case "__typename":
  3922  			out.Values[i] = graphql.MarshalString("__Schema")
  3923  		case "description":
  3924  			out.Values[i] = ec.___Schema_description(ctx, field, obj)
  3925  		case "types":
  3926  			out.Values[i] = ec.___Schema_types(ctx, field, obj)
  3927  			if out.Values[i] == graphql.Null {
  3928  				out.Invalids++
  3929  			}
  3930  		case "queryType":
  3931  			out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
  3932  			if out.Values[i] == graphql.Null {
  3933  				out.Invalids++
  3934  			}
  3935  		case "mutationType":
  3936  			out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
  3937  		case "subscriptionType":
  3938  			out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
  3939  		case "directives":
  3940  			out.Values[i] = ec.___Schema_directives(ctx, field, obj)
  3941  			if out.Values[i] == graphql.Null {
  3942  				out.Invalids++
  3943  			}
  3944  		default:
  3945  			panic("unknown field " + strconv.Quote(field.Name))
  3946  		}
  3947  	}
  3948  	out.Dispatch(ctx)
  3949  	if out.Invalids > 0 {
  3950  		return graphql.Null
  3951  	}
  3952  
  3953  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  3954  
  3955  	for label, dfs := range deferred {
  3956  		ec.processDeferredGroup(graphql.DeferredGroup{
  3957  			Label:    label,
  3958  			Path:     graphql.GetPath(ctx),
  3959  			FieldSet: dfs,
  3960  			Context:  ctx,
  3961  		})
  3962  	}
  3963  
  3964  	return out
  3965  }
  3966  
  3967  var __TypeImplementors = []string{"__Type"}
  3968  
  3969  func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
  3970  	fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
  3971  
  3972  	out := graphql.NewFieldSet(fields)
  3973  	deferred := make(map[string]*graphql.FieldSet)
  3974  	for i, field := range fields {
  3975  		switch field.Name {
  3976  		case "__typename":
  3977  			out.Values[i] = graphql.MarshalString("__Type")
  3978  		case "kind":
  3979  			out.Values[i] = ec.___Type_kind(ctx, field, obj)
  3980  			if out.Values[i] == graphql.Null {
  3981  				out.Invalids++
  3982  			}
  3983  		case "name":
  3984  			out.Values[i] = ec.___Type_name(ctx, field, obj)
  3985  		case "description":
  3986  			out.Values[i] = ec.___Type_description(ctx, field, obj)
  3987  		case "fields":
  3988  			out.Values[i] = ec.___Type_fields(ctx, field, obj)
  3989  		case "interfaces":
  3990  			out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
  3991  		case "possibleTypes":
  3992  			out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
  3993  		case "enumValues":
  3994  			out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
  3995  		case "inputFields":
  3996  			out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
  3997  		case "ofType":
  3998  			out.Values[i] = ec.___Type_ofType(ctx, field, obj)
  3999  		case "specifiedByURL":
  4000  			out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
  4001  		default:
  4002  			panic("unknown field " + strconv.Quote(field.Name))
  4003  		}
  4004  	}
  4005  	out.Dispatch(ctx)
  4006  	if out.Invalids > 0 {
  4007  		return graphql.Null
  4008  	}
  4009  
  4010  	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
  4011  
  4012  	for label, dfs := range deferred {
  4013  		ec.processDeferredGroup(graphql.DeferredGroup{
  4014  			Label:    label,
  4015  			Path:     graphql.GetPath(ctx),
  4016  			FieldSet: dfs,
  4017  			Context:  ctx,
  4018  		})
  4019  	}
  4020  
  4021  	return out
  4022  }
  4023  
  4024  // endregion **************************** object.gotpl ****************************
  4025  
  4026  // region    ***************************** type.gotpl *****************************
  4027  
  4028  func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  4029  	res, err := graphql.UnmarshalBoolean(v)
  4030  	return res, graphql.ErrorOnPath(ctx, err)
  4031  }
  4032  
  4033  func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  4034  	res := graphql.MarshalBoolean(v)
  4035  	if res == graphql.Null {
  4036  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  4037  			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  4038  		}
  4039  	}
  4040  	return res
  4041  }
  4042  
  4043  func (ec *executionContext) unmarshalNDateFilter2githubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilter(ctx context.Context, v interface{}) (models.DateFilter, error) {
  4044  	res, err := ec.unmarshalInputDateFilter(ctx, v)
  4045  	return res, graphql.ErrorOnPath(ctx, err)
  4046  }
  4047  
  4048  func (ec *executionContext) marshalNElement2githubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐElement(ctx context.Context, sel ast.SelectionSet, v models.Element) graphql.Marshaler {
  4049  	return ec._Element(ctx, sel, &v)
  4050  }
  4051  
  4052  func (ec *executionContext) marshalNElement2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐElement(ctx context.Context, sel ast.SelectionSet, v *models.Element) graphql.Marshaler {
  4053  	if v == nil {
  4054  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  4055  			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  4056  		}
  4057  		return graphql.Null
  4058  	}
  4059  	return ec._Element(ctx, sel, v)
  4060  }
  4061  
  4062  func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
  4063  	res, err := graphql.UnmarshalInt(v)
  4064  	return res, graphql.ErrorOnPath(ctx, err)
  4065  }
  4066  
  4067  func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
  4068  	res := graphql.MarshalInt(v)
  4069  	if res == graphql.Null {
  4070  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  4071  			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  4072  		}
  4073  	}
  4074  	return res
  4075  }
  4076  
  4077  func (ec *executionContext) unmarshalNListCoercion2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐListCoercion(ctx context.Context, v interface{}) (*models.ListCoercion, error) {
  4078  	res, err := ec.unmarshalInputListCoercion(ctx, v)
  4079  	return &res, graphql.ErrorOnPath(ctx, err)
  4080  }
  4081  
  4082  func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
  4083  	res, err := graphql.UnmarshalString(v)
  4084  	return res, graphql.ErrorOnPath(ctx, err)
  4085  }
  4086  
  4087  func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  4088  	res := graphql.MarshalString(v)
  4089  	if res == graphql.Null {
  4090  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  4091  			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  4092  		}
  4093  	}
  4094  	return res
  4095  }
  4096  
  4097  func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  4098  	var vSlice []interface{}
  4099  	if v != nil {
  4100  		vSlice = graphql.CoerceList(v)
  4101  	}
  4102  	var err error
  4103  	res := make([]string, len(vSlice))
  4104  	for i := range vSlice {
  4105  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  4106  		res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
  4107  		if err != nil {
  4108  			return nil, err
  4109  		}
  4110  	}
  4111  	return res, nil
  4112  }
  4113  
  4114  func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  4115  	ret := make(graphql.Array, len(v))
  4116  	for i := range v {
  4117  		ret[i] = ec.marshalNString2string(ctx, sel, v[i])
  4118  	}
  4119  
  4120  	for _, e := range ret {
  4121  		if e == graphql.Null {
  4122  			return graphql.Null
  4123  		}
  4124  	}
  4125  
  4126  	return ret
  4127  }
  4128  
  4129  func (ec *executionContext) marshalN__Directive2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
  4130  	return ec.___Directive(ctx, sel, &v)
  4131  }
  4132  
  4133  func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
  4134  	ret := make(graphql.Array, len(v))
  4135  	var wg sync.WaitGroup
  4136  	isLen1 := len(v) == 1
  4137  	if !isLen1 {
  4138  		wg.Add(len(v))
  4139  	}
  4140  	for i := range v {
  4141  		i := i
  4142  		fc := &graphql.FieldContext{
  4143  			Index:  &i,
  4144  			Result: &v[i],
  4145  		}
  4146  		ctx := graphql.WithFieldContext(ctx, fc)
  4147  		f := func(i int) {
  4148  			defer func() {
  4149  				if r := recover(); r != nil {
  4150  					ec.Error(ctx, ec.Recover(ctx, r))
  4151  					ret = nil
  4152  				}
  4153  			}()
  4154  			if !isLen1 {
  4155  				defer wg.Done()
  4156  			}
  4157  			ret[i] = ec.marshalN__Directive2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
  4158  		}
  4159  		if isLen1 {
  4160  			f(i)
  4161  		} else {
  4162  			go f(i)
  4163  		}
  4164  
  4165  	}
  4166  	wg.Wait()
  4167  
  4168  	for _, e := range ret {
  4169  		if e == graphql.Null {
  4170  			return graphql.Null
  4171  		}
  4172  	}
  4173  
  4174  	return ret
  4175  }
  4176  
  4177  func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
  4178  	res, err := graphql.UnmarshalString(v)
  4179  	return res, graphql.ErrorOnPath(ctx, err)
  4180  }
  4181  
  4182  func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  4183  	res := graphql.MarshalString(v)
  4184  	if res == graphql.Null {
  4185  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  4186  			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  4187  		}
  4188  	}
  4189  	return res
  4190  }
  4191  
  4192  func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  4193  	var vSlice []interface{}
  4194  	if v != nil {
  4195  		vSlice = graphql.CoerceList(v)
  4196  	}
  4197  	var err error
  4198  	res := make([]string, len(vSlice))
  4199  	for i := range vSlice {
  4200  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  4201  		res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
  4202  		if err != nil {
  4203  			return nil, err
  4204  		}
  4205  	}
  4206  	return res, nil
  4207  }
  4208  
  4209  func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  4210  	ret := make(graphql.Array, len(v))
  4211  	var wg sync.WaitGroup
  4212  	isLen1 := len(v) == 1
  4213  	if !isLen1 {
  4214  		wg.Add(len(v))
  4215  	}
  4216  	for i := range v {
  4217  		i := i
  4218  		fc := &graphql.FieldContext{
  4219  			Index:  &i,
  4220  			Result: &v[i],
  4221  		}
  4222  		ctx := graphql.WithFieldContext(ctx, fc)
  4223  		f := func(i int) {
  4224  			defer func() {
  4225  				if r := recover(); r != nil {
  4226  					ec.Error(ctx, ec.Recover(ctx, r))
  4227  					ret = nil
  4228  				}
  4229  			}()
  4230  			if !isLen1 {
  4231  				defer wg.Done()
  4232  			}
  4233  			ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
  4234  		}
  4235  		if isLen1 {
  4236  			f(i)
  4237  		} else {
  4238  			go f(i)
  4239  		}
  4240  
  4241  	}
  4242  	wg.Wait()
  4243  
  4244  	for _, e := range ret {
  4245  		if e == graphql.Null {
  4246  			return graphql.Null
  4247  		}
  4248  	}
  4249  
  4250  	return ret
  4251  }
  4252  
  4253  func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
  4254  	return ec.___EnumValue(ctx, sel, &v)
  4255  }
  4256  
  4257  func (ec *executionContext) marshalN__Field2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
  4258  	return ec.___Field(ctx, sel, &v)
  4259  }
  4260  
  4261  func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
  4262  	return ec.___InputValue(ctx, sel, &v)
  4263  }
  4264  
  4265  func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  4266  	ret := make(graphql.Array, len(v))
  4267  	var wg sync.WaitGroup
  4268  	isLen1 := len(v) == 1
  4269  	if !isLen1 {
  4270  		wg.Add(len(v))
  4271  	}
  4272  	for i := range v {
  4273  		i := i
  4274  		fc := &graphql.FieldContext{
  4275  			Index:  &i,
  4276  			Result: &v[i],
  4277  		}
  4278  		ctx := graphql.WithFieldContext(ctx, fc)
  4279  		f := func(i int) {
  4280  			defer func() {
  4281  				if r := recover(); r != nil {
  4282  					ec.Error(ctx, ec.Recover(ctx, r))
  4283  					ret = nil
  4284  				}
  4285  			}()
  4286  			if !isLen1 {
  4287  				defer wg.Done()
  4288  			}
  4289  			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  4290  		}
  4291  		if isLen1 {
  4292  			f(i)
  4293  		} else {
  4294  			go f(i)
  4295  		}
  4296  
  4297  	}
  4298  	wg.Wait()
  4299  
  4300  	for _, e := range ret {
  4301  		if e == graphql.Null {
  4302  			return graphql.Null
  4303  		}
  4304  	}
  4305  
  4306  	return ret
  4307  }
  4308  
  4309  func (ec *executionContext) marshalN__Type2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
  4310  	return ec.___Type(ctx, sel, &v)
  4311  }
  4312  
  4313  func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  4314  	ret := make(graphql.Array, len(v))
  4315  	var wg sync.WaitGroup
  4316  	isLen1 := len(v) == 1
  4317  	if !isLen1 {
  4318  		wg.Add(len(v))
  4319  	}
  4320  	for i := range v {
  4321  		i := i
  4322  		fc := &graphql.FieldContext{
  4323  			Index:  &i,
  4324  			Result: &v[i],
  4325  		}
  4326  		ctx := graphql.WithFieldContext(ctx, fc)
  4327  		f := func(i int) {
  4328  			defer func() {
  4329  				if r := recover(); r != nil {
  4330  					ec.Error(ctx, ec.Recover(ctx, r))
  4331  					ret = nil
  4332  				}
  4333  			}()
  4334  			if !isLen1 {
  4335  				defer wg.Done()
  4336  			}
  4337  			ret[i] = ec.marshalN__Type2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  4338  		}
  4339  		if isLen1 {
  4340  			f(i)
  4341  		} else {
  4342  			go f(i)
  4343  		}
  4344  
  4345  	}
  4346  	wg.Wait()
  4347  
  4348  	for _, e := range ret {
  4349  		if e == graphql.Null {
  4350  			return graphql.Null
  4351  		}
  4352  	}
  4353  
  4354  	return ret
  4355  }
  4356  
  4357  func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  4358  	if v == nil {
  4359  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  4360  			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  4361  		}
  4362  		return graphql.Null
  4363  	}
  4364  	return ec.___Type(ctx, sel, v)
  4365  }
  4366  
  4367  func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
  4368  	res, err := graphql.UnmarshalString(v)
  4369  	return res, graphql.ErrorOnPath(ctx, err)
  4370  }
  4371  
  4372  func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  4373  	res := graphql.MarshalString(v)
  4374  	if res == graphql.Null {
  4375  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  4376  			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  4377  		}
  4378  	}
  4379  	return res
  4380  }
  4381  
  4382  func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  4383  	res, err := graphql.UnmarshalBoolean(v)
  4384  	return res, graphql.ErrorOnPath(ctx, err)
  4385  }
  4386  
  4387  func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  4388  	res := graphql.MarshalBoolean(v)
  4389  	return res
  4390  }
  4391  
  4392  func (ec *executionContext) unmarshalOBoolean2ᚕboolᚄ(ctx context.Context, v interface{}) ([]bool, error) {
  4393  	if v == nil {
  4394  		return nil, nil
  4395  	}
  4396  	var vSlice []interface{}
  4397  	if v != nil {
  4398  		vSlice = graphql.CoerceList(v)
  4399  	}
  4400  	var err error
  4401  	res := make([]bool, len(vSlice))
  4402  	for i := range vSlice {
  4403  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  4404  		res[i], err = ec.unmarshalNBoolean2bool(ctx, vSlice[i])
  4405  		if err != nil {
  4406  			return nil, err
  4407  		}
  4408  	}
  4409  	return res, nil
  4410  }
  4411  
  4412  func (ec *executionContext) marshalOBoolean2ᚕboolᚄ(ctx context.Context, sel ast.SelectionSet, v []bool) graphql.Marshaler {
  4413  	if v == nil {
  4414  		return graphql.Null
  4415  	}
  4416  	ret := make(graphql.Array, len(v))
  4417  	for i := range v {
  4418  		ret[i] = ec.marshalNBoolean2bool(ctx, sel, v[i])
  4419  	}
  4420  
  4421  	for _, e := range ret {
  4422  		if e == graphql.Null {
  4423  			return graphql.Null
  4424  		}
  4425  	}
  4426  
  4427  	return ret
  4428  }
  4429  
  4430  func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
  4431  	if v == nil {
  4432  		return nil, nil
  4433  	}
  4434  	res, err := graphql.UnmarshalBoolean(v)
  4435  	return &res, graphql.ErrorOnPath(ctx, err)
  4436  }
  4437  
  4438  func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
  4439  	if v == nil {
  4440  		return graphql.Null
  4441  	}
  4442  	res := graphql.MarshalBoolean(*v)
  4443  	return res
  4444  }
  4445  
  4446  func (ec *executionContext) unmarshalODATE_FILTER_OP2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilterOp(ctx context.Context, v interface{}) (*models.DateFilterOp, error) {
  4447  	if v == nil {
  4448  		return nil, nil
  4449  	}
  4450  	var res = new(models.DateFilterOp)
  4451  	err := res.UnmarshalGQL(v)
  4452  	return res, graphql.ErrorOnPath(ctx, err)
  4453  }
  4454  
  4455  func (ec *executionContext) marshalODATE_FILTER_OP2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilterOp(ctx context.Context, sel ast.SelectionSet, v *models.DateFilterOp) graphql.Marshaler {
  4456  	if v == nil {
  4457  		return graphql.Null
  4458  	}
  4459  	return v
  4460  }
  4461  
  4462  func (ec *executionContext) marshalOElement2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐElement(ctx context.Context, sel ast.SelectionSet, v []*models.Element) graphql.Marshaler {
  4463  	if v == nil {
  4464  		return graphql.Null
  4465  	}
  4466  	ret := make(graphql.Array, len(v))
  4467  	var wg sync.WaitGroup
  4468  	isLen1 := len(v) == 1
  4469  	if !isLen1 {
  4470  		wg.Add(len(v))
  4471  	}
  4472  	for i := range v {
  4473  		i := i
  4474  		fc := &graphql.FieldContext{
  4475  			Index:  &i,
  4476  			Result: &v[i],
  4477  		}
  4478  		ctx := graphql.WithFieldContext(ctx, fc)
  4479  		f := func(i int) {
  4480  			defer func() {
  4481  				if r := recover(); r != nil {
  4482  					ec.Error(ctx, ec.Recover(ctx, r))
  4483  					ret = nil
  4484  				}
  4485  			}()
  4486  			if !isLen1 {
  4487  				defer wg.Done()
  4488  			}
  4489  			ret[i] = ec.marshalOElement2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐElement(ctx, sel, v[i])
  4490  		}
  4491  		if isLen1 {
  4492  			f(i)
  4493  		} else {
  4494  			go f(i)
  4495  		}
  4496  
  4497  	}
  4498  	wg.Wait()
  4499  
  4500  	return ret
  4501  }
  4502  
  4503  func (ec *executionContext) marshalOElement2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐElement(ctx context.Context, sel ast.SelectionSet, v *models.Element) graphql.Marshaler {
  4504  	if v == nil {
  4505  		return graphql.Null
  4506  	}
  4507  	return ec._Element(ctx, sel, v)
  4508  }
  4509  
  4510  func (ec *executionContext) unmarshalOErrorType2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx context.Context, v interface{}) ([]*models.ErrorType, error) {
  4511  	if v == nil {
  4512  		return nil, nil
  4513  	}
  4514  	var vSlice []interface{}
  4515  	if v != nil {
  4516  		vSlice = graphql.CoerceList(v)
  4517  	}
  4518  	var err error
  4519  	res := make([]*models.ErrorType, len(vSlice))
  4520  	for i := range vSlice {
  4521  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  4522  		res[i], err = ec.unmarshalOErrorType2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx, vSlice[i])
  4523  		if err != nil {
  4524  			return nil, err
  4525  		}
  4526  	}
  4527  	return res, nil
  4528  }
  4529  
  4530  func (ec *executionContext) marshalOErrorType2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx context.Context, sel ast.SelectionSet, v []*models.ErrorType) graphql.Marshaler {
  4531  	if v == nil {
  4532  		return graphql.Null
  4533  	}
  4534  	ret := make(graphql.Array, len(v))
  4535  	var wg sync.WaitGroup
  4536  	isLen1 := len(v) == 1
  4537  	if !isLen1 {
  4538  		wg.Add(len(v))
  4539  	}
  4540  	for i := range v {
  4541  		i := i
  4542  		fc := &graphql.FieldContext{
  4543  			Index:  &i,
  4544  			Result: &v[i],
  4545  		}
  4546  		ctx := graphql.WithFieldContext(ctx, fc)
  4547  		f := func(i int) {
  4548  			defer func() {
  4549  				if r := recover(); r != nil {
  4550  					ec.Error(ctx, ec.Recover(ctx, r))
  4551  					ret = nil
  4552  				}
  4553  			}()
  4554  			if !isLen1 {
  4555  				defer wg.Done()
  4556  			}
  4557  			ret[i] = ec.marshalOErrorType2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx, sel, v[i])
  4558  		}
  4559  		if isLen1 {
  4560  			f(i)
  4561  		} else {
  4562  			go f(i)
  4563  		}
  4564  
  4565  	}
  4566  	wg.Wait()
  4567  
  4568  	return ret
  4569  }
  4570  
  4571  func (ec *executionContext) unmarshalOErrorType2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx context.Context, v interface{}) (*models.ErrorType, error) {
  4572  	if v == nil {
  4573  		return nil, nil
  4574  	}
  4575  	var res = new(models.ErrorType)
  4576  	err := res.UnmarshalGQL(v)
  4577  	return res, graphql.ErrorOnPath(ctx, err)
  4578  }
  4579  
  4580  func (ec *executionContext) marshalOErrorType2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx context.Context, sel ast.SelectionSet, v *models.ErrorType) graphql.Marshaler {
  4581  	if v == nil {
  4582  		return graphql.Null
  4583  	}
  4584  	return v
  4585  }
  4586  
  4587  func (ec *executionContext) unmarshalOInt2ᚕᚖint(ctx context.Context, v interface{}) ([]*int, error) {
  4588  	if v == nil {
  4589  		return nil, nil
  4590  	}
  4591  	var vSlice []interface{}
  4592  	if v != nil {
  4593  		vSlice = graphql.CoerceList(v)
  4594  	}
  4595  	var err error
  4596  	res := make([]*int, len(vSlice))
  4597  	for i := range vSlice {
  4598  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  4599  		res[i], err = ec.unmarshalOInt2ᚖint(ctx, vSlice[i])
  4600  		if err != nil {
  4601  			return nil, err
  4602  		}
  4603  	}
  4604  	return res, nil
  4605  }
  4606  
  4607  func (ec *executionContext) marshalOInt2ᚕᚖint(ctx context.Context, sel ast.SelectionSet, v []*int) graphql.Marshaler {
  4608  	if v == nil {
  4609  		return graphql.Null
  4610  	}
  4611  	ret := make(graphql.Array, len(v))
  4612  	for i := range v {
  4613  		ret[i] = ec.marshalOInt2ᚖint(ctx, sel, v[i])
  4614  	}
  4615  
  4616  	return ret
  4617  }
  4618  
  4619  func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) {
  4620  	if v == nil {
  4621  		return nil, nil
  4622  	}
  4623  	res, err := graphql.UnmarshalInt(v)
  4624  	return &res, graphql.ErrorOnPath(ctx, err)
  4625  }
  4626  
  4627  func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
  4628  	if v == nil {
  4629  		return graphql.Null
  4630  	}
  4631  	res := graphql.MarshalInt(*v)
  4632  	return res
  4633  }
  4634  
  4635  func (ec *executionContext) unmarshalOListCoercion2ᚕᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐListCoercionᚄ(ctx context.Context, v interface{}) ([]*models.ListCoercion, error) {
  4636  	if v == nil {
  4637  		return nil, nil
  4638  	}
  4639  	var vSlice []interface{}
  4640  	if v != nil {
  4641  		vSlice = graphql.CoerceList(v)
  4642  	}
  4643  	var err error
  4644  	res := make([]*models.ListCoercion, len(vSlice))
  4645  	for i := range vSlice {
  4646  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  4647  		res[i], err = ec.unmarshalNListCoercion2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐListCoercion(ctx, vSlice[i])
  4648  		if err != nil {
  4649  			return nil, err
  4650  		}
  4651  	}
  4652  	return res, nil
  4653  }
  4654  
  4655  func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) {
  4656  	if v == nil {
  4657  		return nil, nil
  4658  	}
  4659  	res, err := graphql.UnmarshalMap(v)
  4660  	return res, graphql.ErrorOnPath(ctx, err)
  4661  }
  4662  
  4663  func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler {
  4664  	if v == nil {
  4665  		return graphql.Null
  4666  	}
  4667  	res := graphql.MarshalMap(v)
  4668  	return res
  4669  }
  4670  
  4671  func (ec *executionContext) unmarshalOMap2ᚕmap(ctx context.Context, v interface{}) ([]map[string]interface{}, error) {
  4672  	if v == nil {
  4673  		return nil, nil
  4674  	}
  4675  	var vSlice []interface{}
  4676  	if v != nil {
  4677  		vSlice = graphql.CoerceList(v)
  4678  	}
  4679  	var err error
  4680  	res := make([]map[string]interface{}, len(vSlice))
  4681  	for i := range vSlice {
  4682  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  4683  		res[i], err = ec.unmarshalOMap2map(ctx, vSlice[i])
  4684  		if err != nil {
  4685  			return nil, err
  4686  		}
  4687  	}
  4688  	return res, nil
  4689  }
  4690  
  4691  func (ec *executionContext) marshalOMap2ᚕmap(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler {
  4692  	if v == nil {
  4693  		return graphql.Null
  4694  	}
  4695  	ret := make(graphql.Array, len(v))
  4696  	for i := range v {
  4697  		ret[i] = ec.marshalOMap2map(ctx, sel, v[i])
  4698  	}
  4699  
  4700  	return ret
  4701  }
  4702  
  4703  func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
  4704  	res, err := graphql.UnmarshalString(v)
  4705  	return res, graphql.ErrorOnPath(ctx, err)
  4706  }
  4707  
  4708  func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  4709  	res := graphql.MarshalString(v)
  4710  	return res
  4711  }
  4712  
  4713  func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) {
  4714  	if v == nil {
  4715  		return nil, nil
  4716  	}
  4717  	var vSlice []interface{}
  4718  	if v != nil {
  4719  		vSlice = graphql.CoerceList(v)
  4720  	}
  4721  	var err error
  4722  	res := make([]*string, len(vSlice))
  4723  	for i := range vSlice {
  4724  		ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  4725  		res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i])
  4726  		if err != nil {
  4727  			return nil, err
  4728  		}
  4729  	}
  4730  	return res, nil
  4731  }
  4732  
  4733  func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler {
  4734  	if v == nil {
  4735  		return graphql.Null
  4736  	}
  4737  	ret := make(graphql.Array, len(v))
  4738  	for i := range v {
  4739  		ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i])
  4740  	}
  4741  
  4742  	return ret
  4743  }
  4744  
  4745  func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  4746  	if v == nil {
  4747  		return nil, nil
  4748  	}
  4749  	res, err := graphql.UnmarshalString(v)
  4750  	return &res, graphql.ErrorOnPath(ctx, err)
  4751  }
  4752  
  4753  func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  4754  	if v == nil {
  4755  		return graphql.Null
  4756  	}
  4757  	res := graphql.MarshalString(*v)
  4758  	return res
  4759  }
  4760  
  4761  func (ec *executionContext) marshalOUser2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋremote_apiᚐUser(ctx context.Context, sel ast.SelectionSet, v *remote_api.User) graphql.Marshaler {
  4762  	if v == nil {
  4763  		return graphql.Null
  4764  	}
  4765  	return ec._User(ctx, sel, v)
  4766  }
  4767  
  4768  func (ec *executionContext) marshalOViewer2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐViewer(ctx context.Context, sel ast.SelectionSet, v *models.Viewer) graphql.Marshaler {
  4769  	if v == nil {
  4770  		return graphql.Null
  4771  	}
  4772  	return ec._Viewer(ctx, sel, v)
  4773  }
  4774  
  4775  func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
  4776  	if v == nil {
  4777  		return graphql.Null
  4778  	}
  4779  	ret := make(graphql.Array, len(v))
  4780  	var wg sync.WaitGroup
  4781  	isLen1 := len(v) == 1
  4782  	if !isLen1 {
  4783  		wg.Add(len(v))
  4784  	}
  4785  	for i := range v {
  4786  		i := i
  4787  		fc := &graphql.FieldContext{
  4788  			Index:  &i,
  4789  			Result: &v[i],
  4790  		}
  4791  		ctx := graphql.WithFieldContext(ctx, fc)
  4792  		f := func(i int) {
  4793  			defer func() {
  4794  				if r := recover(); r != nil {
  4795  					ec.Error(ctx, ec.Recover(ctx, r))
  4796  					ret = nil
  4797  				}
  4798  			}()
  4799  			if !isLen1 {
  4800  				defer wg.Done()
  4801  			}
  4802  			ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
  4803  		}
  4804  		if isLen1 {
  4805  			f(i)
  4806  		} else {
  4807  			go f(i)
  4808  		}
  4809  
  4810  	}
  4811  	wg.Wait()
  4812  
  4813  	for _, e := range ret {
  4814  		if e == graphql.Null {
  4815  			return graphql.Null
  4816  		}
  4817  	}
  4818  
  4819  	return ret
  4820  }
  4821  
  4822  func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
  4823  	if v == nil {
  4824  		return graphql.Null
  4825  	}
  4826  	ret := make(graphql.Array, len(v))
  4827  	var wg sync.WaitGroup
  4828  	isLen1 := len(v) == 1
  4829  	if !isLen1 {
  4830  		wg.Add(len(v))
  4831  	}
  4832  	for i := range v {
  4833  		i := i
  4834  		fc := &graphql.FieldContext{
  4835  			Index:  &i,
  4836  			Result: &v[i],
  4837  		}
  4838  		ctx := graphql.WithFieldContext(ctx, fc)
  4839  		f := func(i int) {
  4840  			defer func() {
  4841  				if r := recover(); r != nil {
  4842  					ec.Error(ctx, ec.Recover(ctx, r))
  4843  					ret = nil
  4844  				}
  4845  			}()
  4846  			if !isLen1 {
  4847  				defer wg.Done()
  4848  			}
  4849  			ret[i] = ec.marshalN__Field2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
  4850  		}
  4851  		if isLen1 {
  4852  			f(i)
  4853  		} else {
  4854  			go f(i)
  4855  		}
  4856  
  4857  	}
  4858  	wg.Wait()
  4859  
  4860  	for _, e := range ret {
  4861  		if e == graphql.Null {
  4862  			return graphql.Null
  4863  		}
  4864  	}
  4865  
  4866  	return ret
  4867  }
  4868  
  4869  func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  4870  	if v == nil {
  4871  		return graphql.Null
  4872  	}
  4873  	ret := make(graphql.Array, len(v))
  4874  	var wg sync.WaitGroup
  4875  	isLen1 := len(v) == 1
  4876  	if !isLen1 {
  4877  		wg.Add(len(v))
  4878  	}
  4879  	for i := range v {
  4880  		i := i
  4881  		fc := &graphql.FieldContext{
  4882  			Index:  &i,
  4883  			Result: &v[i],
  4884  		}
  4885  		ctx := graphql.WithFieldContext(ctx, fc)
  4886  		f := func(i int) {
  4887  			defer func() {
  4888  				if r := recover(); r != nil {
  4889  					ec.Error(ctx, ec.Recover(ctx, r))
  4890  					ret = nil
  4891  				}
  4892  			}()
  4893  			if !isLen1 {
  4894  				defer wg.Done()
  4895  			}
  4896  			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  4897  		}
  4898  		if isLen1 {
  4899  			f(i)
  4900  		} else {
  4901  			go f(i)
  4902  		}
  4903  
  4904  	}
  4905  	wg.Wait()
  4906  
  4907  	for _, e := range ret {
  4908  		if e == graphql.Null {
  4909  			return graphql.Null
  4910  		}
  4911  	}
  4912  
  4913  	return ret
  4914  }
  4915  
  4916  func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
  4917  	if v == nil {
  4918  		return graphql.Null
  4919  	}
  4920  	return ec.___Schema(ctx, sel, v)
  4921  }
  4922  
  4923  func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  4924  	if v == nil {
  4925  		return graphql.Null
  4926  	}
  4927  	ret := make(graphql.Array, len(v))
  4928  	var wg sync.WaitGroup
  4929  	isLen1 := len(v) == 1
  4930  	if !isLen1 {
  4931  		wg.Add(len(v))
  4932  	}
  4933  	for i := range v {
  4934  		i := i
  4935  		fc := &graphql.FieldContext{
  4936  			Index:  &i,
  4937  			Result: &v[i],
  4938  		}
  4939  		ctx := graphql.WithFieldContext(ctx, fc)
  4940  		f := func(i int) {
  4941  			defer func() {
  4942  				if r := recover(); r != nil {
  4943  					ec.Error(ctx, ec.Recover(ctx, r))
  4944  					ret = nil
  4945  				}
  4946  			}()
  4947  			if !isLen1 {
  4948  				defer wg.Done()
  4949  			}
  4950  			ret[i] = ec.marshalN__Type2githubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  4951  		}
  4952  		if isLen1 {
  4953  			f(i)
  4954  		} else {
  4955  			go f(i)
  4956  		}
  4957  
  4958  	}
  4959  	wg.Wait()
  4960  
  4961  	for _, e := range ret {
  4962  		if e == graphql.Null {
  4963  			return graphql.Null
  4964  		}
  4965  	}
  4966  
  4967  	return ret
  4968  }
  4969  
  4970  func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋgenevaᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  4971  	if v == nil {
  4972  		return graphql.Null
  4973  	}
  4974  	return ec.___Type(ctx, sel, v)
  4975  }
  4976  
  4977  // endregion ***************************** type.gotpl *****************************