Skip to content

Commit 83fe25c

Browse files
committed
Fix spatial default
1 parent 16a4ec3 commit 83fe25c

File tree

8 files changed

+28
-12
lines changed

8 files changed

+28
-12
lines changed

docs/examples/account/update-prefs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ const client = new Client()
77
const account = new Account(client);
88

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

1317
console.log(result);

docs/examples/databases/create-document.md

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

docs/examples/databases/decrement-document-attribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({
1111
collectionId: '<COLLECTION_ID>',
1212
documentId: '<DOCUMENT_ID>',
1313
attribute: '',
14-
value: null, // optional
15-
min: null // optional
14+
value: 0, // optional
15+
min: 0 // optional
1616
});
1717

1818
console.log(result);

docs/examples/databases/increment-document-attribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({
1111
collectionId: '<COLLECTION_ID>',
1212
documentId: '<DOCUMENT_ID>',
1313
attribute: '',
14-
value: null, // optional
15-
max: null // optional
14+
value: 0, // optional
15+
max: 0 // optional
1616
});
1717

1818
console.log(result);

docs/examples/storage/create-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const storage = new Storage(client);
99
const result = await storage.createFile({
1010
bucketId: '<BUCKET_ID>',
1111
fileId: '<FILE_ID>',
12-
file: await pickSingle(),
12+
file: InputFile.fromPath('/path/to/file', 'filename'),
1313
permissions: ["read("any")"] // optional
1414
});
1515

docs/examples/tablesdb/create-row.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ const result = await tablesDB.createRow({
1010
databaseId: '<DATABASE_ID>',
1111
tableId: '<TABLE_ID>',
1212
rowId: '<ROW_ID>',
13-
data: {},
13+
data: {
14+
"username": "walter.obrien",
15+
"email": "walter.obrien@example.com",
16+
"fullName": "Walter O'Brien",
17+
"age": 30,
18+
"isAdmin": false
19+
},
1420
permissions: ["read("any")"] // optional
1521
});
1622

docs/examples/tablesdb/decrement-row-column.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({
1111
tableId: '<TABLE_ID>',
1212
rowId: '<ROW_ID>',
1313
column: '',
14-
value: null, // optional
15-
min: null // optional
14+
value: 0, // optional
15+
min: 0 // optional
1616
});
1717

1818
console.log(result);

docs/examples/tablesdb/increment-row-column.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({
1111
tableId: '<TABLE_ID>',
1212
rowId: '<ROW_ID>',
1313
column: '',
14-
value: null, // optional
15-
max: null // optional
14+
value: 0, // optional
15+
max: 0 // optional
1616
});
1717

1818
console.log(result);

0 commit comments

Comments
 (0)