I want to import new dataset into MongoDB campass.I dont know how to do that plz help.
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
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