eq

fun eq(field: String, value: Any): Condition

Creates an equality condition. Matches documents where the specified field equals the given value.

Return

A new equality condition.

Parameters

field

The field name to check.

value

The value to compare against.