This is an excerpt from Manning's book Node.js in Action, Second Edition. Login to get full access to this book.
At the moment, the user mode is just a stub. You’ll need to add methods for creating and updating user records as well.
Listing 6.16. Updating user records