Skip to content

AfterDeleteProps

Defined in: packages/core/src/collections/hooks.ts:59

Arguments passed to a collection’s afterDelete hook.

TCollectionSlug extends CollectionSlug = CollectionSlug

TDataModel extends GenericDataModel = GenericDataModel

collection: CollectionConfig<{ }, { }, TCollectionSlug>

Defined in: packages/core/src/collections/hooks.ts:66

The resolved config of the collection this delete ran on.


commitTs: unknown

Defined in: packages/core/src/hooks/types.ts:29

This write’s unresolved ctx.db.vars.commitTs placeholder — the same value stampCommitTsFields writes into a matching commitTs() field. A hook MAY use it to stamp a RELATED document in the same mutation (e.g. a parent row’s own commitTs field). It is NOT the resolved value — Convex resolves a commitTs placeholder only after the mutation commits, so reading it as a number/bigint here throws or returns the placeholder object itself, never a usable timestamp.

BaseHookProps.commitTs


ctx: GenericMutationCtx<TDataModel>

Defined in: packages/core/src/hooks/types.ts:19

BaseHookProps.ctx


id: Id<TCollectionSlug>

Defined in: packages/core/src/collections/hooks.ts:63


oldDoc: TDocument

Defined in: packages/core/src/collections/hooks.ts:64