MongoConnection
このコンテンツはまだ日本語訳がありません。
MongoConnection =
object
Defined in: src/persistence/journals/MongoClient.ts:89
Connection options shared by all three MongoDB stores.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”client?
Section titled “client?”
readonlyoptionalclient?:MongoClientLike
Defined in: src/persistence/journals/MongoClient.ts:109
Pre-built client — bypasses the lazy mongodb import entirely. Use to
share ONE client across the journal, snapshot and durable-state stores (see
registerMongoPlugins), or to inject a fake in tests. A MongoClient is
itself a connection pool, so sharing it is the normal case.
clientOptions?
Section titled “clientOptions?”
readonlyoptionalclientOptions?:Record<string,unknown>
Defined in: src/persistence/journals/MongoClient.ts:102
Extra MongoClient options — { tls, authSource, maxPoolSize, … }.
databaseName?
Section titled “databaseName?”
readonlyoptionaldatabaseName?:string
Defined in: src/persistence/journals/MongoClient.ts:100
Database name. Default actor_ts. A database in the URL path is only
used by the driver for auth, so the name is stated separately.
readonlyoptionalurl?:string
Defined in: src/persistence/journals/MongoClient.ts:95
Connection string, e.g. mongodb://user:pass@host:27017 or
mongodb+srv://cluster.example.mongodb.net. Required unless client is
supplied.
