use DATABASE_NAME; db.CollectionName.find( {}, { 'FieldName': 1 } ).forEach(function(doc) { db.CollectionName.update( { _id: doc._id}, { $set : { 'FieldName' : doc.FieldName.toLowerCase() } }, { multi: true } ) });
The post Mongodb query to update records uppercase to lowercase in bulk appeared first on Techathon.