{"library":"mongoist","type":"library","category":null,"description":"MongoDB driver for Node.js that wraps the official MongoDB driver with a lazy connection management pattern and async/await-friendly API. Current stable version is 4.0.2, requires Node >=16.20.1, and is released infrequently (last release 2023). Key differentiators vs mongojs: promise-only (no callbacks), lazy connection (supports async connection info via Promises), proxy-based collection access (db.collectionName instead of db.collection('name')). Compared to the official mongodb driver, mongoist automatically manages connections internally, eliminating boilerplate connection code and enabling easy module export of a not-yet-connected db instance.","language":"javascript","status":"maintenance","version":"4.0.2","tags":["javascript","mongodb","async","mongojs","driver","database","db"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongoist","imports":["import mongoist from 'mongoist'","const mongoist = require('mongoist')","const db = mongoist(connectionString)"]},{"cmd":"yarn add mongoist","imports":[]},{"cmd":"pnpm add mongoist","imports":[]}],"homepage":"https://github.com/mongoist/mongoist#readme","github":"https://github.com/mongoist/mongoist","docs":null,"changelog":null,"pypi":null,"npm":"mongoist","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}