github.com/luciferinlove/gqlgen@v0.17.16-bzc.1/codegen/testserver/followschema/ptr_to_ptr_input.generated.go (about) 1 // Code generated by github.com/luciferinlove/gqlgen, DO NOT EDIT. 2 3 package followschema 4 5 import ( 6 "context" 7 "errors" 8 "fmt" 9 "strconv" 10 11 "github.com/luciferinlove/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 fieldsInOrder := [...]string{"key", "value"} 252 for _, k := range fieldsInOrder { 253 v, ok := asMap[k] 254 if !ok { 255 continue 256 } 257 switch k { 258 case "key": 259 var err error 260 261 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 262 it.Key, err = ec.unmarshalOString2ᚖstring(ctx, v) 263 if err != nil { 264 return it, err 265 } 266 case "value": 267 var err error 268 269 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) 270 it.Value, err = ec.unmarshalOString2ᚖstring(ctx, v) 271 if err != nil { 272 return it, err 273 } 274 } 275 } 276 277 return it, nil 278 } 279 280 func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj interface{}) (UpdatePtrToPtrOuter, error) { 281 var it UpdatePtrToPtrOuter 282 asMap := map[string]interface{}{} 283 for k, v := range obj.(map[string]interface{}) { 284 asMap[k] = v 285 } 286 287 fieldsInOrder := [...]string{"name", "inner", "stupidInner"} 288 for _, k := range fieldsInOrder { 289 v, ok := asMap[k] 290 if !ok { 291 continue 292 } 293 switch k { 294 case "name": 295 var err error 296 297 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 298 it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) 299 if err != nil { 300 return it, err 301 } 302 case "inner": 303 var err error 304 305 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) 306 it.Inner, err = ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 307 if err != nil { 308 return it, err 309 } 310 case "stupidInner": 311 var err error 312 313 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stupidInner")) 314 it.StupidInner, err = ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 315 if err != nil { 316 return it, err 317 } 318 } 319 } 320 321 return it, nil 322 } 323 324 // endregion **************************** input.gotpl ***************************** 325 326 // region ************************** interface.gotpl *************************** 327 328 // endregion ************************** interface.gotpl *************************** 329 330 // region **************************** object.gotpl **************************** 331 332 var ptrToPtrInnerImplementors = []string{"PtrToPtrInner"} 333 334 func (ec *executionContext) _PtrToPtrInner(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrInner) graphql.Marshaler { 335 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrInnerImplementors) 336 out := graphql.NewFieldSet(fields) 337 var invalids uint32 338 for i, field := range fields { 339 switch field.Name { 340 case "__typename": 341 out.Values[i] = graphql.MarshalString("PtrToPtrInner") 342 case "key": 343 344 out.Values[i] = ec._PtrToPtrInner_key(ctx, field, obj) 345 346 if out.Values[i] == graphql.Null { 347 invalids++ 348 } 349 case "value": 350 351 out.Values[i] = ec._PtrToPtrInner_value(ctx, field, obj) 352 353 if out.Values[i] == graphql.Null { 354 invalids++ 355 } 356 default: 357 panic("unknown field " + strconv.Quote(field.Name)) 358 } 359 } 360 out.Dispatch() 361 if invalids > 0 { 362 return graphql.Null 363 } 364 return out 365 } 366 367 var ptrToPtrOuterImplementors = []string{"PtrToPtrOuter"} 368 369 func (ec *executionContext) _PtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrOuter) graphql.Marshaler { 370 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrOuterImplementors) 371 out := graphql.NewFieldSet(fields) 372 var invalids uint32 373 for i, field := range fields { 374 switch field.Name { 375 case "__typename": 376 out.Values[i] = graphql.MarshalString("PtrToPtrOuter") 377 case "name": 378 379 out.Values[i] = ec._PtrToPtrOuter_name(ctx, field, obj) 380 381 if out.Values[i] == graphql.Null { 382 invalids++ 383 } 384 case "inner": 385 386 out.Values[i] = ec._PtrToPtrOuter_inner(ctx, field, obj) 387 388 case "stupidInner": 389 390 out.Values[i] = ec._PtrToPtrOuter_stupidInner(ctx, field, obj) 391 392 default: 393 panic("unknown field " + strconv.Quote(field.Name)) 394 } 395 } 396 out.Dispatch() 397 if invalids > 0 { 398 return graphql.Null 399 } 400 return out 401 } 402 403 // endregion **************************** object.gotpl **************************** 404 405 // region ***************************** type.gotpl ***************************** 406 407 func (ec *executionContext) marshalNPtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v PtrToPtrOuter) graphql.Marshaler { 408 return ec._PtrToPtrOuter(ctx, sel, &v) 409 } 410 411 func (ec *executionContext) marshalNPtrToPtrOuter2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrOuter) graphql.Marshaler { 412 if v == nil { 413 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 414 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 415 } 416 return graphql.Null 417 } 418 return ec._PtrToPtrOuter(ctx, sel, v) 419 } 420 421 func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrOuter(ctx context.Context, v interface{}) (UpdatePtrToPtrOuter, error) { 422 res, err := ec.unmarshalInputUpdatePtrToPtrOuter(ctx, v) 423 return res, graphql.ErrorOnPath(ctx, err) 424 } 425 426 func (ec *executionContext) marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrInner) graphql.Marshaler { 427 if v == nil { 428 return graphql.Null 429 } 430 return ec._PtrToPtrInner(ctx, sel, v) 431 } 432 433 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v **PtrToPtrInner) graphql.Marshaler { 434 if v == nil { 435 return graphql.Null 436 } 437 return ec.marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 438 } 439 440 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ***PtrToPtrInner) graphql.Marshaler { 441 if v == nil { 442 return graphql.Null 443 } 444 return ec.marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 445 } 446 447 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ****PtrToPtrInner) graphql.Marshaler { 448 if v == nil { 449 return graphql.Null 450 } 451 return ec.marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 452 } 453 454 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *****PtrToPtrInner) graphql.Marshaler { 455 if v == nil { 456 return graphql.Null 457 } 458 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 459 } 460 461 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ******PtrToPtrInner) graphql.Marshaler { 462 if v == nil { 463 return graphql.Null 464 } 465 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 466 } 467 468 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *******PtrToPtrInner) graphql.Marshaler { 469 if v == nil { 470 return graphql.Null 471 } 472 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 473 } 474 475 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*UpdatePtrToPtrInner, error) { 476 if v == nil { 477 return nil, nil 478 } 479 res, err := ec.unmarshalInputUpdatePtrToPtrInner(ctx, v) 480 return &res, graphql.ErrorOnPath(ctx, err) 481 } 482 483 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (**UpdatePtrToPtrInner, error) { 484 var pres *UpdatePtrToPtrInner 485 if v != nil { 486 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 487 if err != nil { 488 return nil, graphql.ErrorOnPath(ctx, err) 489 } 490 pres = res 491 } 492 return &pres, nil 493 } 494 495 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (***UpdatePtrToPtrInner, error) { 496 var pres **UpdatePtrToPtrInner 497 if v != nil { 498 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 499 if err != nil { 500 return nil, graphql.ErrorOnPath(ctx, err) 501 } 502 pres = res 503 } 504 return &pres, nil 505 } 506 507 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (****UpdatePtrToPtrInner, error) { 508 var pres ***UpdatePtrToPtrInner 509 if v != nil { 510 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 511 if err != nil { 512 return nil, graphql.ErrorOnPath(ctx, err) 513 } 514 pres = res 515 } 516 return &pres, nil 517 } 518 519 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*****UpdatePtrToPtrInner, error) { 520 var pres ****UpdatePtrToPtrInner 521 if v != nil { 522 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 523 if err != nil { 524 return nil, graphql.ErrorOnPath(ctx, err) 525 } 526 pres = res 527 } 528 return &pres, nil 529 } 530 531 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (******UpdatePtrToPtrInner, error) { 532 var pres *****UpdatePtrToPtrInner 533 if v != nil { 534 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 535 if err != nil { 536 return nil, graphql.ErrorOnPath(ctx, err) 537 } 538 pres = res 539 } 540 return &pres, nil 541 } 542 543 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*******UpdatePtrToPtrInner, error) { 544 var pres ******UpdatePtrToPtrInner 545 if v != nil { 546 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 547 if err != nil { 548 return nil, graphql.ErrorOnPath(ctx, err) 549 } 550 pres = res 551 } 552 return &pres, nil 553 } 554 555 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (********UpdatePtrToPtrInner, error) { 556 var pres *******UpdatePtrToPtrInner 557 if v != nil { 558 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 559 if err != nil { 560 return nil, graphql.ErrorOnPath(ctx, err) 561 } 562 pres = res 563 } 564 return &pres, nil 565 } 566 567 // endregion ***************************** type.gotpl *****************************