Skip to content

Graph Management

graph_delete

Delete a graph and all its data.

r.graph_delete("social")

graph_list

List all graph keys.

r.graph_list()    # ['social', 'knowledge']

graph_explain

Return the execution plan without executing the query.

plan = r.graph_explain("social", """
    MATCH (a:Person)-[:KNOWS]->(b:Person)
    RETURN a.name, b.name
""")

graph_profile

Execute a query and return profiling data (timing per operation).

profile = r.graph_profile("social", """
    MATCH (a:Person)-[:KNOWS]->(b:Person)
    RETURN a.name, b.name
""")

graph_slowlog

Return the slow query log.

r.graph_slowlog("social")

graph_config

Get or set FalkorDB configuration.

# Get a config value
r.graph_config("GET", "TIMEOUT")

# Set a config value
r.graph_config("SET", "TIMEOUT", "5000")