SupabaseS
Supabase5mo ago
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');
  }
Was this page helpful?