generic-mongodb-services
JSON →Provides a reusable GenericCrudService class that implements common CRUD operations (list, count, exists, create, get, update, patch) for MongoDB collections using the native Node.js MongoDB driver. Version 1.16.0 targets MongoDB driver v3.x (as seen in API docs). It reduces boilerplate by standardizing service-layer database interactions. Notably it uses callbacks/promises (not async/await consistently) and exposes methods like update and patch that directly wrap findOneAndUpdate. Suitable for small to mid-size Node.js APIs wanting to avoid repetitive CRUD code.
Resources
packagegeneric-mongodb-services ↗