RJR
Convex Communityβ€’3y agoβ€’
3 replies
RJ

How to delete a field on a table?

I'm having some trouble figuring out how to remove a field from a table since the new schema validation features landed.

When I try to do so, I get a schema validation error. I figured perhaps I needed first to "unset" all of the values for that field, so I tried to first set it as v.optional() and then to db.patch(tableId, { fieldToDelete: undefined }) each document in the table, but this had no effect (is that the expected behavior?).

What might I be doing wrong?
Was this page helpful?