data set is not imported from the terminal and getting an error show below
test> mongoimport –db new_Books_DB –collection New_Book_Data –file books.json;
Uncaught:
SyntaxError: Missing semicolon. (1:14)
1 | mongoimport –db new_Books_DB –collection New_Book_Data –file books.json;
| ^
2 |
test>
I am trying to import the json file present in my download directory where as i am changing my directory first and landed on the same directory where my json file is present and the command
mongoimport --db new_Books_DB --collection New_Book_Data --file books.json;
But not import the json file.