MongoDB returning [] on Heroku

Hello, I’ve deployed the NestJs app to Heroku and it’s connected to MongoDB when run locally it connects without issues and even shows data. I’ve added a var config to Heroku as well. Does anyone know what could be the cause of it?

Is your code referring to the correct collection name?
If it is working locally it should work with app too