title: uncaught exception: SyntaxError: expected property name, got '{' :
body: <p>I just wrote this code (Mongodb):</p>
  <pre><code>db.items.update( {tags:&quot;consola&quot;, precio:{$gte:100}}, {$set:{estado:&quot;vendido&quot;, {$addToSet:{contraoferta:{email: &quot;jpepito@gmail.com&quot;, psw: &quot;jpepito&quot;, oferta: 800, fecha:new Date(&quot;2020, 3, 9&quot;)}}}}})
  </code></pre>
  <p>but the console just gave me this error:</p>
  <blockquote>
  <p>uncaught exception: SyntaxError: expected property name, got '{' :
  @(shell):1:79</p>
  </blockquote>
  <p>Look and look but can't find the mistake.</p>