1
<?php
2

3
namespace Nuwave\Lighthouse\Console;
4

5
class UnionCommand extends LighthouseGeneratorCommand
6
{
7
    protected $name = 'lighthouse:union';
8

9
    protected $description = 'Create a class for a GraphQL union type.';
10

11
    protected $type = 'Union';
12

13 0
    protected function namespaceConfigKey(): string
14
    {
15 0
        return 'unions';
16
    }
17

18 0
    protected function getStub(): string
19
    {
20 0
        return __DIR__.'/stubs/typeResolver.stub';
21
    }
22
}

Read our documentation on viewing source code .

Loading