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; + } +}