79186699

Date: 2024-11-13 21:19:10
Score: 1.5
Natty:
Report link

I was able to solve this issue by simply setting directConnection: true in the connect function by mongoose, like so:

await connect(process.env.LOCAL_DB_URL!, {
            directConnection: true,
            replicaSet: "rs0",
        });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Davide Aprea