Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-927

"deep copy" for Document

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      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 Unassigned
            Reporter:
            alaz Alexander Azarov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: