The following examples run against this graph:

Constructs a table in the RETURN statement.
| Syntax | table(<column1>, <column2>, ...) | ||
| Arguments | Name | Type | Description |
<column1>,<column2>,... | Any type | Columns in the table | |
| Return Type | RESULT_TYPE_TABLE | ||
GQLMATCH (n)-[e]->() RETURN table(n, n.title, e, e.weight AS weight)
Result:
| n | n.title | e | weight |
|---|---|---|---|
| UUID of node | Optimizing Queries | UUID of edge | 1 |
| UUID of node | Efficient Graph Search | UUID of edge | 2 |