Navigation

Clone DocumentsΒΆ

Important

Cloning documents is not permitted in MongoDB Compass Readonly Edition.

You can insert new documents by cloning the schema and values of an existing document in a collection.

Select the appropriate tab based on whether you are viewing your documents in List, JSON, or Table view:

To clone a document, hover over the desired document and click the Clone button.

../../_images/clone-doc.png

Note

JSON View is available in Compass 1.20.

To clone a document, hover over the desired document and click the Clone button.

../../_images/json-view-clone.png

To clone a document, hover over the desired document and click the Clone button.

../../_images/table-view-clone.png

When you click the Clone button, Compass opens the document insertion dialog with the same schema and values as the cloned document. You can edit any of these fields and values before you insert the new document. To learn more about inserting documents, see Insert Documents.

../../_images/clone-doc2.png