Hi, I have changed dependency as below and facing some projection issues since;
<dependency>
<groupId>org.neo4j.springframework.data</groupId>
<artifactId>spring-data-neo4j-rx-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
I am using reactive repository with cypher query;
public interface ProductionGenreRepository extends ReactiveNeo4jRepository<ProductionGenre, Long> {
@Query("MATCH (n:ProductionGenre)-[t:TRANSLATED_IN]->(l:Locale {name: $locale}) "
+ "RETURN n{id: ID(n), name: t.text} "
+ "ORDER BY t.text")
Flux<GenreResponse> findByLocale(Locale locale);
}
DTO;
@Data
@AllArgsConstructor
public class GenreResponse {
private final Long id;
private final String name;
}
DefaultNeo4jConverter converts first record but it throws exception on second record. Return type is Flux but I have this error;
Does anyone encounter this kind of issue?
Thanks in advance,