Mutations
This commit is contained in:
parent
eb9b7a473a
commit
17a994f0d5
@ -68,12 +68,12 @@ class Aircraft extends GraphQLSubscription
|
|||||||
* @param \GraphQL\Type\Definition\ResolveInfo $resolveInfo
|
* @param \GraphQL\Type\Definition\ResolveInfo $resolveInfo
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function resolve($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): array
|
public function resolve($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): Model
|
||||||
{
|
{
|
||||||
// Optionally manipulate the `$root` item before it gets broadcasted to
|
// Optionally manipulate the `$root` item before it gets broadcasted to
|
||||||
// subscribed client(s).
|
// subscribed client(s).
|
||||||
//$root->load();
|
$root->load();
|
||||||
|
|
||||||
return array($root);
|
return $root;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user