FeathersJS service adapters for managing MongoDB databases, collections, and users. Version 2.0.1 supports Feathers v5 (Dove) and Node.js >=16, while v1.x supports Feathers v3 (Buzzard) and Node.js >=12. Differentiates from standard MongoDB adapters by enabling physical data segregation per tenant (e.g., organizations) via dedicated databases, simplifying access control in multi-tenant SaaS applications. The plugin provides CRUD services for creating, listing, and dropping databases/collections/users through standard Feathers service interfaces. Release cadence is low; relies on mongodb native driver.
npm install feathers-mongodb-managementNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting up database, collection, and user management services with Feathers v5 and MongoDB.
Update to Feathers v5 and Node.js 16+. For Feathers v3, stick to v1.x.
Consider alternative data segregation strategies if needed.
After creating a database via service, retrieve the Db instance with client.db(name).
Pass client.db('your-db') when configuring collection/user service.Ensure the database has a 'users' collection with appropriate schema before using the user service.
Ensure you pass adminDb: client.db('admin').admin() instead of client.db('admin').Pass { db: client.db('your-db') } as options to plugin.collection()Drop all collections inside the database first, or use the 'force' option if supported by the service.