File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -383,10 +383,10 @@ const resolvers = {
383
383
Character : {
384
384
__resolveType ( data , context , info ) {
385
385
if ( humanData [ data . id ] ) {
386
- return info . schema . getType ( 'Human' ) ;
386
+ return 'Human' ;
387
387
}
388
388
if ( droidData [ data . id ] ) {
389
- return info . schema . getType ( 'Droid' ) ;
389
+ return 'Droid' ;
390
390
}
391
391
return null ;
392
392
} ,
@@ -467,13 +467,13 @@ const resolvers = {
467
467
SearchResult : {
468
468
__resolveType ( data , context , info ) {
469
469
if ( humanData [ data . id ] ) {
470
- return info . schema . getType ( 'Human' ) ;
470
+ return 'Human' ;
471
471
}
472
472
if ( droidData [ data . id ] ) {
473
- return info . schema . getType ( 'Droid' ) ;
473
+ return 'Droid' ;
474
474
}
475
475
if ( starshipData [ data . id ] ) {
476
- return info . schema . getType ( 'Starship' ) ;
476
+ return 'Starship' ;
477
477
}
478
478
return null ;
479
479
} ,
You can’t perform that action at this time.
0 commit comments