Skip to content

Chainable Transformations

val fullNames: List<String> = manager.query(
QuerySpecification
.withStatement("MATCH (p:Person) RETURN properties(p)")
.transform(Person::class.java) // Map to Person
.filter { it.age > 25 } // Filter
.map { "${it.firstName} ${it.lastName}" } // Transform to String
)