Deleting node with required inverse edges

Best would be to have control over this behaviour by the developer in the schema similar in nature to MySQL use of “ON DELETE” which has options to either set null, restrict, no action, cascade, and set default.

That would be interesting to see of that logic could be worked in as a schema directive on an edge.

When delete Parent, “set null” is current behaviour on child edge.

  • restrict would block delete if there were any children
  • no action would leave the inverse edge to the uid that is now empty
  • cascade delete children
  • set default would set children Parent’s to a staticly declared uid.
2 Likes