From 1453ce5a4985de5246dff509386b1ef2ad2aef68 Mon Sep 17 00:00:00 2001 From: kjmartens Date: Thu, 13 Jun 2024 17:50:09 -0500 Subject: [PATCH] fix(#1347): Removing 'checked' from GraphQL Explorer --- .../src/Bundles/GraphQL/Interfaces/OptionInterface.php | 5 ----- packages/plugin/src/Bundles/GraphQL/Types/OptionType.php | 4 ---- 2 files changed, 9 deletions(-) diff --git a/packages/plugin/src/Bundles/GraphQL/Interfaces/OptionInterface.php b/packages/plugin/src/Bundles/GraphQL/Interfaces/OptionInterface.php index c1a30819b..4985ad107 100644 --- a/packages/plugin/src/Bundles/GraphQL/Interfaces/OptionInterface.php +++ b/packages/plugin/src/Bundles/GraphQL/Interfaces/OptionInterface.php @@ -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()); } } diff --git a/packages/plugin/src/Bundles/GraphQL/Types/OptionType.php b/packages/plugin/src/Bundles/GraphQL/Types/OptionType.php index 64b5f05bf..22814bf16 100644 --- a/packages/plugin/src/Bundles/GraphQL/Types/OptionType.php +++ b/packages/plugin/src/Bundles/GraphQL/Types/OptionType.php @@ -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; } }