"deep copy" for Document

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Can you please enhance API to provide `deep copy` for a Document object.

      It was possible in version 2.x of MongoDB Java driver via this simple hack (Scala code):

      dbo.asInstanceOf[BasicDBObject].copy.asInstanceOf[DBObject]

      I'm using it in "Subset" library: https://github.com/osinka/subset2/blob/master/src/main/scala/DBO.scala#L97

            Assignee:
            Unassigned
            Reporter:
            Alexander Azarov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: