Import dataset in sandbox

I want to import new dataset into MongoDB campass.I dont know how to do that plz help.

Please refer to https://docs.mongodb.com/manual/reference/program/mongoimport/.

Thank you for your email.
It’s very useful to me but I am not able to find how to do it with command line .
Can you help please.

What data you are trying to import?
Please search our forum.Many threads available on command line usage of mongoimport

Hi @PRIYAM_PATEL,

This :point_down:t2:

What are you trying to do ? What data you want to import ?

~ Shubham

I want to import JSON file into mongo db using command line .

As documented at https://docs.mongodb.com/database-tools/mongoimport/, the general syntax is

mongoimport <options> <connection-string> <file>

Many examples are given in the documentation.

1 Like