Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

Latest commit

 

History

History
22 lines (18 loc) · 709 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 709 Bytes

kirbi-mongodb module

A module for Kirbi adding MongoDB support through Mongoose.

Usage

  1. Add "mongodb" to the externalModules array in the Kirbi config. Note: Make sure it is specified before any other modules that will use this database.
  2. Set databases.default value to "mongodb".
  3. Add database settings to the Kirbi config value under databases.mongodb.

Sample database config:

"databases": {
    "default": "mongodb",
    "mongodb": {
        "connection": "localhost/test",
        "options": {
            "useMongoClient": true
        }
    }
}