Remove Record Relation
This node removes a relationship between two records.
The Remove Record Relation node unlinks two database entries.
The Remove Record Relation node removes a reference to a target record from a relation column of a source record. For example, removing a "User" from a "Group's" members relation.
Inputs
General
| Data | Description |
|---|---|
| Class | The collection of the source record. |
| Record Id | The ID of the source record. |
| Relation Property | The name of the relation column. |
| Target Record Id | The ID of the record to remove from the relation. |
Actions
| Signal | Description |
|---|---|
| Do | Triggers the operation. |
Outputs
Events
| Signal | Description |
|---|---|
| Success | Triggered when the relation is removed. |
| Failure | Triggered if the operation fails. |
Usage
Unliking a Post
- Class: "Posts".
- Record Id: The ID of the post.
- Relation Property: "likes".
- Target Record Id: The current user's ID.
- Trigger Do.
Detailed Behavior
- Backend: Sends a request to remove the pointer/relation.
- Updates: The source record is updated locally.
Troubleshooting
- Not Linked: If the relation didn't exist, the operation usually succeeds anyway (idempotent).