How can I define dynamic keys for nested objects in schema?
This is my object, I want the property key to be dynamic of type string, how can I achieve the same in Convex?
The
yourAnswer
object will have this value
2 Replies
This could be possible with a v.record validator which we don't have atm (https://discord.com/channels/1019350475847499849/1169820234862055537/1169822024663826452).
As in that thread, we suggest:
instead (a an array of named tuples representing the keys and values)
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Ah, okay. Thanks for this tho.