lastWeek
Creates a last-week condition for date fields. Matches documents where the specified date field falls within last week's date range.
Return
A new last-week condition.
Parameters
field
The date field name to check.
datePattern
Optional date pattern for parsing/formatting. Can be String or DateTimeFormatter.