title: Inserting data in mongo collection through cmd command
body: <p>When I am inserting data in MongoDb database using cmd command</p>
  <p>mongo mongodb://localhost:27017/DummyDatabase --eval &quot;db.Dummy.insert({a:12345,b:asd})&quot;</p>
  <p>I am getting following error -</p>
  <blockquote>
  <p>MongoDB shell version v4.2.0</p>
  <p>connecting to: mongodb://localhost:27017/Ontologies?compressors=disabled&amp;gssapiServiceName=mongodb</p>
  <p>Implicit session: session { &quot;id&quot; : UUID(&quot;6da84ed8-8bf0-4a6c-9d38-7c70cbfc8c7e&quot;) }</p>
  <p>MongoDB server version: 4.2.0
  2019-11-07T13:49:15.316+0530 E  QUERY    [js] uncaught exception: ReferenceError: asd is not defined :
  @(shell eval):1:38
  2019-11-07T13:49:15.320+0530 E  -        [main] exiting with code -4</p>
  </blockquote>
  <p>But when I give this command  -</p>
  <p>mongo mongodb://localhost:27017/DummyDatabase --eval &quot;db.Dummy.insert({a:12345})&quot;</p>
  <p>This works, what can be the issue?</p>