Initialises mongodb connections (per database), and manages indexes.
This module doesn't explicitly depend on mongodb, but requires it to be passed in on the options. This means you're free to use your "favourite" version.
Unfortunately thanks to the breaking changes introduced in the 2.x driver then email@example.com will work with firstname.lastname@example.org.
var hapi = ;hapi;serverplugin;
connectionOptions parameter can be passed either as a child of options or per db.
connectionOptions set for specific db take precedance over general ones.
server:poolSize: 5replSet:connectWithNoPrimary: true
failOnIndexes(true | false): optionally ignore any errors while managing indexes
To use inside a module:
var dbs = ;var db = dbs;db;
You're managing indexes inside your app, isn't that dangerous?
For small data sets, (where building indexes is trivial), we find it works.
You can turn off the index management by setting: