{"_id":"egg-mongoose","_rev":"1298579","name":"egg-mongoose","description":"egg mongoose plugin","dist-tags":{"latest":"3.3.1"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"time":{"modified":"2021-10-20T09:58:52.000Z","created":"2017-02-16T14:49:46.913Z","3.3.1":"2020-10-16T05:56:09.423Z","3.3.0":"2020-08-13T01:23:30.329Z","3.2.0":"2019-05-16T02:56:38.615Z","3.1.3":"2019-05-06T08:46:03.066Z","3.1.2":"2019-05-05T03:41:04.722Z","3.1.1":"2018-11-05T09:15:13.503Z","3.1.0":"2018-07-03T05:53:56.437Z","3.0.0":"2018-06-12T14:13:47.333Z","2.2.1":"2018-04-28T12:37:04.940Z","2.2.0":"2018-03-02T09:13:52.856Z","2.1.1":"2017-09-18T05:59:58.624Z","2.1.0":"2017-05-16T06:41:37.464Z","2.0.0":"2017-05-08T03:33:53.241Z","1.1.1":"2017-03-11T13:58:44.135Z","1.1.0":"2017-03-02T06:49:48.453Z","1.0.0":"2017-02-16T14:49:46.913Z"},"users":{"sharper":true},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"versions":{"3.3.1":{"name":"egg-mongoose","version":"3.3.1","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"@types/mongoose":"^5.3.24","await-first":"^1.0.0","mongoose":"^5.10.9"},"devDependencies":{"autod":"^3.0.1","bluebird":"^3.5.1","dotenv":"^7.0.0","egg":"^2.20.2","egg-bin":"^4.9.0","egg-mock":"^3.1.2","eslint":"^5.15.3","eslint-config-egg":"^7.1.0","mocha":"^6.0.2","supertest":"^4.0.2","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10, 12"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"123527ca0ff642ef18187515c04ede6b79ae68f1","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@3.3.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"shasum":"f73d2650b0227bd8e1fcf771c9a2d2feea8d4746","size":6064,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-3.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-3.3.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmUser":{"name":"jasinyip","email":"yejunxing@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_3.3.1_1602827769219_0.5721919368022375"},"_hasShrinkwrap":false,"publish_time":1602827769423,"_cnpm_publish_time":1602827769423},"3.3.0":{"name":"egg-mongoose","version":"3.3.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"@types/mongoose":"^5.3.24","await-first":"^1.0.0","mongoose":"^5.4.20"},"devDependencies":{"autod":"^3.0.1","bluebird":"^3.5.1","dotenv":"^7.0.0","egg":"^2.20.2","egg-bin":"^4.9.0","egg-mock":"^3.1.2","eslint":"^5.15.3","eslint-config-egg":"^7.1.0","mocha":"^6.0.2","supertest":"^4.0.2","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10, 12"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"41c4358db07cf4ecfa99fd7460d0088580303d44","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@3.3.0","_nodeVersion":"10.15.1","_npmVersion":"6.11.3","dist":{"shasum":"f5c912c997434d2d7b9bdb4007b9f82a338e0bac","size":6021,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-3.3.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmUser":{"name":"atian25","email":"atian25@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_3.3.0_1597281810186_0.17170968367371975"},"_hasShrinkwrap":false,"publish_time":1597281810329,"_cnpm_publish_time":1597281810329},"3.2.0":{"name":"egg-mongoose","version":"3.2.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"@types/mongoose":"^5.3.24","await-first":"^1.0.0","mongoose":"^5.4.20"},"devDependencies":{"autod":"^3.0.1","bluebird":"^3.5.1","dotenv":"^7.0.0","egg":"^2.20.2","egg-bin":"^4.9.0","egg-mock":"^3.1.2","eslint":"^5.15.3","eslint-config-egg":"^7.1.0","mocha":"^6.0.2","supertest":"^4.0.2","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10, 12"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"4ff7626a0fdaf4e256b8dabc2895f1d83a8a7966","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@3.2.0","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","dist":{"shasum":"8ac8f89d7681257c50375185addafece7e90d674","size":5736,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-3.2.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmUser":{"name":"atian25","email":"atian25@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_3.2.0_1557975398465_0.3694558915151589"},"_hasShrinkwrap":false,"publish_time":1557975398615,"_cnpm_publish_time":1557975398615},"3.1.3":{"name":"egg-mongoose","version":"3.1.3","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"@types/mongoose":"^5.3.24","await-first":"^1.0.0","mongoose":"^5.4.20"},"devDependencies":{"autod":"^3.0.1","bluebird":"^3.5.1","dotenv":"^7.0.0","egg":"^2.20.2","egg-bin":"^4.9.0","egg-mock":"^3.1.2","eslint":"^5.15.3","eslint-config-egg":"^7.1.0","mocha":"^6.0.2","supertest":"^4.0.2","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10, 12"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"77b0ca16b762dc986764574d9e9a75a35f4aa4a5","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@3.1.3","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","dist":{"shasum":"0cfe23fb9d4d2aa5faca5bc73c546266def37ce0","size":5535,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-3.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-3.1.3.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmUser":{"name":"atian25","email":"atian25@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_3.1.3_1557132362920_0.6215738740432182"},"_hasShrinkwrap":false,"publish_time":1557132363066,"_cnpm_publish_time":1557132363066},"3.1.2":{"name":"egg-mongoose","version":"3.1.2","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"@types/mongoose":"^5.3.24","await-first":"^1.0.0","mongoose":"^5.4.20","semver":"^6.0.0"},"devDependencies":{"autod":"^3.0.1","bluebird":"^3.5.1","dotenv":"^7.0.0","egg":"^2.20.2","egg-bin":"^4.9.0","egg-mock":"^3.1.2","eslint":"^5.15.3","eslint-config-egg":"^7.1.0","mocha":"^6.0.2","supertest":"^4.0.2","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"3cf9e73cd42dcfe00bcbe5df97f45f9f7a2dfa2b","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@3.1.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"ffb77ac66cc6d2683b4f6f67882686dd8941846c","size":5504,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-3.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-3.1.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_3.1.2_1557027664598_0.5728306563074219"},"_hasShrinkwrap":false,"publish_time":1557027664722,"_cnpm_publish_time":1557027664722},"3.1.1":{"name":"egg-mongoose","version":"3.1.1","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"@types/mongoose":"^5.0.18","await-first":"^1.0.0","mongoose":"^5.0.17"},"devDependencies":{"mocha":"^5.2.0","autod":"^2.7.1","bluebird":"^3.5.1","dotenv":"^5.0.1","egg":"^1.0.0-rc.3","egg-bin":"^4.9.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^7.1.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"d616409fd4c007b927bc4ff93016a3df255805e5","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@3.1.1","_npmVersion":"5.8.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"34fe1bd6beb0ab6db76c9a952d904826c0e5c9d2","size":5041,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-3.1.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_3.1.1_1541409313256_0.939867700411646"},"_hasShrinkwrap":false,"publish_time":1541409313503,"_cnpm_publish_time":1541409313503},"3.1.0":{"name":"egg-mongoose","version":"3.1.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-first":"^1.0.0","mongoose":"^5.0.17"},"devDependencies":{"@types/mongoose":"^5.0.18","autod":"^2.7.1","bluebird":"^3.5.1","dotenv":"^5.0.1","egg":"^1.0.0-rc.3","egg-bin":"^2.4.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","index.d.ts","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"663e53eac72c415440efff8b18e0d90df27133b8","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@3.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"daeca29ff2cc8cc57b3532374e19ad37fefd2c90","size":4739,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-3.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_3.1.0_1530597236370_0.04493250574685814"},"_hasShrinkwrap":false,"publish_time":1530597236437,"_cnpm_publish_time":1530597236437},"3.0.0":{"name":"egg-mongoose","version":"3.0.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-first":"^1.0.0","mongoose":"^5.0.17"},"devDependencies":{"autod":"^2.7.1","bluebird":"^3.5.1","dotenv":"^5.0.1","egg":"^1.0.0-rc.3","egg-bin":"^2.4.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"7643e782ddf8b28781c74cc06d14ced732235d9f","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"50d6cce2af4b28610ce43a2f9152ee285005e3bb","size":4326,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-3.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_3.0.0_1528812827267_0.9446740583793196"},"_hasShrinkwrap":false,"publish_time":1528812827333,"_cnpm_publish_time":1528812827333},"2.2.1":{"name":"egg-mongoose","version":"2.2.1","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-first":"^1.0.0","mongoose":"^4.8.6"},"devDependencies":{"autod":"^2.7.1","bluebird":"^3.5.1","egg":"^1.0.0-rc.3","egg-bin":"^2.4.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"f5568464e557fdd20e2b217e37cfd41ccb48f6cf","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@2.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"91be4cc264f261988252b71218c64e2f400a4936","size":4235,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-2.2.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_2.2.1_1524919024812_0.10522900250842393"},"_hasShrinkwrap":false,"publish_time":1524919024940,"_cnpm_publish_time":1524919024940},"2.2.0":{"name":"egg-mongoose","version":"2.2.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-event":"^2.0.0","mongoose":"^4.8.6"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.3","egg-bin":"^2.4.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"0b85466d94325fe421381656487385fb7032240f","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@2.2.0","_shasum":"8e49a53a6ca5691dd84b27c86fd973e0c634bb71","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"jtyjty99999","email":"jtyjty99999@126.com"},"dist":{"shasum":"8e49a53a6ca5691dd84b27c86fd973e0c634bb71","size":3904,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-2.2.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose_2.2.0_1519982032810_0.8831140250680163"},"_hasShrinkwrap":false,"publish_time":1519982032856,"_cnpm_publish_time":1519982032856},"2.1.1":{"name":"egg-mongoose","version":"2.1.1","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-event":"^2.0.0","mongoose":"^4.8.6"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.3","egg-bin":"^2.4.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"979b931bcca233af20b545c13f811f84c9584ce3","_id":"egg-mongoose@2.1.1","_shasum":"7a489627da17567a6847f1bef55b500c60ff2f0b","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"jtyjty99999","email":"jtyjty99999@126.com"},"dist":{"shasum":"7a489627da17567a6847f1bef55b500c60ff2f0b","size":3458,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-2.1.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-mongoose-2.1.1.tgz_1505714398557_0.868837314657867"},"directories":{},"publish_time":1505714398624,"_cnpm_publish_time":1505714398624,"_hasShrinkwrap":false},"2.1.0":{"name":"egg-mongoose","version":"2.1.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-event":"^2.0.0","mongoose":"^4.8.6"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.3","egg-bin":"^2.4.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"e2f92f1cabfca8b63d1e977641ddfdad5f873b35","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@2.1.0","_shasum":"7c90fff12fa10152d038b7580298cab1445c8b80","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"7c90fff12fa10152d038b7580298cab1445c8b80","size":3408,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-2.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-mongoose-2.1.0.tgz_1494916897224_0.3686906008515507"},"directories":{},"publish_time":1494916897464,"_hasShrinkwrap":false,"_cnpm_publish_time":1494916897464},"2.0.0":{"name":"egg-mongoose","version":"2.0.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-event":"^2.0.0","mongoose":"^4.8.6"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.3","egg-bin":"^2.4.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"d06e994adaa4caf0e71bbf2b18b82f3cd22edc33","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@2.0.0","_shasum":"8499f264161c37f574f93a49ca366a9903d3410f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"8499f264161c37f574f93a49ca366a9903d3410f","size":3324,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-2.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-mongoose-2.0.0.tgz_1494214431274_0.970510906772688"},"directories":{},"publish_time":1494214433241,"_hasShrinkwrap":false,"_cnpm_publish_time":1494214433241},"1.1.1":{"name":"egg-mongoose","version":"1.1.1","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-event":"^2.0.0","mongoose":"^4.8.6"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.3","egg-bin":"^2.4.0","egg-mock":"^3.1.2","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"ef4e1c89d3dc967db6283187df74b26b961e2715","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@1.1.1","_shasum":"f1c7f3d3ddae76cef186e36a2861d9b54e097058","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.9.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"f1c7f3d3ddae76cef186e36a2861d9b54e097058","size":3202,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-1.1.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-mongoose-1.1.1.tgz_1489240723883_0.04409220488741994"},"directories":{},"publish_time":1489240724135,"_cnpm_publish_time":1489240724135,"_hasShrinkwrap":false},"1.1.0":{"name":"egg-mongoose","version":"1.1.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"await-event":"^2.0.0","mongoose":"^4.8.2"},"devDependencies":{"autod":"^2.7.1","egg":"^0.12.0","egg-bin":"^2.1.0","egg-mock":"^3.0.0","eslint":"^3.15.0","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"9bebe6cecb75d1aadecdb25632a017be2f89b870","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@1.1.0","_shasum":"83860a4456716b7850db93d6ad8d68071ab54c59","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"83860a4456716b7850db93d6ad8d68071ab54c59","size":3118,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-1.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-mongoose-1.1.0.tgz_1488437388192_0.42544407676905394"},"directories":{},"publish_time":1488437388453,"_cnpm_publish_time":1488437388453,"_hasShrinkwrap":false},"1.0.0":{"name":"egg-mongoose","version":"1.0.0","description":"egg mongoose plugin","eggPlugin":{"name":"mongoose"},"keywords":["egg","egg-model","mongoose","eggPlugin","egg-plugin"],"dependencies":{"mongoose":"^4.8.2"},"devDependencies":{"autod":"^2.7.1","egg":"^0.12.0","egg-bin":"^2.1.0","egg-mock":"^3.0.0","eslint":"^3.15.0","eslint-config-egg":"^3.2.0","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"files":["index.js","app.js","agent.js","config","app","lib"],"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-mongoose.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"gitHead":"e479744d30d4660dfaebc10211127448ecbdbcb6","homepage":"https://github.com/eggjs/egg-mongoose#readme","_id":"egg-mongoose@1.0.0","_shasum":"e8fd2b1e08f83ad828e60521cab44674300dc043","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.9.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"e8fd2b1e08f83ad828e60521cab44674300dc043","size":2906,"noattachment":false,"key":"/egg-mongoose/-/egg-mongoose-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-mongoose/download/egg-mongoose-1.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jasinyip","email":"yejunxing@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-mongoose-1.0.0.tgz_1487256586690_0.9731483245268464"},"directories":{},"publish_time":1487256586913,"_cnpm_publish_time":1487256586913,"_hasShrinkwrap":false}},"readme":"# egg-mongoose\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-mongoose.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-mongoose\n[travis-image]: https://img.shields.io/travis/eggjs/egg-mongoose.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-mongoose\n[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-mongoose.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/eggjs/egg-mongoose?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-mongoose.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-mongoose\n[snyk-image]: https://snyk.io/test/npm/egg-mongoose/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-mongoose\n[download-image]: https://img.shields.io/npm/dm/egg-mongoose.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-mongoose\n\nEgg's mongoose plugin.\n\n## Install\n\n```bash\n$ npm i egg-mongoose --save\n```\n\n## Configuration\n\nChange `{app_root}/config/plugin.js` to enable `egg-mongoose` plugin:\n\n```js\nexports.mongoose = {\n  enable: true,\n  package: 'egg-mongoose',\n};\n```\n\n## Simple connection\n\n### Config\n\n```js\n// {app_root}/config/config.default.js\nexports.mongoose = {\n  url: 'mongodb://127.0.0.1/example',\n  options: {},\n  // mongoose global plugins, expected a function or an array of function and options\n  plugins: [createdPlugin, [updatedPlugin, pluginOptions]],\n};\n// recommended\nexports.mongoose = {\n  client: {\n    url: 'mongodb://127.0.0.1/example',\n    options: {},\n    // mongoose global plugins, expected a function or an array of function and options\n    plugins: [createdPlugin, [updatedPlugin, pluginOptions]],\n  },\n};\n```\n\n### Example\n\n```js\n// {app_root}/app/model/user.js\nmodule.exports = app => {\n  const mongoose = app.mongoose;\n  const Schema = mongoose.Schema;\n\n  const UserSchema = new Schema({\n    userName: { type: String  },\n    password: { type: String  },\n  });\n\n  return mongoose.model('User', UserSchema);\n}\n\n// {app_root}/app/controller/user.js\nexports.index = function* (ctx) {\n  ctx.body = yield ctx.model.User.find({});\n}\n```\n\n## Multiple connections\n\n### Config\n\n```js\n// {app_root}/config/config.default.js\nexports.mongoose = {\n  clients: {\n    // clientId, access the client instance by app.mongooseDB.get('clientId')\n    db1: {\n      url: 'mongodb://127.0.0.1/example1',\n      options: {},\n      // client scope plugin array\n      plugins: []\n    },\n    db2: {\n      url: 'mongodb://127.0.0.1/example2',\n      options: {},\n    },\n  },\n  // public scope plugin array\n  plugins: []\n};\n```\n\n### Example\n\n```js\n// {app_root}/app/model/user.js\nmodule.exports = app => {\n  const mongoose = app.mongoose;\n  const Schema = mongoose.Schema;\n  const conn = app.mongooseDB.get('db1'); \n\n  const UserSchema = new Schema({\n    userName: { type: String },\n    password: { type: String },\n  });\n\n  return conn.model('User', UserSchema);\n}\n\n// {app_root}/app/model/book.js\nmodule.exports = app => {\n  const mongoose = app.mongoose;\n  const Schema = mongoose.Schema;\n  const conn = app.mongooseDB.get('db2');\n\n  const BookSchema = new Schema({\n    name: { type: String },\n  });\n\n  return conn.model('Book', BookSchema);\n}\n\n// app/controller/user.js\nexports.index = function* (ctx) {\n  ctx.body = yield ctx.model.User.find({}); // get data from db1\n}\n\n// app/controller/book.js\nexports.index = function* (ctx) {\n  ctx.body = yield ctx.model.Book.find({}); // get data from db2\n}\n```\n\n### Default config\n\nsee [config/config.default.js](config/config.default.js) for more detail.\n\n## Multi-mongos support\n\n```js\n// {app_root}/config/config.default.js\nexports.mongoose = {\n  client: {\n    url: 'mongodb://mongosA:27501,mongosB:27501',\n    options: {\n      mongos: true,\n    },\n  },\n};\n```\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg-mongoose/issues).\n\n## Contribution\n\nIf you are a contributor, follow [CONTRIBUTING](https://eggjs.org/zh-cn/contributing.html).\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/eggjs/egg-mongoose#readme","bugs":{"url":"https://github.com/eggjs/egg/issues"}}