Run safe read-only queries

Use GRAPH.RO_QUERY for read-only operations that reject write attempts in FalkorDB

falkordb c677d5c 2 files · 1.5 KB Updated

File contents

Run safe read-only queries

Use GRAPH.RO_QUERY for read-only operations that reject any write attempts.

Usage

Replace GRAPH.QUERY with GRAPH.RO_QUERY for queries that should never modify the graph.

Example

redis-cli GRAPH.RO_QUERY social "MATCH (u:User) RETURN count(u)"

Notes

  • GRAPH.RO_QUERY enforces read-only semantics at the API level
  • Any attempt to write data (CREATE, SET, DELETE, MERGE) will be rejected
  • Useful for ensuring query safety in production environments
  • Can help prevent accidental data modifications
  • Provides an additional layer of data protection

falkordb/skills/tree/main/cypher-skills/run-read-only-queries commit c677d5c4e6

Frequently asked questions

npx skillmds@latest add falkordb/run-safe-read-only-queries