NAME

FalkorDB::Graph - Graph representation in FalkorDB

DESCRIPTION

This module represents a specific graph in FalkorDB. It is created via the FalkorDB select_graph method.

METHODS

query($cypher, $params)

Executes a write/read Cypher query against the graph. Returns a FalkorDB::QueryResult object. Optionally accepts a hash reference of parameters $params to bind.

ro_query($cypher, $params)

Executes a read-only Cypher query against the graph. This can run on replica instances. Returns a FalkorDB::QueryResult object.

explain($cypher, $params)

Returns the execution plan for the query as an array reference of strings.

profile($cypher, $params)

Runs the query and returns the detailed execution plan with profiling stats as an array reference of strings.

delete()

Deletes the graph from the database.

create_index($label, $property)

Convenience method to create an index for a specific label and property.

drop_index($label, $property)

Convenience method to drop an index for a specific label and property.