-
<USERNAME> and <PASSWORD> are the username and password of the database user and refers to the cluster that holds the database.
-
Replace <DATABASE> and <COLLECTION> with the name of the database and the collection, into which you want to import the JSON file and <FILENAME> with the location of the JSON file.
-
You can even import various other file formats such as TSV or CSV using mongoimport. Consult MongoDB’s official documentation on mongoimport for more information.