Class: MongoProvider

MongoProvider

Represents a provider for MongoDB storage.

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

Parameters:
Name Type Argument Description
opts object

Additional options. The only required option is connStr.

schema object <optional>

Defines the fields of the collection represented by the provider instance.

Source:
EntreeJS Copyright © 2013-2014 The contributors to the EntreeJS project.
Documentation generated by JSDoc 3.2.2 on Mon May 26 2014 17:43:42 GMT+0300 (EEST) using the DocStrap template.