# Run safe read-only queries

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

- Skill: `falkordb/run-safe-read-only-queries` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add falkordb/run-safe-read-only-queries`
- Raw SKILL.md: https://api.skillmd.com/api/skills/falkordb/run-safe-read-only-queries/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: falkordb (https://skillmd.com/u/falkordb)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/falkordb/run-safe-read-only-queries

---


# 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

```bash
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

