Global

Type Definitions

ClientOptions

If you use url you don't need to use username, password, port and host

Properties:
Name Type Attributes Default Description
username string <optional>

Not used if an url is provided

password string <optional>

Not used if an url is provided

port number <optional>
27017

Not used if an url is provided

host string <optional>
"localhost"

Not used if an url is provided

dbName string <optional>
"muffin"

The name of the database on the Mongo server

url string <optional>
Source:
Type:
  • Object

PieceOptions

If you use url you don't need to use username, password, port and host.

Properties:
Name Type Attributes Default Description
fetchAll boolean <optional>
false

Default to false. Caches all the database.

autoCacheSync boolean <optional>
true

Default to true. Makes the cache sync itself with the Mongo server.

Since:
  • 1.4
Source:
Type:
  • Object