Foreign Key Array #535
Answered
by
steve-chavez
kierangilliam
asked this question in
Questions
-
Is it possible to create a foreign key array? Using the following setup, I get an error: (In console)
Is this possible to do with Supabase? |
Beta Was this translation helpful? Give feedback.
Answered by
steve-chavez
Jan 15, 2021
Replies: 1 comment 4 replies
-
Hi Kieran,
Not possible, but might be in the future. Foreign Key Arrays is a work in progress in PostgreSQL. Alternatively, you can do the usual approach of creating a junction(or join) table for this. Check this SO question. Doing a many-to-many embedding then will work transparently with supabase-js. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
kierangilliam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Kieran,
Not possible, but might be in the future. Foreign Key Arrays is a work in progress in PostgreSQL.
Alternatively, you can do the usual approach of creating a junction(or join) table for this. Check this SO question.
Doing a many-to-many embedding then will work transparently with supabase-js.