github.com/HaswinVidanage/gqlgen@v0.8.1-0.20220609041233-69528c1bf712/example/selection/generated.go (about)

     1  // Code generated by github.com/HaswinVidanage/gqlgen, DO NOT EDIT.
     2  
     3  package selection
     4  
     5  import (
     6  	"bytes"
     7  	"context"
     8  	"errors"
     9  	"fmt"
    10  	"strconv"
    11  	"sync"
    12  	"time"
    13  
    14  	"github.com/HaswinVidanage/gqlgen/graphql"
    15  	"github.com/HaswinVidanage/gqlgen/graphql/introspection"
    16  	"github.com/vektah/gqlparser"
    17  	"github.com/vektah/gqlparser/ast"
    18  )
    19  
    20  // region    ************************** generated!.gotpl **************************
    21  
    22  // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
    23  func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
    24  	return &executableSchema{
    25  		resolvers:  cfg.Resolvers,
    26  		directives: cfg.Directives,
    27  		complexity: cfg.Complexity,
    28  	}
    29  }
    30  
    31  type Config struct {
    32  	Resolvers  ResolverRoot
    33  	Directives DirectiveRoot
    34  	Complexity ComplexityRoot
    35  }
    36  
    37  type ResolverRoot interface {
    38  	Query() QueryResolver
    39  }
    40  
    41  type DirectiveRoot struct {
    42  }
    43  
    44  type ComplexityRoot struct {
    45  	Like struct {
    46  		Reaction  func(childComplexity int) int
    47  		Sent      func(childComplexity int) int
    48  		Selection func(childComplexity int) int
    49  		Collected func(childComplexity int) int
    50  	}
    51  
    52  	Post struct {
    53  		Message   func(childComplexity int) int
    54  		Sent      func(childComplexity int) int
    55  		Selection func(childComplexity int) int
    56  		Collected func(childComplexity int) int
    57  	}
    58  
    59  	Query struct {
    60  		Events func(childComplexity int) int
    61  	}
    62  }
    63  
    64  type QueryResolver interface {
    65  	Events(ctx context.Context) ([]Event, error)
    66  }
    67  
    68  type executableSchema struct {
    69  	resolvers  ResolverRoot
    70  	directives DirectiveRoot
    71  	complexity ComplexityRoot
    72  }
    73  
    74  func (e *executableSchema) Schema() *ast.Schema {
    75  	return parsedSchema
    76  }
    77  
    78  func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
    79  	ec := executionContext{nil, e}
    80  	_ = ec
    81  	switch typeName + "." + field {
    82  
    83  	case "Like.Reaction":
    84  		if e.complexity.Like.Reaction == nil {
    85  			break
    86  		}
    87  
    88  		return e.complexity.Like.Reaction(childComplexity), true
    89  
    90  	case "Like.Sent":
    91  		if e.complexity.Like.Sent == nil {
    92  			break
    93  		}
    94  
    95  		return e.complexity.Like.Sent(childComplexity), true
    96  
    97  	case "Like.Selection":
    98  		if e.complexity.Like.Selection == nil {
    99  			break
   100  		}
   101  
   102  		return e.complexity.Like.Selection(childComplexity), true
   103  
   104  	case "Like.Collected":
   105  		if e.complexity.Like.Collected == nil {
   106  			break
   107  		}
   108  
   109  		return e.complexity.Like.Collected(childComplexity), true
   110  
   111  	case "Post.Message":
   112  		if e.complexity.Post.Message == nil {
   113  			break
   114  		}
   115  
   116  		return e.complexity.Post.Message(childComplexity), true
   117  
   118  	case "Post.Sent":
   119  		if e.complexity.Post.Sent == nil {
   120  			break
   121  		}
   122  
   123  		return e.complexity.Post.Sent(childComplexity), true
   124  
   125  	case "Post.Selection":
   126  		if e.complexity.Post.Selection == nil {
   127  			break
   128  		}
   129  
   130  		return e.complexity.Post.Selection(childComplexity), true
   131  
   132  	case "Post.Collected":
   133  		if e.complexity.Post.Collected == nil {
   134  			break
   135  		}
   136  
   137  		return e.complexity.Post.Collected(childComplexity), true
   138  
   139  	case "Query.Events":
   140  		if e.complexity.Query.Events == nil {
   141  			break
   142  		}
   143  
   144  		return e.complexity.Query.Events(childComplexity), true
   145  
   146  	}
   147  	return 0, false
   148  }
   149  
   150  func (e *executableSchema) Query(ctx context.Context, op *ast.OperationDefinition) *graphql.Response {
   151  	ec := executionContext{graphql.GetRequestContext(ctx), e}
   152  
   153  	buf := ec.RequestMiddleware(ctx, func(ctx context.Context) []byte {
   154  		data := ec._Query(ctx, op.SelectionSet)
   155  		var buf bytes.Buffer
   156  		data.MarshalGQL(&buf)
   157  		return buf.Bytes()
   158  	})
   159  
   160  	return &graphql.Response{
   161  		Data:       buf,
   162  		Errors:     ec.Errors,
   163  		Extensions: ec.Extensions,
   164  	}
   165  }
   166  
   167  func (e *executableSchema) Mutation(ctx context.Context, op *ast.OperationDefinition) *graphql.Response {
   168  	return graphql.ErrorResponse(ctx, "mutations are not supported")
   169  }
   170  
   171  func (e *executableSchema) Subscription(ctx context.Context, op *ast.OperationDefinition) func() *graphql.Response {
   172  	return graphql.OneShot(graphql.ErrorResponse(ctx, "subscriptions are not supported"))
   173  }
   174  
   175  type executionContext struct {
   176  	*graphql.RequestContext
   177  	*executableSchema
   178  }
   179  
   180  func (ec *executionContext) FieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) (ret interface{}) {
   181  	defer func() {
   182  		if r := recover(); r != nil {
   183  			ec.Error(ctx, ec.Recover(ctx, r))
   184  			ret = nil
   185  		}
   186  	}()
   187  	res, err := ec.ResolverMiddleware(ctx, next)
   188  	if err != nil {
   189  		ec.Error(ctx, err)
   190  		return nil
   191  	}
   192  	return res
   193  }
   194  
   195  func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
   196  	if ec.DisableIntrospection {
   197  		return nil, errors.New("introspection disabled")
   198  	}
   199  	return introspection.WrapSchema(parsedSchema), nil
   200  }
   201  
   202  func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
   203  	if ec.DisableIntrospection {
   204  		return nil, errors.New("introspection disabled")
   205  	}
   206  	return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
   207  }
   208  
   209  var parsedSchema = gqlparser.MustLoadSchema(
   210  	&ast.Source{Name: "schema.graphql", Input: `interface Event {
   211      selection: [String!]
   212      collected: [String!]
   213  }
   214  
   215  type Post implements Event {
   216      message: String!
   217      sent: Time!
   218      selection: [String!]
   219      collected: [String!]
   220  }
   221  
   222  type Like implements Event {
   223      reaction: String!
   224      sent: Time!
   225      selection: [String!]
   226      collected: [String!]
   227  }
   228  
   229  type Query {
   230      events: [Event!]
   231  }
   232  
   233  scalar Time
   234  `},
   235  )
   236  
   237  // endregion ************************** generated!.gotpl **************************
   238  
   239  // region    ***************************** args.gotpl *****************************
   240  
   241  func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   242  	var err error
   243  	args := map[string]interface{}{}
   244  	var arg0 string
   245  	if tmp, ok := rawArgs["name"]; ok {
   246  		arg0, err = ec.unmarshalNString2string(ctx, tmp)
   247  		if err != nil {
   248  			return nil, err
   249  		}
   250  	}
   251  	args["name"] = arg0
   252  	return args, nil
   253  }
   254  
   255  func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   256  	var err error
   257  	args := map[string]interface{}{}
   258  	var arg0 bool
   259  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
   260  		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
   261  		if err != nil {
   262  			return nil, err
   263  		}
   264  	}
   265  	args["includeDeprecated"] = arg0
   266  	return args, nil
   267  }
   268  
   269  func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
   270  	var err error
   271  	args := map[string]interface{}{}
   272  	var arg0 bool
   273  	if tmp, ok := rawArgs["includeDeprecated"]; ok {
   274  		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
   275  		if err != nil {
   276  			return nil, err
   277  		}
   278  	}
   279  	args["includeDeprecated"] = arg0
   280  	return args, nil
   281  }
   282  
   283  // endregion ***************************** args.gotpl *****************************
   284  
   285  // region    **************************** field.gotpl *****************************
   286  
   287  func (ec *executionContext) _Like_reaction(ctx context.Context, field graphql.CollectedField, obj *Like) graphql.Marshaler {
   288  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   289  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   290  	rctx := &graphql.ResolverContext{
   291  		Object: "Like",
   292  		Field:  field,
   293  		Args:   nil,
   294  	}
   295  	ctx = graphql.WithResolverContext(ctx, rctx)
   296  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   297  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   298  		ctx = rctx // use context from middleware stack in children
   299  		return obj.Reaction, nil
   300  	})
   301  	if resTmp == nil {
   302  		if !ec.HasError(rctx) {
   303  			ec.Errorf(ctx, "must not be null")
   304  		}
   305  		return graphql.Null
   306  	}
   307  	res := resTmp.(string)
   308  	rctx.Result = res
   309  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   310  	return ec.marshalNString2string(ctx, field.Selections, res)
   311  }
   312  
   313  func (ec *executionContext) _Like_sent(ctx context.Context, field graphql.CollectedField, obj *Like) graphql.Marshaler {
   314  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   315  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   316  	rctx := &graphql.ResolverContext{
   317  		Object: "Like",
   318  		Field:  field,
   319  		Args:   nil,
   320  	}
   321  	ctx = graphql.WithResolverContext(ctx, rctx)
   322  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   323  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   324  		ctx = rctx // use context from middleware stack in children
   325  		return obj.Sent, nil
   326  	})
   327  	if resTmp == nil {
   328  		if !ec.HasError(rctx) {
   329  			ec.Errorf(ctx, "must not be null")
   330  		}
   331  		return graphql.Null
   332  	}
   333  	res := resTmp.(time.Time)
   334  	rctx.Result = res
   335  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   336  	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
   337  }
   338  
   339  func (ec *executionContext) _Like_selection(ctx context.Context, field graphql.CollectedField, obj *Like) graphql.Marshaler {
   340  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   341  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   342  	rctx := &graphql.ResolverContext{
   343  		Object: "Like",
   344  		Field:  field,
   345  		Args:   nil,
   346  	}
   347  	ctx = graphql.WithResolverContext(ctx, rctx)
   348  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   349  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   350  		ctx = rctx // use context from middleware stack in children
   351  		return obj.Selection, nil
   352  	})
   353  	if resTmp == nil {
   354  		return graphql.Null
   355  	}
   356  	res := resTmp.([]string)
   357  	rctx.Result = res
   358  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   359  	return ec.marshalOString2ᚕstring(ctx, field.Selections, res)
   360  }
   361  
   362  func (ec *executionContext) _Like_collected(ctx context.Context, field graphql.CollectedField, obj *Like) graphql.Marshaler {
   363  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   364  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   365  	rctx := &graphql.ResolverContext{
   366  		Object: "Like",
   367  		Field:  field,
   368  		Args:   nil,
   369  	}
   370  	ctx = graphql.WithResolverContext(ctx, rctx)
   371  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   372  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   373  		ctx = rctx // use context from middleware stack in children
   374  		return obj.Collected, nil
   375  	})
   376  	if resTmp == nil {
   377  		return graphql.Null
   378  	}
   379  	res := resTmp.([]string)
   380  	rctx.Result = res
   381  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   382  	return ec.marshalOString2ᚕstring(ctx, field.Selections, res)
   383  }
   384  
   385  func (ec *executionContext) _Post_message(ctx context.Context, field graphql.CollectedField, obj *Post) graphql.Marshaler {
   386  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   387  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   388  	rctx := &graphql.ResolverContext{
   389  		Object: "Post",
   390  		Field:  field,
   391  		Args:   nil,
   392  	}
   393  	ctx = graphql.WithResolverContext(ctx, rctx)
   394  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   395  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   396  		ctx = rctx // use context from middleware stack in children
   397  		return obj.Message, nil
   398  	})
   399  	if resTmp == nil {
   400  		if !ec.HasError(rctx) {
   401  			ec.Errorf(ctx, "must not be null")
   402  		}
   403  		return graphql.Null
   404  	}
   405  	res := resTmp.(string)
   406  	rctx.Result = res
   407  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   408  	return ec.marshalNString2string(ctx, field.Selections, res)
   409  }
   410  
   411  func (ec *executionContext) _Post_sent(ctx context.Context, field graphql.CollectedField, obj *Post) graphql.Marshaler {
   412  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   413  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   414  	rctx := &graphql.ResolverContext{
   415  		Object: "Post",
   416  		Field:  field,
   417  		Args:   nil,
   418  	}
   419  	ctx = graphql.WithResolverContext(ctx, rctx)
   420  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   421  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   422  		ctx = rctx // use context from middleware stack in children
   423  		return obj.Sent, nil
   424  	})
   425  	if resTmp == nil {
   426  		if !ec.HasError(rctx) {
   427  			ec.Errorf(ctx, "must not be null")
   428  		}
   429  		return graphql.Null
   430  	}
   431  	res := resTmp.(time.Time)
   432  	rctx.Result = res
   433  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   434  	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
   435  }
   436  
   437  func (ec *executionContext) _Post_selection(ctx context.Context, field graphql.CollectedField, obj *Post) graphql.Marshaler {
   438  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   439  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   440  	rctx := &graphql.ResolverContext{
   441  		Object: "Post",
   442  		Field:  field,
   443  		Args:   nil,
   444  	}
   445  	ctx = graphql.WithResolverContext(ctx, rctx)
   446  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   447  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   448  		ctx = rctx // use context from middleware stack in children
   449  		return obj.Selection, nil
   450  	})
   451  	if resTmp == nil {
   452  		return graphql.Null
   453  	}
   454  	res := resTmp.([]string)
   455  	rctx.Result = res
   456  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   457  	return ec.marshalOString2ᚕstring(ctx, field.Selections, res)
   458  }
   459  
   460  func (ec *executionContext) _Post_collected(ctx context.Context, field graphql.CollectedField, obj *Post) graphql.Marshaler {
   461  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   462  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   463  	rctx := &graphql.ResolverContext{
   464  		Object: "Post",
   465  		Field:  field,
   466  		Args:   nil,
   467  	}
   468  	ctx = graphql.WithResolverContext(ctx, rctx)
   469  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   470  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   471  		ctx = rctx // use context from middleware stack in children
   472  		return obj.Collected, nil
   473  	})
   474  	if resTmp == nil {
   475  		return graphql.Null
   476  	}
   477  	res := resTmp.([]string)
   478  	rctx.Result = res
   479  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   480  	return ec.marshalOString2ᚕstring(ctx, field.Selections, res)
   481  }
   482  
   483  func (ec *executionContext) _Query_events(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
   484  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   485  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   486  	rctx := &graphql.ResolverContext{
   487  		Object: "Query",
   488  		Field:  field,
   489  		Args:   nil,
   490  	}
   491  	ctx = graphql.WithResolverContext(ctx, rctx)
   492  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   493  	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
   494  		ctx = rctx // use context from middleware stack in children
   495  		return ec.resolvers.Query().Events(rctx)
   496  	})
   497  	if resTmp == nil {
   498  		return graphql.Null
   499  	}
   500  	res := resTmp.([]Event)
   501  	rctx.Result = res
   502  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   503  	return ec.marshalOEvent2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋselectionᚐEvent(ctx, field.Selections, res)
   504  }
   505  
   506  func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
   507  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   508  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   509  	rctx := &graphql.ResolverContext{
   510  		Object: "Query",
   511  		Field:  field,
   512  		Args:   nil,
   513  	}
   514  	ctx = graphql.WithResolverContext(ctx, rctx)
   515  	rawArgs := field.ArgumentMap(ec.Variables)
   516  	args, err := ec.field_Query___type_args(ctx, rawArgs)
   517  	if err != nil {
   518  		ec.Error(ctx, err)
   519  		return graphql.Null
   520  	}
   521  	rctx.Args = args
   522  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   523  	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
   524  		ctx = rctx // use context from middleware stack in children
   525  		return ec.introspectType(args["name"].(string))
   526  	})
   527  	if resTmp == nil {
   528  		return graphql.Null
   529  	}
   530  	res := resTmp.(*introspection.Type)
   531  	rctx.Result = res
   532  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   533  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
   534  }
   535  
   536  func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
   537  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   538  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   539  	rctx := &graphql.ResolverContext{
   540  		Object: "Query",
   541  		Field:  field,
   542  		Args:   nil,
   543  	}
   544  	ctx = graphql.WithResolverContext(ctx, rctx)
   545  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   546  	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
   547  		ctx = rctx // use context from middleware stack in children
   548  		return ec.introspectSchema()
   549  	})
   550  	if resTmp == nil {
   551  		return graphql.Null
   552  	}
   553  	res := resTmp.(*introspection.Schema)
   554  	rctx.Result = res
   555  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   556  	return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
   557  }
   558  
   559  func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
   560  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   561  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   562  	rctx := &graphql.ResolverContext{
   563  		Object: "__Directive",
   564  		Field:  field,
   565  		Args:   nil,
   566  	}
   567  	ctx = graphql.WithResolverContext(ctx, rctx)
   568  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   569  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   570  		ctx = rctx // use context from middleware stack in children
   571  		return obj.Name, nil
   572  	})
   573  	if resTmp == nil {
   574  		if !ec.HasError(rctx) {
   575  			ec.Errorf(ctx, "must not be null")
   576  		}
   577  		return graphql.Null
   578  	}
   579  	res := resTmp.(string)
   580  	rctx.Result = res
   581  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   582  	return ec.marshalNString2string(ctx, field.Selections, res)
   583  }
   584  
   585  func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
   586  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   587  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   588  	rctx := &graphql.ResolverContext{
   589  		Object: "__Directive",
   590  		Field:  field,
   591  		Args:   nil,
   592  	}
   593  	ctx = graphql.WithResolverContext(ctx, rctx)
   594  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   595  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   596  		ctx = rctx // use context from middleware stack in children
   597  		return obj.Description, nil
   598  	})
   599  	if resTmp == nil {
   600  		return graphql.Null
   601  	}
   602  	res := resTmp.(string)
   603  	rctx.Result = res
   604  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   605  	return ec.marshalOString2string(ctx, field.Selections, res)
   606  }
   607  
   608  func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
   609  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   610  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   611  	rctx := &graphql.ResolverContext{
   612  		Object: "__Directive",
   613  		Field:  field,
   614  		Args:   nil,
   615  	}
   616  	ctx = graphql.WithResolverContext(ctx, rctx)
   617  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   618  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   619  		ctx = rctx // use context from middleware stack in children
   620  		return obj.Locations, nil
   621  	})
   622  	if resTmp == nil {
   623  		if !ec.HasError(rctx) {
   624  			ec.Errorf(ctx, "must not be null")
   625  		}
   626  		return graphql.Null
   627  	}
   628  	res := resTmp.([]string)
   629  	rctx.Result = res
   630  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   631  	return ec.marshalN__DirectiveLocation2ᚕstring(ctx, field.Selections, res)
   632  }
   633  
   634  func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
   635  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   636  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   637  	rctx := &graphql.ResolverContext{
   638  		Object: "__Directive",
   639  		Field:  field,
   640  		Args:   nil,
   641  	}
   642  	ctx = graphql.WithResolverContext(ctx, rctx)
   643  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   644  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   645  		ctx = rctx // use context from middleware stack in children
   646  		return obj.Args, nil
   647  	})
   648  	if resTmp == nil {
   649  		if !ec.HasError(rctx) {
   650  			ec.Errorf(ctx, "must not be null")
   651  		}
   652  		return graphql.Null
   653  	}
   654  	res := resTmp.([]introspection.InputValue)
   655  	rctx.Result = res
   656  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   657  	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res)
   658  }
   659  
   660  func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
   661  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   662  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   663  	rctx := &graphql.ResolverContext{
   664  		Object: "__EnumValue",
   665  		Field:  field,
   666  		Args:   nil,
   667  	}
   668  	ctx = graphql.WithResolverContext(ctx, rctx)
   669  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   670  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   671  		ctx = rctx // use context from middleware stack in children
   672  		return obj.Name, nil
   673  	})
   674  	if resTmp == nil {
   675  		if !ec.HasError(rctx) {
   676  			ec.Errorf(ctx, "must not be null")
   677  		}
   678  		return graphql.Null
   679  	}
   680  	res := resTmp.(string)
   681  	rctx.Result = res
   682  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   683  	return ec.marshalNString2string(ctx, field.Selections, res)
   684  }
   685  
   686  func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
   687  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   688  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   689  	rctx := &graphql.ResolverContext{
   690  		Object: "__EnumValue",
   691  		Field:  field,
   692  		Args:   nil,
   693  	}
   694  	ctx = graphql.WithResolverContext(ctx, rctx)
   695  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   696  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   697  		ctx = rctx // use context from middleware stack in children
   698  		return obj.Description, nil
   699  	})
   700  	if resTmp == nil {
   701  		return graphql.Null
   702  	}
   703  	res := resTmp.(string)
   704  	rctx.Result = res
   705  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   706  	return ec.marshalOString2string(ctx, field.Selections, res)
   707  }
   708  
   709  func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
   710  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   711  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   712  	rctx := &graphql.ResolverContext{
   713  		Object: "__EnumValue",
   714  		Field:  field,
   715  		Args:   nil,
   716  	}
   717  	ctx = graphql.WithResolverContext(ctx, rctx)
   718  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   719  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   720  		ctx = rctx // use context from middleware stack in children
   721  		return obj.IsDeprecated(), nil
   722  	})
   723  	if resTmp == nil {
   724  		if !ec.HasError(rctx) {
   725  			ec.Errorf(ctx, "must not be null")
   726  		}
   727  		return graphql.Null
   728  	}
   729  	res := resTmp.(bool)
   730  	rctx.Result = res
   731  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   732  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
   733  }
   734  
   735  func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
   736  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   737  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   738  	rctx := &graphql.ResolverContext{
   739  		Object: "__EnumValue",
   740  		Field:  field,
   741  		Args:   nil,
   742  	}
   743  	ctx = graphql.WithResolverContext(ctx, rctx)
   744  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   745  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   746  		ctx = rctx // use context from middleware stack in children
   747  		return obj.DeprecationReason(), nil
   748  	})
   749  	if resTmp == nil {
   750  		return graphql.Null
   751  	}
   752  	res := resTmp.(*string)
   753  	rctx.Result = res
   754  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   755  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
   756  }
   757  
   758  func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
   759  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   760  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   761  	rctx := &graphql.ResolverContext{
   762  		Object: "__Field",
   763  		Field:  field,
   764  		Args:   nil,
   765  	}
   766  	ctx = graphql.WithResolverContext(ctx, rctx)
   767  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   768  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   769  		ctx = rctx // use context from middleware stack in children
   770  		return obj.Name, nil
   771  	})
   772  	if resTmp == nil {
   773  		if !ec.HasError(rctx) {
   774  			ec.Errorf(ctx, "must not be null")
   775  		}
   776  		return graphql.Null
   777  	}
   778  	res := resTmp.(string)
   779  	rctx.Result = res
   780  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   781  	return ec.marshalNString2string(ctx, field.Selections, res)
   782  }
   783  
   784  func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
   785  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   786  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   787  	rctx := &graphql.ResolverContext{
   788  		Object: "__Field",
   789  		Field:  field,
   790  		Args:   nil,
   791  	}
   792  	ctx = graphql.WithResolverContext(ctx, rctx)
   793  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   794  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   795  		ctx = rctx // use context from middleware stack in children
   796  		return obj.Description, nil
   797  	})
   798  	if resTmp == nil {
   799  		return graphql.Null
   800  	}
   801  	res := resTmp.(string)
   802  	rctx.Result = res
   803  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   804  	return ec.marshalOString2string(ctx, field.Selections, res)
   805  }
   806  
   807  func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
   808  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   809  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   810  	rctx := &graphql.ResolverContext{
   811  		Object: "__Field",
   812  		Field:  field,
   813  		Args:   nil,
   814  	}
   815  	ctx = graphql.WithResolverContext(ctx, rctx)
   816  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   817  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   818  		ctx = rctx // use context from middleware stack in children
   819  		return obj.Args, nil
   820  	})
   821  	if resTmp == nil {
   822  		if !ec.HasError(rctx) {
   823  			ec.Errorf(ctx, "must not be null")
   824  		}
   825  		return graphql.Null
   826  	}
   827  	res := resTmp.([]introspection.InputValue)
   828  	rctx.Result = res
   829  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   830  	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res)
   831  }
   832  
   833  func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
   834  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   835  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   836  	rctx := &graphql.ResolverContext{
   837  		Object: "__Field",
   838  		Field:  field,
   839  		Args:   nil,
   840  	}
   841  	ctx = graphql.WithResolverContext(ctx, rctx)
   842  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   843  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   844  		ctx = rctx // use context from middleware stack in children
   845  		return obj.Type, nil
   846  	})
   847  	if resTmp == nil {
   848  		if !ec.HasError(rctx) {
   849  			ec.Errorf(ctx, "must not be null")
   850  		}
   851  		return graphql.Null
   852  	}
   853  	res := resTmp.(*introspection.Type)
   854  	rctx.Result = res
   855  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   856  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
   857  }
   858  
   859  func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
   860  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   861  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   862  	rctx := &graphql.ResolverContext{
   863  		Object: "__Field",
   864  		Field:  field,
   865  		Args:   nil,
   866  	}
   867  	ctx = graphql.WithResolverContext(ctx, rctx)
   868  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   869  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   870  		ctx = rctx // use context from middleware stack in children
   871  		return obj.IsDeprecated(), nil
   872  	})
   873  	if resTmp == nil {
   874  		if !ec.HasError(rctx) {
   875  			ec.Errorf(ctx, "must not be null")
   876  		}
   877  		return graphql.Null
   878  	}
   879  	res := resTmp.(bool)
   880  	rctx.Result = res
   881  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   882  	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
   883  }
   884  
   885  func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
   886  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   887  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   888  	rctx := &graphql.ResolverContext{
   889  		Object: "__Field",
   890  		Field:  field,
   891  		Args:   nil,
   892  	}
   893  	ctx = graphql.WithResolverContext(ctx, rctx)
   894  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   895  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   896  		ctx = rctx // use context from middleware stack in children
   897  		return obj.DeprecationReason(), nil
   898  	})
   899  	if resTmp == nil {
   900  		return graphql.Null
   901  	}
   902  	res := resTmp.(*string)
   903  	rctx.Result = res
   904  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   905  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
   906  }
   907  
   908  func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
   909  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   910  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   911  	rctx := &graphql.ResolverContext{
   912  		Object: "__InputValue",
   913  		Field:  field,
   914  		Args:   nil,
   915  	}
   916  	ctx = graphql.WithResolverContext(ctx, rctx)
   917  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   918  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   919  		ctx = rctx // use context from middleware stack in children
   920  		return obj.Name, nil
   921  	})
   922  	if resTmp == nil {
   923  		if !ec.HasError(rctx) {
   924  			ec.Errorf(ctx, "must not be null")
   925  		}
   926  		return graphql.Null
   927  	}
   928  	res := resTmp.(string)
   929  	rctx.Result = res
   930  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   931  	return ec.marshalNString2string(ctx, field.Selections, res)
   932  }
   933  
   934  func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
   935  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   936  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   937  	rctx := &graphql.ResolverContext{
   938  		Object: "__InputValue",
   939  		Field:  field,
   940  		Args:   nil,
   941  	}
   942  	ctx = graphql.WithResolverContext(ctx, rctx)
   943  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   944  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   945  		ctx = rctx // use context from middleware stack in children
   946  		return obj.Description, nil
   947  	})
   948  	if resTmp == nil {
   949  		return graphql.Null
   950  	}
   951  	res := resTmp.(string)
   952  	rctx.Result = res
   953  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   954  	return ec.marshalOString2string(ctx, field.Selections, res)
   955  }
   956  
   957  func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
   958  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   959  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   960  	rctx := &graphql.ResolverContext{
   961  		Object: "__InputValue",
   962  		Field:  field,
   963  		Args:   nil,
   964  	}
   965  	ctx = graphql.WithResolverContext(ctx, rctx)
   966  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   967  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   968  		ctx = rctx // use context from middleware stack in children
   969  		return obj.Type, nil
   970  	})
   971  	if resTmp == nil {
   972  		if !ec.HasError(rctx) {
   973  			ec.Errorf(ctx, "must not be null")
   974  		}
   975  		return graphql.Null
   976  	}
   977  	res := resTmp.(*introspection.Type)
   978  	rctx.Result = res
   979  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
   980  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
   981  }
   982  
   983  func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
   984  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
   985  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
   986  	rctx := &graphql.ResolverContext{
   987  		Object: "__InputValue",
   988  		Field:  field,
   989  		Args:   nil,
   990  	}
   991  	ctx = graphql.WithResolverContext(ctx, rctx)
   992  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
   993  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   994  		ctx = rctx // use context from middleware stack in children
   995  		return obj.DefaultValue, nil
   996  	})
   997  	if resTmp == nil {
   998  		return graphql.Null
   999  	}
  1000  	res := resTmp.(*string)
  1001  	rctx.Result = res
  1002  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1003  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1004  }
  1005  
  1006  func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
  1007  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1008  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1009  	rctx := &graphql.ResolverContext{
  1010  		Object: "__Schema",
  1011  		Field:  field,
  1012  		Args:   nil,
  1013  	}
  1014  	ctx = graphql.WithResolverContext(ctx, rctx)
  1015  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1016  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1017  		ctx = rctx // use context from middleware stack in children
  1018  		return obj.Types(), nil
  1019  	})
  1020  	if resTmp == nil {
  1021  		if !ec.HasError(rctx) {
  1022  			ec.Errorf(ctx, "must not be null")
  1023  		}
  1024  		return graphql.Null
  1025  	}
  1026  	res := resTmp.([]introspection.Type)
  1027  	rctx.Result = res
  1028  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1029  	return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1030  }
  1031  
  1032  func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
  1033  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1034  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1035  	rctx := &graphql.ResolverContext{
  1036  		Object: "__Schema",
  1037  		Field:  field,
  1038  		Args:   nil,
  1039  	}
  1040  	ctx = graphql.WithResolverContext(ctx, rctx)
  1041  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1042  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1043  		ctx = rctx // use context from middleware stack in children
  1044  		return obj.QueryType(), nil
  1045  	})
  1046  	if resTmp == nil {
  1047  		if !ec.HasError(rctx) {
  1048  			ec.Errorf(ctx, "must not be null")
  1049  		}
  1050  		return graphql.Null
  1051  	}
  1052  	res := resTmp.(*introspection.Type)
  1053  	rctx.Result = res
  1054  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1055  	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1056  }
  1057  
  1058  func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
  1059  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1060  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1061  	rctx := &graphql.ResolverContext{
  1062  		Object: "__Schema",
  1063  		Field:  field,
  1064  		Args:   nil,
  1065  	}
  1066  	ctx = graphql.WithResolverContext(ctx, rctx)
  1067  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1068  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1069  		ctx = rctx // use context from middleware stack in children
  1070  		return obj.MutationType(), nil
  1071  	})
  1072  	if resTmp == nil {
  1073  		return graphql.Null
  1074  	}
  1075  	res := resTmp.(*introspection.Type)
  1076  	rctx.Result = res
  1077  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1078  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1079  }
  1080  
  1081  func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
  1082  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1083  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1084  	rctx := &graphql.ResolverContext{
  1085  		Object: "__Schema",
  1086  		Field:  field,
  1087  		Args:   nil,
  1088  	}
  1089  	ctx = graphql.WithResolverContext(ctx, rctx)
  1090  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1091  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1092  		ctx = rctx // use context from middleware stack in children
  1093  		return obj.SubscriptionType(), nil
  1094  	})
  1095  	if resTmp == nil {
  1096  		return graphql.Null
  1097  	}
  1098  	res := resTmp.(*introspection.Type)
  1099  	rctx.Result = res
  1100  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1101  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1102  }
  1103  
  1104  func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
  1105  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1106  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1107  	rctx := &graphql.ResolverContext{
  1108  		Object: "__Schema",
  1109  		Field:  field,
  1110  		Args:   nil,
  1111  	}
  1112  	ctx = graphql.WithResolverContext(ctx, rctx)
  1113  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1114  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1115  		ctx = rctx // use context from middleware stack in children
  1116  		return obj.Directives(), nil
  1117  	})
  1118  	if resTmp == nil {
  1119  		if !ec.HasError(rctx) {
  1120  			ec.Errorf(ctx, "must not be null")
  1121  		}
  1122  		return graphql.Null
  1123  	}
  1124  	res := resTmp.([]introspection.Directive)
  1125  	rctx.Result = res
  1126  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1127  	return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, field.Selections, res)
  1128  }
  1129  
  1130  func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1131  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1132  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1133  	rctx := &graphql.ResolverContext{
  1134  		Object: "__Type",
  1135  		Field:  field,
  1136  		Args:   nil,
  1137  	}
  1138  	ctx = graphql.WithResolverContext(ctx, rctx)
  1139  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1140  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1141  		ctx = rctx // use context from middleware stack in children
  1142  		return obj.Kind(), nil
  1143  	})
  1144  	if resTmp == nil {
  1145  		if !ec.HasError(rctx) {
  1146  			ec.Errorf(ctx, "must not be null")
  1147  		}
  1148  		return graphql.Null
  1149  	}
  1150  	res := resTmp.(string)
  1151  	rctx.Result = res
  1152  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1153  	return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
  1154  }
  1155  
  1156  func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1157  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1158  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1159  	rctx := &graphql.ResolverContext{
  1160  		Object: "__Type",
  1161  		Field:  field,
  1162  		Args:   nil,
  1163  	}
  1164  	ctx = graphql.WithResolverContext(ctx, rctx)
  1165  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1166  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1167  		ctx = rctx // use context from middleware stack in children
  1168  		return obj.Name(), nil
  1169  	})
  1170  	if resTmp == nil {
  1171  		return graphql.Null
  1172  	}
  1173  	res := resTmp.(*string)
  1174  	rctx.Result = res
  1175  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1176  	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  1177  }
  1178  
  1179  func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1180  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1181  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1182  	rctx := &graphql.ResolverContext{
  1183  		Object: "__Type",
  1184  		Field:  field,
  1185  		Args:   nil,
  1186  	}
  1187  	ctx = graphql.WithResolverContext(ctx, rctx)
  1188  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1189  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1190  		ctx = rctx // use context from middleware stack in children
  1191  		return obj.Description(), nil
  1192  	})
  1193  	if resTmp == nil {
  1194  		return graphql.Null
  1195  	}
  1196  	res := resTmp.(string)
  1197  	rctx.Result = res
  1198  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1199  	return ec.marshalOString2string(ctx, field.Selections, res)
  1200  }
  1201  
  1202  func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1203  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1204  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1205  	rctx := &graphql.ResolverContext{
  1206  		Object: "__Type",
  1207  		Field:  field,
  1208  		Args:   nil,
  1209  	}
  1210  	ctx = graphql.WithResolverContext(ctx, rctx)
  1211  	rawArgs := field.ArgumentMap(ec.Variables)
  1212  	args, err := ec.field___Type_fields_args(ctx, rawArgs)
  1213  	if err != nil {
  1214  		ec.Error(ctx, err)
  1215  		return graphql.Null
  1216  	}
  1217  	rctx.Args = args
  1218  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1219  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1220  		ctx = rctx // use context from middleware stack in children
  1221  		return obj.Fields(args["includeDeprecated"].(bool)), nil
  1222  	})
  1223  	if resTmp == nil {
  1224  		return graphql.Null
  1225  	}
  1226  	res := resTmp.([]introspection.Field)
  1227  	rctx.Result = res
  1228  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1229  	return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, field.Selections, res)
  1230  }
  1231  
  1232  func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1233  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1234  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1235  	rctx := &graphql.ResolverContext{
  1236  		Object: "__Type",
  1237  		Field:  field,
  1238  		Args:   nil,
  1239  	}
  1240  	ctx = graphql.WithResolverContext(ctx, rctx)
  1241  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1242  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1243  		ctx = rctx // use context from middleware stack in children
  1244  		return obj.Interfaces(), nil
  1245  	})
  1246  	if resTmp == nil {
  1247  		return graphql.Null
  1248  	}
  1249  	res := resTmp.([]introspection.Type)
  1250  	rctx.Result = res
  1251  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1252  	return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1253  }
  1254  
  1255  func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1256  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1257  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1258  	rctx := &graphql.ResolverContext{
  1259  		Object: "__Type",
  1260  		Field:  field,
  1261  		Args:   nil,
  1262  	}
  1263  	ctx = graphql.WithResolverContext(ctx, rctx)
  1264  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1265  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1266  		ctx = rctx // use context from middleware stack in children
  1267  		return obj.PossibleTypes(), nil
  1268  	})
  1269  	if resTmp == nil {
  1270  		return graphql.Null
  1271  	}
  1272  	res := resTmp.([]introspection.Type)
  1273  	rctx.Result = res
  1274  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1275  	return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1276  }
  1277  
  1278  func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1279  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1280  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1281  	rctx := &graphql.ResolverContext{
  1282  		Object: "__Type",
  1283  		Field:  field,
  1284  		Args:   nil,
  1285  	}
  1286  	ctx = graphql.WithResolverContext(ctx, rctx)
  1287  	rawArgs := field.ArgumentMap(ec.Variables)
  1288  	args, err := ec.field___Type_enumValues_args(ctx, rawArgs)
  1289  	if err != nil {
  1290  		ec.Error(ctx, err)
  1291  		return graphql.Null
  1292  	}
  1293  	rctx.Args = args
  1294  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1295  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1296  		ctx = rctx // use context from middleware stack in children
  1297  		return obj.EnumValues(args["includeDeprecated"].(bool)), nil
  1298  	})
  1299  	if resTmp == nil {
  1300  		return graphql.Null
  1301  	}
  1302  	res := resTmp.([]introspection.EnumValue)
  1303  	rctx.Result = res
  1304  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1305  	return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, field.Selections, res)
  1306  }
  1307  
  1308  func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1309  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1310  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1311  	rctx := &graphql.ResolverContext{
  1312  		Object: "__Type",
  1313  		Field:  field,
  1314  		Args:   nil,
  1315  	}
  1316  	ctx = graphql.WithResolverContext(ctx, rctx)
  1317  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1318  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1319  		ctx = rctx // use context from middleware stack in children
  1320  		return obj.InputFields(), nil
  1321  	})
  1322  	if resTmp == nil {
  1323  		return graphql.Null
  1324  	}
  1325  	res := resTmp.([]introspection.InputValue)
  1326  	rctx.Result = res
  1327  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1328  	return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res)
  1329  }
  1330  
  1331  func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
  1332  	ctx = ec.Tracer.StartFieldExecution(ctx, field)
  1333  	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
  1334  	rctx := &graphql.ResolverContext{
  1335  		Object: "__Type",
  1336  		Field:  field,
  1337  		Args:   nil,
  1338  	}
  1339  	ctx = graphql.WithResolverContext(ctx, rctx)
  1340  	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
  1341  	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
  1342  		ctx = rctx // use context from middleware stack in children
  1343  		return obj.OfType(), nil
  1344  	})
  1345  	if resTmp == nil {
  1346  		return graphql.Null
  1347  	}
  1348  	res := resTmp.(*introspection.Type)
  1349  	rctx.Result = res
  1350  	ctx = ec.Tracer.StartFieldChildExecution(ctx)
  1351  	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  1352  }
  1353  
  1354  // endregion **************************** field.gotpl *****************************
  1355  
  1356  // region    **************************** input.gotpl *****************************
  1357  
  1358  // endregion **************************** input.gotpl *****************************
  1359  
  1360  // region    ************************** interface.gotpl ***************************
  1361  
  1362  func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, obj *Event) graphql.Marshaler {
  1363  	switch obj := (*obj).(type) {
  1364  	case nil:
  1365  		return graphql.Null
  1366  	case Post:
  1367  		return ec._Post(ctx, sel, &obj)
  1368  	case *Post:
  1369  		return ec._Post(ctx, sel, obj)
  1370  	case Like:
  1371  		return ec._Like(ctx, sel, &obj)
  1372  	case *Like:
  1373  		return ec._Like(ctx, sel, obj)
  1374  	default:
  1375  		panic(fmt.Errorf("unexpected type %T", obj))
  1376  	}
  1377  }
  1378  
  1379  // endregion ************************** interface.gotpl ***************************
  1380  
  1381  // region    **************************** object.gotpl ****************************
  1382  
  1383  var likeImplementors = []string{"Like", "Event"}
  1384  
  1385  func (ec *executionContext) _Like(ctx context.Context, sel ast.SelectionSet, obj *Like) graphql.Marshaler {
  1386  	fields := graphql.CollectFields(ctx, sel, likeImplementors)
  1387  
  1388  	out := graphql.NewFieldSet(fields)
  1389  	invalid := false
  1390  	for i, field := range fields {
  1391  		switch field.Name {
  1392  		case "__typename":
  1393  			out.Values[i] = graphql.MarshalString("Like")
  1394  		case "reaction":
  1395  			out.Values[i] = ec._Like_reaction(ctx, field, obj)
  1396  			if out.Values[i] == graphql.Null {
  1397  				invalid = true
  1398  			}
  1399  		case "sent":
  1400  			out.Values[i] = ec._Like_sent(ctx, field, obj)
  1401  			if out.Values[i] == graphql.Null {
  1402  				invalid = true
  1403  			}
  1404  		case "selection":
  1405  			out.Values[i] = ec._Like_selection(ctx, field, obj)
  1406  		case "collected":
  1407  			out.Values[i] = ec._Like_collected(ctx, field, obj)
  1408  		default:
  1409  			panic("unknown field " + strconv.Quote(field.Name))
  1410  		}
  1411  	}
  1412  	out.Dispatch()
  1413  	if invalid {
  1414  		return graphql.Null
  1415  	}
  1416  	return out
  1417  }
  1418  
  1419  var postImplementors = []string{"Post", "Event"}
  1420  
  1421  func (ec *executionContext) _Post(ctx context.Context, sel ast.SelectionSet, obj *Post) graphql.Marshaler {
  1422  	fields := graphql.CollectFields(ctx, sel, postImplementors)
  1423  
  1424  	out := graphql.NewFieldSet(fields)
  1425  	invalid := false
  1426  	for i, field := range fields {
  1427  		switch field.Name {
  1428  		case "__typename":
  1429  			out.Values[i] = graphql.MarshalString("Post")
  1430  		case "message":
  1431  			out.Values[i] = ec._Post_message(ctx, field, obj)
  1432  			if out.Values[i] == graphql.Null {
  1433  				invalid = true
  1434  			}
  1435  		case "sent":
  1436  			out.Values[i] = ec._Post_sent(ctx, field, obj)
  1437  			if out.Values[i] == graphql.Null {
  1438  				invalid = true
  1439  			}
  1440  		case "selection":
  1441  			out.Values[i] = ec._Post_selection(ctx, field, obj)
  1442  		case "collected":
  1443  			out.Values[i] = ec._Post_collected(ctx, field, obj)
  1444  		default:
  1445  			panic("unknown field " + strconv.Quote(field.Name))
  1446  		}
  1447  	}
  1448  	out.Dispatch()
  1449  	if invalid {
  1450  		return graphql.Null
  1451  	}
  1452  	return out
  1453  }
  1454  
  1455  var queryImplementors = []string{"Query"}
  1456  
  1457  func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
  1458  	fields := graphql.CollectFields(ctx, sel, queryImplementors)
  1459  
  1460  	ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{
  1461  		Object: "Query",
  1462  	})
  1463  
  1464  	out := graphql.NewFieldSet(fields)
  1465  	invalid := false
  1466  	for i, field := range fields {
  1467  		switch field.Name {
  1468  		case "__typename":
  1469  			out.Values[i] = graphql.MarshalString("Query")
  1470  		case "events":
  1471  			field := field
  1472  			out.Concurrently(i, func() (res graphql.Marshaler) {
  1473  				defer func() {
  1474  					if r := recover(); r != nil {
  1475  						ec.Error(ctx, ec.Recover(ctx, r))
  1476  					}
  1477  				}()
  1478  				res = ec._Query_events(ctx, field)
  1479  				return res
  1480  			})
  1481  		case "__type":
  1482  			out.Values[i] = ec._Query___type(ctx, field)
  1483  		case "__schema":
  1484  			out.Values[i] = ec._Query___schema(ctx, field)
  1485  		default:
  1486  			panic("unknown field " + strconv.Quote(field.Name))
  1487  		}
  1488  	}
  1489  	out.Dispatch()
  1490  	if invalid {
  1491  		return graphql.Null
  1492  	}
  1493  	return out
  1494  }
  1495  
  1496  var __DirectiveImplementors = []string{"__Directive"}
  1497  
  1498  func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
  1499  	fields := graphql.CollectFields(ctx, sel, __DirectiveImplementors)
  1500  
  1501  	out := graphql.NewFieldSet(fields)
  1502  	invalid := false
  1503  	for i, field := range fields {
  1504  		switch field.Name {
  1505  		case "__typename":
  1506  			out.Values[i] = graphql.MarshalString("__Directive")
  1507  		case "name":
  1508  			out.Values[i] = ec.___Directive_name(ctx, field, obj)
  1509  			if out.Values[i] == graphql.Null {
  1510  				invalid = true
  1511  			}
  1512  		case "description":
  1513  			out.Values[i] = ec.___Directive_description(ctx, field, obj)
  1514  		case "locations":
  1515  			out.Values[i] = ec.___Directive_locations(ctx, field, obj)
  1516  			if out.Values[i] == graphql.Null {
  1517  				invalid = true
  1518  			}
  1519  		case "args":
  1520  			out.Values[i] = ec.___Directive_args(ctx, field, obj)
  1521  			if out.Values[i] == graphql.Null {
  1522  				invalid = true
  1523  			}
  1524  		default:
  1525  			panic("unknown field " + strconv.Quote(field.Name))
  1526  		}
  1527  	}
  1528  	out.Dispatch()
  1529  	if invalid {
  1530  		return graphql.Null
  1531  	}
  1532  	return out
  1533  }
  1534  
  1535  var __EnumValueImplementors = []string{"__EnumValue"}
  1536  
  1537  func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
  1538  	fields := graphql.CollectFields(ctx, sel, __EnumValueImplementors)
  1539  
  1540  	out := graphql.NewFieldSet(fields)
  1541  	invalid := false
  1542  	for i, field := range fields {
  1543  		switch field.Name {
  1544  		case "__typename":
  1545  			out.Values[i] = graphql.MarshalString("__EnumValue")
  1546  		case "name":
  1547  			out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
  1548  			if out.Values[i] == graphql.Null {
  1549  				invalid = true
  1550  			}
  1551  		case "description":
  1552  			out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
  1553  		case "isDeprecated":
  1554  			out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
  1555  			if out.Values[i] == graphql.Null {
  1556  				invalid = true
  1557  			}
  1558  		case "deprecationReason":
  1559  			out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
  1560  		default:
  1561  			panic("unknown field " + strconv.Quote(field.Name))
  1562  		}
  1563  	}
  1564  	out.Dispatch()
  1565  	if invalid {
  1566  		return graphql.Null
  1567  	}
  1568  	return out
  1569  }
  1570  
  1571  var __FieldImplementors = []string{"__Field"}
  1572  
  1573  func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
  1574  	fields := graphql.CollectFields(ctx, sel, __FieldImplementors)
  1575  
  1576  	out := graphql.NewFieldSet(fields)
  1577  	invalid := false
  1578  	for i, field := range fields {
  1579  		switch field.Name {
  1580  		case "__typename":
  1581  			out.Values[i] = graphql.MarshalString("__Field")
  1582  		case "name":
  1583  			out.Values[i] = ec.___Field_name(ctx, field, obj)
  1584  			if out.Values[i] == graphql.Null {
  1585  				invalid = true
  1586  			}
  1587  		case "description":
  1588  			out.Values[i] = ec.___Field_description(ctx, field, obj)
  1589  		case "args":
  1590  			out.Values[i] = ec.___Field_args(ctx, field, obj)
  1591  			if out.Values[i] == graphql.Null {
  1592  				invalid = true
  1593  			}
  1594  		case "type":
  1595  			out.Values[i] = ec.___Field_type(ctx, field, obj)
  1596  			if out.Values[i] == graphql.Null {
  1597  				invalid = true
  1598  			}
  1599  		case "isDeprecated":
  1600  			out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
  1601  			if out.Values[i] == graphql.Null {
  1602  				invalid = true
  1603  			}
  1604  		case "deprecationReason":
  1605  			out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
  1606  		default:
  1607  			panic("unknown field " + strconv.Quote(field.Name))
  1608  		}
  1609  	}
  1610  	out.Dispatch()
  1611  	if invalid {
  1612  		return graphql.Null
  1613  	}
  1614  	return out
  1615  }
  1616  
  1617  var __InputValueImplementors = []string{"__InputValue"}
  1618  
  1619  func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
  1620  	fields := graphql.CollectFields(ctx, sel, __InputValueImplementors)
  1621  
  1622  	out := graphql.NewFieldSet(fields)
  1623  	invalid := false
  1624  	for i, field := range fields {
  1625  		switch field.Name {
  1626  		case "__typename":
  1627  			out.Values[i] = graphql.MarshalString("__InputValue")
  1628  		case "name":
  1629  			out.Values[i] = ec.___InputValue_name(ctx, field, obj)
  1630  			if out.Values[i] == graphql.Null {
  1631  				invalid = true
  1632  			}
  1633  		case "description":
  1634  			out.Values[i] = ec.___InputValue_description(ctx, field, obj)
  1635  		case "type":
  1636  			out.Values[i] = ec.___InputValue_type(ctx, field, obj)
  1637  			if out.Values[i] == graphql.Null {
  1638  				invalid = true
  1639  			}
  1640  		case "defaultValue":
  1641  			out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
  1642  		default:
  1643  			panic("unknown field " + strconv.Quote(field.Name))
  1644  		}
  1645  	}
  1646  	out.Dispatch()
  1647  	if invalid {
  1648  		return graphql.Null
  1649  	}
  1650  	return out
  1651  }
  1652  
  1653  var __SchemaImplementors = []string{"__Schema"}
  1654  
  1655  func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
  1656  	fields := graphql.CollectFields(ctx, sel, __SchemaImplementors)
  1657  
  1658  	out := graphql.NewFieldSet(fields)
  1659  	invalid := false
  1660  	for i, field := range fields {
  1661  		switch field.Name {
  1662  		case "__typename":
  1663  			out.Values[i] = graphql.MarshalString("__Schema")
  1664  		case "types":
  1665  			out.Values[i] = ec.___Schema_types(ctx, field, obj)
  1666  			if out.Values[i] == graphql.Null {
  1667  				invalid = true
  1668  			}
  1669  		case "queryType":
  1670  			out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
  1671  			if out.Values[i] == graphql.Null {
  1672  				invalid = true
  1673  			}
  1674  		case "mutationType":
  1675  			out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
  1676  		case "subscriptionType":
  1677  			out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
  1678  		case "directives":
  1679  			out.Values[i] = ec.___Schema_directives(ctx, field, obj)
  1680  			if out.Values[i] == graphql.Null {
  1681  				invalid = true
  1682  			}
  1683  		default:
  1684  			panic("unknown field " + strconv.Quote(field.Name))
  1685  		}
  1686  	}
  1687  	out.Dispatch()
  1688  	if invalid {
  1689  		return graphql.Null
  1690  	}
  1691  	return out
  1692  }
  1693  
  1694  var __TypeImplementors = []string{"__Type"}
  1695  
  1696  func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
  1697  	fields := graphql.CollectFields(ctx, sel, __TypeImplementors)
  1698  
  1699  	out := graphql.NewFieldSet(fields)
  1700  	invalid := false
  1701  	for i, field := range fields {
  1702  		switch field.Name {
  1703  		case "__typename":
  1704  			out.Values[i] = graphql.MarshalString("__Type")
  1705  		case "kind":
  1706  			out.Values[i] = ec.___Type_kind(ctx, field, obj)
  1707  			if out.Values[i] == graphql.Null {
  1708  				invalid = true
  1709  			}
  1710  		case "name":
  1711  			out.Values[i] = ec.___Type_name(ctx, field, obj)
  1712  		case "description":
  1713  			out.Values[i] = ec.___Type_description(ctx, field, obj)
  1714  		case "fields":
  1715  			out.Values[i] = ec.___Type_fields(ctx, field, obj)
  1716  		case "interfaces":
  1717  			out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
  1718  		case "possibleTypes":
  1719  			out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
  1720  		case "enumValues":
  1721  			out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
  1722  		case "inputFields":
  1723  			out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
  1724  		case "ofType":
  1725  			out.Values[i] = ec.___Type_ofType(ctx, field, obj)
  1726  		default:
  1727  			panic("unknown field " + strconv.Quote(field.Name))
  1728  		}
  1729  	}
  1730  	out.Dispatch()
  1731  	if invalid {
  1732  		return graphql.Null
  1733  	}
  1734  	return out
  1735  }
  1736  
  1737  // endregion **************************** object.gotpl ****************************
  1738  
  1739  // region    ***************************** type.gotpl *****************************
  1740  
  1741  func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  1742  	return graphql.UnmarshalBoolean(v)
  1743  }
  1744  
  1745  func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  1746  	return graphql.MarshalBoolean(v)
  1747  }
  1748  
  1749  func (ec *executionContext) marshalNEvent2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋselectionᚐEvent(ctx context.Context, sel ast.SelectionSet, v Event) graphql.Marshaler {
  1750  	return ec._Event(ctx, sel, &v)
  1751  }
  1752  
  1753  func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
  1754  	return graphql.UnmarshalString(v)
  1755  }
  1756  
  1757  func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  1758  	return graphql.MarshalString(v)
  1759  }
  1760  
  1761  func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) {
  1762  	return graphql.UnmarshalTime(v)
  1763  }
  1764  
  1765  func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
  1766  	if v.IsZero() {
  1767  		if !ec.HasError(graphql.GetResolverContext(ctx)) {
  1768  			ec.Errorf(ctx, "must not be null")
  1769  		}
  1770  		return graphql.Null
  1771  	}
  1772  	return graphql.MarshalTime(v)
  1773  }
  1774  
  1775  func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
  1776  	return ec.___Directive(ctx, sel, &v)
  1777  }
  1778  
  1779  func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
  1780  	ret := make(graphql.Array, len(v))
  1781  	var wg sync.WaitGroup
  1782  	isLen1 := len(v) == 1
  1783  	if !isLen1 {
  1784  		wg.Add(len(v))
  1785  	}
  1786  	for i := range v {
  1787  		i := i
  1788  		rctx := &graphql.ResolverContext{
  1789  			Index:  &i,
  1790  			Result: &v[i],
  1791  		}
  1792  		ctx := graphql.WithResolverContext(ctx, rctx)
  1793  		f := func(i int) {
  1794  			defer func() {
  1795  				if r := recover(); r != nil {
  1796  					ec.Error(ctx, ec.Recover(ctx, r))
  1797  					ret = nil
  1798  				}
  1799  			}()
  1800  			if !isLen1 {
  1801  				defer wg.Done()
  1802  			}
  1803  			ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
  1804  		}
  1805  		if isLen1 {
  1806  			f(i)
  1807  		} else {
  1808  			go f(i)
  1809  		}
  1810  
  1811  	}
  1812  	wg.Wait()
  1813  	return ret
  1814  }
  1815  
  1816  func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
  1817  	return graphql.UnmarshalString(v)
  1818  }
  1819  
  1820  func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  1821  	return graphql.MarshalString(v)
  1822  }
  1823  
  1824  func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstring(ctx context.Context, v interface{}) ([]string, error) {
  1825  	var vSlice []interface{}
  1826  	if v != nil {
  1827  		if tmp1, ok := v.([]interface{}); ok {
  1828  			vSlice = tmp1
  1829  		} else {
  1830  			vSlice = []interface{}{v}
  1831  		}
  1832  	}
  1833  	var err error
  1834  	res := make([]string, len(vSlice))
  1835  	for i := range vSlice {
  1836  		res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
  1837  		if err != nil {
  1838  			return nil, err
  1839  		}
  1840  	}
  1841  	return res, nil
  1842  }
  1843  
  1844  func (ec *executionContext) marshalN__DirectiveLocation2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  1845  	ret := make(graphql.Array, len(v))
  1846  	var wg sync.WaitGroup
  1847  	isLen1 := len(v) == 1
  1848  	if !isLen1 {
  1849  		wg.Add(len(v))
  1850  	}
  1851  	for i := range v {
  1852  		i := i
  1853  		rctx := &graphql.ResolverContext{
  1854  			Index:  &i,
  1855  			Result: &v[i],
  1856  		}
  1857  		ctx := graphql.WithResolverContext(ctx, rctx)
  1858  		f := func(i int) {
  1859  			defer func() {
  1860  				if r := recover(); r != nil {
  1861  					ec.Error(ctx, ec.Recover(ctx, r))
  1862  					ret = nil
  1863  				}
  1864  			}()
  1865  			if !isLen1 {
  1866  				defer wg.Done()
  1867  			}
  1868  			ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
  1869  		}
  1870  		if isLen1 {
  1871  			f(i)
  1872  		} else {
  1873  			go f(i)
  1874  		}
  1875  
  1876  	}
  1877  	wg.Wait()
  1878  	return ret
  1879  }
  1880  
  1881  func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
  1882  	return ec.___EnumValue(ctx, sel, &v)
  1883  }
  1884  
  1885  func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
  1886  	return ec.___Field(ctx, sel, &v)
  1887  }
  1888  
  1889  func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
  1890  	return ec.___InputValue(ctx, sel, &v)
  1891  }
  1892  
  1893  func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  1894  	ret := make(graphql.Array, len(v))
  1895  	var wg sync.WaitGroup
  1896  	isLen1 := len(v) == 1
  1897  	if !isLen1 {
  1898  		wg.Add(len(v))
  1899  	}
  1900  	for i := range v {
  1901  		i := i
  1902  		rctx := &graphql.ResolverContext{
  1903  			Index:  &i,
  1904  			Result: &v[i],
  1905  		}
  1906  		ctx := graphql.WithResolverContext(ctx, rctx)
  1907  		f := func(i int) {
  1908  			defer func() {
  1909  				if r := recover(); r != nil {
  1910  					ec.Error(ctx, ec.Recover(ctx, r))
  1911  					ret = nil
  1912  				}
  1913  			}()
  1914  			if !isLen1 {
  1915  				defer wg.Done()
  1916  			}
  1917  			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  1918  		}
  1919  		if isLen1 {
  1920  			f(i)
  1921  		} else {
  1922  			go f(i)
  1923  		}
  1924  
  1925  	}
  1926  	wg.Wait()
  1927  	return ret
  1928  }
  1929  
  1930  func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
  1931  	return ec.___Type(ctx, sel, &v)
  1932  }
  1933  
  1934  func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  1935  	ret := make(graphql.Array, len(v))
  1936  	var wg sync.WaitGroup
  1937  	isLen1 := len(v) == 1
  1938  	if !isLen1 {
  1939  		wg.Add(len(v))
  1940  	}
  1941  	for i := range v {
  1942  		i := i
  1943  		rctx := &graphql.ResolverContext{
  1944  			Index:  &i,
  1945  			Result: &v[i],
  1946  		}
  1947  		ctx := graphql.WithResolverContext(ctx, rctx)
  1948  		f := func(i int) {
  1949  			defer func() {
  1950  				if r := recover(); r != nil {
  1951  					ec.Error(ctx, ec.Recover(ctx, r))
  1952  					ret = nil
  1953  				}
  1954  			}()
  1955  			if !isLen1 {
  1956  				defer wg.Done()
  1957  			}
  1958  			ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  1959  		}
  1960  		if isLen1 {
  1961  			f(i)
  1962  		} else {
  1963  			go f(i)
  1964  		}
  1965  
  1966  	}
  1967  	wg.Wait()
  1968  	return ret
  1969  }
  1970  
  1971  func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  1972  	if v == nil {
  1973  		if !ec.HasError(graphql.GetResolverContext(ctx)) {
  1974  			ec.Errorf(ctx, "must not be null")
  1975  		}
  1976  		return graphql.Null
  1977  	}
  1978  	return ec.___Type(ctx, sel, v)
  1979  }
  1980  
  1981  func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
  1982  	return graphql.UnmarshalString(v)
  1983  }
  1984  
  1985  func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  1986  	return graphql.MarshalString(v)
  1987  }
  1988  
  1989  func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  1990  	return graphql.UnmarshalBoolean(v)
  1991  }
  1992  
  1993  func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  1994  	return graphql.MarshalBoolean(v)
  1995  }
  1996  
  1997  func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
  1998  	if v == nil {
  1999  		return nil, nil
  2000  	}
  2001  	res, err := ec.unmarshalOBoolean2bool(ctx, v)
  2002  	return &res, err
  2003  }
  2004  
  2005  func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
  2006  	if v == nil {
  2007  		return graphql.Null
  2008  	}
  2009  	return ec.marshalOBoolean2bool(ctx, sel, *v)
  2010  }
  2011  
  2012  func (ec *executionContext) marshalOEvent2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋselectionᚐEvent(ctx context.Context, sel ast.SelectionSet, v []Event) graphql.Marshaler {
  2013  	ret := make(graphql.Array, len(v))
  2014  	var wg sync.WaitGroup
  2015  	isLen1 := len(v) == 1
  2016  	if !isLen1 {
  2017  		wg.Add(len(v))
  2018  	}
  2019  	for i := range v {
  2020  		i := i
  2021  		rctx := &graphql.ResolverContext{
  2022  			Index:  &i,
  2023  			Result: &v[i],
  2024  		}
  2025  		ctx := graphql.WithResolverContext(ctx, rctx)
  2026  		f := func(i int) {
  2027  			defer func() {
  2028  				if r := recover(); r != nil {
  2029  					ec.Error(ctx, ec.Recover(ctx, r))
  2030  					ret = nil
  2031  				}
  2032  			}()
  2033  			if !isLen1 {
  2034  				defer wg.Done()
  2035  			}
  2036  			ret[i] = ec.marshalNEvent2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋselectionᚐEvent(ctx, sel, v[i])
  2037  		}
  2038  		if isLen1 {
  2039  			f(i)
  2040  		} else {
  2041  			go f(i)
  2042  		}
  2043  
  2044  	}
  2045  	wg.Wait()
  2046  	return ret
  2047  }
  2048  
  2049  func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
  2050  	return graphql.UnmarshalString(v)
  2051  }
  2052  
  2053  func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  2054  	return graphql.MarshalString(v)
  2055  }
  2056  
  2057  func (ec *executionContext) unmarshalOString2ᚕstring(ctx context.Context, v interface{}) ([]string, error) {
  2058  	var vSlice []interface{}
  2059  	if v != nil {
  2060  		if tmp1, ok := v.([]interface{}); ok {
  2061  			vSlice = tmp1
  2062  		} else {
  2063  			vSlice = []interface{}{v}
  2064  		}
  2065  	}
  2066  	var err error
  2067  	res := make([]string, len(vSlice))
  2068  	for i := range vSlice {
  2069  		res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
  2070  		if err != nil {
  2071  			return nil, err
  2072  		}
  2073  	}
  2074  	return res, nil
  2075  }
  2076  
  2077  func (ec *executionContext) marshalOString2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  2078  	ret := make(graphql.Array, len(v))
  2079  	for i := range v {
  2080  		ret[i] = ec.marshalNString2string(ctx, sel, v[i])
  2081  	}
  2082  
  2083  	return ret
  2084  }
  2085  
  2086  func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  2087  	if v == nil {
  2088  		return nil, nil
  2089  	}
  2090  	res, err := ec.unmarshalOString2string(ctx, v)
  2091  	return &res, err
  2092  }
  2093  
  2094  func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  2095  	if v == nil {
  2096  		return graphql.Null
  2097  	}
  2098  	return ec.marshalOString2string(ctx, sel, *v)
  2099  }
  2100  
  2101  func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
  2102  	ret := make(graphql.Array, len(v))
  2103  	var wg sync.WaitGroup
  2104  	isLen1 := len(v) == 1
  2105  	if !isLen1 {
  2106  		wg.Add(len(v))
  2107  	}
  2108  	for i := range v {
  2109  		i := i
  2110  		rctx := &graphql.ResolverContext{
  2111  			Index:  &i,
  2112  			Result: &v[i],
  2113  		}
  2114  		ctx := graphql.WithResolverContext(ctx, rctx)
  2115  		f := func(i int) {
  2116  			defer func() {
  2117  				if r := recover(); r != nil {
  2118  					ec.Error(ctx, ec.Recover(ctx, r))
  2119  					ret = nil
  2120  				}
  2121  			}()
  2122  			if !isLen1 {
  2123  				defer wg.Done()
  2124  			}
  2125  			ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
  2126  		}
  2127  		if isLen1 {
  2128  			f(i)
  2129  		} else {
  2130  			go f(i)
  2131  		}
  2132  
  2133  	}
  2134  	wg.Wait()
  2135  	return ret
  2136  }
  2137  
  2138  func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
  2139  	ret := make(graphql.Array, len(v))
  2140  	var wg sync.WaitGroup
  2141  	isLen1 := len(v) == 1
  2142  	if !isLen1 {
  2143  		wg.Add(len(v))
  2144  	}
  2145  	for i := range v {
  2146  		i := i
  2147  		rctx := &graphql.ResolverContext{
  2148  			Index:  &i,
  2149  			Result: &v[i],
  2150  		}
  2151  		ctx := graphql.WithResolverContext(ctx, rctx)
  2152  		f := func(i int) {
  2153  			defer func() {
  2154  				if r := recover(); r != nil {
  2155  					ec.Error(ctx, ec.Recover(ctx, r))
  2156  					ret = nil
  2157  				}
  2158  			}()
  2159  			if !isLen1 {
  2160  				defer wg.Done()
  2161  			}
  2162  			ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
  2163  		}
  2164  		if isLen1 {
  2165  			f(i)
  2166  		} else {
  2167  			go f(i)
  2168  		}
  2169  
  2170  	}
  2171  	wg.Wait()
  2172  	return ret
  2173  }
  2174  
  2175  func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  2176  	ret := make(graphql.Array, len(v))
  2177  	var wg sync.WaitGroup
  2178  	isLen1 := len(v) == 1
  2179  	if !isLen1 {
  2180  		wg.Add(len(v))
  2181  	}
  2182  	for i := range v {
  2183  		i := i
  2184  		rctx := &graphql.ResolverContext{
  2185  			Index:  &i,
  2186  			Result: &v[i],
  2187  		}
  2188  		ctx := graphql.WithResolverContext(ctx, rctx)
  2189  		f := func(i int) {
  2190  			defer func() {
  2191  				if r := recover(); r != nil {
  2192  					ec.Error(ctx, ec.Recover(ctx, r))
  2193  					ret = nil
  2194  				}
  2195  			}()
  2196  			if !isLen1 {
  2197  				defer wg.Done()
  2198  			}
  2199  			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  2200  		}
  2201  		if isLen1 {
  2202  			f(i)
  2203  		} else {
  2204  			go f(i)
  2205  		}
  2206  
  2207  	}
  2208  	wg.Wait()
  2209  	return ret
  2210  }
  2211  
  2212  func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v introspection.Schema) graphql.Marshaler {
  2213  	return ec.___Schema(ctx, sel, &v)
  2214  }
  2215  
  2216  func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
  2217  	if v == nil {
  2218  		return graphql.Null
  2219  	}
  2220  	return ec.___Schema(ctx, sel, v)
  2221  }
  2222  
  2223  func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
  2224  	return ec.___Type(ctx, sel, &v)
  2225  }
  2226  
  2227  func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  2228  	ret := make(graphql.Array, len(v))
  2229  	var wg sync.WaitGroup
  2230  	isLen1 := len(v) == 1
  2231  	if !isLen1 {
  2232  		wg.Add(len(v))
  2233  	}
  2234  	for i := range v {
  2235  		i := i
  2236  		rctx := &graphql.ResolverContext{
  2237  			Index:  &i,
  2238  			Result: &v[i],
  2239  		}
  2240  		ctx := graphql.WithResolverContext(ctx, rctx)
  2241  		f := func(i int) {
  2242  			defer func() {
  2243  				if r := recover(); r != nil {
  2244  					ec.Error(ctx, ec.Recover(ctx, r))
  2245  					ret = nil
  2246  				}
  2247  			}()
  2248  			if !isLen1 {
  2249  				defer wg.Done()
  2250  			}
  2251  			ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  2252  		}
  2253  		if isLen1 {
  2254  			f(i)
  2255  		} else {
  2256  			go f(i)
  2257  		}
  2258  
  2259  	}
  2260  	wg.Wait()
  2261  	return ret
  2262  }
  2263  
  2264  func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  2265  	if v == nil {
  2266  		return graphql.Null
  2267  	}
  2268  	return ec.___Type(ctx, sel, v)
  2269  }
  2270  
  2271  // endregion ***************************** type.gotpl *****************************