From 66bd0f7739b17982dc93f6b44de5b990f40ac264 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Thu, 13 Feb 2025 08:07:12 +0200 Subject: [PATCH] Fix example add mut to node (#88) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40d24f5..59a9b06 100644 --- a/README.md +++ b/README.md @@ -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"); @@ -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