From e9a2f1b8e474e6ceaf33ba0f6b1990dcdfe8a1aa Mon Sep 17 00:00:00 2001 From: Gerrit Meier Date: Tue, 19 Jul 2022 22:22:45 +0200 Subject: [PATCH] Adapt to Cypher changes (group key). --- .../imperative/repositories/PersonRepository.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/data/neo4j/integration/imperative/repositories/PersonRepository.java b/src/test/java/org/springframework/data/neo4j/integration/imperative/repositories/PersonRepository.java index 1891c7650..c03414caf 100644 --- a/src/test/java/org/springframework/data/neo4j/integration/imperative/repositories/PersonRepository.java +++ b/src/test/java/org/springframework/data/neo4j/integration/imperative/repositories/PersonRepository.java @@ -292,8 +292,9 @@ public interface PersonRepository extends Neo4jRepository id(m) " - + "RETURN [{n: n, otherPeople: collect(m), someLongValue: 4711, someDoubles: [21.42, 42.21]}]") + + "WITH n MATCH(m:PersonWithAllConstructor) WHERE id(n) <> id(m)" + + " WITH n, collect(m) as ms " + + "RETURN [{n: n, otherPeople: ms, someLongValue: 4711, someDoubles: [21.42, 42.21]}]") CustomAggregationOfDto findAllDtoProjectionsWithAdditionalPropertiesAsCustomAggregation(@Param("name") String name); @Query("MATCH (n:PersonWithAllConstructor) where n.name = $name return n{.name}")