#Creating PrismaClient in middleware
1 messages · Page 1 of 1 (latest)
You could technically do it with https://blitzjs.com/docs/middleware#blitz-server-middleware
Thats what I was thinking, just wondering if there are any reasons I may not want to be doing this.
Connection limits, memory issues or whatever
Do you plan on just accessing prisma from ctx, instead of the db file?
If we were to use middleware, I guess we would have to
Ya then I believe you should be good