How can I insert a new field into a MongoCollection using the C# Update api.
What Im trying to do is, I have a HomePhoneId field that I need to insert in every document of the People collection in MOngo.
Please has anyone done this before in C#?
Following code should work:
collection.Update(Query.Null, Update.Set("HomePhoneId", "some value"), UpdateFlags.Multi)
Btw, here is you can look into driver documentation.