mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-21 20:06:06 +02:00
30 lines
590 B
PHP
30 lines
590 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Queries\Models\Singular\Document;
|
|
|
|
use App\GraphQL\Schema\Queries\Models\Singular\EloquentSingularQuery;
|
|
use App\GraphQL\Schema\Types\Document\PageType;
|
|
|
|
class PageQuery extends EloquentSingularQuery
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('page');
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Returns a page resource.';
|
|
}
|
|
|
|
/**
|
|
* The base return type of the query.
|
|
*/
|
|
public function baseType(): PageType
|
|
{
|
|
return new PageType();
|
|
}
|
|
}
|