Can relations be used with insert
or returning
?
#2317
Unanswered
tippfelher
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Drizzle supports including relations when querying data.
But how does this work with
insert
andreturning
?For example:
I insert a
post
which has aforum_id
. Instead of passing theforum_id
I want to pass theforum_name
(which is unique) and implies theforum_id
. Theforum_name
is only present in theforum
-table.Beta Was this translation helpful? Give feedback.
All reactions