Hi,
Not sure which ways you were trying to update using .update() and .add(), but .update() is one way to get your the outcome you are looking for.
You could use an update command directly:
var query = new QueryDocument {
{ "geolocationPresent", "Yes" }
};
var update = new UpdateDocument {
{ "$set", new BsonDocument("geolocationPresent", "Checked") }
};
collection.Update(query, update);
or by using a Query builder (available when using MongoDB.Driver.Builders)
var query = Query.EQ("geolocationPresent", "Yes");
var update = Update.Set("geolocationPresent", "Checked");
collection.update(query, update);
Both of the above snippets will set all of the documents with {geolocationPresent : "Yes"} to {geolocationPresent : "Checked"} without changing the values of other fields in those documents (or removing them).
Let me know if this helps,
André