I have the mongodb installed and i have saved the people json in my local directory under C:\Users\preddyd\M001\people
Now, I go to cmd prompt and cd to the above path
I ran mongo and it runs ok
i am trying to use load(“people.json”) and it fails as below
MongoDB Enterprise > load(“people.json”)
2019-11-01T03:48:51.728-0800 E QUERY [js] SyntaxError: unexpected token: ‘:’ :
@(shell):1:1
2019-11-01T03:48:51.734-0800 E QUERY [js] Error: error loading js file: people.json :
I am also trying the import command but i get the below error
MongoDB Enterprise > mongoimport -help
2019-11-01T03:49:16.722-0800 E QUERY [js] ReferenceError: mongoimport is not defined :
@(shell):1:1