Custom Search

Monday, May 6, 2019

How to run mongoimport of json file

wget http://media.mongodb.org/zips.json
mongoimport --db mediadb --collection media --file zips.json
mongo
use mediadb
show collections
db.media.find().limit(2);

No comments:

Post a Comment