Method Match

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Match(IAggregateFluent, Expression<Func<TResult, bool>>)

Appends a match stage to the pipeline.

public static IAggregateFluent<TResult> Match<TResult>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, bool>> filter)

Parameters

aggregate IAggregateFluent

The aggregate.

filter Expression<Func<TResult, bool>>

The filter.

Returns

IAggregateFluent

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.