Add Save() method to dbclientinterface

XMLWordPrintableJSON

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

      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 Brock (Inactive)
            Reporter:
            Tyler Brock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: