Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-13-2019 12:08 PM
Hi,
I added trigger:
CALL apoc.trigger.add('updateprop','UNWIND {assignedNodeProperties} AS prop with prop.node as n SET n.tsupd = timestamp()', {phase:'before'});
then
I did some changes
But trigger does nothing
Is it ok ?
I wanted to add/update property in case any of node properties was changed.
Any idea ?
Regards,
Cezary
Solved! Go to Solution.
08-14-2019 12:28 AM
Check if you have enabled triggers in configuration apoc.trigger.enable=true
and change your payload statement to
UNWIND apoc.trigger.nodesByLabel({assignedNodeProperties},null) AS n SET n.tsupd = timestamp()
08-14-2019 12:28 AM
Check if you have enabled triggers in configuration apoc.trigger.enable=true
and change your payload statement to
UNWIND apoc.trigger.nodesByLabel({assignedNodeProperties},null) AS n SET n.tsupd = timestamp()
08-14-2019 02:03 AM
Hi Stefan,
Thanks ! that payload works
All the sessions of the conference are now available online