path/path.rs
1use gremlin_client::{GremlinClient, Path};
2
3fn main() -> Result<(), Box<dyn std::error::Error>> {
4 let client = GremlinClient::connect("localhost")?;
5
6 let results = client
7 .execute("g.V(param).outE().inV().path()", &[("param", &1)])?
8 .filter_map(Result::ok)
9 .map(|f| f.take::<Path>())
10 .collect::<Result<Vec<Path>, _>>()?;
11
12 println!("{:#?}", results);
13
14 Ok(())
15}