How can I do a find and replace all in MongoDB?
===

For example suppose I insert data as follows

    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)

How could I replace all 'http' with 'https'?

