Method Match
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Match(FilterDefinition)
Creates a $match stage.
public static PipelineStageDefinition<TInput, TInput> Match<TInput>(FilterDefinition<TInput> filter)Parameters
filter FilterDefinition
The filter.
Returns
PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.
Match(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.