whereIn method

CoffeeRequestGet<T> whereIn(
  1. dynamic type,
  2. List values
)

Creates a filter for inclusion searches.

type: The property to filter by, either a String or a Function. values: The list of values that the property should be within.

Returns a CoffeeRequestGet<T> configured for inclusion searches.

Usage Example

whereIn('id', [1, 2, 3])
whereIn((Model model) => model.id, [4, 5, 6])

Implementation

CoffeeRequestGet<T> whereIn(dynamic type, List<dynamic> values) {
  _queryParameters.add(cqf.whereIn(type, values));
  return this;
}