...one more thing
convex-helpers has had some nice validation-related features silently added recently:
- A validator builder that is type-safe on v.id("uzers") and allows you to do v.doc("users") via v = typedV(schema).
- Runtime validation using convex helpers using validate(validator, data), or if you want it to strip extra fields instead of throwing: parse.
- Helpers to translate between Zod and Convex. Before you could do zodToConvex. Now you can also do convexToZod.
- Support for Standard Schema validation via toStandardSchema(convexValidator) - thanks to @natedunn for advocating & testing.0 Replies