Skip to main content

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

DataDescription
ClassThe collection of the source record.
Record IdThe ID of the source record.
Relation PropertyThe name of the relation column.
Target Record IdThe ID of the record to remove from the relation.

Actions

SignalDescription
DoTriggers the operation.

Outputs

Events

SignalDescription
SuccessTriggered when the relation is removed.
FailureTriggered if the operation fails.

Usage

Unliking a Post

  1. Class: "Posts".
  2. Record Id: The ID of the post.
  3. Relation Property: "likes".
  4. Target Record Id: The current user's ID.
  5. 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).