A utility library (v1.2.0) providing MongoDB helpers for join/merge operations, GridStore file handling, a MongoBuilder query builder, and ObjectID parsing. Designed to work with the native MongoDB Node.js driver, this package offers a fluent API for building filters, pagination, sorting, and field selection. It is especially associated with the total.js web framework. The package has not seen updates since its initial release and lacks modern driver support, making it a legacy option for simple MongoDB interactions without official Mongoose or MongoDB driver aggregation pipelines.
npm install mongodb-addonsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use join/merge on a cursor and use MongoBuilder for filtering and sorting.
Migrate to using the MongoDB aggregation pipeline with $lookup for joins and modern query builders.
Use a scoped variable instead: const { GridStore } = require('mongodb-addons'); does not work; you must explicitly assign from global after require.Use $lookup in aggregation pipeline instead.
Ensure you require the package: require('mongodb-addons'); then use the global ObjectID.Install with npm: npm install mongodb-addons; use require() not import since package lacks ESM support.
Add require('mongodb-addons'); at the top of your file to extend the cursor prototype.