mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
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:
1 parent
634f86d2d6
commit
3f3147002b
1 file changed
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user