kstulgysK
Convex Community2y ago
3 replies
kstulgys

How do I define a more complex object with convex values?

is there a way to define object like:

type Product = { ... }

Record<string,Product>

// string is product id (_id)

I know this is incorrect:
v.object({
 [v.id("products")]: v.object({...})
})
Was this page helpful?