Are nested INSERTs possible? #1578
Answered
by
steve-chavez
philip-weber
asked this question in
Questions
|
Hi there, I have a one-to-many relation between two tables and would like to insert in both tables with one query. Is this possible with the Supabase-JS Client? Unfortunately I did not find anything regarding this in the docs. Eg. it would be great if one could insert a new user in the users table and within the same query insert some posts associated to the new user in the posts table. For example see the docs from Prisma or Fauna (with GraphQL). Thank you in advance! |
Answered by
steve-chavez
May 16, 2021
Replies: 1 comment 1 reply
|
Hey @philip-weber, Is not possible right now. But once PostgREST/postgrest#818 is solved, |
1 reply
Answer selected by
philip-weber
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @philip-weber,
Is not possible right now. But once PostgREST/postgrest#818 is solved,
supabase-jswill be able to do nested inserts.