Hi, folks.
How do I type out JavaScript in the terminal app for MongoDB queries in a way that lets me indent code and retain some visual hierarchy? So far all of my Google searches for a solution to this have been unsuccessful.
Instead of this:
db.<collection>.find( { <field1>: { $lt: 100 } });
I’d like to be able to do this:
db.<collection>.find({
<field1>: {
$lt: 100
}
});