I'm using Sails.js in a production environment. My site queries a MongoDB database to return an array of objects. Each object fills a news section on my site. I have success with the development environment, however, when I try in production the return is an empty array.
let newsQuery = await News.find({
skip: newsIndex,
limit: total,
sort: 'id DESC'
});
I try using just News.find()
and the result is the same.