Method Match
Match<TInput>(FilterDefinition<TInput>)
Creates a $match stage.
public static PipelineStageDefinition<TInput, TInput> Match<TInput>(FilterDefinition<TInput> filter)Parameters
- filterFilterDefinition<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
- filterExpression<Func<TInput, bool>>
- The filter. 
Returns
- PipelineStageDefinition<TInput, TInput>
- The stage. 
Type Parameters
- TInput
- The type of the input documents.