Method Match
Match<TInput>(FilterDefinition<TInput>)
Creates a $match stage.
public static PipelineStageDefinition<TInput, TInput> Match<TInput>(FilterDefinition<TInput> filter)
Parameters
filter
FilterDefinition<TInput>The filter.
Returns
- PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.
Match<TInput>(Expression<Func<TInput, bool>>)
Creates a $match stage.
public static PipelineStageDefinition<TInput, TInput> Match<TInput>(Expression<Func<TInput, bool>> filter)
Parameters
filter
Expression<Func<TInput, bool>>The filter.
Returns
- PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.