@cbnsndwch/zero-sources

MatchStage interface

Home > @cbnsndwch/zero-contracts > MatchStage

MatchStage interface

Filter stage - equivalent to MongoDB's $match operator.

Filters documents based on the specified criteria. Documents that don't match the filter are excluded from further processing.

Signature:

interface MatchStage<T = Dict>

Example

{ $match: { bundle: 'ENTERPRISE', isActive: true } }
{ $match: { 'members.role': { $in: ['admin', 'owner'] } } }

Properties

Property

Modifiers

Type

Description

$match

Filter<T>

How was this page?