I am getting the exact result that @Alex_16041 got. The pipeline is good in Atlas but returns undefined in Node.
readConcern is an optional parameter, so if it is removed, I expect to get the top 20 results, but it still returning undefined.
I even changed aggregateResult from ‘aggregate’ to ‘findOne’ for something I knew would return a document and still received this test result:
The other tests related commentsDAO.js (create/update/delete) are still working, so I know I didn’t do something to the connection to comments collection.
Thanks for any help you can give.