Skip to content

Commit

Permalink
rename bash to shell (#99)
Browse files Browse the repository at this point in the history
* rename bash to shell
  • Loading branch information
gkorland authored Dec 8, 2024
1 parent 94ea070 commit 5570e08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _includes/code_tabs.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="tabs">
{% assign codes = "python,javascript,cpp,rust,java,bash" | split: "," %}
{% assign codes = "python,javascript,cpp,rust,java,shell" | split: "," %}

{% for code_name in codes %}
{% if include[code_name] %}
Expand Down
8 changes: 4 additions & 4 deletions commands/graph.query.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ Query-level timeouts can be set as described in [the configuration section](/con

example:

{% capture bash_0 %}
{% capture shell_0 %}
GRAPH.QUERY us_government "MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) RETURN p"
{% endcapture %}

{% capture python_0 %}
graph.query("MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) RETURN p")
{% endcapture %}

{% include code_tabs.html id="tabs_0" bash=bash_0 python=python_0 %}
{% include code_tabs.html id="tabs_0" shell=shell_0 python=python_0 %}


#### Parametrized query structure:
Expand All @@ -43,15 +43,15 @@ graph.query("MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) RETURN p")

example:

{% capture bash_1 %}
{% capture shell_1 %}
GRAPH.QUERY us_government "CYPHER state_name='Hawaii' MATCH (p:president)-[:born]->(:state {name:$state_name}) RETURN p"
{% endcapture %}

{% capture python_1 %}
graph.query("MATCH (p:president)-[:born]->(:state {name:$state_name}) RETURN p", {'state_name': 'Hawaii'})
{% endcapture %}

{% include code_tabs.html id="tabs_1" bash=bash_1 python=python_1 %}
{% include code_tabs.html id="tabs_1" shell=shell_1 python=python_1 %}

### Query language

Expand Down

0 comments on commit 5570e08

Please sign in to comment.