Join Slack
Powered by
What’s the easiest way to see what SQL query is ge...
# orm-help
m
Moaaz
06/15/2022, 6:55 PM
What’s the easiest way to see what SQL query is generated by a certain prisma invocation?
✅ 1
k
Kay Khan
06/15/2022, 8:12 PM
I tihnk you can do this by enabling prisma logging -
https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/logging
🙌 1
n
Nurul
06/16/2022, 6:32 AM
As Kay mentioned, you can see the query by enabling logging. We have added a new feature called
Metrics
, I would encourage you to give it a try, Prisma metrics give you a detailed insight into how Prisma Client interacts with your database.
🙌 1
2
Views
Open in Slack
Previous
Next