VexDataModel
VexDataModel =
GeneratedVexTypesextendsobject?TDataModel:GenericDataModel
Defined in: packages/core/src/types/generated.ts:100
The project’s own Convex DataModel, as emitted into the
GeneratedVexTypes augmentation by vex generate.
This is what lets a ctx-taking callback in a config file be typed with no
generic parameter and no helper wrapper: the model arrives through module
augmentation, exactly as CollectionSlug and DocumentBySlug do.
- Before
vex generate:GenericDataModel, soctxis the loose Convex context rather than a compile error. - After: the project’s real model, so
ctx.db.query("...")is checked against its actual tables.