Skip to content

Commit ffe3b29

Browse files
committed
Fix spatial default
1 parent 3bf0920 commit ffe3b29

18 files changed

+145
-129
lines changed

docs/examples/account/update-prefs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ const client = new sdk.Client()
88
const account = new sdk.Account(client);
99

1010
const result = await account.updatePrefs({
11-
prefs: {}
11+
prefs: {
12+
"language": "en",
13+
"timezone": "UTC",
14+
"darkTheme": true
15+
}
1216
});

docs/examples/databases/create-document.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ const result = await databases.createDocument({
1111
databaseId: '<DATABASE_ID>',
1212
collectionId: '<COLLECTION_ID>',
1313
documentId: '<DOCUMENT_ID>',
14-
data: {},
14+
data: {
15+
"username": "walter.obrien",
16+
"email": "[email protected]",
17+
"fullName": "Walter O'Brien",
18+
"age": 30,
19+
"isAdmin": false
20+
},
1521
permissions: ["read("any")"] // optional
1622
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ const result = await databases.createLineAttribute({
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
required: false,
15-
default: '' // optional
15+
default: [[1,2], [3, 4]] // optional
1616
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ const result = await databases.createPointAttribute({
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
required: false,
15-
default: '' // optional
15+
default: [[1,2], [3, 4]] // optional
1616
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ const result = await databases.createPolygonAttribute({
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
required: false,
15-
default: '' // optional
15+
default: [[1,2], [3, 4]] // optional
1616
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ const result = await databases.updateLineAttribute({
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
required: false,
15-
default: '', // optional
15+
default: [[1,2], [3, 4]], // optional
1616
newKey: '' // optional
1717
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ const result = await databases.updatePointAttribute({
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
required: false,
15-
default: '', // optional
15+
default: [[1,2], [3, 4]], // optional
1616
newKey: '' // optional
1717
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ const result = await databases.updatePolygonAttribute({
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
required: false,
15-
default: '', // optional
15+
default: [[1,2], [3, 4]], // optional
1616
newKey: '' // optional
1717
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ const result = await tablesDB.createLineColumn({
1212
tableId: '<TABLE_ID>',
1313
key: '',
1414
required: false,
15-
default: '' // optional
15+
default: [[1,2], [3, 4]] // optional
1616
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ const result = await tablesDB.createPointColumn({
1212
tableId: '<TABLE_ID>',
1313
key: '',
1414
required: false,
15-
default: '' // optional
15+
default: [[1,2], [3, 4]] // optional
1616
});

0 commit comments

Comments
 (0)