MongoDB request DSL • opensavvy.ktmongo.dsl.query • FilterQuery • isOneOf
isOneOf¶
Selects documents for which this field is equal to one of the given values
.
Example¶
class User(
val name: String,
val age: Int?,
)
collection.find {
User::name.isOneOf(listOf("Alfred", "Arthur"))
}
External resources¶
See also¶
Selects documents for which this field is equal to one of the given values
.
Example¶
class User(
val name: String,
val age: Int?,
)
collection.find {
User::name.isOneOf(listOf("Alfred", "Arthur"))
}
External resources¶
See also¶
Selects documents for which this field is equal to one of the given values
.
Example¶
class User(
val name: String,
val age: Int?,
)
collection.find {
User::name.isOneOf("Alfred", "Arthur")
}