I have multiple documents stored in a single collection. I want to be able to go through each document and get the ObjectID value from each one and store them into a single array. I am not sure how to go about doing this. This is what I have so far:
app.get("/sessionID", (req, res) => {
use iRateIt;
var value = iRateIt.responses.count();
for (var i = 0; i < value; i++){
//code to store ID values in an array
}
});