github.com/animeshon/gqlgen@v0.13.1-0.20210304133704-3a770431bb6d/integration/generated.go (about)

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