@@ -74,7 +74,7 @@ class OptimizedFilterHandler(val type: GraphQLFieldsContainer, schemaConfig: Sch
74
74
private val matchQueryWithoutWhere : OngoingReading ,
75
75
private val type : GraphQLFieldsContainer ,
76
76
private val value : Map <* , * >,
77
- private val parentPassThroughWiths : Collection <Expression >,
77
+ private val parentPassThroughWiths : Collection <IdentifiableElement >,
78
78
private val variables : Map <String , Any >
79
79
) {
80
80
@@ -156,7 +156,7 @@ class OptimizedFilterHandler(val type: GraphQLFieldsContainer, schemaConfig: Sch
156
156
private fun handleQuantifierPredicates (
157
157
query : OrderableOngoingReadingAndWithWithoutWhere ,
158
158
relFilter : RelationPredicate ,
159
- levelPassThroughWiths : LinkedHashSet <Expression >
159
+ levelPassThroughWiths : LinkedHashSet <IdentifiableElement >
160
160
): OrderableOngoingReadingAndWithWithoutWhere {
161
161
val objectField = relFilter.value
162
162
val nestedParsedQuery = parseFilter(objectField as Map <* , * >, relFilter.fieldDefinition.type.getInnerFieldsContainer())
@@ -227,7 +227,7 @@ class OptimizedFilterHandler(val type: GraphQLFieldsContainer, schemaConfig: Sch
227
227
private fun createAdditionalConditions (
228
228
query : ParsedQuery ,
229
229
relVariable : Node ,
230
- passThroughWiths : LinkedHashSet <Expression >,
230
+ passThroughWiths : LinkedHashSet <IdentifiableElement >,
231
231
filter : List <Pair <SymbolicName , AliasedExpression >>,
232
232
whereClauseFactory : WhereClauseFactory
233
233
): ConditionBuilder {
@@ -249,7 +249,7 @@ class OptimizedFilterHandler(val type: GraphQLFieldsContainer, schemaConfig: Sch
249
249
250
250
private fun withClauseWithOptionalDistinct (
251
251
exposesWith : ExposesWith ,
252
- withs : Collection <Expression >,
252
+ withs : Collection <IdentifiableElement >,
253
253
useDistinct : Boolean = true) = when {
254
254
useDistinct && withs.size == 1 -> exposesWith.withDistinct(* withs.toTypedArray())
255
255
else -> exposesWith.with (* withs.toTypedArray())
0 commit comments