Identity of impacted nodes/relationships following a write query

You could use a serverside TransactionEventHandler. In it's afterCommit method you get a callback with exactly that information.
APOC Triggers (Neo4j APOC Procedures User Guide) leverage exactly that functionality.