Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MongoDatabaseOptions

Options for connecting to a database.

Hierarchy

  • MongoDatabaseOptions

Index

Properties

Optional Readonly connector

connector: (opts: MongoDatabaseOptions) => Connection | PromiseLike<Connection>

A custom function, that creates a Mongoose connection from objects, when executing MongoDatabase.connect().

Type declaration

Readonly database

database: string

The name of the database.

Readonly host

host: string

The host address.

Optional Readonly mongooseOptions

mongooseOptions: any

Custom options for an underlying (mongoose) connection.

Optional Readonly options

options: string

Additional options for the connection string.

Optional Readonly password

password: string

The password for the authentification.

Readonly port

port: number

The TCP port.

Optional Readonly user

user: string

The user name.

Generated using TypeDoc