Table of Contents

Method AnyLt

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

AnyLt<TItem>(FieldDefinition<TDocument>, TItem)

Creates a less than filter for an array field.

public FilterDefinition<TDocument> AnyLt<TItem>(FieldDefinition<TDocument> field, TItem value)

Parameters

field FieldDefinition<TDocument>

The field.

value TItem

The value.

Returns

FilterDefinition<TDocument>

A less than filter.

Type Parameters

TItem

The type of the item.

AnyLt<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)

Creates a less than filter for an array field.

public FilterDefinition<TDocument> AnyLt<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> field, TItem value)

Parameters

field Expression<Func<TDocument, IEnumerable<TItem>>>

The field.

value TItem

The value.

Returns

FilterDefinition<TDocument>

A less than filter.

Type Parameters

TItem

The type of the item.