Skip to content

Commit e8ef3c8

Browse files
committed
Fix spatial default
1 parent 38ef71c commit e8ef3c8

File tree

185 files changed

+11996
-13769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+11996
-13769
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 @@ Client client = Client()
88
Account account = Account(client);
99

1010
User 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 @@ Document 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": "walter.obrien@example.com",
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 @@ AttributeLine result = await databases.createLineAttribute(
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
xrequired: false,
15-
xdefault: '', // (optional)
15+
xdefault: [[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 @@ AttributePoint result = await databases.createPointAttribute(
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
xrequired: false,
15-
xdefault: '', // (optional)
15+
xdefault: [[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 @@ AttributePolygon result = await databases.createPolygonAttribute(
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
xrequired: false,
15-
xdefault: '', // (optional)
15+
xdefault: [[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 @@ AttributeLine result = await databases.updateLineAttribute(
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
xrequired: false,
15-
xdefault: '', // (optional)
15+
xdefault: [[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 @@ AttributePoint result = await databases.updatePointAttribute(
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
xrequired: false,
15-
xdefault: '', // (optional)
15+
xdefault: [[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 @@ AttributePolygon result = await databases.updatePolygonAttribute(
1212
collectionId: '<COLLECTION_ID>',
1313
key: '',
1414
xrequired: false,
15-
xdefault: '', // (optional)
15+
xdefault: [[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 @@ ColumnLine result = await tablesDB.createLineColumn(
1212
tableId: '<TABLE_ID>',
1313
key: '',
1414
xrequired: false,
15-
xdefault: '', // (optional)
15+
xdefault: [[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 @@ ColumnPoint result = await tablesDB.createPointColumn(
1212
tableId: '<TABLE_ID>',
1313
key: '',
1414
xrequired: false,
15-
xdefault: '', // (optional)
15+
xdefault: [[1,2], [3, 4]], // (optional)
1616
);

0 commit comments

Comments
 (0)