Mongowave is a JavaScript MongoDB client that wraps the official mongodb driver, providing a simplified API with automatic timestamps, custom string IDs, and convenience defaults like $set updates and batch operations. Version 0.15.0 uses id instead of _id by default, returns full documents on create, and updates/deletes multiple documents per query. Released on npm, it requires mongowave and wraps the mongodb package. Differentiators include intuitive API, retry connection on fail, and minimal configuration.
npm install mongowaveNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MongoDB using connection(), creates a document, finds documents, updates, and deletes.
db = await connection({ simpleid: false, id: false })Remove connection options or update to current mongodb driver defaults.
Use null to explicitly set a field to null; use undefined to omit the field.
For single update/delete, consider using db('collection').get() and then remove, or raw mongodb methods.Always check the return type: array if input was array, else object.
Use const connection = require('mongowave'); then await connection({...});Run: npm install mongowave
Use db('collection') as a function call, not a property access.Ensure url includes authentication: mongodb://user:pass@host:port/db