© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
8 replies
vertex

Bulk Upsert onConflict not working

It seems like onConflict is currently ignored in bulk upserts in Dart. The following is not working

Future<void> dbMethod() {
    return supabase.from('table').upsert([
      {
        'id': someValue,
        'entry_type': 'something',
      },
      {
        'id': otherValue,
        'entry_type': 'otherthing',
      },
    ], onConflict: 'id,entry_type');
  }
Future<void> dbMethod() {
    return supabase.from('table').upsert([
      {
        'id': someValue,
        'entry_type': 'something',
      },
      {
        'id': otherValue,
        'entry_type': 'otherthing',
      },
    ], onConflict: 'id,entry_type');
  }
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

Upsert onConflict
SupabaseSSupabase / help-and-questions
4y ago
onConflict Python upsert
SupabaseSSupabase / help-and-questions
4y ago
Bulk Update using upsert
SupabaseSSupabase / help-and-questions
3y ago
Upsert not working with Row Level Security
SupabaseSSupabase / help-and-questions
3y ago