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
namestringThe name of the element to test.
queryIMongoQueryThe query to match elements with.
Returns
- IMongoQuery
An IMongoQuery.