-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: API
The method takes a BSONObject and does one of two things:
If the object does not have an _id field it inserts the object.
If the object does have an _id field it performs an upsert where the query doc is simply {_id: <the id from the BSONObject>} and the update doc is the provided BSONObject.