Skip to content

Instantly share code, notes, and snippets.

@anapaulagomes
Created September 15, 2015 15:12
Show Gist options
  • Save anapaulagomes/377caf9fd44554a3c5a7 to your computer and use it in GitHub Desktop.
Save anapaulagomes/377caf9fd44554a3c5a7 to your computer and use it in GitHub Desktop.
Atualiza vários registros de um campo com base em uma consulta
db.collection.update({'base.classe': 'turist'}, {$set: {'base.classe': 'turista'}}, {multi: true})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment