Which ever command I type in Mongo Shell it gives me this error
[js] SyntaxError: missing ; before statement @(shell):1:8
When I open MongoDB shell it shows this
MongoDB shell version v4.0.5
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“401e223d-0a1e-4838-aaf7-c1e8e9246ae5”) }
MongoDB server version: 4.0.5
Server has startup warnings:
2019-01-15T21:49:12.245-0800 I CONTROL [initandlisten]
2019-01-15T21:49:12.245-0800 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-01-15T21:49:12.245-0800 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2019-01-15T21:49:12.245-0800 I CONTROL [initandlisten]
Does anyone has the same problem?