mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
34 lines
880 B
PHP
34 lines
880 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Builders\Admin;
|
|
|
|
use App\Constants\FeatureConstants;
|
|
use App\Models\Admin\Feature;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Nuwave\Lighthouse\Execution\ResolveInfo;
|
|
use Nuwave\Lighthouse\Support\Contracts\GraphQLContext;
|
|
|
|
/**
|
|
* Class FeatureBuilder.
|
|
*/
|
|
class FeatureBuilder
|
|
{
|
|
/**
|
|
* Apply the query builder to the index query.
|
|
*
|
|
* @param Builder $builder
|
|
* @param mixed $value
|
|
* @param mixed $root
|
|
* @param array $args
|
|
* @param GraphQLContext $context
|
|
* @param ResolveInfo $resolveInfo
|
|
* @return Builder
|
|
*/
|
|
public function index(Builder $builder, mixed $value, mixed $root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): Builder
|
|
{
|
|
return $builder->where(Feature::ATTRIBUTE_SCOPE, FeatureConstants::NULL_SCOPE);
|
|
}
|
|
}
|