{ let mut result = graph.execute( query("CREATE (p:Person { name: 'Oliver Stone' })-[r:WORKS_AT {as: 'Engineer'}]->(neo) RETURN r") ).await.unwrap(); let row = result.next().await.unwrap().unwrap(); let relation: Relation = row.get("r").unwrap(); assert!(relation.id() > -1); assert!(relation.start_node_id() > -1); assert!(relation.end_node_id() > -1); assert_eq!(relation.typ(), "WORKS_AT"); assert_eq!(relation.keys(), vec!["as"]); assert_eq!(relation.get::("as").unwrap(), "Engineer"); }