src/Schema/AST/DocumentAST.php
protected function definitionsByType(string $typeClassName): Collection
    {
        return $this->definitionMap
            ->filter(function (Node $node) use ($typeClassName) {
                return $node instanceof $typeClassName;
            });
    }
protected function definitionsByType(string $typeClassName): Collection
    {
        return $this->definitionMap
            ->filter(function (Node $node) use ($typeClassName) {
                return $node instanceof $typeClassName;
            });
    }
protected function definitionsByType ( string $ typeClassName ) : Collection { return $ this -> definitionMap -> filter ( function ( Node $ node ) use ( $ typeClassName ) { return $ node instanceof $ typeClassName ; } ) ; }
Get all definitions of a given type.

@param  string  $typeClassName
@return \Illuminate\Support\Collection
Get all definitions of a given type .