For those in a technology stack using JavaScript, and are using the Mongoose ODM, Hackolade also provides the option to export a JavaScript Mongoose schema file for the collection definition via the menu option Tools > Forward-Engineering > Mongoose Schema: