livioribeiro/rusted-cypher

No method 'query' found

dkoch144 opened this issue · 1 comments

I have this code from the examples

let graph = GraphClient::connect("http://neo4j:neo4j@localhost:7474/db/data");
let mut query = graph.query();

and I'm getting this error

error[E0599]: no method named query found for type std::result::Result<rusted_cypher::GraphClient, rusted_cypher::GraphError> in the current scope
--> src/main.rs:3342:27
|
3342 | let mut query = graph.query();
| ^^^^^

I just unwrapped the result of the first line and it compiles.