Skip to content

Commit 59e5700

Browse files
committed
Fix spatial default
1 parent 35ac40c commit 59e5700

38 files changed

+98
-66
lines changed

docs/examples/java/account/update-prefs.md

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

1212
account.updatePrefs(
13-
mapOf( "a" to "b" ), // prefs
13+
mapOf(
14+
"language" to "en",
15+
"timezone" to "UTC",
16+
"darkTheme" to true
17+
), // prefs
1418
new CoroutineCallback<>((result, error) -> {
1519
if (error != null) {
1620
error.printStackTrace();

docs/examples/java/databases/create-document.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ databases.createDocument(
1313
"<DATABASE_ID>", // databaseId
1414
"<COLLECTION_ID>", // collectionId
1515
"<DOCUMENT_ID>", // documentId
16-
mapOf( "a" to "b" ), // data
16+
mapOf(
17+
"username" to "walter.obrien",
18+
"email" to "walter.obrien@example.com",
19+
"fullName" to "Walter O'Brien",
20+
"age" to 30,
21+
"isAdmin" to false
22+
), // data
1723
listOf("read("any")"), // permissions (optional)
1824
new CoroutineCallback<>((result, error) -> {
1925
if (error != null) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ databases.createLineAttribute(
1414
"<COLLECTION_ID>", // collectionId
1515
"", // key
1616
false, // required
17-
"", // default (optional)
17+
listOf([1,2], [3, 4]), // default (optional)
1818
new CoroutineCallback<>((result, error) -> {
1919
if (error != null) {
2020
error.printStackTrace();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ databases.createPointAttribute(
1414
"<COLLECTION_ID>", // collectionId
1515
"", // key
1616
false, // required
17-
"", // default (optional)
17+
listOf([1,2], [3, 4]), // default (optional)
1818
new CoroutineCallback<>((result, error) -> {
1919
if (error != null) {
2020
error.printStackTrace();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ databases.createPolygonAttribute(
1414
"<COLLECTION_ID>", // collectionId
1515
"", // key
1616
false, // required
17-
"", // default (optional)
17+
listOf([1,2], [3, 4]), // default (optional)
1818
new CoroutineCallback<>((result, error) -> {
1919
if (error != null) {
2020
error.printStackTrace();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ databases.updateLineAttribute(
1414
"<COLLECTION_ID>", // collectionId
1515
"", // key
1616
false, // required
17-
"", // default (optional)
17+
listOf([1,2], [3, 4]), // default (optional)
1818
"", // newKey (optional)
1919
new CoroutineCallback<>((result, error) -> {
2020
if (error != null) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ databases.updatePointAttribute(
1414
"<COLLECTION_ID>", // collectionId
1515
"", // key
1616
false, // required
17-
"", // default (optional)
17+
listOf([1,2], [3, 4]), // default (optional)
1818
"", // newKey (optional)
1919
new CoroutineCallback<>((result, error) -> {
2020
if (error != null) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ databases.updatePolygonAttribute(
1414
"<COLLECTION_ID>", // collectionId
1515
"", // key
1616
false, // required
17-
"", // default (optional)
17+
listOf([1,2], [3, 4]), // default (optional)
1818
"", // newKey (optional)
1919
new CoroutineCallback<>((result, error) -> {
2020
if (error != null) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tablesDB.createLineColumn(
1414
"<TABLE_ID>", // tableId
1515
"", // key
1616
false, // required
17-
"", // default (optional)
17+
listOf([1,2], [3, 4]), // default (optional)
1818
new CoroutineCallback<>((result, error) -> {
1919
if (error != null) {
2020
error.printStackTrace();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tablesDB.createPointColumn(
1414
"<TABLE_ID>", // tableId
1515
"", // key
1616
false, // required
17-
"", // default (optional)
17+
listOf([1,2], [3, 4]), // default (optional)
1818
new CoroutineCallback<>((result, error) -> {
1919
if (error != null) {
2020
error.printStackTrace();

0 commit comments

Comments
 (0)