Skip to content

Commit

Permalink
fix(#1347): Removing 'checked' from GraphQL Explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmartens committed Jun 13, 2024
1 parent 162958e commit 1453ce5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ public static function getFieldDefinitions(): array
'type' => Type::string(),
'description' => "Option's label",
],
'checked' => [
'name' => 'checked',
'type' => Type::boolean(),
'description' => 'Is the option checked',
],
], static::getName());
}
}
4 changes: 0 additions & 4 deletions packages/plugin/src/Bundles/GraphQL/Types/OptionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ protected function resolve($source, $arguments, $context, ResolveInfo $resolveIn
return $source->getLabel() ?? null;
}

if ('checked' === $resolveInfo->fieldName) {
return $source->isChecked() ?? false;
}

return null;
}
}

0 comments on commit 1453ce5

Please sign in to comment.