© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
hotbelgo

Upsert onConflict

In the JS docs it reads
Perform an UPSERT on the table or view. Depending on the column(s) passed to onConflict
Perform an UPSERT on the table or view. Depending on the column(s) passed to onConflict


but how do I pass an onConflict function?

My data has an
id
id
field, but what I really want to prevent is that I create duplicate rows that have the same
token
token
field in
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

onConflict Python upsert
SupabaseSSupabase / help-and-questions
4y ago
Bulk Upsert onConflict not working
SupabaseSSupabase / help-and-questions
7mo ago
How do I use onConflict with Supabase Upsert when using the RESTful API?
SupabaseSSupabase / help-and-questions
4y ago
Using onConflict for date?
SupabaseSSupabase / help-and-questions
3y ago