I have this code that pulls multiple elements from the 'fruits' array and it does it for all the 'stores' in the database:
db.stores.update(
{ },
{ $pull: { fruits: { $in: [ "apples", "bananas" ] } } },
{ multi: true }
)
How can I transfer this to C# code using .Net Driver?
UpdateManyAsync method should be used from namespace MongoDB.Driver IMongoCollection but I don't know how to do the specific filtering.
{ $pull: { fruits: { $in: [ "apples", "bananas" ] } } }into appropriateUpdateManyAsyncargument