github.com/senomas/gqlgen@v0.17.11-0.20220626120754-9aee61b0716a/codegen/testserver/followschema/ptr_to_ptr_input.generated.go (about)

     1  // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
     2  
     3  package followschema
     4  
     5  import (
     6  	"context"
     7  	"errors"
     8  	"fmt"
     9  	"strconv"
    10  
    11  	"github.com/99designs/gqlgen/graphql"
    12  	"github.com/vektah/gqlparser/v2/ast"
    13  )
    14  
    15  // region    ************************** generated!.gotpl **************************
    16  
    17  // endregion ************************** generated!.gotpl **************************
    18  
    19  // region    ***************************** args.gotpl *****************************
    20  
    21  // endregion ***************************** args.gotpl *****************************
    22  
    23  // region    ************************** directives.gotpl **************************
    24  
    25  // endregion ************************** directives.gotpl **************************
    26  
    27  // region    **************************** field.gotpl *****************************
    28  
    29  func (ec *executionContext) _PtrToPtrInner_key(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrInner) (ret graphql.Marshaler) {
    30  	fc, err := ec.fieldContext_PtrToPtrInner_key(ctx, field)
    31  	if err != nil {
    32  		return graphql.Null
    33  	}
    34  	ctx = graphql.WithFieldContext(ctx, fc)
    35  	defer func() {
    36  		if r := recover(); r != nil {
    37  			ec.Error(ctx, ec.Recover(ctx, r))
    38  			ret = graphql.Null
    39  		}
    40  	}()
    41  	resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
    42  		ctx = rctx // use context from middleware stack in children
    43  		return obj.Key, nil
    44  	})
    45  
    46  	if resTmp == nil {
    47  		if !graphql.HasFieldError(ctx, fc) {
    48  			ec.Errorf(ctx, "must not be null")
    49  		}
    50  		return graphql.Null
    51  	}
    52  	res := resTmp.(string)
    53  	fc.Result = res
    54  	return ec.marshalNString2string(ctx, field.Selections, res)
    55  }
    56  
    57  func (ec *executionContext) fieldContext_PtrToPtrInner_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    58  	fc = &graphql.FieldContext{
    59  		Object:     "PtrToPtrInner",
    60  		Field:      field,
    61  		IsMethod:   false,
    62  		IsResolver: false,
    63  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
    64  			return nil, errors.New("field of type String does not have child fields")
    65  		},
    66  	}
    67  	return fc, nil
    68  }
    69  
    70  func (ec *executionContext) _PtrToPtrInner_value(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrInner) (ret graphql.Marshaler) {
    71  	fc, err := ec.fieldContext_PtrToPtrInner_value(ctx, field)
    72  	if err != nil {
    73  		return graphql.Null
    74  	}
    75  	ctx = graphql.WithFieldContext(ctx, fc)
    76  	defer func() {
    77  		if r := recover(); r != nil {
    78  			ec.Error(ctx, ec.Recover(ctx, r))
    79  			ret = graphql.Null
    80  		}
    81  	}()
    82  	resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
    83  		ctx = rctx // use context from middleware stack in children
    84  		return obj.Value, nil
    85  	})
    86  
    87  	if resTmp == nil {
    88  		if !graphql.HasFieldError(ctx, fc) {
    89  			ec.Errorf(ctx, "must not be null")
    90  		}
    91  		return graphql.Null
    92  	}
    93  	res := resTmp.(string)
    94  	fc.Result = res
    95  	return ec.marshalNString2string(ctx, field.Selections, res)
    96  }
    97  
    98  func (ec *executionContext) fieldContext_PtrToPtrInner_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    99  	fc = &graphql.FieldContext{
   100  		Object:     "PtrToPtrInner",
   101  		Field:      field,
   102  		IsMethod:   false,
   103  		IsResolver: false,
   104  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   105  			return nil, errors.New("field of type String does not have child fields")
   106  		},
   107  	}
   108  	return fc, nil
   109  }
   110  
   111  func (ec *executionContext) _PtrToPtrOuter_name(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) {
   112  	fc, err := ec.fieldContext_PtrToPtrOuter_name(ctx, field)
   113  	if err != nil {
   114  		return graphql.Null
   115  	}
   116  	ctx = graphql.WithFieldContext(ctx, fc)
   117  	defer func() {
   118  		if r := recover(); r != nil {
   119  			ec.Error(ctx, ec.Recover(ctx, r))
   120  			ret = graphql.Null
   121  		}
   122  	}()
   123  	resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   124  		ctx = rctx // use context from middleware stack in children
   125  		return obj.Name, nil
   126  	})
   127  
   128  	if resTmp == nil {
   129  		if !graphql.HasFieldError(ctx, fc) {
   130  			ec.Errorf(ctx, "must not be null")
   131  		}
   132  		return graphql.Null
   133  	}
   134  	res := resTmp.(string)
   135  	fc.Result = res
   136  	return ec.marshalNString2string(ctx, field.Selections, res)
   137  }
   138  
   139  func (ec *executionContext) fieldContext_PtrToPtrOuter_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   140  	fc = &graphql.FieldContext{
   141  		Object:     "PtrToPtrOuter",
   142  		Field:      field,
   143  		IsMethod:   false,
   144  		IsResolver: false,
   145  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   146  			return nil, errors.New("field of type String does not have child fields")
   147  		},
   148  	}
   149  	return fc, nil
   150  }
   151  
   152  func (ec *executionContext) _PtrToPtrOuter_inner(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) {
   153  	fc, err := ec.fieldContext_PtrToPtrOuter_inner(ctx, field)
   154  	if err != nil {
   155  		return graphql.Null
   156  	}
   157  	ctx = graphql.WithFieldContext(ctx, fc)
   158  	defer func() {
   159  		if r := recover(); r != nil {
   160  			ec.Error(ctx, ec.Recover(ctx, r))
   161  			ret = graphql.Null
   162  		}
   163  	}()
   164  	resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   165  		ctx = rctx // use context from middleware stack in children
   166  		return obj.Inner, nil
   167  	})
   168  
   169  	if resTmp == nil {
   170  		return graphql.Null
   171  	}
   172  	res := resTmp.(*PtrToPtrInner)
   173  	fc.Result = res
   174  	return ec.marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, field.Selections, res)
   175  }
   176  
   177  func (ec *executionContext) fieldContext_PtrToPtrOuter_inner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   178  	fc = &graphql.FieldContext{
   179  		Object:     "PtrToPtrOuter",
   180  		Field:      field,
   181  		IsMethod:   false,
   182  		IsResolver: false,
   183  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   184  			switch field.Name {
   185  			case "key":
   186  				return ec.fieldContext_PtrToPtrInner_key(ctx, field)
   187  			case "value":
   188  				return ec.fieldContext_PtrToPtrInner_value(ctx, field)
   189  			}
   190  			return nil, fmt.Errorf("no field named %q was found under type PtrToPtrInner", field.Name)
   191  		},
   192  	}
   193  	return fc, nil
   194  }
   195  
   196  func (ec *executionContext) _PtrToPtrOuter_stupidInner(ctx context.Context, field graphql.CollectedField, obj *PtrToPtrOuter) (ret graphql.Marshaler) {
   197  	fc, err := ec.fieldContext_PtrToPtrOuter_stupidInner(ctx, field)
   198  	if err != nil {
   199  		return graphql.Null
   200  	}
   201  	ctx = graphql.WithFieldContext(ctx, fc)
   202  	defer func() {
   203  		if r := recover(); r != nil {
   204  			ec.Error(ctx, ec.Recover(ctx, r))
   205  			ret = graphql.Null
   206  		}
   207  	}()
   208  	resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
   209  		ctx = rctx // use context from middleware stack in children
   210  		return obj.StupidInner, nil
   211  	})
   212  
   213  	if resTmp == nil {
   214  		return graphql.Null
   215  	}
   216  	res := resTmp.(*******PtrToPtrInner)
   217  	fc.Result = res
   218  	return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, field.Selections, res)
   219  }
   220  
   221  func (ec *executionContext) fieldContext_PtrToPtrOuter_stupidInner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
   222  	fc = &graphql.FieldContext{
   223  		Object:     "PtrToPtrOuter",
   224  		Field:      field,
   225  		IsMethod:   false,
   226  		IsResolver: false,
   227  		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
   228  			switch field.Name {
   229  			case "key":
   230  				return ec.fieldContext_PtrToPtrInner_key(ctx, field)
   231  			case "value":
   232  				return ec.fieldContext_PtrToPtrInner_value(ctx, field)
   233  			}
   234  			return nil, fmt.Errorf("no field named %q was found under type PtrToPtrInner", field.Name)
   235  		},
   236  	}
   237  	return fc, nil
   238  }
   239  
   240  // endregion **************************** field.gotpl *****************************
   241  
   242  // region    **************************** input.gotpl *****************************
   243  
   244  func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Context, obj interface{}) (UpdatePtrToPtrInner, error) {
   245  	var it UpdatePtrToPtrInner
   246  	asMap := map[string]interface{}{}
   247  	for k, v := range obj.(map[string]interface{}) {
   248  		asMap[k] = v
   249  	}
   250  
   251  	for k, v := range asMap {
   252  		switch k {
   253  		case "key":
   254  			var err error
   255  
   256  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
   257  			it.Key, err = ec.unmarshalOString2ᚖstring(ctx, v)
   258  			if err != nil {
   259  				return it, err
   260  			}
   261  		case "value":
   262  			var err error
   263  
   264  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
   265  			it.Value, err = ec.unmarshalOString2ᚖstring(ctx, v)
   266  			if err != nil {
   267  				return it, err
   268  			}
   269  		}
   270  	}
   271  
   272  	return it, nil
   273  }
   274  
   275  func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj interface{}) (UpdatePtrToPtrOuter, error) {
   276  	var it UpdatePtrToPtrOuter
   277  	asMap := map[string]interface{}{}
   278  	for k, v := range obj.(map[string]interface{}) {
   279  		asMap[k] = v
   280  	}
   281  
   282  	for k, v := range asMap {
   283  		switch k {
   284  		case "name":
   285  			var err error
   286  
   287  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
   288  			it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v)
   289  			if err != nil {
   290  				return it, err
   291  			}
   292  		case "inner":
   293  			var err error
   294  
   295  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner"))
   296  			it.Inner, err = ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   297  			if err != nil {
   298  				return it, err
   299  			}
   300  		case "stupidInner":
   301  			var err error
   302  
   303  			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stupidInner"))
   304  			it.StupidInner, err = ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   305  			if err != nil {
   306  				return it, err
   307  			}
   308  		}
   309  	}
   310  
   311  	return it, nil
   312  }
   313  
   314  // endregion **************************** input.gotpl *****************************
   315  
   316  // region    ************************** interface.gotpl ***************************
   317  
   318  // endregion ************************** interface.gotpl ***************************
   319  
   320  // region    **************************** object.gotpl ****************************
   321  
   322  var ptrToPtrInnerImplementors = []string{"PtrToPtrInner"}
   323  
   324  func (ec *executionContext) _PtrToPtrInner(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrInner) graphql.Marshaler {
   325  	fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrInnerImplementors)
   326  	out := graphql.NewFieldSet(fields)
   327  	var invalids uint32
   328  	for i, field := range fields {
   329  		switch field.Name {
   330  		case "__typename":
   331  			out.Values[i] = graphql.MarshalString("PtrToPtrInner")
   332  		case "key":
   333  
   334  			out.Values[i] = ec._PtrToPtrInner_key(ctx, field, obj)
   335  
   336  			if out.Values[i] == graphql.Null {
   337  				invalids++
   338  			}
   339  		case "value":
   340  
   341  			out.Values[i] = ec._PtrToPtrInner_value(ctx, field, obj)
   342  
   343  			if out.Values[i] == graphql.Null {
   344  				invalids++
   345  			}
   346  		default:
   347  			panic("unknown field " + strconv.Quote(field.Name))
   348  		}
   349  	}
   350  	out.Dispatch()
   351  	if invalids > 0 {
   352  		return graphql.Null
   353  	}
   354  	return out
   355  }
   356  
   357  var ptrToPtrOuterImplementors = []string{"PtrToPtrOuter"}
   358  
   359  func (ec *executionContext) _PtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrOuter) graphql.Marshaler {
   360  	fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrOuterImplementors)
   361  	out := graphql.NewFieldSet(fields)
   362  	var invalids uint32
   363  	for i, field := range fields {
   364  		switch field.Name {
   365  		case "__typename":
   366  			out.Values[i] = graphql.MarshalString("PtrToPtrOuter")
   367  		case "name":
   368  
   369  			out.Values[i] = ec._PtrToPtrOuter_name(ctx, field, obj)
   370  
   371  			if out.Values[i] == graphql.Null {
   372  				invalids++
   373  			}
   374  		case "inner":
   375  
   376  			out.Values[i] = ec._PtrToPtrOuter_inner(ctx, field, obj)
   377  
   378  		case "stupidInner":
   379  
   380  			out.Values[i] = ec._PtrToPtrOuter_stupidInner(ctx, field, obj)
   381  
   382  		default:
   383  			panic("unknown field " + strconv.Quote(field.Name))
   384  		}
   385  	}
   386  	out.Dispatch()
   387  	if invalids > 0 {
   388  		return graphql.Null
   389  	}
   390  	return out
   391  }
   392  
   393  // endregion **************************** object.gotpl ****************************
   394  
   395  // region    ***************************** type.gotpl *****************************
   396  
   397  func (ec *executionContext) marshalNPtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v PtrToPtrOuter) graphql.Marshaler {
   398  	return ec._PtrToPtrOuter(ctx, sel, &v)
   399  }
   400  
   401  func (ec *executionContext) marshalNPtrToPtrOuter2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrOuter) graphql.Marshaler {
   402  	if v == nil {
   403  		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
   404  			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
   405  		}
   406  		return graphql.Null
   407  	}
   408  	return ec._PtrToPtrOuter(ctx, sel, v)
   409  }
   410  
   411  func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrOuter(ctx context.Context, v interface{}) (UpdatePtrToPtrOuter, error) {
   412  	res, err := ec.unmarshalInputUpdatePtrToPtrOuter(ctx, v)
   413  	return res, graphql.ErrorOnPath(ctx, err)
   414  }
   415  
   416  func (ec *executionContext) marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrInner) graphql.Marshaler {
   417  	if v == nil {
   418  		return graphql.Null
   419  	}
   420  	return ec._PtrToPtrInner(ctx, sel, v)
   421  }
   422  
   423  func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v **PtrToPtrInner) graphql.Marshaler {
   424  	if v == nil {
   425  		return graphql.Null
   426  	}
   427  	return ec.marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v)
   428  }
   429  
   430  func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ***PtrToPtrInner) graphql.Marshaler {
   431  	if v == nil {
   432  		return graphql.Null
   433  	}
   434  	return ec.marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v)
   435  }
   436  
   437  func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ****PtrToPtrInner) graphql.Marshaler {
   438  	if v == nil {
   439  		return graphql.Null
   440  	}
   441  	return ec.marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v)
   442  }
   443  
   444  func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *****PtrToPtrInner) graphql.Marshaler {
   445  	if v == nil {
   446  		return graphql.Null
   447  	}
   448  	return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v)
   449  }
   450  
   451  func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ******PtrToPtrInner) graphql.Marshaler {
   452  	if v == nil {
   453  		return graphql.Null
   454  	}
   455  	return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v)
   456  }
   457  
   458  func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *******PtrToPtrInner) graphql.Marshaler {
   459  	if v == nil {
   460  		return graphql.Null
   461  	}
   462  	return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v)
   463  }
   464  
   465  func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*UpdatePtrToPtrInner, error) {
   466  	if v == nil {
   467  		return nil, nil
   468  	}
   469  	res, err := ec.unmarshalInputUpdatePtrToPtrInner(ctx, v)
   470  	return &res, graphql.ErrorOnPath(ctx, err)
   471  }
   472  
   473  func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (**UpdatePtrToPtrInner, error) {
   474  	var pres *UpdatePtrToPtrInner
   475  	if v != nil {
   476  		res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   477  		if err != nil {
   478  			return nil, graphql.ErrorOnPath(ctx, err)
   479  		}
   480  		pres = res
   481  	}
   482  	return &pres, nil
   483  }
   484  
   485  func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (***UpdatePtrToPtrInner, error) {
   486  	var pres **UpdatePtrToPtrInner
   487  	if v != nil {
   488  		res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   489  		if err != nil {
   490  			return nil, graphql.ErrorOnPath(ctx, err)
   491  		}
   492  		pres = res
   493  	}
   494  	return &pres, nil
   495  }
   496  
   497  func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (****UpdatePtrToPtrInner, error) {
   498  	var pres ***UpdatePtrToPtrInner
   499  	if v != nil {
   500  		res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   501  		if err != nil {
   502  			return nil, graphql.ErrorOnPath(ctx, err)
   503  		}
   504  		pres = res
   505  	}
   506  	return &pres, nil
   507  }
   508  
   509  func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*****UpdatePtrToPtrInner, error) {
   510  	var pres ****UpdatePtrToPtrInner
   511  	if v != nil {
   512  		res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   513  		if err != nil {
   514  			return nil, graphql.ErrorOnPath(ctx, err)
   515  		}
   516  		pres = res
   517  	}
   518  	return &pres, nil
   519  }
   520  
   521  func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (******UpdatePtrToPtrInner, error) {
   522  	var pres *****UpdatePtrToPtrInner
   523  	if v != nil {
   524  		res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   525  		if err != nil {
   526  			return nil, graphql.ErrorOnPath(ctx, err)
   527  		}
   528  		pres = res
   529  	}
   530  	return &pres, nil
   531  }
   532  
   533  func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*******UpdatePtrToPtrInner, error) {
   534  	var pres ******UpdatePtrToPtrInner
   535  	if v != nil {
   536  		res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   537  		if err != nil {
   538  			return nil, graphql.ErrorOnPath(ctx, err)
   539  		}
   540  		pres = res
   541  	}
   542  	return &pres, nil
   543  }
   544  
   545  func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (********UpdatePtrToPtrInner, error) {
   546  	var pres *******UpdatePtrToPtrInner
   547  	if v != nil {
   548  		res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v)
   549  		if err != nil {
   550  			return nil, graphql.ErrorOnPath(ctx, err)
   551  		}
   552  		pres = res
   553  	}
   554  	return &pres, nil
   555  }
   556  
   557  // endregion ***************************** type.gotpl *****************************