Method AnyIn
AnyIn<TItem>(FieldDefinition<TDocument>, IEnumerable<TItem>)
Creates an in filter for an array field.
public FilterDefinition<TDocument> AnyIn<TItem>(FieldDefinition<TDocument> field, IEnumerable<TItem> values)
Parameters
field
FieldDefinition<TDocument>The field.
values
IEnumerable<TItem>The values.
Returns
- FilterDefinition<TDocument>
An in filter.
Type Parameters
TItem
The type of the item.
AnyIn<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>)
Creates an in filter for an array field.
public FilterDefinition<TDocument> AnyIn<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> field, IEnumerable<TItem> values)
Parameters
field
Expression<Func<TDocument, IEnumerable<TItem>>>The field.
values
IEnumerable<TItem>The values.
Returns
- FilterDefinition<TDocument>
An in filter.
Type Parameters
TItem
The type of the item.