Skip to content

VexRevalidateDocumentsRequest

Defined in: packages/core/src/revalidate/types.ts:78

A document-scoped purge, sent by useVexMutation after a successful admin panel write and by useVexRevalidate for the open document.

changes carries one entry per affected document — a single-document write sends one, a list-view bulk delete sends one per selected row — because resolveTargets resolves paths per document and the route pools every entry’s result into one deduped list.

changes: VexRevalidateChange[]

Defined in: packages/core/src/revalidate/types.ts:85

One entry per affected document. Capped at VEX_REVALIDATE_BATCH_SIZE — a larger batch is rejected with 413 before any mapper work runs, so a “select all” bulk delete cannot force an unbounded loop over resolveTargets.


collection: string

Defined in: packages/core/src/revalidate/types.ts:87

The collection the write occurred on — also the hasPermission resource.


operation: VexMutationOperation

Defined in: packages/core/src/revalidate/types.ts:89

The write operation — mapped once to the hasPermission/resolveTargets action.