{"library":"egg-mongo-native","type":"library","category":null,"description":"Egg.js plugin providing MongoDB integration via the official node-mongodb-native driver. Version 3.5.0 (stable). Wraps common MongoDB operations (find, insertOne, updateOne, deleteOne, aggregate) into convenient Egg.js patterns with collection name and args object, while exposing the full native driver API. Requires Egg.js application framework. Supports single instance, replica sets (v2.1.0+), and multiple instances via clients configuration. Low release cadence, focused on stability.","language":"javascript","status":"active","version":"3.5.0","tags":["javascript","egg","eggPlugin","egg-plugin","mongo","mongodb","mongo-driver"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install egg-mongo-native","imports":["// {app_root}/config/plugin.js\nexports.mongo = {\n  enable: true,\n  package: 'egg-mongo-native',\n};","// After enabling plugin, access via app.mongo\nawait app.mongo.find('collection', { query: {}, limit: 10 });","// When using clients configuration\nconst db1 = app.mongo.get('db1');\nawait db1.find('collection', {});"]},{"cmd":"yarn add egg-mongo-native","imports":[]},{"cmd":"pnpm add egg-mongo-native","imports":[]}],"homepage":"https://github.com/brickyang/egg-mongo-native","github":"ssh://git@github.com/brickyang/egg-mongo-native","docs":null,"changelog":null,"pypi":null,"npm":"egg-mongo-native","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}