Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update onConflict to check against the handle column

Andrew Smithd4fc16377fbd
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml
index 1e06be20dbf..61ef33d0104 100644
--- a/spec/supabase_js_v2.yml
+++ b/spec/supabase_js_v2.yml
@@ -1564,7 +1564,7 @@ functions:
```ts
const { data, error } = await supabase
.from('users')
- .upsert({ id: 42, handle: 'saoirse', display_name: 'Saoirse' }, { onConflict: 'id' })
+ .upsert({ id: 42, handle: 'saoirse', display_name: 'Saoirse' }, { onConflict: 'handle' })
.select()
```
data: