A wrapper around Mongoose for MongoDB connection management within the Harmony Framework. Exframe-db provides Mongoose connection initialization and graceful shutdown integration with exframe-service. Version 4.0.6 requires Node >=18.0.0 and peer dependencies exframe-health 1.x, exframe-logger 3.x, and exframe-service 1.x. It ships TypeScript types. The package is tightly coupled to the Harmony Framework ecosystem and is not intended for standalone use. Compared to mongoose directly, it adds logging and lifecycle hooks.
npm install exframe-dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes MongoDB connection with exframe-db using environment variables for logger token and database URL.
Run npm install exframe-health@1.x exframe-logger@3.x exframe-service@1.x
Ensure logger is created via require('exframe-logger').create(...)Use require() or configure your bundler to handle CJS interop.
Update Node to version 18 or later.
Run npm install exframe-db
Use const db = require('exframe-db') then db.init(...)Run npm install exframe-logger@3.x