From 3f3147002bd07a0b01cb2fa83ee6e4901d178a8b Mon Sep 17 00:00:00 2001 From: Justin <127172022+jl33-ai@users.noreply.github.com> Date: Sun, 27 Apr 2025 23:45:55 +1000 Subject: [PATCH] Update all languages to use `->>` operator in JSON query examples (#35266) - The docs explain "If you want the data returned as `text`, use the `->>` operator." - Only the SQL example shows this using the `description` field - All language should use `->>` for the description field --- apps/docs/content/guides/database/json.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/docs/content/guides/database/json.mdx b/apps/docs/content/guides/database/json.mdx index 5a067043f46..1619c015cb6 100644 --- a/apps/docs/content/guides/database/json.mdx +++ b/apps/docs/content/guides/database/json.mdx @@ -417,7 +417,7 @@ from books; ```js const { data, error } = await supabase.from('books').select(` title, - description: metadata->description, + description: metadata->>description, price: metadata->price, low_age: metadata->ages->0, high_age: metadata->ages->1 @@ -433,7 +433,7 @@ try await supabase .select( """ title, - description: metadata->description, + description: metadata->>description, price: metadata->price, low_age: metadata->ages->0, high_age: metadata->ages->1 @@ -448,7 +448,7 @@ try await supabase ```kotlin val data = supabase.from("books").select(Columns.raw(""" title, - description: metadata->description, + description: metadata->>description, price: metadata->price, low_age: metadata->ages->0, high_age: metadata->ages->1 @@ -461,7 +461,7 @@ val data = supabase.from("books").select(Columns.raw(""" ```python data = supabase.from_('books').select(""" title, - description: metadata->description, + description: metadata->>description, price: metadata->price, low_age: metadata->ages->0, high_age: metadata->ages->1