I found a lot of examples of how do use $in in the previous mongodb c# driver, but I can not find any examples on how to do it in the 2.0 version.
相关问题
- How to mock IFindFluent interface
- Best way to create a text index on a MongoDB colle
- How to create “trigger” in MongoDB
- System.TimeoutException: A timeout occured after 3
- Dynamic Linq Predicate throws “Unsupported Filter”
相关文章
- Filter only by Date using mongoDB c# driver
- MongoDB Aggregate function in C#
- MongoDB substring product search order by highest
- Storing composite/nested object graph
- How to set MongoDB Change Stream 'OperationTyp
- FindAll in MongoDB .NET Driver 2.0
- Element 'Id' does not match any field or p
- Get and Add/Update multilevel embedded/nested Mong
I was able to figure it out. Here is how to define the Bson document for the Find method:
Or, how about this
Use the
AnyIn
operator for the typed version:Builders<TDocument>.Filter.AnyIn(x => x.Array,searchArray)