I have a challenge where I need to extract the ObjectID values from multiple documents stored in a single collection and store them in a single array. I'm currently stuck on how to achieve this task. Below is what I've tried so far:
app.get("/sessionID", (req, res) => {
use iRateIt;
var value = iRateIt.responses.count();
for (var i = 0; i < value; i++){
//code to save ID values into an array
}
});