Skip to main content
Executes a given read only query against a specified graph. Arguments: Graph name, Query, [timeout], [--compact], [version] Returns: Result set for a read only query or an error if a write query was given.
Query-level timeouts can be set as described in the configuration section.

Frequently Asked Questions

GRAPH.RO_QUERY only executes read operations and will return an error if you attempt a write query (CREATE, SET, DELETE, MERGE with creation). GRAPH.QUERY supports both read and write operations.
GRAPH.RO_QUERY can be distributed to read replicas in a clustered setup, improving read scalability. It also provides a safety guarantee that data will not be accidentally modified.
The command will return an error indicating that write queries are not permitted. The graph data will remain unchanged.
Yes. GRAPH.RO_QUERY accepts the same optional parameters: timeout, --compact, and version.