for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of laravel.ru package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\GraphQL\Types;
use GraphQL\Type\Definition\Type;
* Class SearchResultType.
class SearchResultType extends AbstractType
{
* @var array
protected $attributes = [
'name' => 'Serach result type',
'description' => 'Type for search results',
];
* @return array
public function typeFields(): array
return [
'slug' => [
'type' => Type::nonNull(Type::string()),
'description' => '',
],
'url' => [
'content' => [
'title' => [
'type' => Type::string(),
'type' => [
'description' => 'Related to articles, docs_pages, docs or more',
}