Mongoose instance. See Mongoose#API for details on its API.
Instantiate the Mongo module.
Please view mongoose#connect for all allowed configuration options. These options should be set in the cog.json file.
The defaults if not specifed are:
{
"mongo": {
"host": "localhost",
"port": 27017,
"db": "cais"
}
}
Io instance
Shallow wrapper around the mongoose.model method. Please see its docs for more details.
The name of the model
The schema of the model
Generated using TypeDoc
Mongo module.
Provides a shallow interface to the underlying mongoose library, available as the
mongoose
property.