Closed
Description
Apologize if this is a stupid question because of not full understanding of convex,
Currently I am using ctx.db.patch to perform update operation to document and getting:
Failed to insert or update a document in table "abc" because it does not match the schema: Object is missing the required field `abc`. Consider wrapping the field validator in `v.optional(...)` if this is expected.
In my understanding this required check should only be done on insert or replace and not patch since on patch the document should already have that field set? This error feels very weird to me?
Metadata
Metadata
Assignees
Labels
No labels