Skip to content

The CLI cannot remove a property or delete a relationship: --property key=null stores a null and relationship has no delete #4390

Done

Description

@mstomar125

What

The nodespace CLI cannot remove a property from a node or delete a relationship, although the daemon can delete a relationship (the DeleteRelationship RPC in node_service.proto, and the agent's delete_relationship tool).

  • node update <id> --property <key>=null is accepted but stores a null value: the key stays, because properties are deep-merged. batch-update takes the same merge.
  • relationship has only create and get.

Found on 2026-11-26 when we needed to remove a field's values and links from 82 decisions to stop another device parking them (a custom field declared on one device only). The only way left was a custom gRPC client.

Do

  • A way to remove a property key from a node (an explicit unset, for example --unset-property <key> on node update and batch-update), applied through the same validation and OCC path as other updates, and emitting the same events.
  • relationship delete taking the same arguments as create (--type, --from, --to), through the daemon's existing delete path.
  • A removed key must not leave a null behind.

Acceptance

  • node update --unset-property removes the key (not a null) and the node round-trips without it
  • relationship delete removes the edge and the reverse edge disappears from relationship get
  • Tests for both, including an unset of a key that is not present and a delete of an edge that does not exist
  • The CLI help documents both

Activity

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

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