Loading Data into Your Sandbox Cluster

  1. Download the zip folder and extract it on your home directory.

  2. Move the command line to the same place where your .js file is located.

  3. Connect to your sandbox cluster in the mongo shell.

  4. Now load the file from the mongo shell:

load(β€œfile.js”)

5. Now you can show dbs and one more db should appear.

To show the data of the database imported write:

db.DBNAME.find().pretty()

Last updated