you can use schema.toString() and remove the { } around it to convert the schema to a string