Files
animethemes-server/app/GraphQL/Schema/Fields/Auth/User/Me/MeNameField.php
T
2026-01-27 00:52:49 -03:00

22 lines
418 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Schema\Fields\Auth\User\Me;
use App\GraphQL\Schema\Fields\StringField;
use App\Models\Auth\User;
class MeNameField extends StringField
{
public function __construct()
{
parent::__construct(User::ATTRIBUTE_NAME, nullable: false);
}
public function description(): string
{
return 'The username of authenticated user';
}
}