Table of Contents

Method AnyGt

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

Creates a greater than filter for an array field.

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

Parameters

field FieldDefinition<TDocument>

The field.

value TItem

The value.

Returns

FilterDefinition<TDocument>

A greater than filter.

Type Parameters

TItem

The type of the item.

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

Creates a greater than filter for an array field.

public FilterDefinition<TDocument> AnyGt<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 greater than filter.

Type Parameters

TItem

The type of the item.