where method

Pipeline where(
  1. BooleanExpression condition, {
  2. Map<String, Object?>? rawOptions,
})

Keeps only the inputs for which condition holds.

Implementation

Pipeline where(
  BooleanExpression condition, {
  Map<String, Object?>? rawOptions,
}) {
  return _append(
    Stage(
      'where',
      args: <pb.Value Function(PipelineEncoder)>[condition.toProto],
      rawOptions: rawOptions,
    ),
  );
}