Skip to content

Commit b0de040

Browse files
authored
Add python example on ro_query
1 parent ccdf2bf commit b0de040

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

commands/graph.ro_query.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ Arguments: `Graph name, Query, Timeout [optional]`
1414

1515
Returns: [Result set](/design/result_structure) for a read only query or an error if a write query was given.
1616

17-
```sh
17+
{% capture shell_0 %}
1818
GRAPH.RO_QUERY us_government "MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) RETURN p"
19-
```
19+
{% endcapture %}
20+
21+
{% capture python_0 %}
22+
graph.ro_query("MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) RETURN p")
23+
{% endcapture %}
24+
25+
{% include code_tabs.html id="tabs_0" shell=shell_0 python=python_0 %}
2026

2127
Query-level timeouts can be set as described in [the configuration section](/configuration#timeout).

0 commit comments

Comments
 (0)