JeanPSF
PPrisma
•Created by charley on 6/2/2024 in #help-and-questions
Is it bad practice to depend on the unique constraint while creating a new object?
But shortening the conversation, you should change your error message to a more generic one
17 replies
PPrisma
•Created by charley on 6/2/2024 in #help-and-questions
Is it bad practice to depend on the unique constraint while creating a new object?
This is worst than the prisma error itself. It reveals a user with this specific email already exist, which can be used to list random user's to plan an attack, prisma error do tell the user a little bit about your database architecture, but rarely it will reveal too much.
17 replies
PPrisma
•Created by francel on 6/1/2024 in #help-and-questions
prisma.transaction.findMany() not working
Looks like you are using transactions wrong, can you provide a piece of code and the error?
https://www.prisma.io/docs/orm/prisma-client/queries/transactions
3 replies
PPrisma
•Created by charley on 6/2/2024 in #help-and-questions
Is it bad practice to depend on the unique constraint while creating a new object?
If it is a unique key on your database, it will throw an error.
17 replies
PPrisma
•Created by Anonymous on 6/3/2024 in #help-and-questions
Dynamic database
Awesome question, looking forward for the answer.
3 replies