use of org.neo4j.driver.v1.Transaction in project neo4j by neo4j.
the class BoltCausalClusteringIT method executeReadQuery.
private void executeReadQuery(String bookmark, Session session) {
try (Transaction tx = session.beginTransaction(bookmark)) {
Record record = tx.run("MATCH (n:Person) RETURN COUNT(*) AS count").next();
assertEquals(1, record.get("count").asInt());
}
}
Aggregations