Skip to content

Commit c187270

Browse files
committed
Formatting adjustements in the API
1 parent 7711356 commit c187270

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,9 @@ The `populate()` function handles session and transaction management automatical
410410
```kotlin
411411
// ✅ Recommended for simple single-transaction operations
412412
val count = neo4j.read { tx ->
413-
tx.run("MATCH (p:Person) RETURN count(p) as count")
414-
.single()["count"].asInt()
413+
tx.run(
414+
"MATCH (p:Person) RETURN count(p) as count"
415+
).single()["count"].asInt()
415416
}
416417
```
417418

@@ -424,8 +425,9 @@ neo4j.withSession { session ->
424425
tx.run("CREATE (p:Person {name: 'Alice'})")
425426
}
426427
val count = session.executeRead { tx ->
427-
tx.run("MATCH (p:Person) RETURN count(p) as count")
428-
.single()["count"].asInt()
428+
tx.run(
429+
"MATCH (p:Person) RETURN count(p) as count"
430+
).single()["count"].asInt()
429431
}
430432
println("Created and counted: $count")
431433
}

0 commit comments

Comments
 (0)