Skip to content

Commit 8d9c082

Browse files
committed
Fix spatial default
1 parent d573b15 commit 8d9c082

17 files changed

+43
-27
lines changed

docs/examples/account/update-prefs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ client = Client.new
1010
account = Account.new(client)
1111

1212
result = account.update_prefs(
13-
prefs: {}
13+
prefs: {
14+
"language" => "en",
15+
"timezone" => "UTC",
16+
"darkTheme" => true
17+
}
1418
)

docs/examples/databases/create-document.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ result = databases.create_document(
1313
database_id: '<DATABASE_ID>',
1414
collection_id: '<COLLECTION_ID>',
1515
document_id: '<DOCUMENT_ID>',
16-
data: {},
16+
data: {
17+
"username" => "walter.obrien",
18+
"email" => "walter.obrien@example.com",
19+
"fullName" => "Walter O'Brien",
20+
"age" => 30,
21+
"isAdmin" => false
22+
},
1723
permissions: ["read("any")"] # optional
1824
)

docs/examples/databases/create-line-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ result = databases.create_line_attribute(
1414
collection_id: '<COLLECTION_ID>',
1515
key: '',
1616
required: false,
17-
default: '' # optional
17+
default: [[1,2], [3, 4]] # optional
1818
)

docs/examples/databases/create-point-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ result = databases.create_point_attribute(
1414
collection_id: '<COLLECTION_ID>',
1515
key: '',
1616
required: false,
17-
default: '' # optional
17+
default: [[1,2], [3, 4]] # optional
1818
)

docs/examples/databases/create-polygon-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ result = databases.create_polygon_attribute(
1414
collection_id: '<COLLECTION_ID>',
1515
key: '',
1616
required: false,
17-
default: '' # optional
17+
default: [[1,2], [3, 4]] # optional
1818
)

docs/examples/databases/update-line-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ result = databases.update_line_attribute(
1414
collection_id: '<COLLECTION_ID>',
1515
key: '',
1616
required: false,
17-
default: '', # optional
17+
default: [[1,2], [3, 4]], # optional
1818
new_key: '' # optional
1919
)

docs/examples/databases/update-point-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ result = databases.update_point_attribute(
1414
collection_id: '<COLLECTION_ID>',
1515
key: '',
1616
required: false,
17-
default: '', # optional
17+
default: [[1,2], [3, 4]], # optional
1818
new_key: '' # optional
1919
)

docs/examples/databases/update-polygon-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ result = databases.update_polygon_attribute(
1414
collection_id: '<COLLECTION_ID>',
1515
key: '',
1616
required: false,
17-
default: '', # optional
17+
default: [[1,2], [3, 4]], # optional
1818
new_key: '' # optional
1919
)

docs/examples/tablesdb/create-line-column.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ result = tables_db.create_line_column(
1414
table_id: '<TABLE_ID>',
1515
key: '',
1616
required: false,
17-
default: '' # optional
17+
default: [[1,2], [3, 4]] # optional
1818
)

docs/examples/tablesdb/create-point-column.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ result = tables_db.create_point_column(
1414
table_id: '<TABLE_ID>',
1515
key: '',
1616
required: false,
17-
default: '' # optional
17+
default: [[1,2], [3, 4]] # optional
1818
)

0 commit comments

Comments
 (0)