@Test
void gh188() {
final Node r = node("Resume").named("r");
final Node u = node("User").named("u");
Statement s = match(r.relationshipFrom(u, "HAS"))
.returning(Functions.countDistinct(r.getRequiredSymbolicName()).as("r"))
.build();
assertThat(cypherRenderer.render(s))
.isEqualTo("MATCH (r:Resume)<-[:HAS]-(u:User) RETURN COUNT(DISTINCT r) as r");
}
Please, could you add the ability to count without duplicate (https://neo4j.com/docs/cypher-manual/current/functions/aggregating/#_counting_with_and_without_duplicates) to the
org.neo4j.springframework.data.core.cypher.Functions
?Unit Test Proposal:
Thanks!