diff --git a/spring-data-neo4j/pom.xml b/spring-data-neo4j/pom.xml
index ad36913a8..0e2bd36df 100644
--- a/spring-data-neo4j/pom.xml
+++ b/spring-data-neo4j/pom.xml
@@ -133,6 +133,16 @@
kotlin-reflect
true
+
+ org.jetbrains.kotlinx
+ kotlinx-coroutines-core
+ true
+
+
+ org.jetbrains.kotlinx
+ kotlinx-coroutines-reactor
+ true
+
io.mockk
mockk
diff --git a/spring-data-neo4j/src/main/java/org/neo4j/springframework/data/core/DefaultNeo4jClient.java b/spring-data-neo4j/src/main/java/org/neo4j/springframework/data/core/DefaultNeo4jClient.java
index a1a81dfce..fa19e074e 100644
--- a/spring-data-neo4j/src/main/java/org/neo4j/springframework/data/core/DefaultNeo4jClient.java
+++ b/spring-data-neo4j/src/main/java/org/neo4j/springframework/data/core/DefaultNeo4jClient.java
@@ -148,11 +148,11 @@ class DefaultNeo4jClient implements Neo4jClient {
@Override
public ExecutableQuery toExecutableQuery(PreparedQuery preparedQuery) {
- Neo4jClient.MappingSpec, Collection, T> mappingSpec = this
+ Neo4jClient.MappingSpec mappingSpec = this
.query(preparedQuery.getCypherQuery())
.bindAll(preparedQuery.getParameters())
.fetchAs(preparedQuery.getResultType());
- Neo4jClient.RecordFetchSpec, Collection, T> fetchSpec = preparedQuery
+ Neo4jClient.RecordFetchSpec fetchSpec = preparedQuery
.getOptionalMappingFunction()
.map(f -> mappingSpec.mappedBy(f))
.orElse(mappingSpec);
@@ -249,14 +249,14 @@ class DefaultNeo4jClient implements Neo4jClient {
}
@Override
- public MappingSpec, Collection, T> fetchAs(Class targetClass) {
+ public MappingSpec fetchAs(Class targetClass) {
return new DefaultRecordFetchSpec(this.targetDatabase, this.runnableStatement,
new SingleValueMappingFunction(conversionService, targetClass));
}
@Override
- public RecordFetchSpec>, Collection