{"repo":"francescov1/mongoose-tsgen","free":true,"listed":false,"github":"https://github.com/francescov1/mongoose-tsgen","clone":"git clone https://github.com/francescov1/mongoose-tsgen.git","description":"A plug-n-play Typescript generator for Mongoose.","language":"TypeScript","stars":112,"topics":["mongoose","typescript","mongoose-types","typescript-interfaces","ts","nodejs","generator","mongodb","orm"],"license":null,"category":"databases-storage","readme_excerpt":"mongoose-tsgen A plug-n-play Typescript generator for Mongoose. - Motivation - Features - Compatibility - Installation - The Gist - Usage - Example - Known Issues - Development Motivation Using Mongoose with Typescript requires duplicating Mongoose Schemas using Typescript interfaces. To avoid duplication, libraries like typegoose define a custom schema syntax that is used to generate both the Mongoose Schemas and the Typescript interfaces. Unfortunately, this requires users to completely rewrite their Mongoose Schemas into an unfamiliar syntax and does not support the entire Mongoose feature set. This library aims to remove these drawbacks by instead parsing your already-written Mongoose Schemas and generating associated Typescript interfaces. This removes the need to learn new syntax and makes this library extremely simple to integrate into an existing Mongoose project. Features - 😌 Automatically generate Typescript typings for each Mongoose document, model and subdocument - 📦 Works out of the box, don't need to rewrite your schemas - ⛑ Type-safe population - ➕ Includes a \"Mongoose-less\" version of each schema interface (Mongoose typings removed) Compatibility - ✅ All Mongoose types, arrays and maps - ✅ Virtual properties - ✅ Mongoose method, static & query functions - ✅ Multiple schemas per file - ✅ Typescript path aliases Mongoose version Find your Mongoose version below and install the associated mongoose-tsgen version. Ensure to refer to each version's respective READ","default_branch":null,"files":null,"tree":[],"storefront":"/r/francescov1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/francescov1/mongoose-tsgen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}