Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions modules/ROOT/pages/functions/scalar.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,18 @@ Every relationship in a database has an identifier.
The identifier for a relationship is guaranteed to be unique among other relationships' identifiers in the same database, within the scope of a single transaction.
====

[NOTE]
====
On a <<composite-databases, composite database>>, the `id()` function should be used with caution.
It is recommended to use <<functions-elementid, `elementId()`>> instead.

When called in database-specific subqueries, the resulting id value for a node or relationship is local to that database.
The local id for nodes or relationships from different databases may be the same.

When called from the root context of a query, the resulting value is an extended id for the node or relationship.
The extended id is likely different from the local id for the same node or relationship.
====

*Syntax:*

[source, syntax, role="noheader"]
Expand Down