mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
30 lines
575 B
PHP
30 lines
575 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Queries\Models\Singular\Wiki;
|
|
|
|
use App\GraphQL\Schema\Queries\Models\Singular\EloquentSingularQuery;
|
|
use App\GraphQL\Schema\Types\Wiki\VideoType;
|
|
|
|
class VideoQuery extends EloquentSingularQuery
|
|
{
|
|
public function name(): string
|
|
{
|
|
return 'video';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Returns a video resource.';
|
|
}
|
|
|
|
/**
|
|
* The base return type of the query.
|
|
*/
|
|
public function baseType(): VideoType
|
|
{
|
|
return new VideoType();
|
|
}
|
|
}
|