Skip to main content

Command Palette

Search for a command to run...

Import a collection array to a document using MongoDB

Updated
1 min read
mongoimport --db mydatabasename --collection collectionName --file my_json_file.json

If the collection is an array

mongoimport --db mydatabasename --collection collectionName --file my_json_file.json --jsonArray