mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Fix the example code for onConflict with upsert
This commit is contained in:
1 parent
73cbadaf3f
commit
b5cd623f2d
1 file changed
+1
-1
@@ -1564,7 +1564,7 @@ functions:
|
||||
```ts
|
||||
const { data, error } = await supabase
|
||||
.from('users')
|
||||
.upsert({ id: 42, handle: 'saoirse', display_name: 'Saoirse' })
|
||||
.upsert({ id: 42, handle: 'saoirse', display_name: 'Saoirse' }, { onConflict: 'id' })
|
||||
.select()
|
||||
```
|
||||
data:
|
||||
|
||||
Reference in new issue
Block a user