1
<?php
2

3
namespace Nuwave\Lighthouse\Console;
4

5
use Illuminate\Console\Command;
6
use Nuwave\Lighthouse\Schema\AST\ASTBuilder;
7

8
class CacheCommand extends Command
9
{
10
    protected $name = 'lighthouse:cache';
11

12
    protected $description = 'Compile the GraphQL schema and cache it.';
13

14 1
    public function handle(ASTBuilder $builder): void
15
    {
16 1
        $builder->documentAST();
17

18 1
        $this->info('GraphQL AST schema cache created.');
19
    }
20
}

Read our documentation on viewing source code .

Loading