Drizzle + Neon postgres + NestJS setup help
Hello I have this setup working locally, I found a video setting up NestJS with drizzle but there was no neon. Everything works, but when making a couple of same requests from the frontend I get a NeonDbError: Error connecting to database: fetch failed, could someone help me with the cause of this issue?
I have a database provider -
Then I inject the provider in some service that I need the db for like this -
And a db query example just in case -
1 Reply
It feels like instead of the server having a connection to the db it connects, executes queries then disconnects, and if to many requests go in it flips on itself, if so, is there any way to create a normal db connection with nestJS pattern like people do with prisma?