Skip to content

Borrow operators from Mongo? #22

Open
@ethanresnick

Description

@ethanresnick

Mongo's patch document format probably wouldn't make sense to copy/standardize directly, as it has some pretty big limitations (e.g., it's only possible to apply one operation to each document field) and it doesn't target values with JSON Pointer, so in that sense it doesn't compose well with existing standards.

That said, Mongo does have a pretty extensive set of update operators that have, presumably, proven themselves to be sufficient after/through pretty heavy developer use. (After all, I imagine Mongo's document patching format is by far the most widely-used JSON patch format.) Maybe these operators could offer a good starting point for JSON Patch 2?

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