Skip to content

migratingSnapshotAdapter

migratingSnapshotAdapter<S>(chain, opts?): SnapshotAdapter<S, unknown>

Defined in: src/persistence/migration/migratingAdapter.ts:59

Same as migratingAdapter but returns a SnapshotAdapter — useful when the same MigrationChain governs both events and the snapshot of derived state. Snapshots usually don’t need a rolling writeVersion (snapshots are produced by one writer, the actor), but the helper is symmetric for the user’s convenience.

S

MigrationChain<S>

number

SnapshotAdapter<S, unknown>