Skip to content

Commit

Permalink
Fix example add mut to node (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland authored Feb 13, 2025
1 parent 10b81a4 commit 66bd0f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let client = FalkorClientBuilder::new()
let mut graph = client.select_graph("social");

// Create 100 nodes and return a handful
let nodes = graph.query("UNWIND range(0, 100) AS i CREATE (n { v:1 }) RETURN n LIMIT 10")
let mut nodes = graph.query("UNWIND range(0, 100) AS i CREATE (n { v:1 }) RETURN n LIMIT 10")
.with_timeout(5000)
.execute()
.expect("Failed executing query");
Expand Down Expand Up @@ -95,7 +95,7 @@ let client = FalkorClientBuilder::new_async()
let mut graph = client.select_graph("social");

// Create 100 nodes and return a handful
let nodes = graph.query("UNWIND range(0, 100) AS i CREATE (n { v:1 }) RETURN n LIMIT 10")
let mut nodes = graph.query("UNWIND range(0, 100) AS i CREATE (n { v:1 }) RETURN n LIMIT 10")
.with_timeout(5000)
.execute()
.await
Expand Down

0 comments on commit 66bd0f7

Please sign in to comment.