mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
35 lines
713 B
PHP
35 lines
713 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Definition\Queries\List;
|
|
|
|
use App\GraphQL\Attributes\Resolvers\UseFindDirective;
|
|
use App\GraphQL\Definition\Queries\EloquentSingularQuery;
|
|
use App\GraphQL\Definition\Types\List\PlaylistType;
|
|
|
|
#[UseFindDirective]
|
|
class PlaylistQuery extends EloquentSingularQuery
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('playlist');
|
|
}
|
|
|
|
/**
|
|
* The description of the type.
|
|
*/
|
|
public function description(): string
|
|
{
|
|
return 'Returns a playlist resource.';
|
|
}
|
|
|
|
/**
|
|
* The base return type of the query.
|
|
*/
|
|
public function baseType(): PlaylistType
|
|
{
|
|
return new PlaylistType();
|
|
}
|
|
}
|