Skip to content

Commit

Permalink
Update FilterBuilder.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
stashymane committed May 1, 2024
1 parent ed144bd commit c728675
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class FilterBuilder<T> {
infix fun <V> KProperty1<T, V>.all(value: Iterable<V>): Bson = Filters.all(serialName(), value)
fun <V> KProperty1<T, V>.all(vararg value: V): Bson = Filters.all(serialName(), value)

infix fun <V> KProperty1<T, V>.matches(filter: Bson): Bson = Filters.elemMatch(serialName(), filter)
infix fun <V> KProperty1<T, V>.contains(filter: Bson): Bson = Filters.elemMatch(serialName(), filter)

infix fun <V> KProperty1<T, V>.isSizeOf(size: Int): Bson = Filters.size(serialName(), size)

Expand Down

0 comments on commit c728675

Please sign in to comment.