Skip to content

DeleteOperation

Source code in docs_src/capo_context/types/delete_operation.py
class DeleteOperation(TypedDict, closed=True):
    entity: "capo_context.types.entity.Entity"
    """<p>The node or edge to remove.</p>"""
    properties: NotRequired["capo_context.types.metadata.Metadata"]
    """<p>An edge delete requires <code>edgeType</code>, which with the two node IDs names the edge. A node delete ignores <code>properties</code> on input, so a listed delete can be sent back. A property value over the <code>Metadata</code> input limit (a long list property of the deleted node) is refused before it is ignored. <code>ListChangeSetOperations</code> returns the properties the entity had when the change was made: a node's <code>nodeType</code> and <code>nodeName</code>, an edge's <code>edgeType</code>.</p>"""

entity instance-attribute

entity: Entity

The node or edge to remove.

properties instance-attribute

properties: NotRequired[Metadata]

An edge delete requires edgeType, which with the two node IDs names the edge. A node delete ignores properties on input, so a listed delete can be sent back. A property value over the Metadata input limit (a long list property of the deleted node) is refused before it is ignored. ListChangeSetOperations returns the properties the entity had when the change was made: a node's nodeType and nodeName, an edge's edgeType.