Method Where
Where(Expression<Func<TDocument, bool>>)
Creates a filter based on the expression.
public FilterDefinition<TDocument> Where(Expression<Func<TDocument, bool>> expression)
Parameters
expression
Expression<Func<TDocument, bool>>The expression.
Returns
- FilterDefinition<TDocument>
An expression filter.