src/Schema/Factories/DirectiveFactory.php
protected function resolve(string $directiveName): ?Directive
    {
        if ($className = Arr::get($this->resolved, $directiveName)) {
            return app($className);
        }

        return null;
    }
protected function resolve(string $directiveName): ?Directive
    {
        if ($className = Arr::get($this->resolved, $directiveName)) {
            return app($className);
        }

        return null;
    }
protected function resolve ( string $ directiveName ) : ? Directive { if ( $ className = Arr :: get ( $ this -> resolved , $ directiveName ) ) { return app ( $ className ) ; } return null ; }
Create a directive from resolved directive classes.

@param  string  $directiveName
@return \Nuwave\Lighthouse\Support\Contracts\Directive|null
Create a directive from resolved directive classes .