Description
Hello, when I enable the feature [unstable-v1], I am unable to parse tasks with the DATETIME type.
Here is my project code.
Could you please tell me what I need to modify to make the tests pass? Thank you.
[package]
name = "rsdemo"
version = "0.1.0"
edition = "2021"
[dependencies]
neo4rs = { path = "../neo4rs/lib", features = ["unstable-v1"] }
tokio = { version = "1", features = ["full"] }
futures = "0.3.31"
use futures::stream::{ StreamExt, TryStreamExt};
use neo4rs::{query, ConfigBuilder, Graph, Node};
#[tokio::main]
async fn main() {
let neo4j_uri = "bolt://127.0.0.1:7687";
let neo4j_username = "neo4j";
let neo4j_password = "12345678";
let graph = Graph::connect(
ConfigBuilder::new()
.uri(neo4j_uri)
.user(neo4j_username)
.password(neo4j_password)
.max_connections(420)
.build()
.unwrap(),
)
.await
.unwrap();
work_datetime(1, graph.clone()).await;
}
async fn work_datetime(i: u64, graph: Graph) -> () {
graph.run(query("CREATE (:A {p1:DATETIME('2024-12-31T08:10:35')})")).await.unwrap();
let graph = graph.clone();
let mut result = graph.execute(
query("MATCH (p:A) RETURN p")
).await.unwrap();
while let Ok(Some(row)) = result.next().await {
let mut node: Node = row.get("p").unwrap();
println!("{:?}", node);
}
}
the error is :
thread 'main' panicked at neo4rs\lib\src\bolt\structs\mod.rs:329:51:
called `Result::unwrap()` on an `Err` value: DeserializationError("missing field `nanoseconds`")
Metadata
Metadata
Assignees
Labels
No labels