RegisterMongoPluginsOptionsType
此内容尚不支持你的语言。
RegisterMongoPluginsOptionsType =
object
Defined in: src/persistence/journals/MongoPluginOptions.ts:8
Properties
Section titled “Properties”client?
Section titled “client?”
readonlyoptionalclient?:MongoClientLike
Defined in: src/persistence/journals/MongoPluginOptions.ts:14
Shared client injected into all three stores — the usual case, since a
MongoClient is a connection pool in its own right and they target the same
deployment. When omitted, each store lazily builds its own from its url.
clientOptions?
Section titled “clientOptions?”
readonlyoptionalclientOptions?:Record<string,unknown>
Defined in: src/persistence/journals/MongoPluginOptions.ts:20
MongoClient options applied to every store that does not set its own.
databaseName?
Section titled “databaseName?”
readonlyoptionaldatabaseName?:string
Defined in: src/persistence/journals/MongoPluginOptions.ts:18
Database name applied to every store that does not set its own.
durableStateStore?
Section titled “durableStateStore?”
readonlyoptionaldurableStateStore?:MongoDurableStateStoreOptions
Defined in: src/persistence/journals/MongoPluginOptions.ts:28
Durable-state-store-specific options (collection name).
journal?
Section titled “journal?”
readonlyoptionaljournal?:MongoJournalOptions
Defined in: src/persistence/journals/MongoPluginOptions.ts:24
Journal-specific options (collection name, autoCreateIndexes).
serializer?
Section titled “serializer?”
readonlyoptionalserializer?:Serializer
Defined in: src/persistence/journals/MongoPluginOptions.ts:22
Shared payload serializer applied to every store that does not set its own.
snapshotStore?
Section titled “snapshotStore?”
readonlyoptionalsnapshotStore?:MongoSnapshotStoreOptions
Defined in: src/persistence/journals/MongoPluginOptions.ts:26
Snapshot-store-specific options (collection name, keepN).
readonlyoptionalurl?:string
Defined in: src/persistence/journals/MongoPluginOptions.ts:16
Connection string applied to every store that does not set its own.
