Table of Contents

Method Where

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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.