Update a record from cli

  • by

Theory

db.users.update({QUERY},{UPDATE})

Example

db.users.update({"username":"sij"},{$set:{"role":"changer"}})
Tags: