title: How can I do a find and replace all in MongoDB?
body: <p>For example suppose I insert data as follows</p>
  
  <pre><code>doc1 = [{url: 'http://domain.com/pic1.jpg'}, {url: 'http://domain.com/pic2.jpg'}]
  doc2 = [{url: 'http://domain.com/pic3.jpg'}, {url: 'http://domain.com/pic4.jpg'}]
  db.picture.insert(doc1)
  db.picture.insert(doc2)
  </code></pre>
  
  <p>How could I replace all 'http' with 'https'?</p>