MongoDB
Search
1 | // change database |
Update a query
1 | // db.collection.update(criteria, value to set, upsert, multi) |
Reference:
Drop database
1 | $ mongo <dbname> --eval "db.dropDatabase()" |
This is my technical blog about programming, server setup & configuration, technical learning experience.
1 | // change database |
1 | // db.collection.update(criteria, value to set, upsert, multi) |
1 | $ mongo <dbname> --eval "db.dropDatabase()" |