Database functions
db.nameFromElementId()
Syntax |
|
||
Description |
Resolves the database name for the given element id. |
||
Arguments |
Name |
Type |
Description |
|
|
An element id of a node or relationship. |
|
Returns |
|
The name of the database can only be returned if the provided element id belongs to a standard database in the DBMS. |
Example 1. db.nameFromElementId()
Query
WITH "2:efc7577d-022a-107c-a736-dbcdfc189c03:0" AS eid
RETURN db.nameFromElementId(eid) AS name
Returns the name of the database which the element id belongs to.
name |
---|
|
Rows: 1 |