Last active
August 27, 2016 14:30
-
-
Save gorkamu/4ea507a826703ba144703503523a2094 to your computer and use it in GitHub Desktop.
Operaciones básicas MongoDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.Usuario.insert({ | |
id: '1', | |
Nombre: elRey, | |
Email: 'elRey@casareal.es', | |
Password: 'da39a3ee5e6b4b0d3255bfef95601890afd80709' | |
}); | |
db.Usuario.find(); | |
db.users.update( | |
{ Nombre: { 'elRey' } }, | |
{ $set: { Email: 'elRey_Reshulon@casareal.es' } }, | |
{ multi: false } | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment