BetaJS-MongoDB version 1.0.24 is a MongoDB wrapper designed to integrate with the BetaJS framework. It provides a simple abstraction for databases and tables, allowing CRUD operations and store-based access via BetaJS-Data. The package is stable but rarely updated, targeting Node.js 4.0 and later. It is not compatible with modern ESM or TypeScript without additional setup, and relies on BetaJS core and data modules.
npm install betajs-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up BetaJS-MongoDB with required dependencies and perform an insert operation.
Ensure require order: betajs, then betajs-data, then betajs-mongodb
Access via BetaJS.Data.Databases.Mongo.MongoDatabase, not via import or require.destructure
Wrap calls in new Promise or use a Promise-aware wrapper; no native Promise support
After requiring betajs-data, use BetaJS.Data.Stores.DatabaseStore
Pass a valid mongodb:// URI including database name, e.g., 'mongodb://localhost/mydb'
Ensure require('betajs') is called before require('betajs-mongodb')Add require('betajs-data') before require('betajs-mongodb')Instantiate with new BetaJS.Data.Databases.Mongo.MongoDatabase(uri)