Skip to content

Commit d3912f0

Browse files
authored
upgrade to cypher-dsl 2023.0.0 (#287)
1 parent 76b1b81 commit d3912f0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>org.neo4j.driver</groupId>
2020
<artifactId>neo4j-java-driver</artifactId>
21-
<version>5.2.0</version>
21+
<version>5.3.1</version>
2222
<scope>test</scope>
2323
</dependency>
2424
<dependency>
@@ -73,7 +73,7 @@
7373
<dependency>
7474
<groupId>org.neo4j</groupId>
7575
<artifactId>neo4j-cypher-dsl</artifactId>
76-
<version>2022.8.1</version>
76+
<version>2023.0.0</version>
7777
</dependency>
7878
<dependency>
7979
<groupId>ch.qos.logback</groupId>

core/src/main/kotlin/org/neo4j/graphql/handler/filter/OptimizedFilterHandler.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class OptimizedFilterHandler(val type: GraphQLFieldsContainer, schemaConfig: Sch
7474
private val matchQueryWithoutWhere: OngoingReading,
7575
private val type: GraphQLFieldsContainer,
7676
private val value: Map<*, *>,
77-
private val parentPassThroughWiths: Collection<Expression>,
77+
private val parentPassThroughWiths: Collection<IdentifiableElement>,
7878
private val variables: Map<String, Any>
7979
) {
8080

@@ -156,7 +156,7 @@ class OptimizedFilterHandler(val type: GraphQLFieldsContainer, schemaConfig: Sch
156156
private fun handleQuantifierPredicates(
157157
query: OrderableOngoingReadingAndWithWithoutWhere,
158158
relFilter: RelationPredicate,
159-
levelPassThroughWiths: LinkedHashSet<Expression>
159+
levelPassThroughWiths: LinkedHashSet<IdentifiableElement>
160160
): OrderableOngoingReadingAndWithWithoutWhere {
161161
val objectField = relFilter.value
162162
val nestedParsedQuery = parseFilter(objectField as Map<*, *>, relFilter.fieldDefinition.type.getInnerFieldsContainer())
@@ -227,7 +227,7 @@ class OptimizedFilterHandler(val type: GraphQLFieldsContainer, schemaConfig: Sch
227227
private fun createAdditionalConditions(
228228
query: ParsedQuery,
229229
relVariable: Node,
230-
passThroughWiths: LinkedHashSet<Expression>,
230+
passThroughWiths: LinkedHashSet<IdentifiableElement>,
231231
filter: List<Pair<SymbolicName, AliasedExpression>>,
232232
whereClauseFactory: WhereClauseFactory
233233
): ConditionBuilder {
@@ -249,7 +249,7 @@ class OptimizedFilterHandler(val type: GraphQLFieldsContainer, schemaConfig: Sch
249249

250250
private fun withClauseWithOptionalDistinct(
251251
exposesWith: ExposesWith,
252-
withs: Collection<Expression>,
252+
withs: Collection<IdentifiableElement>,
253253
useDistinct: Boolean = true) = when {
254254
useDistinct && withs.size == 1 -> exposesWith.withDistinct(*withs.toTypedArray())
255255
else -> exposesWith.with(*withs.toTypedArray())

core/src/main/kotlin/org/neo4j/graphql/handler/projection/ProjectionBase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ open class ProjectionBase(
401401
}
402402

403403
fun cypherDirective(ctxVariable: SymbolicName, fieldDefinition: GraphQLFieldDefinition, arguments: Map<String, Any>, cypherDirective: CypherDirective, thisValue: SymbolicName?): ResultStatement {
404-
val args = sortedMapOf<String, Expression>()
404+
val args = sortedMapOf<String, IdentifiableElement>()
405405
if (thisValue != null) args["this"] = thisValue.`as`("this")
406406
arguments
407407
.filterNot { (name, _) -> SPECIAL_FIELDS.contains(name) }

0 commit comments

Comments
 (0)