{"repo":"Josuto/monguito","free":true,"listed":false,"github":"https://github.com/Josuto/monguito","clone":"git clone https://github.com/Josuto/monguito.git","description":"Lightweight MongoDB Abstract Repository implementation for Node.js apps","language":"TypeScript","stars":34,"topics":["nestjs","abstract-repository","generic-repository","repository-pattern","custom-repository","polymorphic-types","mongo-db","mongoose-js","mongodb","nodejs"],"license":"MIT","category":"databases-storage","readme_excerpt":"Create custom MongoDB repositories fast and easily Main Contents - What is monguito ? - Getting Started - Supported Database Operations - Examples - Write Your Own Repository Interfaces - Extra Utilities - Comparison to other Alternatives - Contributors What is monguito ? monguito is a lightweight and type-safe MongoDB handling library for Node.js applications that implements both the abstract repository and the polymorphic patterns. It allows you (dear developer) to define any custom MongoDB repository in a fast, easy, and structured manner, releasing you from having to write all the boilerplate code for basic CRUD operations, and also decoupling your domain layer from the persistence logic. Moreover, despite its small size, it includes several optional features such as seamless audit data handling support. Last but not least, monguito wraps Mongoose, a very popular and solid MongoDB ODM for Node.js applications. monguito enables you to use any Mongoose feature such as aggregation pipelines or middleware functions. Furthermore, it leverages Mongoose schemas to enable developers focus on their own persistance models, leaving everything else to the library. Getting Started Installation You can install monguito with npm: Or yarn: Or pnpm: Usage Creating your repository with custom database operations is very straight forward. Say you want to create a custom repository to handle database operations over instances of a Book and any of its subtypes (e.g., PaperBook and AudioBook )","default_branch":null,"files":null,"tree":[],"storefront":"/r/Josuto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Josuto/monguito/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."}