Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
0.90.0
-
None
-
None
-
Ubuntu 12, Mongo 2.4.8
Description
Follow the semantics on http://docs.mongodb.org/manual/reference/method/db.collection.save/
Save should upsert the document if it already has an id (currently uses MONGOC_UPDATE_NONE instead of MONGOC_UPDATE_UPSERT)
Also save should replace the document entirely and not $set fields
I attached an untested version of mongoc_collection_save that I think should work.