Skip to content

Commit

Permalink
fix var used
Browse files Browse the repository at this point in the history
  • Loading branch information
jifalops committed Aug 24, 2023
1 parent 55aaa59 commit 59e17c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/include/exec/create_and_read_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
let person = Person::new("1234", "Alice");

// CREATE (n:Person { id: $id, name: $name })
//
// $id: "1234"
// $name: "Alice"
graph.run(person.create()).await.unwrap();
Expand All @@ -16,6 +17,7 @@
let id = PersonId::new("1234");

// MATCH (n:Person { id: $id }) RETURN n
//
// $id: "1234"
let mut stream = graph.execute(id.read()).await.unwrap();

Expand Down
2 changes: 1 addition & 1 deletion lib/include/exec/create_and_read_relation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// $s_name: "Alice"
// $e_name: "Bob"
let query = id.read_between(&alice.into(), &bob.into());
let mut stream = graph.execute(id.read()).await.unwrap();
let mut stream = graph.execute(query).await.unwrap();

let row = stream.next().await.unwrap().unwrap();
let relation: neo4rs::UnboundedRelation = row.get("r").unwrap();
Expand Down

0 comments on commit 59e17c6

Please sign in to comment.