Jon Higger (He / Him)
Explore posts from serversPPrisma
•Created by Jon Higger (He / Him) on 12/8/2024 in #help-and-questions
CreateMany not allowing me to create nested M:N entities
I’ve got a strategy but it’s going to be pretty 🤮
8 replies
PPrisma
•Created by Jon Higger (He / Him) on 12/8/2024 in #help-and-questions
CreateMany not allowing me to create nested M:N entities
But items have a many to many with tags 😂
8 replies
PPrisma
•Created by Jon Higger (He / Him) on 12/8/2024 in #help-and-questions
CreateMany not allowing me to create nested M:N entities
So restaurants have menus have section groups have sections have items
8 replies
PPrisma
•Created by Jon Higger (He / Him) on 12/8/2024 in #help-and-questions
CreateMany not allowing me to create nested M:N entities
Dang that’s going to be a surprisingly painful refactor for me, right now this is a small piece of the puzzle in a large deep clone
8 replies
PPrisma
•Created by Jon Higger (He / Him) on 12/8/2024 in #help-and-questions
CreateMany not allowing me to create nested M:N entities
I am currently using prisma with postgres
8 replies
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
Only one way, I think you can make something that accepts a full prisma client but not a transaction client, but not vise verce.
12 replies
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
12 replies
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
Which can then be used like this
12 replies
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
Here's a function I made that basically allows you to either make a transaction inside of a function, or allow you to pass a prisma instance in and use that as the transaction client
12 replies
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
This is what I did, I just passed the prisma instance around
12 replies