milk enjoyerM
Convex Community2y ago
2 replies
milk enjoyer

Generated types fall to default when using a schema with 200+ keys

I define all my tables with Zod and it is a great workflow. Using zodToConvex, I convert everything to convex validators before adding it to my defined schema. However, I realized that the generated types fall back to the following when I added around 200+ keys to my Zod schema:
{
    [x: string]: Value;
    _id: Id<"tableName">;
}


Is this intended?
Was this page helpful?