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