Replies: 1 comment
-
@Sejmou did you figure it out? Trying to do the same |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I love the relational queries feature, it's a huge time and mental energy saver for me, thanks for that 🙏🏻
However, there's one thing I couldn't figure out: How can I express that a one-to-one relationship is optional?
My use case is the following: in Prisma, I have expressed that a
SongFileLink
may potentially be associated with aGoogleDriveFile
, like this:How can I do the equivalent thing in drizzle? The docs just show an example for when there is always an exact-one-to-one mapping (like a foreign key in a DB that is not nullable)
Beta Was this translation helpful? Give feedback.
All reactions