Hi folks! :prisma-rainbow: I am currently trying o...
# mongodb
n
Hi folks! prisma rainbow I am currently trying out a prisma-mongo starter project with version “@prisma/client”: “3.6.0" When I try to get the mongo generated queries using
Copy code
// script.ts
const prisma = new PrismaClient({
  log: ['query', 'info', 'warn', 'error'],
})
and
Copy code
# .env file
DEBUG="*"
This doesn’t show anything in the console except my script logs. Is this normal / should the mongo connector log the queries it generates when log: [‘query’] flag is turned on? Thanks a lot in advance! 🙂
Fixed it by running *export DEBUG=“*”* directly in the console before launching the script. For some reason the .env variable was not taken into consideration, although I was able to log it within my script.