Skip to content

Throw an error when trying to remove the path for a dynamic node #2

@dumconstantin

Description

@dumconstantin

Given:

let db = DB({
  foo: 123
})
db.node('/bar', ['/foo'], x => x)

should throw an error (on /err/node) when attempting:

db.patch([{ op: 'remove', path: '/bar'}])

or any sub path starting at the dynamic node location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions