A MongoDB adapter for nestjs-rest, providing a CRUD service for JSON:API compliant applications built with NestJS and MongoDB. Current stable version is 1.0.1, released on npm with monthly updates. Supports both offset and cursor pagination. Requires Node >=20 and MongoDB >=6. Key differentiator: integrates seamlessly with nestjs-rest to provide a standardized JSON:API data layer for MongoDB.
npm install nestjs-rest-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers the MongoModule with a MongoDB client and database name for NestJS CRUD operations.
Upgrade Node to version 20 or higher.
Install mongodb@^6.0.0.
Use MongoModule.forRoot() instead.
Use import { MongoService } from 'nestjs-rest-mongodb'.Update npm to version 10 or higher.
Run `npm install nestjs-rest-mongodb nestjs-rest std-json-api mongodb`.
Use import { MongoModule } from 'nestjs-rest-mongodb'.Ensure MongoClient.connect() is called before creating module.