and static method

LogicalQueryOperator and(
  1. List<Map<String, dynamic>> values
)

Implementation

static LogicalQueryOperator and(List<Map<String, dynamic>> values) {
  LogicalQueryOperator op = LogicalQueryOperator();

  // convert QuerySelector to map, too
  values.forEach((element) {
    element.forEach((key, value) {
      if (value is QueryOperator) {
        element[key] = value.values;
      }
    });
  });
  op._map["\$and"] = values;

  return op;
}