charley
charley
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?
I am discussing the signup process btw obv for the signin any error will just be shown as invalid credentials
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?
A random error is worse because that doesn't tell the user to switch their email and they will be unable to signup
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?
Even google says that if your signing up
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?
Most apps will say that
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?
ig but generic errors is what ur supposed to do
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?
But atm for every error (because this really should be my only prisma error) I have a message: "An error occured while creating your account. You may already have an existing account with this email address."
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?
Its revealing more to the user than they need to
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?
Well you don't want to display every error its bad practice
17 replies
PPrisma
Created by charley on 6/2/2024 in #help-and-questions
Why can't I access profile in user? (ORM) (Postgres)
Fix: deleted and created my database instead of migration; i was using a completely different setup earlier and the migration must have corrupted some things
7 replies
PPrisma
Created by charley on 6/2/2024 in #help-and-questions
Why can't I access profile in user? (ORM) (Postgres)
I am doing
const user = await prisma.user.findUnique({
where: {
id: userId,
},
include: {
profile: true,
},
});
const user = await prisma.user.findUnique({
where: {
id: userId,
},
include: {
profile: true,
},
});
7 replies