title: create field in mongodb by $gte and condition $cond
body: <p>I need to create a field on based on a condition in collection called locales:</p>
  <p>if a place has more than 10 tables (&quot;mesas_es&quot;=10) the new field should be true, if the place has less than 10 tables (&quot;mesas_es&quot;=9)the new field should be false, the name of the new field is inspeccionar so far this is what I have get</p>
  <pre><code>db.locales.update({$and: [{desc_barrio_local: &quot;GUINDALERA&quot;},{desc_distrito_local:&quot;SALAMANCA&quot;},{desc_ubicacion_terraza: &quot;Acera&quot;}]},{$set: {inspeccionar: {$cond: {if: {$gte: [&quot;mesas_es&quot;, 10]}, then: true, else: false}}}},{multi:true})
  </code></pre>
  <p>so far I only get a nested array containing the conditions</p>
  <p>inspeccionar: Object
  $cond: Object
  if
  :
  Object
  $gte
  :
  Array
  then
  :
  true
  else
  :
  false</p>