From 9edd79ab11845c5a25852e9846eb8c59f6eee7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Pott?= Date: Sat, 11 Sep 2021 12:08:01 +0200 Subject: [PATCH] Remove empty object I copy paste that example in my code and I didn't understand why count was `null`. In the current example, it looks like 3 arguments are accepted. --- web/spec/supabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index 58fed6b5e8c..69e7de50f8a 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -548,7 +548,7 @@ pages: ```js const { data, error, count } = await supabase .from('cities') - .select('name', {}, { count: 'exact' }) // if you don't want to return any rows, you can use { count: 'exact', head: true } + .select('name', { count: 'exact' }) // if you don't want to return any rows, you can use { count: 'exact', head: true } ``` - name: Querying JSON data description: |