A Mongoose extension that generates RESTful API endpoints for Mongoose schemas automatically. Current stable version is 4.5.18. It uses decorators and configuration to expose CRUD operations (Create, Read, Update, Delete) for Mongoose models with minimal boilerplate. The package also integrates with i18next for localization and is designed to work with Express. It simplifies building REST APIs by providing a standardized way to define routes, permissions, and validation. Release cadence is not specified; it is actively maintained.
npm install q3-core-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: initialize i18next, define a Mongoose model, and attach REST endpoints for that model to an Express app.
Upgrade Mongoose to version 6.x or later.
Use default import: import q3CoreRest from 'q3-core-rest';
Call i18next.init() before importing or using q3CoreRest.
Add app.use(express.json()); before using q3CoreRest.
npm install q3-core-rest
import i18next from 'i18next'; i18next.init();
Ensure the ID parameter is a valid MongoDB ObjectId string.