title: How to use $push update modifier in MongoDB and C#, when updating an array in a document
body: <p>I've run the following code in mongo shell:</p>
  
  <pre><code>db.unicorns.insert({name:  'Dunx',  loves:  ['grape',  'watermelon']});
  </code></pre>
  
  <p>and now I've something like this in my MongoDB collection:</p>
  
  <pre><code>{name: 'Dunx', loves: ['grape', 'watermelon']}
  </code></pre>
  
  <p>As you can see <code>loves</code> is an array.</p>
  
  <p><strong>Question</strong></p>
  
  <p>How can I write C# code, with the official C# driver, that does the following:</p>
  
  <pre><code>db.unicorns.update({name: 'Aurora'}, {$push: {loves: 'sugar'}})
  </code></pre>
  
  <p>The above code runs just fine in mongo shell.</p>