Skip to content

How to insert data into two tables using one API call? #10034

Answered by meetzaveri
jvvinoth asked this question in Question
Discussion options

You must be logged in to vote

Hello @jvvinoth

In order to perform single API to insert data into two tables, there are some prerequisites to follow:

How to create relationships between tables in Hasura - https://hasura.io/docs/latest/schema/postgres/table-relationships/create/

In my case I have authors and articles table where, I have id with UUID type in “authors” table and created_by column with UUID type in “art…

Replies: 1 comment 1 reply

Comment options

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

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