XavierBread
XavierBread
Explore posts from servers
DTDrizzle Team
Created by XavierBread on 1/30/2024 in #help
How do insert a one-to-one record in an elegant way?
Thank you so much for your detailed response!
12 replies
DTDrizzle Team
Created by XavierBread on 1/30/2024 in #help
How do insert a one-to-one record in an elegant way?
according to your reply, I came out with another question that is not that important: "Insert my user and get ID" but Mysql doesn't support returning(), so how to get the ID and use it as a reference for another table?
12 replies
DTDrizzle Team
Created by XavierBread on 1/30/2024 in #help
How do insert a one-to-one record in an elegant way?
ok, got it, thanks for your information! but I think is it necessary to put this into the doc maybe?
12 replies
DTDrizzle Team
Created by XavierBread on 1/30/2024 in #help
How do insert a one-to-one record in an elegant way?
btw, prisma gonna be this: prisma.user.create({name: "bob", profile: create: {age: 20}})
12 replies