Why insertMany automatically insert data into test database?

Hi, can anybody help me with this situation? Tried to reconnect to the sandbox and reinsert the records but they appeared in the text database. What went wrong with my query?

48%20PM

Hi @Lynn_48622,

I believe you tried to insert the data from the mongo shell and you were connected to the test database.

Let’s say you want to insert data into the video database then do the following :

 use video
db.moviesScratch.insertMany([...])

Hope it helps!

If you have any other issue then please feel free to get back to us.

Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Support Engineer

1 Like