new Deps
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Nuwave\Lighthouse\Console;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Nuwave\Lighthouse\Schema\AST\ASTBuilder;
|
||||
|
||||
class CacheCommand extends Command
|
||||
{
|
||||
protected $name = 'lighthouse:cache';
|
||||
|
||||
protected $description = 'Compile the GraphQL schema and cache it.';
|
||||
|
||||
public function handle(ASTBuilder $builder): void
|
||||
{
|
||||
$builder->documentAST();
|
||||
|
||||
$this->info('GraphQL schema cache created.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user