Method ElemMatch
ElemMatch(string, IMongoQuery)
Tests that at least one item of the named array element matches a query (see $elemMatch).
public static IMongoQuery ElemMatch(string name, IMongoQuery query)
Parameters
name
stringThe name of the element to test.
query
IMongoQueryThe query to match elements with.
Returns
- IMongoQuery
An IMongoQuery.