Compare commits

...

1 Commits

Author SHA1 Message Date
Your Name eb9b7a473a Array 2021-07-26 20:21:42 +02:00
+3 -3
View File
@@ -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);
}
}