eq

abstract fun eq(value: T)(source)

Matches documents where the value of a field equals the value.

Example

class User(
val name: String?,
val age: Int,
)

collection.find {
User::name {
eq("foo")
}
}

External resources

See also

Shorthand.