Graph functions

Graph functions provide information about the constituent graphs in composite databases.

Table 1. Graph functions
Syntax Query Result Description

graph.names()

RETURN graph.names()
graph.names()

["composite.first", "composite.second", "composite.third"]

Rows: 1

Returns a list containing the names of all graphs on the current composite database. It is only supported on composite databases.

USE graph.byName(graphName)

UNWIND graph.names() AS graphName
CALL {
  USE graph.byName(graphName)
  MATCH (n)
  RETURN n
}
RETURN n

Returns all nodes from all graphs on the current composite database.

Resolves a constituent graph by name. It is only supported in the USE clause, on composite databases.