Skip to content

Why the delete operation needs an object? #33

Open
@nnseva

Description

Let's imagine that the data contains a very big branch, f.e.
{key: {a:1,b:2,...,z:27}, other:...}

We are going to delete the whole branch "key" for some reason. As I understand, the operation then should look like {p:["key"], od:{a:1,b:2,...,z:27}}.

But for the delete operation, the logically required information is the only key of the deleted item. The deleted object content is the extra info which is not necessary for the operation.

It was probably useful to exclude repeating object content for the delete operation and replace it by something neutral, like logical true.

{p:["key"], od:true}

It looks much more compact and logical.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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