From 2726b289c51f9b747fd9a33e5e73b05c4be5f268 Mon Sep 17 00:00:00 2001 From: Abner Tudtud Date: Mon, 5 Aug 2024 21:28:52 +0800 Subject: [PATCH] Add packs relation --- src/GraphQL/Types/BeamType.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/GraphQL/Types/BeamType.php b/src/GraphQL/Types/BeamType.php index 1272b0d..9373ffa 100644 --- a/src/GraphQL/Types/BeamType.php +++ b/src/GraphQL/Types/BeamType.php @@ -128,6 +128,12 @@ public function fields(): array 'selectable' => false, 'is_relation' => false, ], + 'packs' => [ + 'type' => GraphQL::type('[BeamPack!]'), + 'description' => __('enjin-platform-beam::type.beam_pack.description'), + 'selectable' => false, + 'is_relation' => true, + ], ]; } }