Skip to content

Instantly share code, notes, and snippets.

View bsilva0x87's full-sized avatar

Bruno C. Silva bsilva0x87

View GitHub Profile
@bsilva0x87
bsilva0x87 / PrintSchemaCommand.php
Created October 12, 2019 15:35
Simple implementation for command "lighthouse:print-schema" to compile the final GraphQL schema using Lighthouse / Lumen PHP.
<?php
namespace Nuwave\Lighthouse\Console;
use Nuwave\Lighthouse\GraphQL;
use Illuminate\Console\Command;
use GraphQL\Utils\SchemaPrinter;
class PrintSchemaCommand extends Command
{