A module for Kirbi adding MongoDB support through Mongoose.
- Add
"mongodb"
to theexternalModules
array in the Kirbi config. Note: Make sure it is specified before any other modules that will use this database. - Set
databases.default
value to"mongodb"
. - Add database settings to the Kirbi config value under
databases.mongodb
.
"databases": {
"default": "mongodb",
"mongodb": {
"connection": "localhost/test",
"options": {
"useMongoClient": true
}
}
}