콘텐츠로 이동
한국어

RegisterMongoPluginsOptionsType

이 콘텐츠는 아직 번역되지 않았습니다.

RegisterMongoPluginsOptionsType = object

Defined in: src/persistence/journals/MongoPluginOptions.ts:8

readonly optional client?: 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.


readonly optional clientOptions?: Record<string, unknown>

Defined in: src/persistence/journals/MongoPluginOptions.ts:20

MongoClient options applied to every store that does not set its own.


readonly optional databaseName?: string

Defined in: src/persistence/journals/MongoPluginOptions.ts:18

Database name applied to every store that does not set its own.


readonly optional durableStateStore?: MongoDurableStateStoreOptions

Defined in: src/persistence/journals/MongoPluginOptions.ts:28

Durable-state-store-specific options (collection name).


readonly optional journal?: MongoJournalOptions

Defined in: src/persistence/journals/MongoPluginOptions.ts:24

Journal-specific options (collection name, autoCreateIndexes).


readonly optional serializer?: Serializer

Defined in: src/persistence/journals/MongoPluginOptions.ts:22

Shared payload serializer applied to every store that does not set its own.


readonly optional snapshotStore?: MongoSnapshotStoreOptions

Defined in: src/persistence/journals/MongoPluginOptions.ts:26

Snapshot-store-specific options (collection name, keepN).


readonly optional url?: string

Defined in: src/persistence/journals/MongoPluginOptions.ts:16

Connection string applied to every store that does not set its own.