Skip to content

mongoKvStorage

function mongoKvStorage(collection): CompareAndSwapKvStorage;

Defined in: src/storage/mongodb.ts:144

The KV operations over a collection (semi-public, ADR 0004): collection resolves it before every operation. createMongoStorage is this plus mongoConnection.

Parameter Type
collection () => Promise<Collection<KvDocument>>

CompareAndSwapKvStorage