thisWeek

fun thisWeek(field: String, datePattern: Any? = null): Condition

Creates a this-week condition for date fields. Matches documents where the specified date field falls within the current week's date range.

Return

A new this-week condition.

Parameters

field

The date field name to check.

datePattern

Optional date pattern for parsing/formatting. Can be String or DateTimeFormatter.