singular-mongoose
v1.2.2
Published
Mongoose module for singular application.
Downloads
6
Maintainers
Readme
Singular Mongoose
Mongoose module for singular application.
Install
npm i singular-mongoose
Usage
Usage example:
const Singular = require('singular');
const app = new Singular({
config: {
mongoose: {
host: 'localhost',
port: 27017,
base: 'test',
},
},
});
app.module(require('singular-mongoose'));
app.inject('mongoose', (mongoose) => {
// ...
});
License
MIT.