Method Where

| MongoDB CSharp Driver API Reference (original) (raw)

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

An expression filter.