Hierarchy

  • AutomaticAuth

Properties

customRootName?: string

mongodb-memory-server automatically creates a root user (with "root" role)

Default

'mongodb-memory-server-root'
customRootPwd?: string

mongodb-memory-server automatically creates a root user with this password

Default

'rootuser'
enable?: boolean

Enable Automatic User creation

Default

false
extraUsers?: CreateUser[]

Extra Users to create besides the root user

Default

[]
force?: boolean

Force to run "createAuth"

Default

false "createAuth" is normally only run when the given "dbPath" is empty (no files)
keyfileContent?: string

Custom Keyfile content to use (only has an effect in replset's) Note: This is not secure, this is for test environments only!

Default

"0123456789"

Generated using TypeDoc