I am new to mongodb and want to know about importing a json file from one server to another. I tried the following command mongoimport -d tes
mongodb
json
mongoimport -d tes
Windows Batch version:
@echo off for %%f in (*.json) do ( "mongoimport.exe" --jsonArray --db databasename --collection collectioname --file %%~nf.json )