title: How to update a mongodb string field from command line?
body: <p>I am trying to update a field from command line (NOT from mongo shell)</p>
  
  <pre><code>mongo mydb --eval "db.users.update({}, { $set : {  email : "email@email.com" } })"
  </code></pre>
  
  <p>results into</p>
  
  <pre><code>Fri Oct 24 12:23:46.102 JavaScript execution failed: SyntaxError: Unexpected token :
  </code></pre>
  
  <p>Again trying</p>
  
  <pre><code>mongo mydb --eval "db.users.update({}, { $set : {  email : \"email@email.com\" } })"
  </code></pre>
  
  <p>same results</p>
  
  <pre><code>Fri Oct 24 12:24:05.559 JavaScript execution failed: SyntaxError: Unexpected token :
  </code></pre>
  
  <p>Any help for the same ?</p>