Skip to content

Commit 937db03

Browse files
committed
Fix spatial default
1 parent 445bb61 commit 937db03

File tree

6 files changed

+38
-6
lines changed

6 files changed

+38
-6
lines changed

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

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

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

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

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

docs/examples/java/tablesdb/create-row.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ tablesDB.createRow(
1212
"<DATABASE_ID>", // databaseId
1313
"<TABLE_ID>", // tableId
1414
"<ROW_ID>", // rowId
15-
mapOf( "a" to "b" ), // data
15+
mapOf(
16+
"username" to "walter.obrien",
17+
"email" to "[email protected]",
18+
"fullName" to "Walter O'Brien",
19+
"age" to 30,
20+
"isAdmin" to false
21+
), // data
1622
listOf("read("any")"), // permissions (optional)
1723
new CoroutineCallback<>((result, error) -> {
1824
if (error != null) {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ val client = Client(context)
99
val account = Account(client)
1010

1111
val result = account.updatePrefs(
12-
prefs = mapOf( "a" to "b" ),
12+
prefs = mapOf(
13+
"language" to "en",
14+
"timezone" to "UTC",
15+
"darkTheme" to true
16+
),
1317
)

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ val result = databases.createDocument(
1212
databaseId = "<DATABASE_ID>",
1313
collectionId = "<COLLECTION_ID>",
1414
documentId = "<DOCUMENT_ID>",
15-
data = mapOf( "a" to "b" ),
15+
data = mapOf(
16+
"username" to "walter.obrien",
17+
"email" to "[email protected]",
18+
"fullName" to "Walter O'Brien",
19+
"age" to 30,
20+
"isAdmin" to false
21+
),
1622
permissions = listOf("read("any")"), // (optional)
1723
)

docs/examples/kotlin/tablesdb/create-row.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ val result = tablesDB.createRow(
1212
databaseId = "<DATABASE_ID>",
1313
tableId = "<TABLE_ID>",
1414
rowId = "<ROW_ID>",
15-
data = mapOf( "a" to "b" ),
15+
data = mapOf(
16+
"username" to "walter.obrien",
17+
"email" to "[email protected]",
18+
"fullName" to "Walter O'Brien",
19+
"age" to 30,
20+
"isAdmin" to false
21+
),
1622
permissions = listOf("read("any")"), // (optional)
1723
)

0 commit comments

Comments
 (0)