David AlonsoD
Convex Community7mo ago
14 replies
David Alonso

Help with `convexToZod` and spreading fields

I've been trying to get this (and variations of it) to work but I can't figure it out

export const zUser = z.object({
   ...convexToZod(authTables.users.validator),
    email: z.string(),
})


What's the right way to do this?
Was this page helpful?