Skip to content

Two not nullable relations between two the same models and creating #3495

Answered by ryands17
yarikos asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @yarikos 👋
Yes I think the required inter-dependency here would make it impossible to use in a Prisma transaction, so a transactional raw query would be the only way to go here.

It would be great if you could create a feature request here with the above use case especially for deferreble constraints :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yarikos
Comment options

Answer selected by yarikos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants