Copying these lines into the shell should do the right thing:
db.cities.find(
{'_id.state': 'NY'}).sort(
{'value.pop':-1}).
limit(5).forEach(printjson);
Copying these lines into the shell should do the right thing:
db.cities.find(
{'_id.state': 'NY'}).sort(
{'value.pop':-1}).
limit(5).forEach(printjson);