Is there a way to preview the `prisma db seed` com...
# orm-help
y
Is there a way to preview the
prisma db seed
command? In other words, to get all the insert statements without actually running them?
a
Hi @Yaakov! You can configure the
PrismaClient
to log your queries as they execute like this:
Copy code
const prisma = new PrismaClient({
  log: ['query']
})
but we don't have the preview functionality you described for
prisma db seed
. If this is something you would like to see, please tell us more about your use case in a feature request.
y
Worked! Thanks!
@Austin Now that I have my logs, I can see that my errors are being caused by seeds running out of order. see follow-up question in main channel.