APOC trigger for updating node property

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 :frowning_face:
Is it ok ?

I wanted to add/update property in case any of node properties was changed.

Any idea ?

Regards,
Cezary

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()

Hi Stefan,

Thanks ! that payload works :slight_smile: