Here is an example code from a book I need to type on terminal
> db.users.update( {username: "smith"},
{ $set: {favorites:
{
cities: ["Chicago", "Cheyenne"],
movies: ["Casablanca", "The Sting"]
} }
})
How to write this? as soon as I write first line ending with comma (,) and press enter to goto next line it executes the command. Can I format my command like the above?