How to call trigger on specific property of node will update

Hello

I am new on neo4j
I want to create a trigger on "name" property of node will update

This is my trigger

use system CALL apoc.trigger.install(
    'neo4j',
    'triggerTest',
    'UNWIND apoc.trigger.propertiesByKey($assignedNodeProperties,"name") as properties
    WITH properties.node as n
    CREATE (node:Node)
    ',{phase:'after'});

When i update name value of node then following error is showing

Error executing triggers {lockTriggerTest1=Unknown function 'apoc.trigger.propertiesByKey' (line 1, column 8 (offset: 7))
"UNWIND apoc.trigger.propertiesByKey($assignedNodeProperties,"name") as properties"
        ^}

Neo4j Version 5.12
APOC Version : 5.12
I also enable apoc.conf.trigger=true to config file

Is there any syntax error ? please help

That function is part of the apoc extended release. Did you install the jar for the extended library?

You can find the jar for 5.12 on this GitHub page at the bottom under assets.

1 Like

Thank You so much @glilienfield