Files
animethemes-server/app/GraphQL/Definition/Queries/Auth/User/MeQuery.php
T

62 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Definition\Queries\Auth\User;
use App\GraphQL\Definition\Queries\BaseQuery;
use App\GraphQL\Definition\Types\Auth\User\MeType;
/**
* Class MeQuery.
*/
class MeQuery extends BaseQuery
{
public function __construct()
{
parent::__construct('me', false, false, false);
}
/**
* The directives of the type.
*
* @return array<string, array>
*/
public function directives(): array
{
return [
'auth' => [],
];
}
/**
* The arguments of the type.
*
* @return array<int, string>
*/
public function arguments(): array
{
return [];
}
/**
* The description of the type.
*
* @return string
*/
public function description(): string
{
return 'Returns the data of the currently authenticated user.';
}
/**
* The base return type of the query.
*
* @return MeType
*/
public function baseType(): MeType
{
return new MeType();
}
}