Fix spatial default

This commit is contained in:
Jake Barnby
2025-09-06 04:55:59 +12:00
parent 445bb61e7d
commit 937db035f0
6 changed files with 38 additions and 6 deletions
+5 -1
View File
@@ -9,7 +9,11 @@ Client client = new Client(context)
Account account = new Account(client);
account.updatePrefs(
mapOf( "a" to "b" ), // prefs
mapOf(
"language" to "en",
"timezone" to "UTC",
"darkTheme" to true
), // prefs
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -12,7 +12,13 @@ databases.createDocument(
"<DATABASE_ID>", // databaseId
"<COLLECTION_ID>", // collectionId
"<DOCUMENT_ID>", // documentId
mapOf( "a" to "b" ), // data
mapOf(
"username" to "walter.obrien",
"email" to "walter.obrien@example.com",
"fullName" to "Walter O'Brien",
"age" to 30,
"isAdmin" to false
), // data
listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
+7 -1
View File
@@ -12,7 +12,13 @@ tablesDB.createRow(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
mapOf( "a" to "b" ), // data
mapOf(
"username" to "walter.obrien",
"email" to "walter.obrien@example.com",
"fullName" to "Walter O'Brien",
"age" to 30,
"isAdmin" to false
), // data
listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
+5 -1
View File
@@ -9,5 +9,9 @@ val client = Client(context)
val account = Account(client)
val result = account.updatePrefs(
prefs = mapOf( "a" to "b" ),
prefs = mapOf(
"language" to "en",
"timezone" to "UTC",
"darkTheme" to true
),
)
@@ -12,6 +12,12 @@ val result = databases.createDocument(
databaseId = "<DATABASE_ID>",
collectionId = "<COLLECTION_ID>",
documentId = "<DOCUMENT_ID>",
data = mapOf( "a" to "b" ),
data = mapOf(
"username" to "walter.obrien",
"email" to "walter.obrien@example.com",
"fullName" to "Walter O'Brien",
"age" to 30,
"isAdmin" to false
),
permissions = listOf("read("any")"), // (optional)
)
+7 -1
View File
@@ -12,6 +12,12 @@ val result = tablesDB.createRow(
databaseId = "<DATABASE_ID>",
tableId = "<TABLE_ID>",
rowId = "<ROW_ID>",
data = mapOf( "a" to "b" ),
data = mapOf(
"username" to "walter.obrien",
"email" to "walter.obrien@example.com",
"fullName" to "Walter O'Brien",
"age" to 30,
"isAdmin" to false
),
permissions = listOf("read("any")"), // (optional)
)