NAME

FalkorDB::QueryResult - Representation of FalkorDB Cypher query results

DESCRIPTION

This class processes and exposes the results returned by executing a Cypher query.

METHODS

header()

Returns an array reference of the column names returned by the query.

result_set()

Returns an array reference of arrays (representing rows) containing parsed objects or scalars.

stats()

Returns the raw array reference of execution statistics.

row_count()

Returns the total number of rows in the result set.

get_row($idx)

Returns the row at the given 0-indexed position.

next_row()

Returns the next row as an array reference (or undef when exhausted).

reset_iterator()

Resets the iterator back to the beginning of the result set.

hashes()

Returns an array reference of hashes representing the result set, where keys are column names.

next_hash()

Returns the next row as a hash reference (or undef when exhausted).

labels_added()

nodes_created()

nodes_deleted()

properties_set()

relationships_created()

relationships_deleted()

cached_execution()

internal_execution_time()

Returns the execution metrics parsed from the query statistics.