Skip to content

Fluent Query Building

val activeAdults = manager.query(
QuerySpecification
.withStatement("MATCH (p:Person) RETURN properties(p)")
.transform(Person::class.java)
.filter { it.age >= 18 } // Client-side filtering
.filter { it.email != null }
.map { it.firstName } // Transform to String
.limit(10)
)