From c728675d0c717b8071aa22de69feaa2219fd2c33 Mon Sep 17 00:00:00 2001 From: stashymane Date: Wed, 1 May 2024 08:00:29 +0300 Subject: [PATCH] Update FilterBuilder.kt --- .../kotlin/dev/stashy/mongoservices/builders/FilterBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/jvmMain/kotlin/dev/stashy/mongoservices/builders/FilterBuilder.kt b/services/src/jvmMain/kotlin/dev/stashy/mongoservices/builders/FilterBuilder.kt index 9a724d8..2a780fd 100644 --- a/services/src/jvmMain/kotlin/dev/stashy/mongoservices/builders/FilterBuilder.kt +++ b/services/src/jvmMain/kotlin/dev/stashy/mongoservices/builders/FilterBuilder.kt @@ -69,7 +69,7 @@ class FilterBuilder { infix fun KProperty1.all(value: Iterable): Bson = Filters.all(serialName(), value) fun KProperty1.all(vararg value: V): Bson = Filters.all(serialName(), value) - infix fun KProperty1.matches(filter: Bson): Bson = Filters.elemMatch(serialName(), filter) + infix fun KProperty1.contains(filter: Bson): Bson = Filters.elemMatch(serialName(), filter) infix fun KProperty1.isSizeOf(size: Int): Bson = Filters.size(serialName(), size)