
mongoimport
List of commands for mongoimport:
-
mongoimport:help mongoimport: Display help.$ mongoimport --helptry on your machineexplain this command
-
mongoimport:tldr:596dd mongoimport: Import a JSON file using a specific mode and a query to match existing documents.$ mongoimport --file=${filename-json} --mode=${select} --upsertFields="${field1,field2,---}"try on your machineexplain this command
-
mongoimport:tldr:996b7 mongoimport: Import a CSV file, using the first line of the file to determine field names.$ mongoimport --type=${csv} --file=${filename-csv} --db=${database_name} --collection=${collection_name}try on your machineexplain this command
-
mongoimport:tldr:ba410 mongoimport: Import a JSON file into a specific collection.$ mongoimport --file=${filename-json} --uri=${mongodb_uri} --collection=${collection_name}try on your machineexplain this command
-
mongoimport:tldr:c3fb2 mongoimport: Import a CSV file, reading field names from a separate CSV file and ignoring fields with empty values.$ mongoimport --type=${csv} --file=${filename-csv} --fieldFile=${path-to-field_file-csv} --ignoreBlankstry on your machineexplain this command
-
mongoimport:tldr:e371f mongoimport: Import a JSON array, using each element as a separate document.$ mongoimport --jsonArray --file=${filename-json}try on your machineexplain this command