Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-183

Add Save() method to dbclientinterface

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • legacy-0.11.0
    • Affects Version/s: None
    • Component/s: API
    • Labels:

      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.

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: