Registry / database / iotdb-mongodb

iotdb-mongodb

JSON →
library2.2.1jsnpmunverified

POP MongoDB interface for IoTDB, version 2.2.1. Provides a simple MongoDB wrapper for IoT database operations. Low release cadence (last updated 2019). Not actively maintained; limited documentation and sparse usage examples. Differentiator: minimalistic wrapper for MongoDB in IoT contexts, but alternatives like Mongoose or native driver are more robust.

npm install iotdb-mongodb
INSTALL
IMPORT
SIG · IOTDB-MONGODB
I
iotdb-mongodb
databasejavascriptv2.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IoTDBMongoDB
const IoTDBMongoDB = require('iotdb-mongodb');
import IoTDBMongoDB from 'iotdb-mongodb';
CommonJS-only; ESM not supported.

Shows how to instantiate and connect to MongoDB using iotdb-mongodb.

const IoTDBMongoDB = require('iotdb-mongodb'); const db = new IoTDBMongoDB({ url: process.env.MONGO_URL ?? 'mongodb://localhost:27017', db: 'test' }); db.connect().then(() => console.log('connected')).catch(err => console.error(err));
Debug
Known issues
deprecatedPackage is no longer maintained; last update 2019.
fix
Migrate to Mongoose or native MongoDB driver.
affects: >=2.0.0
gotchaUses callback style; promises may not be fully supported.
fix
Wrap callbacks in Promises if needed.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'iotdb-mongodb'
Package not installed
fix
npm install iotdb-mongodb
Upgrade
Version history
2.2.1latest on npm
Audit
Dependencies
mongodbrequiredPeer dependency for MongoDB driver
Agent activity
4 hits · last 30 days
node
4
Resources
iotdb-mongodb — npm install iotdb-mongodb · libregistry