Update model in mongodb using NodeJS/express

Server side

First we use findOne to find the user.
Then we update the user with an assignment to a new value with an assignment.
We want to to let the database know of this update to the variable user,
so we use the save function.

Client side

PUT http://localhost:8080/api/rtsao@uci.edu

Headers

x-access-token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
x-access-email rtsao@uci.edu

Body

x-www-form-urlencoded

modelKey name
modelValue Ricardo