From b28e53d333331f040801e9d2b325ead21253149d Mon Sep 17 00:00:00 2001 From: Gogs Date: Sun, 25 Jul 2021 01:06:13 +0200 Subject: [PATCH] Subscription testing --- classes/Aircraft.php | 79 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 classes/Aircraft.php diff --git a/classes/Aircraft.php b/classes/Aircraft.php new file mode 100644 index 0000000..8ea3d98 --- /dev/null +++ b/classes/Aircraft.php @@ -0,0 +1,79 @@ + $args + * @param \Nuwave\Lighthouse\Support\Contracts\GraphQLContext $context + * @param \GraphQL\Type\Definition\ResolveInfo $resolveInfo + * @return mixed + */ + public function resolve($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): Model + { + // Optionally manipulate the `$root` item before it gets broadcasted to + // subscribed client(s). + $root->load(); + + return $root; + } +}