Skip to content

Dexie cloud: partial updates via REST API #2088

@dusty-phillips

Description

@dusty-phillips

Can it be possible to do a "patch" style request to a REST endpoint? The only update mechanism right now appears to be a full upsert, where you have to include all of the object's fields.

This means that to do an update, you need to first GET, and then POST the entire updated value. Because these don't happen atomically, this can create a problematic race condition if the UI pushes other updates to the object between the GET and POST that get obliterated.

(TBH, I'm pretty sure the correct answer here is "Dusty stop abusing the REST endpoints.")

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