Acquiring the current change identifier

This feature has been released as a public beta in AuraDB Enterprise October Release and Neo4j Enterprise Edition 5.13 and breaking changes are likely to be introduced before it is made generally available (GA).

The procedure cdc.current is used to acquire a change identifier for the last committed transaction. Note that the returned identifier is exclusive, and does not include the changes that happened in the transaction it points to.

Signature
cdc.current() :: (
    id :: STRING? (1)
)
1 A change identifier that refers to the last committed transaction.

Change identifiers are local to the database they are generated for, and cannot be used to query changes on another database. You should consider this when restoring a database from a backup, since the restored database is practically a new database.

Query current change identifier
CALL cdc.current()
Table 1. Result
id

"A3V16ZaLlUmnipHLFkWrlA0AAAAAAAAABQAAAAAAAAAA"

Rows: 1