From eb9b7a473a19a0b32df15c627cba29e61320d574 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jul 2021 20:21:42 +0200 Subject: [PATCH] Array --- classes/Aircraft.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Aircraft.php b/classes/Aircraft.php index 8ea3d98..6e32f64 100644 --- a/classes/Aircraft.php +++ b/classes/Aircraft.php @@ -68,12 +68,12 @@ class Aircraft extends GraphQLSubscription * @param \GraphQL\Type\Definition\ResolveInfo $resolveInfo * @return mixed */ - public function resolve($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): Model + public function resolve($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): array { // Optionally manipulate the `$root` item before it gets broadcasted to // subscribed client(s). - $root->load(); + //$root->load(); - return $root; + return array($root); } }