├── .env ├── .eslintignore ├── .eslintrc ├── .github ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── autoUnitTest.yml │ └── release.yml ├── .gitignore ├── CHANGELOG.md ├── History.md ├── LICENSE ├── README.md ├── agent.js ├── app.js ├── app └── extend │ └── context.js ├── config └── config.default.js ├── index.d.ts ├── lib ├── filterURLPassword.js └── mongoose.js ├── package.json └── test ├── fixtures └── apps │ ├── mongoose-loadModel │ ├── app.js │ ├── app │ │ ├── controller │ │ │ ├── book.js │ │ │ └── user.js │ │ ├── model │ │ │ ├── Book.js │ │ │ ├── other.js │ │ │ └── user.js │ │ └── router.js │ ├── config │ │ └── config.default.js │ └── package.json │ ├── mongoose-multi-client-plugins │ ├── app │ │ ├── controller │ │ │ ├── book.js │ │ │ └── user.js │ │ ├── model │ │ │ ├── Book.js │ │ │ ├── other.js │ │ │ └── user.js │ │ └── router.js │ ├── config │ │ └── config.default.js │ ├── lib │ │ └── mongoose.js │ └── package.json │ ├── mongoose-multi-defaultDB │ ├── app │ │ ├── controller │ │ │ ├── book.js │ │ │ └── user.js │ │ ├── model │ │ │ ├── Book.js │ │ │ ├── other.js │ │ │ └── user.js │ │ └── router.js │ ├── config │ │ └── config.default.js │ └── package.json │ ├── mongoose-multi │ ├── app │ │ ├── controller │ │ │ ├── book.js │ │ │ └── user.js │ │ ├── model │ │ │ ├── Book.js │ │ │ ├── other.js │ │ │ └── user.js │ │ └── router.js │ ├── config │ │ └── config.default.js │ └── package.json │ ├── mongoose-plugin │ ├── app │ │ ├── controller │ │ │ ├── book.js │ │ │ └── user.js │ │ ├── model │ │ │ ├── Book.js │ │ │ ├── other.js │ │ │ └── user.js │ │ └── router.js │ ├── config │ │ └── config.default.js │ ├── lib │ │ └── mongoose.js │ └── package.json │ └── mongoose │ ├── app │ ├── controller │ │ ├── book.js │ │ └── user.js │ ├── model │ │ ├── Animal.js │ │ ├── Animal │ │ │ ├── Cat.js │ │ │ └── Dog.js │ │ ├── Book.js │ │ ├── other.js │ │ └── user.js │ └── router.js │ ├── config │ └── config.default.js │ └── package.json └── mongoose.test.js /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/.env -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint-config-egg" 3 | } 4 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/autoUnitTest.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/.github/workflows/autoUnitTest.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/History.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/README.md -------------------------------------------------------------------------------- /agent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/agent.js -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/app.js -------------------------------------------------------------------------------- /app/extend/context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/app/extend/context.js -------------------------------------------------------------------------------- /config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/config/config.default.js -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/index.d.ts -------------------------------------------------------------------------------- /lib/filterURLPassword.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/lib/filterURLPassword.js -------------------------------------------------------------------------------- /lib/mongoose.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/lib/mongoose.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-loadModel/app.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/app/controller/book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-loadModel/app/controller/book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/app/controller/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-loadModel/app/controller/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/app/model/Book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-loadModel/app/model/Book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/app/model/other.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.export = { 4 | 5 | }; 6 | -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/app/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-loadModel/app/model/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-loadModel/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-loadModel/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-loadModel/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-loadModel/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/app/controller/book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-client-plugins/app/controller/book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/app/controller/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-client-plugins/app/controller/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/app/model/Book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-client-plugins/app/model/Book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/app/model/other.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.export = { 4 | 5 | }; 6 | -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/app/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-client-plugins/app/model/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-client-plugins/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-client-plugins/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/lib/mongoose.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-client-plugins/lib/mongoose.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-client-plugins/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-client-plugins/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-defaultDB/app/controller/book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-defaultDB/app/controller/book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-defaultDB/app/controller/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-defaultDB/app/controller/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-defaultDB/app/model/Book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-defaultDB/app/model/Book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-defaultDB/app/model/other.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.export = { 4 | 5 | }; 6 | -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-defaultDB/app/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-defaultDB/app/model/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-defaultDB/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-defaultDB/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-defaultDB/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-defaultDB/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi-defaultDB/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi-defaultDB/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi/app/controller/book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi/app/controller/book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi/app/controller/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi/app/controller/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi/app/model/Book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi/app/model/Book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi/app/model/other.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.export = { 4 | 5 | }; 6 | -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi/app/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi/app/model/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-multi/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-multi/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/app/controller/book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-plugin/app/controller/book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/app/controller/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-plugin/app/controller/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/app/model/Book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-plugin/app/model/Book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/app/model/other.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.export = { 4 | 5 | }; 6 | -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/app/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-plugin/app/model/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-plugin/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-plugin/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/lib/mongoose.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-plugin/lib/mongoose.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose-plugin/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose-plugin/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/controller/book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/app/controller/book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/controller/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/app/controller/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/model/Animal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/app/model/Animal.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/model/Animal/Cat.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/app/model/Animal/Cat.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/model/Animal/Dog.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/app/model/Animal/Dog.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/model/Book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/app/model/Book.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/model/other.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.export = { 4 | 5 | }; 6 | -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/app/model/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mongoose/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/fixtures/apps/mongoose/package.json -------------------------------------------------------------------------------- /test/mongoose.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-mongoose/HEAD/test/mongoose.test.js --------------------------------------------------------------------------------