Navigation

mongoDBService.db()

On this page

Definition

mongoDBService.db(name)

Returns a database object. Call database.collection() on the database object to retrieve a collection object.

The mongoDBService.db() method has the following parameter.

Parameter Type Description
name string The name of the database.
Returns:A database object.