or static method

Map<String, Object?> or(
  1. List<Object?> list
)

Constructs a logical OR query.

Takes a list of conditions and joins them using the \$or operator.

Example:

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

Implementation

static Map<String, Object?> or(List<Object?> list) {
  return {
    '\$or': list,
  };
}