Type identifier:
object:unlinkCategory: Object Operations
Removes relationships between Records. Supports three modes: unlinking a single specific relationship, removing all outgoing relationships from a Record, or removing all incoming relationships to a Record.
Handle | Data Type | Required | Description |
|---|---|---|---|
|
| Yes | Initiates the unlink operation |
|
| Varies | Source Record ID (mode dependent) |
|
| Varies | Target Record ID (mode dependent) |
fromstring (CUID2) or object with id propertyRequired:
single mode: YesunlinkAllTo mode: YesunlinkAllFrom mode: Notostring (CUID2) or object with id propertyRequired:
single mode: YesunlinkAllTo mode: NounlinkAllFrom mode: YesHandle | Data Type | Description |
|---|---|---|
|
| Triggered when unlink succeeds |
|
| Triggered on any error |
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node |
|
| Yes |
| Schema ID (for filtering) |
|
| Yes |
| CUID2 of the relationship version |
|
| No |
| Unlink mode |
mode"single" | "unlinkAllFrom" | "unlinkAllTo"Options:
single: Unlink specific relationship (requires both from and to)unlinkAllTo: Remove all outgoing relationships from the Record (requires from)unlinkAllFrom: Remove all incoming relationships to the Record (requires to)Mode | Required Inputs | Effect |
|---|---|---|
|
| Removes specific relationship |
|
| Removes all relationships where the Record is the source |
|
| Removes all relationships where the Record is the target |
Scenario | Behaviour |
|---|---|
Required input resolution fails | Triggers |
Invalid ID format | Triggers |
No relationships found | Still triggers |
{
"type": "object:unlink",
"data": {
"label": "Unlink Order from Customer",
"schemaId": "order-schema-uuid",
"relationshipVersionId": "order-customer-rel-uuid",
"mode": "single"
}
}Removes the specific relationship between from and to Records.
{
"type": "object:unlink",
"data": {
"label": "Remove All Customer Orders",
"schemaId": "order-schema-uuid",
"relationshipVersionId": "order-customer-rel-uuid",
"mode": "unlinkAllTo"
}
}Removes all relationships where the from Record is the source.
{
"type": "object:unlink",
"data": {
"label": "Unassign All Tasks",
"schemaId": "task-schema-uuid",
"relationshipVersionId": "task-assignee-rel-uuid",
"mode": "unlinkAllFrom"
}
}Removes all relationships where the to Record is the target.