Optional
replication(Cluster only.) Default replication factor for new collections in this database.
Setting this to 1
disables replication. Setting this to "satellite"
will replicate to every DBServer.
Optional
sharding?: "" | "flexible" | "single"(Cluster only.) The sharding method to use for new collections in the database.
Optional
users?: CreateDatabaseUser[]Database users to create with the database.
Optional
write(Cluster only.) Default write concern for new collections created in this database.
Generated using TypeDoc
Options for creating a database.
See createDatabase.