hasIn static method

Map<String, Object?> hasIn(
  1. Object? value
)

Matches documents where the field's value is in the provided list.

Example:

var query = DQ.hasIn(['value1', 'value2']); // { '\$in': [ 'value1', 'value2' ] }

Implementation

static Map<String, Object?> hasIn(Object? value) {
  return {
    '\$in': value,
  };
}