Skip to content

Commit e9a2f1b

Browse files
committed
Adapt to Cypher changes (group key).
1 parent 077090c commit e9a2f1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/org/springframework/data/neo4j/integration/imperative/repositories/PersonRepository.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,9 @@ public DtoPersonProjectionContainingAdditionalFields getBySomeLongValue(long val
292292

293293
@Query(""
294294
+ "MATCH (n:PersonWithAllConstructor) where n.name = $name "
295-
+ "WITH n MATCH(m:PersonWithAllConstructor) WHERE id(n) <> id(m) "
296-
+ "RETURN [{n: n, otherPeople: collect(m), someLongValue: 4711, someDoubles: [21.42, 42.21]}]")
295+
+ "WITH n MATCH(m:PersonWithAllConstructor) WHERE id(n) <> id(m)" +
296+
" WITH n, collect(m) as ms "
297+
+ "RETURN [{n: n, otherPeople: ms, someLongValue: 4711, someDoubles: [21.42, 42.21]}]")
297298
CustomAggregationOfDto findAllDtoProjectionsWithAdditionalPropertiesAsCustomAggregation(@Param("name") String name);
298299

299300
@Query("MATCH (n:PersonWithAllConstructor) where n.name = $name return n{.name}")

0 commit comments

Comments
 (0)