© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
14 replies
Xzight

How to insert to multiple tables in one request?

Hi I am making a todo list and I have tables for Tasks, Tags, and TagsToTasks. Is there a built in way with the rest api that I can
POST
POST
a new task that has tags? To do this I will need to insert on the Tasks table and TagsToTasks table. I am hoping to avoid a situation where client first makes a
POST
POST
request to Tasks and then to TagsToTasks after since then I would probably need to have a transaction to handle rollback. Is this something I should use an edge function for?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to fetch 2 tables in one query?
SupabaseSSupabase / help-and-questions
4y ago
How to search across multiple columns and tables
SupabaseSSupabase / help-and-questions
4y ago
Insert data in several related tables at once
SupabaseSSupabase / help-and-questions
4y ago
Acceptable method to insert multiple rows
SupabaseSSupabase / help-and-questions
4y ago