github.com/operandinc/gqlgen@v0.16.1/codegen/testserver/followschema/ptr_to_ptr_input.generated.go (about)

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