github.com/99designs/gqlgen@v0.17.45/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 "sync/atomic" 11 12 "github.com/99designs/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ᚋ99designsᚋ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ᚋ99designsᚋ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 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 261 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 262 if err != nil { 263 return it, err 264 } 265 it.Key = data 266 case "value": 267 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) 268 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 269 if err != nil { 270 return it, err 271 } 272 it.Value = data 273 } 274 } 275 276 return it, nil 277 } 278 279 func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj interface{}) (UpdatePtrToPtrOuter, error) { 280 var it UpdatePtrToPtrOuter 281 asMap := map[string]interface{}{} 282 for k, v := range obj.(map[string]interface{}) { 283 asMap[k] = v 284 } 285 286 fieldsInOrder := [...]string{"name", "inner", "stupidInner"} 287 for _, k := range fieldsInOrder { 288 v, ok := asMap[k] 289 if !ok { 290 continue 291 } 292 switch k { 293 case "name": 294 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 295 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 296 if err != nil { 297 return it, err 298 } 299 it.Name = data 300 case "inner": 301 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) 302 data, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 303 if err != nil { 304 return it, err 305 } 306 it.Inner = data 307 case "stupidInner": 308 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stupidInner")) 309 data, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 310 if err != nil { 311 return it, err 312 } 313 it.StupidInner = data 314 } 315 } 316 317 return it, nil 318 } 319 320 // endregion **************************** input.gotpl ***************************** 321 322 // region ************************** interface.gotpl *************************** 323 324 // endregion ************************** interface.gotpl *************************** 325 326 // region **************************** object.gotpl **************************** 327 328 var ptrToPtrInnerImplementors = []string{"PtrToPtrInner"} 329 330 func (ec *executionContext) _PtrToPtrInner(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrInner) graphql.Marshaler { 331 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrInnerImplementors) 332 333 out := graphql.NewFieldSet(fields) 334 deferred := make(map[string]*graphql.FieldSet) 335 for i, field := range fields { 336 switch field.Name { 337 case "__typename": 338 out.Values[i] = graphql.MarshalString("PtrToPtrInner") 339 case "key": 340 out.Values[i] = ec._PtrToPtrInner_key(ctx, field, obj) 341 if out.Values[i] == graphql.Null { 342 out.Invalids++ 343 } 344 case "value": 345 out.Values[i] = ec._PtrToPtrInner_value(ctx, field, obj) 346 if out.Values[i] == graphql.Null { 347 out.Invalids++ 348 } 349 default: 350 panic("unknown field " + strconv.Quote(field.Name)) 351 } 352 } 353 out.Dispatch(ctx) 354 if out.Invalids > 0 { 355 return graphql.Null 356 } 357 358 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 359 360 for label, dfs := range deferred { 361 ec.processDeferredGroup(graphql.DeferredGroup{ 362 Label: label, 363 Path: graphql.GetPath(ctx), 364 FieldSet: dfs, 365 Context: ctx, 366 }) 367 } 368 369 return out 370 } 371 372 var ptrToPtrOuterImplementors = []string{"PtrToPtrOuter"} 373 374 func (ec *executionContext) _PtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, obj *PtrToPtrOuter) graphql.Marshaler { 375 fields := graphql.CollectFields(ec.OperationContext, sel, ptrToPtrOuterImplementors) 376 377 out := graphql.NewFieldSet(fields) 378 deferred := make(map[string]*graphql.FieldSet) 379 for i, field := range fields { 380 switch field.Name { 381 case "__typename": 382 out.Values[i] = graphql.MarshalString("PtrToPtrOuter") 383 case "name": 384 out.Values[i] = ec._PtrToPtrOuter_name(ctx, field, obj) 385 if out.Values[i] == graphql.Null { 386 out.Invalids++ 387 } 388 case "inner": 389 out.Values[i] = ec._PtrToPtrOuter_inner(ctx, field, obj) 390 case "stupidInner": 391 out.Values[i] = ec._PtrToPtrOuter_stupidInner(ctx, field, obj) 392 default: 393 panic("unknown field " + strconv.Quote(field.Name)) 394 } 395 } 396 out.Dispatch(ctx) 397 if out.Invalids > 0 { 398 return graphql.Null 399 } 400 401 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 402 403 for label, dfs := range deferred { 404 ec.processDeferredGroup(graphql.DeferredGroup{ 405 Label: label, 406 Path: graphql.GetPath(ctx), 407 FieldSet: dfs, 408 Context: ctx, 409 }) 410 } 411 412 return out 413 } 414 415 // endregion **************************** object.gotpl **************************** 416 417 // region ***************************** type.gotpl ***************************** 418 419 func (ec *executionContext) marshalNPtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v PtrToPtrOuter) graphql.Marshaler { 420 return ec._PtrToPtrOuter(ctx, sel, &v) 421 } 422 423 func (ec *executionContext) marshalNPtrToPtrOuter2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrOuter(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrOuter) graphql.Marshaler { 424 if v == nil { 425 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 426 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 427 } 428 return graphql.Null 429 } 430 return ec._PtrToPtrOuter(ctx, sel, v) 431 } 432 433 func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrOuter(ctx context.Context, v interface{}) (UpdatePtrToPtrOuter, error) { 434 res, err := ec.unmarshalInputUpdatePtrToPtrOuter(ctx, v) 435 return res, graphql.ErrorOnPath(ctx, err) 436 } 437 438 func (ec *executionContext) marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *PtrToPtrInner) graphql.Marshaler { 439 if v == nil { 440 return graphql.Null 441 } 442 return ec._PtrToPtrInner(ctx, sel, v) 443 } 444 445 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v **PtrToPtrInner) graphql.Marshaler { 446 if v == nil { 447 return graphql.Null 448 } 449 return ec.marshalOPtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 450 } 451 452 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ***PtrToPtrInner) graphql.Marshaler { 453 if v == nil { 454 return graphql.Null 455 } 456 return ec.marshalOPtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 457 } 458 459 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ****PtrToPtrInner) graphql.Marshaler { 460 if v == nil { 461 return graphql.Null 462 } 463 return ec.marshalOPtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 464 } 465 466 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *****PtrToPtrInner) graphql.Marshaler { 467 if v == nil { 468 return graphql.Null 469 } 470 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 471 } 472 473 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v ******PtrToPtrInner) graphql.Marshaler { 474 if v == nil { 475 return graphql.Null 476 } 477 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 478 } 479 480 func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx context.Context, sel ast.SelectionSet, v *******PtrToPtrInner) graphql.Marshaler { 481 if v == nil { 482 return graphql.Null 483 } 484 return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) 485 } 486 487 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*UpdatePtrToPtrInner, error) { 488 if v == nil { 489 return nil, nil 490 } 491 res, err := ec.unmarshalInputUpdatePtrToPtrInner(ctx, v) 492 return &res, graphql.ErrorOnPath(ctx, err) 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 func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (********UpdatePtrToPtrInner, error) { 568 var pres *******UpdatePtrToPtrInner 569 if v != nil { 570 res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) 571 if err != nil { 572 return nil, graphql.ErrorOnPath(ctx, err) 573 } 574 pres = res 575 } 576 return &pres, nil 577 } 578 579 // endregion ***************************** type.gotpl *****************************