Import documents
To import data into a database, right-click on the database name and select "Import documents" in the context menu. You can import single documents or entire collections into the database here. This can be done by dragging & dropping using files or by direct text input as shown in the figure below. In both cases the formatting of the data has to be in a correct form, otherwise the import will fail.
File-Import
With the file import the imported data comes from a JSON file. Choose "import documents from file" in the import dialogue to select this kind of import.
The documents in the JSON file have to be formatted according to the mongoexport function of MongoDB. This means that a file created by mongoexport can be imported in Mongo Management Studio.
Is the import of the data based on the database level, the name of the destination collection has to be specified. The import mode determines whether to add documents to the existing data or whether the collection should be cleared prior to importing. The "Drop duplicate keys" option determines the behavior of imported documents whose id field is equal to the id field of already existing documents. If this option is enabled, those documents are ignored and the import is continued, otherwise the import operation is aborted. The files can be imported either by dragging and dropping it into the appropriate field or by using the "Select Files" button and select the file from the file system. Click on the "Import"-button to start the import.
Text-Import
For the text-based import of documents choose the option "Import documents from textbox". The data you put into the text box has to be valid JSON data, which is located within an array. The remaining options correspond to the File Import.
The import process may take some time. It is therefore recommended to use mongoimport for larger amounts of data.