Skip to content

VexQueryCtx

VexQueryCtx = GenericQueryCtx<VexDataModel>

Defined in: packages/core/src/types/generated.ts:60

The project’s own Convex query context.

Convex’s generated QueryCtx is exactly GenericQueryCtx<DataModel>, so this is the same type without a generator round-trip. Degrades to GenericQueryCtx<GenericDataModel> before the first vex generate, inherited from VexDataModel.

Exists so a ctx-taking callback never needs a type parameter to say which model it runs against — there is only one per project.