From b5cd623f2d119187e9dc40ac31b2b10684264013 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Mon, 2 Jan 2023 10:14:36 +0000 Subject: [PATCH] Fix the example code for onConflict with upsert --- spec/supabase_js_v2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml index a542b2e5109..1e06be20dbf 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' }) + .upsert({ id: 42, handle: 'saoirse', display_name: 'Saoirse' }, { onConflict: 'id' }) .select() ``` data: