Importing database file in mongdb can be a headache if you haven't done it before. The most common way of exporting and importing database using commands mongodump and mongorestore. But what if you have js file to import.
Here is the way to import js file in mongo database.
Solution :
Here is the way to import js file in mongo database.
Solution :
mongo 127.0.0.1/dbname exportedjsfilename.js
No comments:
Post a Comment