I want to make that in the schema that
I want to make that in the schema that convex has.
3 Replies
While reading the documentation, I found this:
https://labs.convex.dev/convex-ents
Allow defining default values for easier document shape evolution.
Convex Ents - Convex Ents
Relations, default values, unique fields and more for Convex
How can I use the default convex for the defaults.
@jamalsoueidan is there any other way by which I can set the default values in the schema of the convex??
Yes make a universel function that insert into the table, there you add the default values 🙂