I have a collection of about 1M documents. Each document has internalNumber property and I need to get all internalNumbers in my node.js code.
internalNumber
For Casbah users:
val pipeline = ... collection.aggregate(pipeline, AggregationOptions(batchSize = 500, outputMode = AggregationOptions.CURSOR)