Adapt to Cypher changes (group key).

This commit is contained in:
Gerrit Meier
2022-07-19 22:22:45 +02:00
parent 077090c67b
commit e9a2f1b8e4

View File

@@ -292,8 +292,9 @@ public interface PersonRepository extends Neo4jRepository<PersonWithAllConstruct
@Query(""
+ "MATCH (n:PersonWithAllConstructor) where n.name = $name "
+ "WITH n MATCH(m:PersonWithAllConstructor) WHERE id(n) <> 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}")