Table of Contents

Method Match

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Match<TResult>(IAggregateFluent<TResult>, 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<TResult>

The aggregate.

filter Expression<Func<TResult, bool>>

The filter.

Returns

IAggregateFluent<TResult>

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.