{"library":"bedrock-mongodb","type":"library","category":null,"description":"A Bedrock module that creates a simple MongoDB database and provides an easy API for creating and working with its collections. Current stable version is 8.5.0, targeting Node.js >=10 and requiring peer dependency bedrock ^4.3.0. It simplifies MongoDB setup in Bedrock applications with opinionated configuration for database name, host, port, authentication, and connection options. Supports URL-based configuration and Mongoose-like collection management via openCollections. Compared to raw mongodb driver usage, it integrates with Bedrock events and configuration system, handling database creation and user setup on startup.","language":"javascript","status":"active","version":"8.5.0","tags":["javascript","bedrock","mongodb"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install bedrock-mongodb","imports":["const database = require('bedrock-mongodb');","const { config } = require('bedrock'); config.mongodb.name = 'my_project_dev';","const database = require('bedrock-mongodb'); database.openCollections(['myCollection'], callback);"]},{"cmd":"yarn add bedrock-mongodb","imports":[]},{"cmd":"pnpm add bedrock-mongodb","imports":[]}],"homepage":"https://github.com/digitalbazaar/bedrock-mongodb","github":"https://github.com/digitalbazaar/bedrock-mongodb","docs":null,"changelog":null,"pypi":null,"npm":"bedrock-mongodb","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}