Skip to content

Commit

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

Co-authored-by: Giuseppe Villani <[email protected]>
  • Loading branch information
mpetrini-larus and vga91 authored Dec 12, 2024
1 parent 202ddf4 commit 606e322
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This function is used within an `apoc.trigger.install` Cypher statement.

If we want to create a 'before' or 'after' trigger query using `$deletedNodes`, and retrieve entity information such as labels and/or properties, we cannot use the classic Cypher functions labels() and properties().
Instead, we can leverage virtual nodes through the function `apoc.trigger.toNode(node, $removedLabels, $removedNodeProperties)`.
Instead, we have to leverage virtual nodes through the function `apoc.trigger.toNode(node, $removedLabels, $removedNodeProperties)`.

For example, to create a new `Report` node with a list of deleted node IDs and all the labels retrieved for each deleted node, we can execute:
[source,cypher]
Expand Down

0 comments on commit 606e322

Please sign in to comment.