From 59a708c0a93617b83aa30327e719b7086a95a261 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Wed, 12 Feb 2025 23:37:40 +0200 Subject: [PATCH] Fix example add mut to node --- 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