new MongoProvider(opts, schema)
Constructor for MongoDB provider. This class inherits from Provider.
This provider is a thin wrapper around the native MongoDB driver for NodeJS. Each provider instance represents a MongoDB collection.
For usage reference, please refer to Provider documentation.
Options
connStr
{String}The connection string to MongoDB instance.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
opts |
object | Additional options. The only required option is |
|
schema |
object |
<optional> |
Defines the fields of the collection represented by the provider instance. |
- Source: