Skip to main content
Version: Next

Delete All Relations

Deletes all relations from an object

Description

Deletes all the relations of the specified type originating from an object. The object the relations to which are being deleted must already exist in the database.


Let's take the following data model with two data types, and one relation between them:

Data type: Person

  • Attribute 1: name (string)
  • Relation 1: owns (Car)

Data type: Car

  • Attribute 1: brand (string)

If a Person p owns two cars c1 and c2, both relations can be deleted at once by setting the following inputs:

  • origin: p
  • relation: Person -> owns

Execute atomically a transaction at the data source and return the transaction result if succeeds. The large mode sends the transaction over HTTP.

Inputs

  • Control Flow (Control Flow)
  • origin (Object): The origin object
  • relation (Relation): The relation type

Outputs

  • Control Flow (Control Flow)
  • origin (Object): The origin Object
  • Error Flow (Error Flow): Triggered if an error occurred