Files
animethemes-server/app/GraphQL/Schema/Fields/Wiki/Video/VideoLikesCountField.php
T
2025-09-03 04:57:13 -03:00

22 lines
465 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Schema\Fields\Wiki\Video;
use App\GraphQL\Schema\Fields\Base\CountAggregateField;
use App\Models\Wiki\Video;
class VideoLikesCountField extends CountAggregateField
{
public function __construct()
{
parent::__construct(Video::RELATION_LIKE_AGGREGATE, 'likesCount');
}
public function description(): string
{
return 'The number of likes recorded for the resource';
}
}