MCPcopy Create free account
hub / github.com/effect-app/libs / deleteDocs

Function deleteDocs

packages/infra/src/ClusterCosmos.ts:491–501  ·  view source on GitHub ↗
(
    docs: ReadonlyArray<A>
  )

Source from the content-addressed store, hash-verified

489 )
490
491 const deleteDocs = <A extends { readonly id: string; readonly _partitionKey: string }>(
492 docs: ReadonlyArray<A>
493 ): Effect.Effect<void, unknown, never> =>
494 batchDocs(
495 docs,
496 (doc) => ({
497 operationType: "Delete" as const,
498 id: doc.id
499 }),
500 deleteDoc
501 )
502
503 return yield* MessageStorage.makeEncoded({
504 saveEnvelope: ({ deliverAt, envelope, primaryKey }) =>

Callers 1

ClusterCosmos.tsFile · 0.85

Calls 1

batchDocsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…