We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a374a commit e1aa2ccCopy full SHA for e1aa2cc
src/components/Marked/swapiSchema.tsx
@@ -383,10 +383,10 @@ const resolvers = {
383
Character: {
384
__resolveType(data, context, info){
385
if(humanData[data.id]){
386
- return info.schema.getType('Human');
+ return 'Human';
387
}
388
if(droidData[data.id]){
389
- return info.schema.getType('Droid');
+ return 'Droid';
390
391
return null;
392
},
@@ -467,13 +467,13 @@ const resolvers = {
467
SearchResult: {
468
469
470
471
472
473
474
475
if(starshipData[data.id]){
476
- return info.schema.getType('Starship');
+ return 'Starship';
477
478
479
0 commit comments