Data model abstractions for MongoDB, implementing the manikin interface. Current stable version is 0.15.5. This package is a legacy library with no recent updates, targeting Node.js 0.10 to 0.12 and npm 1.3-2.x. It provides simple CRUD operations for MongoDB documents with a minimal schema-like layer. Not actively maintained; consider mongoose or mongodb-native driver for modern use.
npm install manikin-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MongoDB, creates a manikin-mongodb adapter, defines a User model, and inserts a document using callback style.
Use a newer library like mongoose or the official mongodb driver directly.
Do not upgrade mongodb package to v2+ while using this library.
Wrap calls with promisify or migrate to a modern ODM.
Define all fields upfront and avoid runtime modifications.
Manage MongoDB connection lifecycle externally.
Run 'npm install manikin-mongodb' in your project directory.
Use require('manikin-mongodb') instead of import.Install mongodb@1.x explicitly: 'npm install mongodb@1'.
Ensure you are passing the result of MongoClient.connect (the Db object).