-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes #1547: Add a new after-async or async phase to triggers #1573
Conversation
This looks good to me, what do you think @jexp I think we need to add something more to the documentation advising users when they should be used the |
| before | The trigger will be activate right `before` the commit. If no phase is specified, it's the default. | ||
| rollback | The trigger will be activate right after the `rollback` | ||
| after | The trigger will be activate right `after` the commit | ||
| afterAsync | The trigger will be activate right `after` the commit and inside a new transaction that will not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also in a new thread!?
@@ -15,7 +15,9 @@ Enable `apoc.trigger.enabled=true` in `$NEO4J_HOME/conf/apoc.conf` first. | |||
|
|||
[cols="1m,5"] | |||
|=== | |||
| CALL apoc.trigger.add(name, statement, selector) yield name, statement, installed | add a trigger statement under a name, in the statement you can use {createdNodes}, {deletedNodes} etc., the selector is {phase:'before/after/rollback'} returns previous and new trigger information | |||
| CALL apoc.trigger.add(name, statement, selector) yield name, statement, installed | add a trigger statement under a name, | |||
in the statement you can use {createdNodes}, {deletedNodes} etc., the selector is {phase:'before/after/rollback/afterAsync'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change syntax to $createdNodes
etc.
Looks good to me, please merge and forward merge. |
* fixes #1547: Add a new after-async or async phase to triggers * Changed parameters to new syntax * Added "and thread" in afterAsync description Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com>
…ggers (neo4j-contrib#1573) * fixes neo4j-contrib#1547: Add a new after-async or async phase to triggers * Changed parameters to new syntax * Added "and thread" in afterAsync description Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com>
…ggers (neo4j-contrib#1573) * fixes neo4j-contrib#1547: Add a new after-async or async phase to triggers * Changed parameters to new syntax * Added "and thread" in afterAsync description Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com>
…#1735) * fixes #1547: Add a new after-async or async phase to triggers * Changed parameters to new syntax * Added "and thread" in afterAsync description Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com> Co-authored-by: Andrea Santurbano <santand@gmail.com> Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com>
…ggers (neo4j-contrib#1573) (neo4j-contrib#1735) * fixes neo4j-contrib#1547: Add a new after-async or async phase to triggers * Changed parameters to new syntax * Added "and thread" in afterAsync description Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com> Co-authored-by: Andrea Santurbano <santand@gmail.com> Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com>
…#1735) * fixes #1547: Add a new after-async or async phase to triggers * Changed parameters to new syntax * Added "and thread" in afterAsync description Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com> Co-authored-by: Andrea Santurbano <santand@gmail.com> Co-authored-by: Michael Hunger <github@jexp.de> Co-authored-by: Mark Needham <m.h.needham@gmail.com>
Fixes #1547
Added the
afterAsync
phaseProposed Changes (Mandatory)
A brief list of proposed changes in order to fix the issue:
afterAsync
phase