endsWith

fun endsWith(field: String, value: String, ignoreCase: Boolean = false): Condition

Creates an ends-with condition for string fields. Matches documents where the specified field ends with the given suffix.

Return

A new ends-with condition.

Parameters

field

The field name to check.

value

The suffix to match.

ignoreCase

Whether to perform case-insensitive matching. Defaults to false.