Filter records where a column’s value is less than or equal to the specified value. The $lte method is used to retrieve entries with values that are below or equal to a given threshold, making it ideal for inclusive range-based queries.
await Member.$search({ $where: { age: { $lte: 16 } } });
Last updated 1 year ago