Fix the example code for onConflict with upsert

This commit is contained in:
Andrew Smith committed 2023-01-02 10:14:36 +00:00
1 parent 73cbadaf3f
commit b5cd623f2d
1 file changed
+1 -1
+1 -1
View File
@@ -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: