Y
Hacker News
new
|
ask
|
show
|
jobs
by
obsurvey
4827 days ago
If I wanted to return a bunch of _ids from a mongo database i would do a _id:$in[array of ObjectIDs] and then stream the resulting cursor to res. Streams are core to node. You should use them.