Skip to content

Failed to upadate document #134

Closed
Closed
@arionaxiom

Description

@arionaxiom

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions