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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
collection |
() => Promise<Collection<KvDocument>> |