Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename bash to shell #99

Merged
merged 4 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading