Replica set specific options.

Hierarchy

  • ReplSetOpts

Properties

args?: string[]

additional command line arguments passed to mongod

Default

[]

Enable Authentication

Default

false

Options for "rsConfig"

Default

{}
count?: number

if this number is bigger than "instanceOpts.length", more "generic" servers get started if this number is lower than "instanceOpts.length", no more "generic" servers get started (server count will be "instanceOpts.length")

Default

1
dbName?: string

add an database into the uri (in mongodb its the auth database, in mongoose its the default database for models)

Default

""
ip?: string

bind to all IP addresses specify ::,0.0.0.0

Default

'127.0.0.1'
name?: string

replSet name

Default

'testset'
spawn?: SpawnOptions

Childprocess spawn options

Default

{}
storageEngine?: StorageEngine

mongod storage engine type

Default

'ephemeralForTest' unless mongodb version is 7.0.0, where its wiredTiger

Generated using TypeDoc