src/GraphQL.php
public function documentAST(): DocumentAST
    {
        if (empty($this->documentAST)) {
            $this->documentAST = config('lighthouse.cache.enable')
                ? app('cache')
                    ->rememberForever(
                        config('lighthouse.cache.key'),
                        function (): DocumentAST {
                            return $this->buildAST();
                        }
                    )
                : $this->buildAST();
        }

        return $this->documentAST;
    }
public function documentAST(): DocumentAST
    {
        if (empty($this->documentAST)) {
            $this->documentAST = config('lighthouse.cache.enable')
                ? app('cache')
                    ->rememberForever(
                        config('lighthouse.cache.key'),
                        function (): DocumentAST {
                            return $this->buildAST();
                        }
                    )
                : $this->buildAST();
        }

        return $this->documentAST;
    }
public function documentAST ( ) : DocumentAST { if ( empty ( $ this -> documentAST ) ) { $ this -> documentAST = config ( 'lighthouse.cache.enable' ) ? app ( 'cache' ) -> rememberForever ( config ( 'lighthouse.cache.key' ) , function ( ) : DocumentAST { return $ this -> buildAST ( ) ; } ) : $ this -> buildAST ( ) ; } return $ this -> documentAST ; }
Get instance of DocumentAST.

@return \Nuwave\Lighthouse\Schema\AST\DocumentAST
Get instance of DocumentAST .