DatabaseUnit

The database unit loads the model schemas from the specified directory
and creates Mongoose models from them. Then, using the specified values
it connects to the MongoDB database and continues initializing the stack
from within the context of a guaranteed connection to the database.

Returns:

(async) go(app, context) → {Promise.<void>}

Loads the unit. Loads the model definition schemata from module:libflitter/database/DatabaseUnit~DatabaseUnit#directory
and creates Mongoose models from them. Then, it binds the models, schemata, and helper functions to the appropriate
contexts. Opens the database connection using the values configured in the 'database' configuration.