{"library":"hapi-mongodb","type":"library","category":null,"description":"A Hapi.js plugin that shares a MongoDB connection pool across the entire server. Current stable version 11.0.0, requires Node.js >= 18 and @hapi/hapi >= 20.0.0. Ships with mongodb driver 6.x. Provides server/request decorations for easy access to MongoClient, Db, ObjectID, and the mongodb library. Supports multiple connections via an array of options. Simplifies MongoDB integration in Hapi applications by managing connections and decorations automatically.","language":"javascript","status":"active","version":"11.0.0","tags":["javascript","hapi","mongodb"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install hapi-mongodb","imports":["await server.register({ plugin: require('hapi-mongodb'), options: { url: '...', decorate: true } })","server.mongo.db","request.mongo.ObjectID"]},{"cmd":"yarn add hapi-mongodb","imports":[]},{"cmd":"pnpm add hapi-mongodb","imports":[]}],"homepage":"https://github.com/Marsup/hapi-mongodb#readme","github":"git://github.com/Marsup/hapi-mongodb","docs":null,"changelog":null,"pypi":null,"npm":"hapi-mongodb","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}