Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ReplSetOptions

Index

Properties

Optional checkServerIdentity

checkServerIdentity: boolean | Function

Ensure we check server identify during SSL, set to false to disable checking. Only works for Node 0.12.x or higher. You can pass in a boolean or your own checkServerIdentity override function.

Optional connectWithNoPrimary

connectWithNoPrimary: undefined | true | false

Sets if the driver should connect even if no primary is available.

Optional ha

ha: undefined | true | false

Turn on high availability monitoring.

Optional haInterval

haInterval: undefined | number

Time between each replicaset status check.

Optional poolSize

poolSize: undefined | number

Number of connections in the connection pool for each server instance, set to 5 as default for legacy reasons.

Optional replicaSet

replicaSet: undefined | string

The name of the replicaset to connect to.

Optional secondaryAcceptableLatencyMS

secondaryAcceptableLatencyMS: undefined | number

Sets the range of servers to pick when using NEAREST (lowest ping ms + the latency fence, ex: range of 1 to (1 + 15) ms).

Optional socketOptions

socketOptions: SocketOptions

Socket options.

Optional ssl

ssl: undefined | true | false

Use ssl connection (needs to have a mongod server with ssl support).

Optional sslCA

sslCA: Array<Buffer | string>

Array of valid certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher).

Optional sslCert

sslCert: Buffer | string

String or buffer containing the certificate we wish to present (needs to have a mongod server with ssl support, 2.4 or higher).

Optional sslKey

sslKey: Buffer | string

String or buffer containing the certificate private key we wish to present (needs to have a mongod server with ssl support, 2.4 or higher).

Optional sslPass

sslPass: Buffer | string

String or buffer containing the certificate private key we wish to present (needs to have a mongod server with ssl support, 2.4 or higher).

Optional sslValidate

sslValidate: Object

Validate mongod server certificate against ca (needs to have a mongod server with ssl support, 2.4 or higher).

Generated using TypeDoc