ne

abstract fun ne(value: T)(source)

Matches documents where the value of a field does not equal the value.

The result includes documents which do not contain the specified field.

Example

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

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

External resources

See also

Shorthand.