Skip to content

Commit

Permalink
Update docs/asciidoc/modules/ROOT/partials/usage/apoc.trigger.toRelat…
Browse files Browse the repository at this point in the history
…ionship.adoc

Co-authored-by: Giuseppe Villani <[email protected]>
  • Loading branch information
mpetrini-larus and vga91 authored Dec 12, 2024
1 parent bb31908 commit 02b6cdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This function is used within an `apoc.trigger.install` Cypher statement.
If we want to create a 'before' or 'after' trigger query using `$deletedRelationships`, and retrieve entity information such as the type and/or properties, we cannot use the classic Cypher functions type() and properties().
Instead, we can leverage virtual relationships through the function `apoc.trigger.toRelationship(rel, $removedRelationshipProperties)`.

To create a new `Report` node with a list of deleted relationship IDs and the type retrieved for each deleted relationship, we can execute:
For example, to create a new `Report` node with a list of deleted relationship IDs and the type retrieved for each deleted relationship, we can execute:
[source,cypher]
----
CALL apoc.trigger.install(
Expand Down

0 comments on commit 02b6cdf

Please sign in to comment.