src/Utils/SchemaPrinter.php
public static function doPrint(Schema $schema, array $options = []) : string
    {
        return self::printFilteredSchema(
            $schema,
            static function ($type) {
                return ! Directive::isSpecifiedDirective($type);
            },
            static function ($type) {
                return ! Type::isBuiltInType($type);
            },
            $options
        );
    }
public static function doPrint(Schema $schema, array $options = []) : string
    {
        return self::printFilteredSchema(
            $schema,
            static function ($type) {
                return ! Directive::isSpecifiedDirective($type);
            },
            static function ($type) {
                return ! Type::isBuiltInType($type);
            },
            $options
        );
    }
Accepts options as a second argument:

- commentDescriptions:
Provide true to use preceding comments as the description.

@param bool[] $options

@api