acidjazz
Explore posts from serversPPrisma
•Created by acidjazz on 8/25/2024 in #help-and-questions
Unique constraint fails when creating user(s)in parallel during tests for api endpoints
When I run tests in my app in parallel that have helpers that create users in the DB, i get this error:
Although if i disable parallelism and only allow 1 thread this error never shows up.
1 replies
PPrisma
•Created by acidjazz on 8/5/2024 in #help-and-questions
using prisma $extends to add fields to a model, whats the best practice for TS?
Below is how i add a custom "client" field to my tokens model - but now my Token model doesn't really match since there is no client field in that. What is the best practice for taking care of that?
6 replies
PPrisma
•Created by acidjazz on 8/4/2024 in #help-and-questions
prisma client generates model with no create
can anyone tell me why i dont get a prisma.session.create ?
Property 'create' does not exist on type 'SessionDelegate<DefaultArgs>'.ts(2339)
11 replies