all

fun all(): Condition

Returns the ALL condition that matches everything.

Return

The ALL condition.


fun all(field: String, value: List<Any>): Condition

Creates an all-in condition for array fields. Matches documents where the specified array field contains all of the given values.

Return

A new all-in condition.

Parameters

field

The array field name to check.

value

The list of values that must all be present in the array.