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
This commit is contained in:
Justin authored and GitHub committed 2025-04-27 13:45:55 +00:00
1 parent 634f86d2d6
commit 3f3147002b
1 file changed
+4 -4
+4 -4
View File
@@ -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