From bc34acf966974c37a9209ab94ef9965bc170f7c9 Mon Sep 17 00:00:00 2001 From: Inian Parameshwaran Date: Fri, 23 Apr 2021 11:58:15 +0800 Subject: [PATCH] update docs for textSearch --- web/spec/supabase.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index eff74387c40..5178d50fbc1 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -799,14 +799,14 @@ pages: ```js const subscriptions = supabase.getSubscriptions() ``` - + storage.listBuckets(): title: 'listBuckets()' $ref: '@supabase/supabase-js."lib/storage/StorageBucketApi".StorageBucketApi.listBuckets' notes: | - Policy permissions required: - `buckets` permissions: `select` - - `objects` permissions: none + - `objects` permissions: none examples: - name: List buckets isSpotlight: true @@ -823,7 +823,7 @@ pages: notes: | - Policy permissions required: - `buckets` permissions: `select` - - `objects` permissions: none + - `objects` permissions: none examples: - name: Get bucket isSpotlight: true @@ -840,7 +840,7 @@ pages: notes: | - Policy permissions required: - `buckets` permissions: `insert` - - `objects` permissions: none + - `objects` permissions: none examples: - name: Create bucket isSpotlight: true @@ -857,7 +857,7 @@ pages: notes: | - Policy permissions required: - `buckets` permissions: `select` - - `objects` permissions: `select` and `delete` + - `objects` permissions: `select` and `delete` examples: - name: Empty bucket isSpotlight: true @@ -874,7 +874,7 @@ pages: notes: | - Policy permissions required: - `buckets` permissions: `select` and `delete` - - `objects` permissions: none + - `objects` permissions: none examples: - name: Delete bucket isSpotlight: true @@ -1919,6 +1919,7 @@ pages: ```js const { data, error } = await supabase .from('quotes') + .select('catchphrase') .textSearch('catchphrase', `'fat' & 'cat'`, { config: 'english' }) @@ -1929,6 +1930,7 @@ pages: ```js const { data, error } = await supabase .from('quotes') + .select('catchphrase') .textSearch('catchphrase', `'fat' & 'cat'`, { type: 'plain', config: 'english' @@ -1940,6 +1942,7 @@ pages: ```js const { data, error } = await supabase .from('quotes') + .select('catchphrase') .textSearch('catchphrase', `'fat' & 'cat'`, { type: 'phrase', config: 'english' @@ -1960,6 +1963,7 @@ pages: ```js const { data, error } = await supabase .from('quotes') + .select('catchphrase') .textSearch('catchphrase', `'fat or cat'`, { type: 'websearch', config: 'english'