or static method

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

Implementation

static LogicalQueryOperator or(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["\$or"] = values;

  return op;
}