-
Notifications
You must be signed in to change notification settings - Fork 5
add code examples in different programming languages #174
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe documentation was updated to replace single-language shell or Python examples with multi-language code snippets (Python, JavaScript, Java, Rust) across several FalkorDB command pages and the Getting Started guide. All code examples are now presented in tabbed interfaces, enhancing clarity and illustrating usage in multiple programming environments. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Docs
participant Client (Python/JS/Java/Rust)
participant FalkorDB
User->>Docs: Selects example (tab)
Docs->>User: Shows code snippet for chosen language
User->>Client: Runs code sample
Client->>FalkorDB: Sends command (e.g., QUERY, DELETE, CONFIG)
FalkorDB-->>Client: Returns result
Client-->>User: Prints or logs output
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (16)
commands/graph.constraint-drop.md (3)
63-67
: Avoid embedding theredis>
prompt inside code capturesPlacing the REPL prompt in the captured block means anyone copying the command verbatim will get a syntax error when pasting into
redis-cli
or a CI script. Drop the prompt and keep only the raw command.-redis> GRAPH.CONSTRAINT DROP g UNIQUE NODE Person PROPERTIES 2 first_name last_name +GRAPH.CONSTRAINT DROP g UNIQUE NODE Person PROPERTIES 2 first_name last_name
75-80
: Top-levelawait
requires an ES module contextThe JavaScript example assumes top-level
await
, which only works when the file is executed as an ES module (.mjs
or"type":"module"
inpackage.json
).
Most users still run CommonJS; the example will throw a syntax error there. Either wrap the calls in anasync
IIFE or add a note that ES modules are required.-const client = await FalkorDB.connect(); -const result = await client.dropConstraint('g', 'UNIQUE', 'NODE', 'Person', ['first_name', 'last_name']); +const client = await FalkorDB.connect(); // ES-module (top-level await) or + +(async () => { + const client = await FalkorDB.connect(); + const result = await client.dropConstraint( + 'g', 'UNIQUE', 'NODE', 'Person', ['first_name', 'last_name'] + ); + console.log(result); +})();
82-86
: MissingArrays
import in Java snippet
Arrays.asList(...)
will not compile withoutimport java.util.Arrays;
. Add the import or switch toList.of(...)
(Java 9+) to keep the snippet copy-paste-ready.commands/graph.explain.md (1)
31-38
: Clarify JavaScript async contextSame issue as other pages: the snippet uses top-level
await
. Either wrap in an async IIFE or mention ES-module requirement to avoid surprising syntax errors.commands/graph.profile.md (1)
61-72
:ResultSet
iteration semantics are unclearThe snippet iterates
for (String line : result)
butResultSet
is printed as a single object above.
Ifgraph.profile
actually returns a list/array, expose that type (e.g.,List<String>
) to prevent confusion; otherwise provide an explicit iterator call.-ResultSet result = graph.profile(query); -for (String line : result) { - System.out.println(line); -} +List<String> profileLines = graph.profile(query); // adjust return type +profileLines.forEach(System.out::println);commands/graph.query.md (2)
38-40
: Top-levelawait
caveatThe simple-query JavaScript example will fail under CommonJS. Consider wrapping the code or adding an ES-module note, as suggested for other pages, for consistency.
78-85
: Java parameter example omits type for readabilityDeclare the
Map
with the diamond operator so users don’t have to importjava.util.*
manually.-Map<String, Object> params = new HashMap<>(); +Map<String, Object> params = new HashMap<>();Also add
import java.util.HashMap;
for completeness.commands/graph.config-get.md (2)
16-23
: Use canonical command capitalization (GRAPH.CONFIG GET
)The shell snippet uses lowercase (
graph.config get
). Elsewhere in the docs as well as in Redis/FalkorDB tooling the command is written in uppercase. Normalising onGRAPH.CONFIG GET
avoids surprising copy-paste errors and keeps the style consistent.
44-48
: Rust example silently propagatesResult
client.get_config("*")?
needs to live inside a function that returnsResult
. Either wrap the snippet infn main() -> anyhow::Result<()> { … }
or drop the?
for a ready-to-paste example.commands/graph.constraint-create.md (2)
128-133
: Removeredis>
prompt from copy-paste blocksIncluding the prompt breaks copy-paste execution. Previous docs omit the prompt, so deleting it here keeps examples consistent.
160-166
: Rust snippet needs error handling context
?
operators in three locations require the surrounding function to returnResult
. Either wrap infn main() -> Result<(), FalkorError>
or replace?
with.unwrap()
/explicit handling to keep the snippet standalone.commands/graph.delete.md (1)
25-35
: Minor async-consistency tweakThe JavaScript example uses
await graph.delete();
, which is great, but the Java and Rust snippets are synchronous while the Python one is implicit. Consider adding a short note (“method is synchronous in X/Y clients”) so users don’t wonder whether they forgotawait
.commands/graph.config-set.md (2)
18-28
: Capitalisation again:GRAPH.CONFIG SET/GET
Same nit as earlier: switch
graph.config get/set
to uppercase to align with command naming conventions.
60-67
: Consider collapsing long output blocksSix-line mock outputs make the tab very tall. Showing only the first
get
, theOK
, and the secondget
conveys the point while keeping the UI tight.getting_started.md (2)
71-76
: Heading level jumps trigger markdown-lintThe doc jumps from
##
to###
and then to another---
block, raising MD001 warnings. Increment headings only one level at a time to keep the outline clear and silence the linter.
118-153
: Excessively long code tabs impede scanningThe full
CREATE
query is repeated four times (Python/JS/Java/Rust), resulting in ~30 duplicated lines per tab. Consider capturing the query once (e.g.,{% capture create_query %}
) and re-using it across languages to reduce vertical scroll.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (10)
commands/graph.config-get.md
(1 hunks)commands/graph.config-set.md
(1 hunks)commands/graph.constraint-create.md
(1 hunks)commands/graph.constraint-drop.md
(1 hunks)commands/graph.copy.md
(2 hunks)commands/graph.delete.md
(2 hunks)commands/graph.explain.md
(1 hunks)commands/graph.profile.md
(1 hunks)commands/graph.query.md
(2 hunks)getting_started.md
(6 hunks)
🧰 Additional context used
🪛 LanguageTool
commands/graph.delete.md
[grammar] ~27-~27: Use proper spacing conventions.
Context: ...} await graph.delete(); {% endcapture %} {% capture java_0 %} graph.delete(); {% ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~31-~31: Use proper spacing conventions.
Context: ...va_0 %} graph.delete(); {% endcapture %} {% capture rust_0 %} graph.delete()?; {%...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~35-~35: Use proper spacing conventions.
Context: ...t_0 %} graph.delete()?; {% endcapture %} {% include code_tabs.html id="tabs_0" sh...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~37-~37: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %} Note: To delete a node from the graph (n...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~51-~51: Use proper spacing conventions.
Context: ...propvalue}) DELETE x"); {% endcapture %} {% capture java_1 %} graph.query("MATCH ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~55-~55: Use proper spacing conventions.
Context: ...propvalue}) DELETE x"); {% endcapture %} {% capture rust_1 %} graph.query("MATCH ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~59-~59: Use proper spacing conventions.
Context: ...ropvalue}) DELETE x")?; {% endcapture %} {% include code_tabs.html id="tabs_1" sh...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~61-~61: Use proper spacing conventions.
Context: ...=javascript_1 java=java_1 rust=rust_1 %} WARNING: When you delete a node, all of ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
commands/graph.constraint-drop.md
[grammar] ~63-~63: There might be a mistake here.
Context: ...lowing command:
{% capture shell_0 %}
redis> GRAPH.CONSTRAINT DROP g UNIQUE NO...
(QB_NEW_EN_OTHER)
[grammar] ~65-~65: There might be a mistake here.
Context: ...IES 2 first_name last_name
Output: OK
{% endcapture %}
{% capture python_0 %}
from falkordb im...
(QB_NEW_EN_OTHER)
[grammar] ~68-~68: There might be a mistake here.
Context: ... endcapture %}
{% capture python_0 %}
from falkordb import FalkorDB
client = ...
(QB_NEW_EN_OTHER)
[grammar] ~69-~69: There might be a mistake here.
Context: ...thon_0 %}
from falkordb import FalkorDB
client = FalkorDB()
result = client.dro...
(QB_NEW_EN_OTHER)
[grammar] ~70-~70: There might be a mistake here.
Context: ...rdb import FalkorDB
client = FalkorDB()
result = client.drop_constraint('g', 'UN...
(QB_NEW_EN_OTHER)
[grammar] ~71-~71: There might be a mistake here.
Context: ..., 'Person', ['first_name', 'last_name'])
print(result)
{% endcapture %}
{% ca...
(QB_NEW_EN_OTHER)
[grammar] ~72-~72: There might be a mistake here.
Context: ...irst_name', 'last_name'])
print(result)
{% endcapture %}
{% capture javascrip...
(QB_NEW_EN_OTHER)
[grammar] ~73-~73: Use proper spacing conventions.
Context: ...name'])
print(result)
{% endcapture %}
{% capture javascript_0 %}
import { Fal...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~75-~75: There might be a mistake here.
Context: ...capture %}
{% capture javascript_0 %}
import { FalkorDB } from 'falkordb';
co...
(QB_NEW_EN_OTHER)
[grammar] ~76-~76: There might be a mistake here.
Context: ...%}
import { FalkorDB } from 'falkordb';
const client = await FalkorDB.connect();...
(QB_NEW_EN_OTHER)
[grammar] ~77-~77: There might be a mistake here.
Context: ...const client = await FalkorDB.connect();
const result = await client.dropConstrai...
(QB_NEW_EN_OTHER)
[grammar] ~78-~78: There might be a mistake here.
Context: ... 'Person', ['first_name', 'last_name']);
console.log(result);
{% endcapture %}
...
(QB_NEW_EN_OTHER)
[grammar] ~79-~79: There might be a mistake here.
Context: ...e', 'last_name']);
console.log(result);
{% endcapture %}
{% capture java_0 %}...
(QB_NEW_EN_OTHER)
[grammar] ~80-~80: Use proper spacing conventions.
Context: ...
console.log(result);
{% endcapture %}
{% capture java_0 %}
FalkorDB client = ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~82-~82: There might be a mistake here.
Context: ...{% endcapture %}
{% capture java_0 %}
FalkorDB client = new FalkorDB();
Strin...
(QB_NEW_EN_OTHER)
[grammar] ~83-~83: There might be a mistake here.
Context: ..._0 %}
FalkorDB client = new FalkorDB();
String result = client.dropConstraint("g...
(QB_NEW_EN_OTHER)
[grammar] ~84-~84: There might be a mistake here.
Context: ...rays.asList("first_name", "last_name"));
System.out.println(result);
{% endcaptu...
(QB_NEW_EN_OTHER)
[grammar] ~85-~85: There might be a mistake here.
Context: ...st_name"));
System.out.println(result);
{% endcapture %}
{% capture rust_0 %}...
(QB_NEW_EN_OTHER)
[grammar] ~86-~86: Use proper spacing conventions.
Context: ...m.out.println(result);
{% endcapture %}
{% capture rust_0 %}
let client = Falko...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~88-~88: There might be a mistake here.
Context: ...{% endcapture %}
{% capture rust_0 %}
let client = FalkorDB::connect_default()...
(QB_NEW_EN_OTHER)
[grammar] ~89-~89: There might be a mistake here.
Context: ...et client = FalkorDB::connect_default();
let result = client.drop_constraint("g",...
(QB_NEW_EN_OTHER)
[grammar] ~90-~90: There might be a mistake here.
Context: ...Person", &["first_name", "last_name"])?;
println!("{}", result);
{% endcapture %...
(QB_NEW_EN_OTHER)
[grammar] ~91-~91: There might be a mistake here.
Context: ..."last_name"])?;
println!("{}", result);
{% endcapture %}
{% include code_tabs...
(QB_NEW_EN_OTHER)
[grammar] ~92-~92: Use proper spacing conventions.
Context: ...rintln!("{}", result);
{% endcapture %}
{% include code_tabs.html id="drop_const...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~94-~94: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %}
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
commands/graph.copy.md
[grammar] ~13-~13: Use proper spacing conventions.
Context: ...aving the source graph fully accessible. ======= The GRAPH.COPY
command creates a copy ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~15-~15: There might be a mistake here.
Context: ...GRAPH.COPYcommand creates a copy of a graph, while the copy is performed the
src` g...
(QB_NEW_EN_OTHER)
[grammar] ~15-~15: There might be a problem here.
Context: ...eates a copy of a graph, while the copy is performed the src
graph is fully accessible. >>...
(QB_NEW_EN_MERGED_MATCH)
[grammar] ~15-~15: Use proper spacing conventions.
Context: ...med the src
graph is fully accessible. >>>>>>> 4ce9d9d (add code examples in different ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~16-~16: Use proper spacing conventions.
Context: ...d (add code examples in different langs) Example: {% capture shell_0 %} <<<<<<< ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~18-~18: There might be a problem here.
Context: ...e examples in different langs) Example: {% capture shell_0 %} <<<<<<< HEAD 127.0.0.1:6379> GRAPH.LIST ...
(QB_NEW_EN_MERGED_MATCH)
[grammar] ~23-~23: Use proper spacing conventions.
Context: ...127.0.0.1:6379> GRAPH.LIST (empty array) ======= # Create a graph and copy it >>>>>>> 4ce9d...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~25-~25: There might be a mistake here.
Context: ...rray) ======= # Create a graph and copy it >>>>>>> 4ce9d9d (add code examples in d...
(QB_NEW_EN_OTHER)
[grammar] ~64-~64: Use proper spacing conventions.
Context: ...umber" # Output: 516637 {% endcapture %} {% capture python_0 %} from falkordb imp...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~75-~75: Use proper spacing conventions.
Context: ....number") print(result) {% endcapture %} {% capture javascript_0 %} import { Falk...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~86-~86: Use proper spacing conventions.
Context: ...); console.log(result); {% endcapture %} {% capture java_0 %} FalkorDB client = n...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~96-~96: Use proper spacing conventions.
Context: ...em.out.println(result); {% endcapture %} {% capture rust_0 %} let client = Falkor...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~106-~106: Use proper spacing conventions.
Context: ...intln!("{:?}", result); {% endcapture %} {% include code_tabs.html id="copy_tabs"...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~109-~109: Use proper spacing conventions.
Context: ...d (add code examples in different langs)
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
commands/graph.config-get.md
[grammar] ~21-~21: Use proper spacing conventions.
Context: ...) 1) "TIMEOUT" # 2) (integer) 0 # ... {% endcapture %} {% capture python_0 %}...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~22-~22: Use proper spacing conventions.
Context: ... 2) (integer) 0 # ... {% endcapture %} {% capture python_0 %} from falkordb imp...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~29-~29: Use proper spacing conventions.
Context: ...nfig('*') print(config) {% endcapture %} {% capture javascript_0 %} import { Falk...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~36-~36: Use proper spacing conventions.
Context: ...); console.log(config); {% endcapture %} {% capture java_0 %} FalkorDB client = n...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~42-~42: Use proper spacing conventions.
Context: ...em.out.println(config); {% endcapture %} {% capture rust_0 %} let client = Falkor...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~48-~48: Use proper spacing conventions.
Context: ...intln!("{:?}", config); {% endcapture %} {% include code_tabs.html id="config_get...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~50-~50: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %} {% capture shell_1 %} graph.config get T...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~57-~57: Use proper spacing conventions.
Context: ...MEOUT" # 2) (integer) 0 {% endcapture %} {% capture python_1 %} timeout = client....
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~62-~62: Use proper spacing conventions.
Context: ...IMEOUT') print(timeout) {% endcapture %} {% capture javascript_1 %} const timeout...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~67-~67: Use proper spacing conventions.
Context: ...; console.log(timeout); {% endcapture %} {% capture java_1 %} Object timeout = cl...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~72-~72: Use proper spacing conventions.
Context: ...m.out.println(timeout); {% endcapture %} {% capture rust_1 %} let timeout = clien...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~77-~77: Use proper spacing conventions.
Context: ...ntln!("{:?}", timeout); {% endcapture %} {% include code_tabs.html id="config_get...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~79-~79: Use proper spacing conventions.
Context: ...=javascript_1 java=java_1 rust=rust_1 %}
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
commands/graph.config-set.md
[grammar] ~28-~28: Use proper spacing conventions.
Context: ...T" # 2) (integer) 10000 {% endcapture %} {% capture python_0 %} from falkordb imp...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~36-~36: Use proper spacing conventions.
Context: ....get_config('TIMEOUT')) {% endcapture %} {% capture javascript_0 %} import { Falk...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~44-~44: Use proper spacing conventions.
Context: ....getConfig('TIMEOUT')); {% endcapture %} {% capture java_0 %} FalkorDB client = n...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~51-~51: Use proper spacing conventions.
Context: ....getConfig("TIMEOUT")); {% endcapture %} {% capture rust_0 %} let client = Falkor...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~58-~58: Use proper spacing conventions.
Context: ...et_config("TIMEOUT")?); {% endcapture %} {% include code_tabs.html id="config_set...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~60-~60: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %} {% capture shell_1 %} graph.config set T...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~65-~65: Place a period at the end of declarative sentences.
Context: ...tion parameter cannot be set at run-time {% endcapture %} {% capture python_1 %} try: client.s...
(QB_NEW_EN_OTHER_ERROR_IDS_000178)
[grammar] ~73-~73: Use proper spacing conventions.
Context: ...tion as e: print(e) {% endcapture %} {% capture javascript_1 %} try { await...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~81-~81: Use proper spacing conventions.
Context: ...{ console.error(e); } {% endcapture %} {% capture java_1 %} try { client.se...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~89-~89: Use proper spacing conventions.
Context: ...ystem.out.println(e); } {% endcapture %} {% capture rust_1 %} if let Err(e) = cli...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~95-~95: Use proper spacing conventions.
Context: ... println!("{}", e); } {% endcapture %} {% include code_tabs.html id="config_set...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~97-~97: Use proper spacing conventions.
Context: ...=javascript_1 java=java_1 rust=rust_1 %}
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
commands/graph.constraint-create.md
[grammar] ~128-~128: There might be a mistake here.
Context: ...owing commands:
{% capture shell_0 %}
redis> GRAPH.QUERY g "CREATE INDEX FOR (...
(QB_NEW_EN_OTHER)
[grammar] ~129-~129: There might be a mistake here.
Context: ...:Person) ON (p.first_name, p.last_name)"
redis> GRAPH.CONSTRAINT CREATE g UNIQUE ...
(QB_NEW_EN_OTHER)
[grammar] ~132-~132: Use proper spacing conventions.
Context: ...ame
Output: PENDING
{% endcapture %}
{% capture python_0 %}
from falkordb im...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~134-~134: There might be a mistake here.
Context: ... endcapture %}
{% capture python_0 %}
from falkordb import FalkorDB
client = ...
(QB_NEW_EN_OTHER)
[grammar] ~135-~135: There might be a mistake here.
Context: ...thon_0 %}
from falkordb import FalkorDB
client = FalkorDB()
graph = client.sele...
(QB_NEW_EN_OTHER)
[grammar] ~136-~136: There might be a mistake here.
Context: ...rdb import FalkorDB
client = FalkorDB()
graph = client.select_graph('g')
graph....
(QB_NEW_EN_OTHER)
[grammar] ~137-~137: There might be a mistake here.
Context: ...orDB()
graph = client.select_graph('g')
graph.query("CREATE INDEX FOR (p:Person)...
(QB_NEW_EN_OTHER)
[grammar] ~138-~138: There might be a mistake here.
Context: ...Person) ON (p.first_name, p.last_name)")
result = client.create_constraint('g', '...
(QB_NEW_EN_OTHER)
[grammar] ~139-~139: There might be a mistake here.
Context: ..., 'Person', ['first_name', 'last_name'])
print(result)
{% endcapture %}
{% ca...
(QB_NEW_EN_OTHER)
[grammar] ~140-~140: There might be a mistake here.
Context: ...irst_name', 'last_name'])
print(result)
{% endcapture %}
{% capture javascrip...
(QB_NEW_EN_OTHER)
[grammar] ~141-~141: Use proper spacing conventions.
Context: ...name'])
print(result)
{% endcapture %}
{% capture javascript_0 %}
import { Fal...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~143-~143: There might be a mistake here.
Context: ...capture %}
{% capture javascript_0 %}
import { FalkorDB } from 'falkordb';
co...
(QB_NEW_EN_OTHER)
[grammar] ~144-~144: There might be a mistake here.
Context: ...%}
import { FalkorDB } from 'falkordb';
const client = await FalkorDB.connect();...
(QB_NEW_EN_OTHER)
[grammar] ~145-~145: There might be a mistake here.
Context: ...const client = await FalkorDB.connect();
const graph = client.selectGraph('g');
...
(QB_NEW_EN_OTHER)
[grammar] ~146-~146: There might be a mistake here.
Context: ...
const graph = client.selectGraph('g');
await graph.query("CREATE INDEX FOR (p:P...
(QB_NEW_EN_OTHER)
[grammar] ~147-~147: There might be a mistake here.
Context: ...erson) ON (p.first_name, p.last_name)");
const result = await client.createConstr...
(QB_NEW_EN_OTHER)
[grammar] ~148-~148: There might be a mistake here.
Context: ... 'Person', ['first_name', 'last_name']);
console.log(result);
{% endcapture %}
...
(QB_NEW_EN_OTHER)
[grammar] ~149-~149: There might be a mistake here.
Context: ...e', 'last_name']);
console.log(result);
{% endcapture %}
{% capture java_0 %}...
(QB_NEW_EN_OTHER)
[grammar] ~150-~150: Use proper spacing conventions.
Context: ...
console.log(result);
{% endcapture %}
{% capture java_0 %}
FalkorDB client = ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~152-~152: There might be a mistake here.
Context: ...{% endcapture %}
{% capture java_0 %}
FalkorDB client = new FalkorDB();
Graph...
(QB_NEW_EN_OTHER)
[grammar] ~153-~153: There might be a mistake here.
Context: ..._0 %}
FalkorDB client = new FalkorDB();
Graph graph = client.selectGraph("g");
...
(QB_NEW_EN_OTHER)
[grammar] ~154-~154: There might be a mistake here.
Context: ...
Graph graph = client.selectGraph("g");
graph.query("CREATE INDEX FOR (p:Person)...
(QB_NEW_EN_OTHER)
[grammar] ~155-~155: There might be a mistake here.
Context: ...erson) ON (p.first_name, p.last_name)");
String result = client.createConstraint(...
(QB_NEW_EN_OTHER)
[grammar] ~156-~156: There might be a mistake here.
Context: ...rays.asList("first_name", "last_name"));
System.out.println(result);
{% endcaptu...
(QB_NEW_EN_OTHER)
[grammar] ~157-~157: There might be a mistake here.
Context: ...st_name"));
System.out.println(result);
{% endcapture %}
{% capture rust_0 %}...
(QB_NEW_EN_OTHER)
[grammar] ~158-~158: Use proper spacing conventions.
Context: ...m.out.println(result);
{% endcapture %}
{% capture rust_0 %}
let client = Falko...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~160-~160: There might be a mistake here.
Context: ...{% endcapture %}
{% capture rust_0 %}
let client = FalkorDB::connect_default()...
(QB_NEW_EN_OTHER)
[grammar] ~161-~161: There might be a mistake here.
Context: ...et client = FalkorDB::connect_default();
let graph = client.select_graph("g");
g...
(QB_NEW_EN_OTHER)
[grammar] ~162-~162: There might be a mistake here.
Context: ...;
let graph = client.select_graph("g");
graph.query("CREATE INDEX FOR (p:Person)...
(QB_NEW_EN_OTHER)
[grammar] ~163-~163: There might be a mistake here.
Context: ...rson) ON (p.first_name, p.last_name)")?;
let result = client.create_constraint("g...
(QB_NEW_EN_OTHER)
[grammar] ~164-~164: There might be a mistake here.
Context: ...Person", &["first_name", "last_name"])?;
println!("{}", result);
{% endcapture %...
(QB_NEW_EN_OTHER)
[grammar] ~165-~165: There might be a mistake here.
Context: ..."last_name"])?;
println!("{}", result);
{% endcapture %}
{% include code_tabs...
(QB_NEW_EN_OTHER)
[grammar] ~166-~166: Use proper spacing conventions.
Context: ...rintln!("{}", result);
{% endcapture %}
{% include code_tabs.html id="unique_con...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~168-~168: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %}
Creating a mandatory constraint for a re...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~170-~170: Use proper spacing conventions.
Context: ...atory constraint for a relationship type
To create a mandatory constraint for all...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~172-~172: Use proper spacing conventions.
Context: ... attribute, issue the following command:
{% capture shell_1 %}
redis> GRAPH.CONS...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~174-~174: There might be a mistake here.
Context: ...lowing command:
{% capture shell_1 %}
redis> GRAPH.CONSTRAINT CREATE g MANDATO...
(QB_NEW_EN_OTHER)
[grammar] ~177-~177: Use proper spacing conventions.
Context: ...ate
Output: PENDING
{% endcapture %}
{% capture python_1 %}
result = client....
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~179-~179: There might be a mistake here.
Context: ... endcapture %}
{% capture python_1 %}
result = client.create_constraint('g', '...
(QB_NEW_EN_OTHER)
[grammar] ~180-~180: There might be a mistake here.
Context: ...Y', 'RELATIONSHIP', 'Visited', ['date'])
print(result)
{% endcapture %}
{% ca...
(QB_NEW_EN_OTHER)
[grammar] ~181-~181: There might be a mistake here.
Context: ...IP', 'Visited', ['date'])
print(result)
{% endcapture %}
{% capture javascrip...
(QB_NEW_EN_OTHER)
[grammar] ~182-~182: Use proper spacing conventions.
Context: ...date'])
print(result)
{% endcapture %}
{% capture javascript_1 %}
const result...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~184-~184: There might be a mistake here.
Context: ...capture %}
{% capture javascript_1 %}
const result = await client.createConstr...
(QB_NEW_EN_OTHER)
[grammar] ~185-~185: There might be a mistake here.
Context: ...', 'RELATIONSHIP', 'Visited', ['date']);
console.log(result);
{% endcapture %}
...
(QB_NEW_EN_OTHER)
[grammar] ~186-~186: There might be a mistake here.
Context: ...sited', ['date']);
console.log(result);
{% endcapture %}
{% capture java_1 %}...
(QB_NEW_EN_OTHER)
[grammar] ~187-~187: Use proper spacing conventions.
Context: ...
console.log(result);
{% endcapture %}
{% capture java_1 %}
String result = cl...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~189-~189: There might be a mistake here.
Context: ...{% endcapture %}
{% capture java_1 %}
String result = client.createConstraint(...
(QB_NEW_EN_OTHER)
[grammar] ~190-~190: There might be a mistake here.
Context: ...HIP", "Visited", Arrays.asList("date"));
System.out.println(result);
{% endcaptu...
(QB_NEW_EN_OTHER)
[grammar] ~191-~191: There might be a mistake here.
Context: ...t("date"));
System.out.println(result);
{% endcapture %}
{% capture rust_1 %}...
(QB_NEW_EN_OTHER)
[grammar] ~192-~192: Use proper spacing conventions.
Context: ...m.out.println(result);
{% endcapture %}
{% capture rust_1 %}
let result = clien...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~194-~194: There might be a mistake here.
Context: ...{% endcapture %}
{% capture rust_1 %}
let result = client.create_constraint("g...
(QB_NEW_EN_OTHER)
[grammar] ~195-~195: There might be a mistake here.
Context: ... "RELATIONSHIP", "Visited", &["date"])?;
println!("{}", result);
{% endcapture %...
(QB_NEW_EN_OTHER)
[grammar] ~196-~196: There might be a mistake here.
Context: ...", &["date"])?;
println!("{}", result);
{% endcapture %}
{% include code_tabs...
(QB_NEW_EN_OTHER)
[grammar] ~197-~197: Use proper spacing conventions.
Context: ...rintln!("{}", result);
{% endcapture %}
{% include code_tabs.html id="mandatory_...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~199-~199: Use proper spacing conventions.
Context: ...=javascript_1 java=java_1 rust=rust_1 %}
Listing constraints
To list all const...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~201-~201: Use proper spacing conventions.
Context: ...ust=rust_1 %}
Listing constraints
To list all constraints enforced on a gi...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~203-~203: Use proper spacing conventions.
Context: ...aph, use the db.constraints
procedure:
{% capture shell_2 %}
redis> GRAPH.RO_Q...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~205-~205: There might be a mistake here.
Context: ...nts` procedure:
{% capture shell_2 %}
redis> GRAPH.RO_QUERY g "call db.constra...
(QB_NEW_EN_OTHER)
[grammar] ~207-~207: Use proper spacing conventions.
Context: ...g "call db.constraints()"
Output: ...
{% endcapture %}
{% capture python_2 ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~208-~208: Use proper spacing conventions.
Context: ...ints()"
Output: ...
{% endcapture %}
{% capture python_2 %}
result = graph.r...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~210-~210: There might be a mistake here.
Context: ... endcapture %}
{% capture python_2 %}
result = graph.ro_query("call db.constra...
(QB_NEW_EN_OTHER)
[grammar] ~211-~211: There might be a mistake here.
Context: ... graph.ro_query("call db.constraints()")
print(result)
{% endcapture %}
{% ca...
(QB_NEW_EN_OTHER)
[grammar] ~212-~212: There might be a mistake here.
Context: ...("call db.constraints()")
print(result)
{% endcapture %}
{% capture javascrip...
(QB_NEW_EN_OTHER)
[grammar] ~213-~213: Use proper spacing conventions.
Context: ...nts()")
print(result)
{% endcapture %}
{% capture javascript_2 %}
const result...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~215-~215: There might be a mistake here.
Context: ...capture %}
{% capture javascript_2 %}
const result = await graph.ro_query("cal...
(QB_NEW_EN_OTHER)
[grammar] ~216-~216: There might be a mistake here.
Context: ...graph.ro_query("call db.constraints()");
console.log(result);
{% endcapture %}
...
(QB_NEW_EN_OTHER)
[grammar] ~217-~217: There might be a mistake here.
Context: ...b.constraints()");
console.log(result);
{% endcapture %}
{% capture java_2 %}...
(QB_NEW_EN_OTHER)
[grammar] ~218-~218: Use proper spacing conventions.
Context: ...
console.log(result);
{% endcapture %}
{% capture java_2 %}
ResultSet result =...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~220-~220: There might be a mistake here.
Context: ...{% endcapture %}
{% capture java_2 %}
ResultSet result = graph.ro_query("call ...
(QB_NEW_EN_OTHER)
[grammar] ~221-~221: There might be a mistake here.
Context: ...graph.ro_query("call db.constraints()");
System.out.println(result);
{% endcaptu...
(QB_NEW_EN_OTHER)
[grammar] ~222-~222: There might be a mistake here.
Context: ...raints()");
System.out.println(result);
{% endcapture %}
{% capture rust_2 %}...
(QB_NEW_EN_OTHER)
[grammar] ~223-~223: Use proper spacing conventions.
Context: ...m.out.println(result);
{% endcapture %}
{% capture rust_2 %}
let result = graph...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~225-~225: There might be a mistake here.
Context: ...{% endcapture %}
{% capture rust_2 %}
let result = graph.ro_query("call db.con...
(QB_NEW_EN_OTHER)
[grammar] ~226-~226: There might be a mistake here.
Context: ...raph.ro_query("call db.constraints()")?;
println!("{:?}", result);
{% endcapture...
(QB_NEW_EN_OTHER)
[grammar] ~227-~227: There might be a mistake here.
Context: ...traints()")?;
println!("{:?}", result);
{% endcapture %}
{% include code_tabs...
(QB_NEW_EN_OTHER)
[grammar] ~228-~228: Use proper spacing conventions.
Context: ...ntln!("{:?}", result);
{% endcapture %}
{% include code_tabs.html id="list_const...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~230-~230: Use proper spacing conventions.
Context: ...=javascript_2 java=java_2 rust=rust_2 %}
Deleting a constraint
See [GRAPH.CONS...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~232-~232: Use proper spacing conventions.
Context: ...st=rust_2 %}
Deleting a constraint
See [GRAPH.CONSTRAINT DROP](/commands/gr...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~234-~234: Use proper spacing conventions.
Context: ...constraint
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
getting_started.md
[grammar] ~25-~25: Use proper spacing conventions.
Context: ...%} pip install falkordb {% endcapture %} {% include code_tabs.html id="install_ta...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~27-~27: Use proper spacing conventions.
Context: ....html id="install_tabs" shell=shell_0 %} --- ## Step 1: Model a Social Network as a Grap...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~71-~71: Use proper spacing conventions.
Context: ...: 1701475200}]->(post2) {% endcapture %} {% include code_tabs.html id="cypher_cre...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~73-~73: Use proper spacing conventions.
Context: ...="cypher_create_tabs" cypher=cypher_0 %} You can execute these commands using the...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~75-~75: Use proper spacing conventions.
Context: ...B Python client or any supported client. --- ## Step 3: Access Your Data ### Connect to...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~79-~79: Use proper spacing conventions.
Context: ...lient. --- ## Step 3: Access Your Data ### Connect to FalkorDB {% capture python_0...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~81-~81: Place a period at the end of declarative sentences.
Context: ...ccess Your Data ### Connect to FalkorDB {% capture python_0 %} from falkordb imp...
(QB_NEW_EN_OTHER_ERROR_IDS_000178)
[grammar] ~84-~84: Use proper spacing conventions.
Context: ...ython_0 %} from falkordb import FalkorDB # Connect to FalkorDB client = FalkorDB(ho...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~86-~86: There might be a mistake here.
Context: ... falkordb import FalkorDB # Connect to FalkorDB client = FalkorDB(host="localhost", por...
(QB_NEW_EN_OTHER)
[grammar] ~89-~89: Use proper spacing conventions.
Context: ....select_graph('social') {% endcapture %} {% capture javascript_0 %} import { Falk...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~92-~92: Use proper spacing conventions.
Context: ... %} import { FalkorDB } from 'falkordb'; const client = await FalkorDB.connect({ ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~100-~100: Use proper spacing conventions.
Context: ....selectGraph('social'); {% endcapture %} {% capture java_0 %} FalkorDB client = n...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~105-~105: Use proper spacing conventions.
Context: ....selectGraph("social"); {% endcapture %} {% capture rust_0 %} let client = Falkor...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~110-~110: Use proper spacing conventions.
Context: ...select_graph("social"); {% endcapture %} {% include code_tabs.html id="connect_ta...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~112-~112: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %} ### Execute Cypher Queries #### Create the ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~114-~114: Use proper spacing conventions.
Context: ...st=rust_0 %} ### Execute Cypher Queries #### Create the Graph {% capture python_1 %}...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~116-~116: Use proper spacing conventions.
Context: ...te Cypher Queries #### Create the Graph {% capture python_1 %} create_query = ""...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~135-~135: Use proper spacing conventions.
Context: ...created successfully!") {% endcapture %} {% capture javascript_1 %} const createQ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~141-~141: Use proper spacing conventions.
Context: ...Charlie", email: "charlie@example.com"}) CREATE (post1:Post {id: 101, content: "H...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[style] ~144-~144: Consider using a more formal and expressive alternative to ‘awesome’.
Context: ...{id: 102, content: "Graph Databases are awesome!", date: 1701475200}) CREATE (alice)-[...
(AWESOME)
[grammar] ~144-~144: Use proper spacing conventions.
Context: ...abases are awesome!", date: 1701475200}) CREATE (alice)-[:FRIENDS_WITH {since: 16...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~153-~153: Use proper spacing conventions.
Context: ...reated successfully!"); {% endcapture %} {% capture java_1 %} String createQuery ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~159-~159: Use proper spacing conventions.
Context: ...rlie", email: "charlie@example.com"}) CREATE (post1:Post {id: 101, content: "...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[style] ~162-~162: Consider using a more formal and expressive alternative to ‘awesome’.
Context: ...id: 102, content: "Graph Databases are awesome!", date: 1701475200}) CREATE (alice)-...
(AWESOME)
[grammar] ~162-~162: Use proper spacing conventions.
Context: ...bases are awesome!", date: 1701475200}) CREATE (alice)-[:FRIENDS_WITH {since: 16...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~171-~171: Use proper spacing conventions.
Context: ...reated successfully!"); {% endcapture %} {% capture rust_1 %} let create_query = ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~177-~177: Use proper spacing conventions.
Context: ...rlie", email: "charlie@example.com"}) CREATE (post1:Post {id: 101, content: "...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[style] ~180-~180: Consider using a more formal and expressive alternative to ‘awesome’.
Context: ...id: 102, content: "Graph Databases are awesome!", date: 1701475200}) CREATE (alice)-...
(AWESOME)
[grammar] ~180-~180: Use proper spacing conventions.
Context: ...bases are awesome!", date: 1701475200}) CREATE (alice)-[:FRIENDS_WITH {since: 16...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~189-~189: Use proper spacing conventions.
Context: ...reated successfully!"); {% endcapture %} {% include code_tabs.html id="create_gra...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~191-~191: Use proper spacing conventions.
Context: ...=javascript_1 java=java_1 rust=rust_1 %} #### Query the Graph {% capture python_2 %} ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~195-~195: Use proper spacing conventions.
Context: ...9038-b7e1f931da74) #### Query the Graph {% capture python_2 %} # Find all friend...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~209-~209: Use proper spacing conventions.
Context: ...t: print(record[0]) {% endcapture %} {% capture javascript_2 %} const query =...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~212-~212: Use proper spacing conventions.
Context: ...% capture javascript_2 %} const query = MATCH (alice:User {name: "Alice"})-[:FRIENDS_WITH]->(friend) RETURN friend.name AS Friend
; const result = await graph.ro_query(qu...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~221-~221: Use proper spacing conventions.
Context: ...og(record["Friend"]); } {% endcapture %} {% capture java_2 %} String query = """ ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~233-~233: Use proper spacing conventions.
Context: ...ecord.get("Friend")); } {% endcapture %} {% capture rust_2 %} let query = r#" MAT...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~245-~245: Use proper spacing conventions.
Context: ...", record["Friend"]); } {% endcapture %} {% include code_tabs.html id="query_frie...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~247-~247: Use proper spacing conventions.
Context: ...=javascript_2 java=java_2 rust=rust_2 %} #### Query Relationships {% capture python_3...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~249-~249: Use proper spacing conventions.
Context: ...rust=rust_2 %} #### Query Relationships {% capture python_3 %} # Find posts crea...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~263-~263: Use proper spacing conventions.
Context: ...t: print(record[0]) {% endcapture %} {% capture javascript_3 %} const query =...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~266-~266: Use proper spacing conventions.
Context: ...% capture javascript_3 %} const query = MATCH (bob:User {name: "Bob"})-[:CREATED]->(post:Post) RETURN post.content AS PostContent
; const result = await graph.ro_query(qu...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~275-~275: Use proper spacing conventions.
Context: ...cord["PostContent"]); } {% endcapture %} {% capture java_3 %} String query = """ ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~287-~287: Use proper spacing conventions.
Context: ....get("PostContent")); } {% endcapture %} {% capture rust_3 %} let query = r#" MAT...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~299-~299: Use proper spacing conventions.
Context: ...cord["PostContent"]); } {% endcapture %} {% include code_tabs.html id="query_post...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~301-~301: Use proper spacing conventions.
Context: ...=javascript_3 java=java_3 rust=rust_3 %} --- ## Step 4: Explore Further Congratulations...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
commands/graph.query.md
[grammar] ~40-~40: Use proper spacing conventions.
Context: ...); console.log(result); {% endcapture %} {% capture java_0 %} ResultSet result = ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~45-~45: Use proper spacing conventions.
Context: ...em.out.println(result); {% endcapture %} {% capture rust_0 %} let result = graph....
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~50-~50: Use proper spacing conventions.
Context: ...intln!("{:?}", result); {% endcapture %} {% include code_tabs.html id="tabs_0" sh...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~52-~52: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %} #### Parametrized query structure: `GRAPH.QU...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~75-~75: Use proper spacing conventions.
Context: ...); console.log(result); {% endcapture %} {% capture java_1 %} Map<String, Object>...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~85-~85: Use proper spacing conventions.
Context: ...em.out.println(result); {% endcapture %} {% capture rust_1 %} let params = std::c...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~96-~96: Use proper spacing conventions.
Context: ...intln!("{:?}", result); {% endcapture %} {% include code_tabs.html id="tabs_1" sh...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~98-~98: Use proper spacing conventions.
Context: ...=javascript_1 java=java_1 rust=rust_1 %} ### Query language The syntax is based on [...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
commands/graph.explain.md
[grammar] ~20-~20: Use proper spacing conventions.
Context: ...me:'Hawaii'}) RETURN p" {% endcapture %} {% capture python_0 %} from falkordb imp...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~29-~29: Use proper spacing conventions.
Context: ...in(query) print(result) {% endcapture %} {% capture javascript_0 %} import { Falk...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~38-~38: Use proper spacing conventions.
Context: ...); console.log(result); {% endcapture %} {% capture java_0 %} FalkorDB client = n...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~46-~46: Use proper spacing conventions.
Context: ...em.out.println(result); {% endcapture %} {% capture rust_0 %} let client = Falkor...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~54-~54: Use proper spacing conventions.
Context: ...println!("{}", result); {% endcapture %} {% include code_tabs.html id="explain_ta...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~56-~56: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %}
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
commands/graph.profile.md
[grammar] ~32-~32: Use proper spacing conventions.
Context: ...tion time: 0.104346 ms" {% endcapture %} {% capture python_0 %} from falkordb imp...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~46-~46: Use proper spacing conventions.
Context: ...result: print(line) {% endcapture %} {% capture javascript_0 %} import { Falk...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~52-~52: Use proper spacing conventions.
Context: ...ient.selectGraph('imdb'); const query = \ MATCH (actor_a:Actor)-[:ACT]->(:Movie)<-[:ACT]-(actor_b:Actor) WHERE actor_a <> actor_b CREATE (actor_a)-[:COSTARRED_WITH]->(actor_b)
; const result = await graph.profile(que...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~59-~59: Use proper spacing conventions.
Context: ... => console.log(line)); {% endcapture %} {% capture java_0 %} FalkorDB client = n...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~73-~73: Use proper spacing conventions.
Context: ...em.out.println(line); } {% endcapture %} {% capture rust_0 %} let client = Falkor...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~87-~87: Use proper spacing conventions.
Context: ...println!("{}", line); } {% endcapture %} {% include code_tabs.html id="profile_ta...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~89-~89: Use proper spacing conventions.
Context: ...=javascript_0 java=java_0 rust=rust_0 %}
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
🪛 GitHub Actions: spellcheck
commands/graph.constraint-drop.md
[error] 1-1: Spelling errors detected: 'endcapture', 'dropConstraint', 'asList', 'println'.
commands/graph.copy.md
[error] 1-1: Spelling errors detected: 'endcapture', 'copyGraph', 'graphA', 'graphZ', 'ResultSet', 'println'.
commands/graph.config-get.md
[error] 1-1: Spelling errors detected: 'endcapture', 'getConfig', 'println'.
commands/graph.config-set.md
[error] 1-1: Spelling errors detected: 'endcapture', 'getConfig', 'setConfig', 'println'.
commands/graph.constraint-create.md
[error] 1-1: Spelling errors detected: 'endcapture', 'createConstraint', 'asList', 'println', 'ResultSet'.
getting_started.md
[error] 1-1: Spelling errors detected: 'alice', 'cypher', 'createQuery', 'println', 'ResultSet', 'PostContent'.
commands/graph.query.md
[error] 1-1: Spelling errors detected: 'ResultSet', 'println', 'HashMap'.
commands/graph.explain.md
[error] 1-1: Spelling errors detected: 'println'.
commands/graph.profile.md
[error] 1-1: Spelling errors detected: 'imdb', 'forEach', 'ResultSet', 'println'.
🪛 markdownlint-cli2 (0.17.2)
commands/graph.copy.md
12-12: Heading style
Expected: atx; Actual: setext
(MD003, heading-style)
13-13: Trailing punctuation in heading
Punctuation: '.'
(MD026, no-trailing-punctuation)
20-20: Heading style
Expected: atx; Actual: setext
(MD003, heading-style)
commands/graph.config-get.md
18-18: Trailing punctuation in heading
Punctuation: ':'
(MD026, no-trailing-punctuation)
20-20: Multiple spaces after hash on atx style heading
(MD019, no-multiple-space-atx)
21-21: Trailing punctuation in heading
Punctuation: '...'
(MD026, no-trailing-punctuation)
54-54: Multiple headings with the same content
(MD024, no-duplicate-heading)
54-54: Trailing punctuation in heading
Punctuation: ':'
(MD026, no-trailing-punctuation)
56-56: Multiple headings with the same content
(MD024, no-duplicate-heading)
commands/graph.config-set.md
22-22: Trailing punctuation in heading
Punctuation: ':'
(MD026, no-trailing-punctuation)
26-26: Multiple headings with the same content
(MD024, no-duplicate-heading)
64-64: Multiple headings with the same content
(MD024, no-duplicate-heading)
64-64: Trailing punctuation in heading
Punctuation: ':'
(MD026, no-trailing-punctuation)
commands/graph.constraint-create.md
170-170: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3
(MD001, heading-increment)
176-176: Multiple headings with the same content
(MD024, no-duplicate-heading)
201-201: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3
(MD001, heading-increment)
207-207: Trailing punctuation in heading
Punctuation: ' ...'
(MD026, no-trailing-punctuation)
getting_started.md
114-114: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3
(MD001, heading-increment)
139-139: Bare URL used
(MD034, no-bare-urls)
140-140: Bare URL used
(MD034, no-bare-urls)
141-141: Bare URL used
(MD034, no-bare-urls)
157-157: Bare URL used
(MD034, no-bare-urls)
158-158: Bare URL used
(MD034, no-bare-urls)
159-159: Bare URL used
(MD034, no-bare-urls)
175-175: Bare URL used
(MD034, no-bare-urls)
176-176: Bare URL used
(MD034, no-bare-urls)
177-177: Bare URL used
(MD034, no-bare-urls)
249-249: Heading levels should only increment by one level at a time
Expected: h2; Actual: h4
(MD001, heading-increment)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Analyze (actions)
🔇 Additional comments (3)
commands/graph.query.md (1)
70-74
: Parameter object shape may not match client APIMany client libraries expect parameters at the top level (
{ state_name: "Hawaii" }
) rather than nested underparams
. Double-check the actual JavaScript client signature and adjust to avoid runtime errors.commands/graph.config-get.md (1)
38-42
: Double-check the zero-arg Java constructor
new FalkorDB()
assumes the Java client offers a no-arg constructor. If the SDK actually requires host/port or uses a builder, the snippet will not compile. Please verify and update to a working minimal example (e.g.new FalkorDB("localhost", 6379)
).commands/graph.constraint-create.md (1)
138-141
: Clarify Python API surfaceThe snippet uses both
graph.query()
andclient.create_constraint()
. Mixing graph-scoped and client-scoped calls can confuse readers if both exist. Confirm which object actually exposescreate_constraint
and use it consistently.
<<<<<<< HEAD | ||
The GRAPH.COPY command creates a copy of a graph while leaving the source graph fully accessible. | ||
======= | ||
The `GRAPH.COPY` command creates a copy of a graph, while the copy is performed the `src` graph is fully accessible. | ||
>>>>>>> 4ce9d9d (add code examples in different langs) | ||
|
||
Example: | ||
|
||
{% capture shell_0 %} | ||
<<<<<<< HEAD | ||
127.0.0.1:6379> GRAPH.LIST | ||
(empty array) | ||
======= | ||
# Create a graph and copy it | ||
>>>>>>> 4ce9d9d (add code examples in different langs) | ||
127.0.0.1:6379> GRAPH.QUERY A "CREATE (:Account {number: 516637})" | ||
1) 1) "Labels added: 1" | ||
2) "Nodes created: 1" | ||
3) "Properties set: 1" | ||
4) "Cached execution: 0" | ||
5) "Query internal execution time: 0.588084 milliseconds" | ||
127.0.0.1:6379> GRAPH.COPY A Z | ||
<<<<<<< HEAD | ||
"OK" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unresolved merge-conflict markers break the document
<<<<<<< HEAD
, =======
, >>>>>>>
lines are still present. This will render literally on the site and likely break Jekyll processing.
Fix immediately by choosing the intended wording and removing conflict markers altogether:
-<<<<<<< HEAD
-The GRAPH.COPY command creates a copy of a graph while leaving the source graph fully accessible.
-=======
-The `GRAPH.COPY` command creates a copy of a graph, while the copy is performed the `src` graph is fully accessible.
->>>>>>> 4ce9d9d (add code examples in different langs)
+The `GRAPH.COPY` command creates a copy of a graph while leaving the source (`src`) graph fully accessible during the operation.
Committable suggestion skipped: line range outside the PR's diff.
🧰 Tools
🪛 LanguageTool
[grammar] ~13-~13: Use proper spacing conventions.
Context: ...aving the source graph fully accessible. ======= The GRAPH.COPY
command creates a copy ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~15-~15: There might be a mistake here.
Context: ...GRAPH.COPYcommand creates a copy of a graph, while the copy is performed the
src` g...
(QB_NEW_EN_OTHER)
[grammar] ~15-~15: There might be a problem here.
Context: ...eates a copy of a graph, while the copy is performed the src
graph is fully accessible. >>...
(QB_NEW_EN_MERGED_MATCH)
[grammar] ~15-~15: Use proper spacing conventions.
Context: ...med the src
graph is fully accessible. >>>>>>> 4ce9d9d (add code examples in different ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~16-~16: Use proper spacing conventions.
Context: ...d (add code examples in different langs) Example: {% capture shell_0 %} <<<<<<< ...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~18-~18: There might be a problem here.
Context: ...e examples in different langs) Example: {% capture shell_0 %} <<<<<<< HEAD 127.0.0.1:6379> GRAPH.LIST ...
(QB_NEW_EN_MERGED_MATCH)
[grammar] ~23-~23: Use proper spacing conventions.
Context: ...127.0.0.1:6379> GRAPH.LIST (empty array) ======= # Create a graph and copy it >>>>>>> 4ce9d...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~25-~25: There might be a mistake here.
Context: ...rray) ======= # Create a graph and copy it >>>>>>> 4ce9d9d (add code examples in d...
(QB_NEW_EN_OTHER)
🪛 markdownlint-cli2 (0.17.2)
12-12: Heading style
Expected: atx; Actual: setext
(MD003, heading-style)
13-13: Trailing punctuation in heading
Punctuation: '.'
(MD026, no-trailing-punctuation)
20-20: Heading style
Expected: atx; Actual: setext
(MD003, heading-style)
🤖 Prompt for AI Agents
In commands/graph.copy.md between lines 12 and 30, there are unresolved merge
conflict markers (<<<<<<< HEAD, =======, >>>>>>>) that break the document.
Remove all these conflict markers and choose the correct version of the text and
examples to keep, ensuring the final content is clean and coherent without any
leftover conflict syntax.
<<<<<<< HEAD | ||
127.0.0.1:6379> GRAPH.LIST | ||
(empty array) | ||
======= | ||
# Create a graph and copy it | ||
>>>>>>> 4ce9d9d (add code examples in different langs) | ||
127.0.0.1:6379> GRAPH.QUERY A "CREATE (:Account {number: 516637})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Second conflict block inside the shell example
The capture still contains conflict markers which will corrupt the shell tab. Remove markers and pick one narrative.
-<<<<<<< HEAD
-127.0.0.1:6379> GRAPH.LIST
-(empty array)
-=======
-# Create a graph and copy it
->>>>>>> 4ce9d9d (add code examples in different langs)
Committable suggestion skipped: line range outside the PR's diff.
🧰 Tools
🪛 LanguageTool
[grammar] ~23-~23: Use proper spacing conventions.
Context: ...127.0.0.1:6379> GRAPH.LIST (empty array) ======= # Create a graph and copy it >>>>>>> 4ce9d...
(QB_NEW_EN_OTHER_ERROR_IDS_000007)
[grammar] ~25-~25: There might be a mistake here.
Context: ...rray) ======= # Create a graph and copy it >>>>>>> 4ce9d9d (add code examples in d...
(QB_NEW_EN_OTHER)
🤖 Prompt for AI Agents
In commands/graph.copy.md around lines 21 to 27, there are unresolved git
conflict markers (<<<<<<<, =======, >>>>>>>) within the shell example. Remove
all conflict markers and choose a single coherent version of the example to
keep, ensuring the shell commands and narrative flow correctly without
duplication or conflict artifacts.
Summary by CodeRabbit