From 7c3d526cdac01b69c71a6ad81a05951455ecd80e Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Sat, 6 Sep 2025 05:27:47 +1200 Subject: [PATCH] Update docs --- composer.lock | 4 ++-- .../1.8.x/client-android/java/account/update-prefs.md | 6 +++++- .../client-android/java/databases/create-document.md | 8 +++++++- .../1.8.x/client-android/java/tablesdb/create-row.md | 8 +++++++- .../1.8.x/client-android/kotlin/account/update-prefs.md | 6 +++++- .../client-android/kotlin/databases/create-document.md | 8 +++++++- .../1.8.x/client-android/kotlin/tablesdb/create-row.md | 8 +++++++- .../1.8.x/client-apple/examples/account/update-prefs.md | 6 +++++- .../client-apple/examples/databases/create-document.md | 8 +++++++- .../1.8.x/client-apple/examples/tablesdb/create-row.md | 8 +++++++- .../1.8.x/client-flutter/examples/account/update-prefs.md | 6 +++++- .../client-flutter/examples/databases/create-document.md | 8 +++++++- .../1.8.x/client-flutter/examples/tablesdb/create-row.md | 8 +++++++- .../1.8.x/client-graphql/examples/account/update-prefs.md | 2 +- .../client-graphql/examples/databases/create-document.md | 2 +- .../1.8.x/client-graphql/examples/tablesdb/create-row.md | 2 +- .../client-react-native/examples/account/update-prefs.md | 6 +++++- .../examples/databases/create-document.md | 8 +++++++- .../examples/databases/decrement-document-attribute.md | 4 ++-- .../examples/databases/increment-document-attribute.md | 4 ++-- .../client-react-native/examples/storage/create-file.md | 2 +- .../client-react-native/examples/tablesdb/create-row.md | 8 +++++++- .../examples/tablesdb/decrement-row-column.md | 4 ++-- .../examples/tablesdb/increment-row-column.md | 4 ++-- .../examples/1.8.x/client-rest/examples/account/create.md | 2 +- .../1.8.x/client-rest/examples/account/update-password.md | 2 +- .../1.8.x/client-rest/examples/account/update-prefs.md | 6 +++++- .../1.8.x/client-rest/examples/account/update-recovery.md | 2 +- .../client-rest/examples/databases/create-document.md | 8 +++++++- .../1.8.x/client-rest/examples/storage/create-file.md | 3 +-- .../1.8.x/client-rest/examples/tablesdb/create-row.md | 8 +++++++- .../1.8.x/client-web/examples/account/update-prefs.md | 6 +++++- .../client-web/examples/databases/create-document.md | 8 +++++++- .../1.8.x/client-web/examples/tablesdb/create-row.md | 8 +++++++- .../1.8.x/console-web/examples/account/update-prefs.md | 6 +++++- .../console-web/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../console-web/examples/tablesdb/create-line-column.md | 2 +- .../console-web/examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/console-web/examples/tablesdb/create-row.md | 8 +++++++- .../console-web/examples/tablesdb/update-line-column.md | 2 +- .../console-web/examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-dart/examples/account/update-prefs.md | 6 +++++- .../server-dart/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-dart/examples/tablesdb/create-line-column.md | 2 +- .../server-dart/examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-dart/examples/tablesdb/create-row.md | 8 +++++++- .../server-dart/examples/tablesdb/update-line-column.md | 2 +- .../server-dart/examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-deno/examples/account/update-prefs.md | 6 +++++- .../server-deno/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-deno/examples/tablesdb/create-line-column.md | 2 +- .../server-deno/examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-deno/examples/tablesdb/create-row.md | 8 +++++++- .../server-deno/examples/tablesdb/update-line-column.md | 2 +- .../server-deno/examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-dotnet/examples/account/update-prefs.md | 6 +++++- .../server-dotnet/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-dotnet/examples/tablesdb/create-line-column.md | 2 +- .../examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-dotnet/examples/tablesdb/create-row.md | 8 +++++++- .../server-dotnet/examples/tablesdb/update-line-column.md | 2 +- .../examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-go/examples/account/update-prefs.md | 6 +++++- .../1.8.x/server-go/examples/databases/create-document.md | 8 +++++++- .../server-go/examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../server-go/examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-go/examples/tablesdb/create-line-column.md | 2 +- .../server-go/examples/tablesdb/create-point-column.md | 2 +- .../server-go/examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-go/examples/tablesdb/create-row.md | 8 +++++++- .../server-go/examples/tablesdb/update-line-column.md | 2 +- .../server-go/examples/tablesdb/update-point-column.md | 2 +- .../server-go/examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-graphql/examples/account/update-prefs.md | 2 +- .../server-graphql/examples/databases/create-document.md | 2 +- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../examples/tablesdb/create-line-column.md | 2 +- .../examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-graphql/examples/tablesdb/create-row.md | 2 +- .../examples/tablesdb/update-line-column.md | 2 +- .../examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-kotlin/java/account/update-prefs.md | 6 +++++- .../1.8.x/server-kotlin/java/databases/create-document.md | 8 +++++++- .../server-kotlin/java/databases/create-line-attribute.md | 2 +- .../java/databases/create-point-attribute.md | 2 +- .../java/databases/create-polygon-attribute.md | 2 +- .../server-kotlin/java/databases/update-line-attribute.md | 2 +- .../java/databases/update-point-attribute.md | 2 +- .../java/databases/update-polygon-attribute.md | 2 +- .../server-kotlin/java/tablesdb/create-line-column.md | 2 +- .../server-kotlin/java/tablesdb/create-point-column.md | 2 +- .../server-kotlin/java/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-kotlin/java/tablesdb/create-row.md | 8 +++++++- .../server-kotlin/java/tablesdb/update-line-column.md | 2 +- .../server-kotlin/java/tablesdb/update-point-column.md | 2 +- .../server-kotlin/java/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-kotlin/kotlin/account/update-prefs.md | 6 +++++- .../server-kotlin/kotlin/databases/create-document.md | 8 +++++++- .../kotlin/databases/create-line-attribute.md | 2 +- .../kotlin/databases/create-point-attribute.md | 2 +- .../kotlin/databases/create-polygon-attribute.md | 2 +- .../kotlin/databases/update-line-attribute.md | 2 +- .../kotlin/databases/update-point-attribute.md | 2 +- .../kotlin/databases/update-polygon-attribute.md | 2 +- .../server-kotlin/kotlin/tablesdb/create-line-column.md | 2 +- .../server-kotlin/kotlin/tablesdb/create-point-column.md | 2 +- .../kotlin/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-kotlin/kotlin/tablesdb/create-row.md | 8 +++++++- .../server-kotlin/kotlin/tablesdb/update-line-column.md | 2 +- .../server-kotlin/kotlin/tablesdb/update-point-column.md | 2 +- .../kotlin/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-nodejs/examples/account/update-prefs.md | 6 +++++- .../server-nodejs/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-nodejs/examples/tablesdb/create-line-column.md | 2 +- .../examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-nodejs/examples/tablesdb/create-row.md | 8 +++++++- .../server-nodejs/examples/tablesdb/update-line-column.md | 2 +- .../examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-php/examples/account/update-prefs.md | 6 +++++- .../server-php/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-php/examples/tablesdb/create-line-column.md | 2 +- .../server-php/examples/tablesdb/create-point-column.md | 2 +- .../server-php/examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-php/examples/tablesdb/create-row.md | 8 +++++++- .../server-php/examples/tablesdb/update-line-column.md | 2 +- .../server-php/examples/tablesdb/update-point-column.md | 2 +- .../server-php/examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-python/examples/account/update-prefs.md | 6 +++++- .../server-python/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-python/examples/tablesdb/create-line-column.md | 2 +- .../examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-python/examples/tablesdb/create-row.md | 8 +++++++- .../server-python/examples/tablesdb/update-line-column.md | 2 +- .../examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- .../examples/1.8.x/server-rest/examples/account/create.md | 2 +- .../1.8.x/server-rest/examples/account/update-password.md | 2 +- .../1.8.x/server-rest/examples/account/update-prefs.md | 6 +++++- .../1.8.x/server-rest/examples/account/update-recovery.md | 2 +- .../examples/databases/create-boolean-attribute.md | 2 +- .../examples/databases/create-datetime-attribute.md | 4 ++-- .../server-rest/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-email-attribute.md | 2 +- .../examples/databases/create-enum-attribute.md | 2 +- .../examples/databases/create-float-attribute.md | 2 +- .../1.8.x/server-rest/examples/databases/create-index.md | 2 +- .../examples/databases/create-integer-attribute.md | 2 +- .../server-rest/examples/databases/create-ip-attribute.md | 4 ++-- .../examples/databases/create-line-attribute.md | 4 ++-- .../examples/databases/create-point-attribute.md | 4 ++-- .../examples/databases/create-polygon-attribute.md | 4 ++-- .../examples/databases/create-relationship-attribute.md | 4 ++-- .../examples/databases/create-string-attribute.md | 2 +- .../examples/databases/create-url-attribute.md | 2 +- .../examples/databases/update-boolean-attribute.md | 2 +- .../examples/databases/update-datetime-attribute.md | 4 ++-- .../examples/databases/update-email-attribute.md | 2 +- .../examples/databases/update-enum-attribute.md | 2 +- .../examples/databases/update-float-attribute.md | 2 +- .../examples/databases/update-integer-attribute.md | 2 +- .../server-rest/examples/databases/update-ip-attribute.md | 4 ++-- .../examples/databases/update-line-attribute.md | 4 ++-- .../examples/databases/update-point-attribute.md | 4 ++-- .../examples/databases/update-polygon-attribute.md | 4 ++-- .../examples/databases/update-relationship-attribute.md | 2 +- .../examples/databases/update-string-attribute.md | 2 +- .../examples/databases/update-url-attribute.md | 2 +- .../server-rest/examples/functions/create-deployment.md | 3 +-- .../1.8.x/server-rest/examples/functions/create.md | 4 ++-- .../1.8.x/server-rest/examples/functions/update.md | 4 ++-- .../1.8.x/server-rest/examples/messaging/create-email.md | 2 +- .../1.8.x/server-rest/examples/messaging/create-push.md | 2 +- .../1.8.x/server-rest/examples/messaging/create-sms.md | 2 +- .../1.8.x/server-rest/examples/messaging/update-email.md | 2 +- .../1.8.x/server-rest/examples/messaging/update-push.md | 2 +- .../1.8.x/server-rest/examples/messaging/update-sms.md | 2 +- .../1.8.x/server-rest/examples/sites/create-deployment.md | 3 +-- docs/examples/1.8.x/server-rest/examples/sites/create.md | 2 +- docs/examples/1.8.x/server-rest/examples/sites/update.md | 2 +- .../1.8.x/server-rest/examples/storage/create-file.md | 3 +-- .../examples/tablesdb/create-boolean-column.md | 2 +- .../examples/tablesdb/create-datetime-column.md | 4 ++-- .../server-rest/examples/tablesdb/create-email-column.md | 2 +- .../server-rest/examples/tablesdb/create-enum-column.md | 2 +- .../server-rest/examples/tablesdb/create-float-column.md | 2 +- .../1.8.x/server-rest/examples/tablesdb/create-index.md | 2 +- .../examples/tablesdb/create-integer-column.md | 2 +- .../server-rest/examples/tablesdb/create-ip-column.md | 4 ++-- .../server-rest/examples/tablesdb/create-line-column.md | 4 ++-- .../server-rest/examples/tablesdb/create-point-column.md | 4 ++-- .../examples/tablesdb/create-polygon-column.md | 4 ++-- .../examples/tablesdb/create-relationship-column.md | 4 ++-- .../1.8.x/server-rest/examples/tablesdb/create-row.md | 8 +++++++- .../server-rest/examples/tablesdb/create-string-column.md | 2 +- .../server-rest/examples/tablesdb/create-url-column.md | 2 +- .../examples/tablesdb/update-boolean-column.md | 2 +- .../examples/tablesdb/update-datetime-column.md | 4 ++-- .../server-rest/examples/tablesdb/update-email-column.md | 2 +- .../server-rest/examples/tablesdb/update-enum-column.md | 2 +- .../server-rest/examples/tablesdb/update-float-column.md | 2 +- .../examples/tablesdb/update-integer-column.md | 2 +- .../server-rest/examples/tablesdb/update-ip-column.md | 4 ++-- .../server-rest/examples/tablesdb/update-line-column.md | 4 ++-- .../server-rest/examples/tablesdb/update-point-column.md | 4 ++-- .../examples/tablesdb/update-polygon-column.md | 4 ++-- .../examples/tablesdb/update-relationship-column.md | 2 +- .../server-rest/examples/tablesdb/update-string-column.md | 2 +- .../server-rest/examples/tablesdb/update-url-column.md | 2 +- .../server-rest/examples/tokens/create-file-token.md | 2 +- docs/examples/1.8.x/server-rest/examples/tokens/update.md | 2 +- docs/examples/1.8.x/server-rest/examples/users/create.md | 2 +- .../1.8.x/server-rest/examples/users/update-password.md | 2 +- .../1.8.x/server-ruby/examples/account/update-prefs.md | 6 +++++- .../server-ruby/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-ruby/examples/tablesdb/create-line-column.md | 2 +- .../server-ruby/examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-ruby/examples/tablesdb/create-row.md | 8 +++++++- .../server-ruby/examples/tablesdb/update-line-column.md | 2 +- .../server-ruby/examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- .../1.8.x/server-swift/examples/account/update-prefs.md | 6 +++++- .../server-swift/examples/databases/create-document.md | 8 +++++++- .../examples/databases/create-line-attribute.md | 2 +- .../examples/databases/create-point-attribute.md | 2 +- .../examples/databases/create-polygon-attribute.md | 2 +- .../examples/databases/update-line-attribute.md | 2 +- .../examples/databases/update-point-attribute.md | 2 +- .../examples/databases/update-polygon-attribute.md | 2 +- .../server-swift/examples/tablesdb/create-line-column.md | 2 +- .../server-swift/examples/tablesdb/create-point-column.md | 2 +- .../examples/tablesdb/create-polygon-column.md | 2 +- .../1.8.x/server-swift/examples/tablesdb/create-row.md | 8 +++++++- .../server-swift/examples/tablesdb/update-line-column.md | 2 +- .../server-swift/examples/tablesdb/update-point-column.md | 2 +- .../examples/tablesdb/update-polygon-column.md | 2 +- 306 files changed, 655 insertions(+), 339 deletions(-) diff --git a/composer.lock b/composer.lock index 11b9a519c2..09974bcd52 100644 --- a/composer.lock +++ b/composer.lock @@ -8512,7 +8512,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { @@ -8536,5 +8536,5 @@ "platform-overrides": { "php": "8.3" }, - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } diff --git a/docs/examples/1.8.x/client-android/java/account/update-prefs.md b/docs/examples/1.8.x/client-android/java/account/update-prefs.md index f1a16c7de0..4bd6940c61 100644 --- a/docs/examples/1.8.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.8.x/client-android/java/account/update-prefs.md @@ -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(); diff --git a/docs/examples/1.8.x/client-android/java/databases/create-document.md b/docs/examples/1.8.x/client-android/java/databases/create-document.md index 4804d751e3..bd0b57ac4c 100644 --- a/docs/examples/1.8.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/create-document.md @@ -12,7 +12,13 @@ databases.createDocument( "", // databaseId "", // collectionId "", // 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) { diff --git a/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md b/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md index 12d1680b0f..8273573ddd 100644 --- a/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md @@ -12,7 +12,13 @@ tablesDB.createRow( "", // databaseId "", // tableId "", // 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) { diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md index fdfed577ac..ded80e9462 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md @@ -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 + ), ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md index 849a636afb..7f0aaf81f4 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md @@ -12,6 +12,12 @@ val result = databases.createDocument( databaseId = "", collectionId = "", documentId = "", - 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) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md b/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md index 1a9cbdb488..eb44cc48d6 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md @@ -12,6 +12,12 @@ val result = tablesDB.createRow( databaseId = "", tableId = "", rowId = "", - 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) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md index fea527337b..c81f481f61 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md @@ -7,6 +7,10 @@ let client = Client() let account = Account(client) let user = try await account.updatePrefs( - prefs: [:] + prefs: [ + "language": "en", + "timezone": "UTC", + "darkTheme": true + ] ) diff --git a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md index 51adb64bb3..c044eee17a 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md @@ -10,7 +10,13 @@ let document = try await databases.createDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md index 0972892585..2ee601340f 100644 --- a/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ let row = try await tablesDB.createRow( databaseId: "", tableId: "", rowId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md index 81fa362f89..a084c13e89 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md @@ -7,5 +7,9 @@ Client client = Client() Account account = Account(client); User result = await account.updatePrefs( - prefs: {}, + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md index 27efc34580..3becbcf1fc 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md @@ -10,6 +10,12 @@ Document result = await databases.createDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md index f546133b87..038bb2bac6 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md @@ -10,6 +10,12 @@ Row result = await tablesDB.createRow( databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // optional ); diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md index 57280247e4..8138cf0227 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md @@ -1,6 +1,6 @@ mutation { accountUpdatePrefs( - prefs: "{}" + prefs: "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" ) { _id _createdAt diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md index 4f525d6b1f..39e4bba1cb 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md index 621e46a64e..c7d2ec7d03 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md index 43fa9fc776..b4a8e0ab2e 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md index d0d25bd87d..e7cffc13d4 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md index 8eb4387cfa..ddf43c9758 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, // optional - min: null // optional + value: 0, // optional + min: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md index 8cb3d816cb..c129c38a25 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, // optional - max: null // optional + value: 0, // optional + max: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md index 4a44d3ca5e..965c8d42cf 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = await storage.createFile({ bucketId: '', fileId: '', - file: await pickSingle(), + file: InputFile.fromPath('/path/to/file', 'filename'), permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md index 43018476f3..a02a8376d5 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md index 6b47c18cf9..e00eeb84bf 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, // optional - min: null // optional + value: 0, // optional + min: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md index 62b7dd0c21..d4b2cf98ad 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, // optional - max: null // optional + value: 0, // optional + max: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/account/create.md b/docs/examples/1.8.x/client-rest/examples/account/create.md index 15bb386f41..fa06bfcc1a 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create.md @@ -7,6 +7,6 @@ X-Appwrite-Project: { "userId": "", "email": "email@example.com", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-password.md b/docs/examples/1.8.x/client-rest/examples/account/update-password.md index e05a1c2b7f..c26f18a4f3 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-password.md @@ -7,6 +7,6 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "password": , + "password": "", "oldPassword": "password" } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md index 24f2d3bcb6..0d7e4eab0c 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md @@ -7,5 +7,9 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "prefs": {} + "prefs": { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md index 7d40ee79fe..68919c29fb 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md @@ -9,5 +9,5 @@ X-Appwrite-JWT: { "userId": "", "secret": "", - "password": + "password": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md index e9b165e2ac..12f2159402 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md @@ -8,6 +8,12 @@ X-Appwrite-JWT: { "documentId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md index 0f83797b70..150801a22f 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md @@ -15,8 +15,7 @@ Content-Disposition: form-data; name="fileId" --cec8e8123c05ba25 Content-Disposition: form-data; name="file" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="permissions[]" diff --git a/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md index 1f7943f10c..34d8ab5152 100644 --- a/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md @@ -8,6 +8,12 @@ X-Appwrite-JWT: { "rowId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/client-web/examples/account/update-prefs.md b/docs/examples/1.8.x/client-web/examples/account/update-prefs.md index 98ea84181a..8ca2678a7a 100644 --- a/docs/examples/1.8.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-web/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/create-document.md b/docs/examples/1.8.x/client-web/examples/databases/create-document.md index 5c561ab799..08606c9b4f 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md index aafe71f4a5..1dd1fe4241 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-prefs.md b/docs/examples/1.8.x/console-web/examples/account/update-prefs.md index 6f80801e52..cebe1da948 100644 --- a/docs/examples/1.8.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/console-web/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-document.md b/docs/examples/1.8.x/console-web/examples/databases/create-document.md index b4c5200d74..40fbd4ad85 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md index 3f8ef6dd9d..edf80a25be 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md @@ -11,7 +11,7 @@ const result = await databases.createLineAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md index 2e4e46ae6f..975abdda91 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md @@ -11,7 +11,7 @@ const result = await databases.createPointAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md index d25177d846..0d95adda80 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md @@ -11,7 +11,7 @@ const result = await databases.createPolygonAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md index bceac57b93..429650fbce 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md @@ -11,7 +11,7 @@ const result = await databases.updateLineAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md index 50799cb639..03dfe6b2b5 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md @@ -11,7 +11,7 @@ const result = await databases.updatePointAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md index 51d6364e8c..0c3b590c34 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md @@ -11,7 +11,7 @@ const result = await databases.updatePolygonAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md index f2229a1782..ac3b2e946c 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md @@ -11,7 +11,7 @@ const result = await tablesDB.createLineColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md index 7240a8632e..604dbf182c 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md @@ -11,7 +11,7 @@ const result = await tablesDB.createPointColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md index 2908a1e88e..46d1b1b153 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md @@ -11,7 +11,7 @@ const result = await tablesDB.createPolygonColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md index 135d3e7070..6123b5fc31 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md index 12f31b9092..77ace03c2a 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md @@ -11,7 +11,7 @@ const result = await tablesDB.updateLineColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md index d811cc13b6..62d1fdd053 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md @@ -11,7 +11,7 @@ const result = await tablesDB.updatePointColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md index 5a7b41eff6..06e0a82c29 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md @@ -11,7 +11,7 @@ const result = await tablesDB.updatePolygonColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md index f4533cbea6..4334383546 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md @@ -8,5 +8,9 @@ Client client = Client() Account account = Account(client); User result = await account.updatePrefs( - prefs: {}, + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md index 1d58fc586c..e3bae98162 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md @@ -11,6 +11,12 @@ Document result = await databases.createDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md index ddbe06ccd1..aceaeb92be 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md @@ -12,5 +12,5 @@ AttributeLine result = await databases.createLineAttribute( collectionId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md index cc1656264c..1c3bee66fb 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md @@ -12,5 +12,5 @@ AttributePoint result = await databases.createPointAttribute( collectionId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md index 42050cc078..7c25973946 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md @@ -12,5 +12,5 @@ AttributePolygon result = await databases.createPolygonAttribute( collectionId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md index 30252b2cf7..e29549c072 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md @@ -12,6 +12,6 @@ AttributeLine result = await databases.updateLineAttribute( collectionId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md index 879e007e12..68cf1c53ed 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md @@ -12,6 +12,6 @@ AttributePoint result = await databases.updatePointAttribute( collectionId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md index 043596445e..fc31066606 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md @@ -12,6 +12,6 @@ AttributePolygon result = await databases.updatePolygonAttribute( collectionId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md index f1786d5554..60f00790d3 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md @@ -12,5 +12,5 @@ ColumnLine result = await tablesDB.createLineColumn( tableId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md index e6ddf73747..48b759ba59 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md @@ -12,5 +12,5 @@ ColumnPoint result = await tablesDB.createPointColumn( tableId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md index 525a98ff26..550c08621d 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md @@ -12,5 +12,5 @@ ColumnPolygon result = await tablesDB.createPolygonColumn( tableId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md index 15e4f8ea8d..c2f5dd8293 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ Row result = await tablesDB.createRow( databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md index 6d8ed43143..26d879d3d6 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md @@ -12,6 +12,6 @@ ColumnLine result = await tablesDB.updateLineColumn( tableId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md index ba0415b858..e0444b7f77 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md @@ -12,6 +12,6 @@ ColumnPoint result = await tablesDB.updatePointColumn( tableId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md index 7a5792d033..60ae79b384 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md @@ -12,6 +12,6 @@ ColumnPolygon result = await tablesDB.updatePolygonColumn( tableId: '', key: '', xrequired: false, - xdefault: '', // (optional) + xdefault: [[1,2], [3, 4]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md index f7bb254503..96bc4ac6be 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md @@ -8,5 +8,9 @@ const client = new Client() const account = new Account(client); const response = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md index 784b7dd530..35be696eb2 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md @@ -11,6 +11,12 @@ const response = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md index 65b20a5518..2f6b1f9bd2 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md @@ -12,5 +12,5 @@ const response = await databases.createLineAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md index 6ca0bfc3ea..173c759928 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md @@ -12,5 +12,5 @@ const response = await databases.createPointAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md index 65086b3702..13bec65296 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md @@ -12,5 +12,5 @@ const response = await databases.createPolygonAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md index 051688199a..a9cdf41f04 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md @@ -12,6 +12,6 @@ const response = await databases.updateLineAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md index 41ae3e51ee..552db1e60e 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md @@ -12,6 +12,6 @@ const response = await databases.updatePointAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md index 91882ba6e3..fc655f0737 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md @@ -12,6 +12,6 @@ const response = await databases.updatePolygonAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md index cef681035f..66d02cb64d 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md @@ -12,5 +12,5 @@ const response = await tablesDB.createLineColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md index 9b63b7a228..db8034e507 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md @@ -12,5 +12,5 @@ const response = await tablesDB.createPointColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md index d5a2eae95b..00dbbda632 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md @@ -12,5 +12,5 @@ const response = await tablesDB.createPolygonColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md index dadb5ecfb0..fdb59a6b70 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ const response = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md index fad46a3e2b..71ddd6bdcf 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.updateLineColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md index 6461b96fce..0075c71eba 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.updatePointColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md index aa26d7b52b..c057ba4225 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.updatePolygonColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md index 0b348a9c74..80f42aaaf8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md @@ -10,5 +10,9 @@ Client client = new Client() Account account = new Account(client); User result = await account.UpdatePrefs( - prefs: [object] + prefs: new { + language = "en", + timezone = "UTC", + darkTheme = true + } ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md index 52254e0c25..4a7444db7a 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md @@ -13,6 +13,12 @@ Document result = await databases.CreateDocument( databaseId: "", collectionId: "", documentId: "", - data: [object], + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 30, + isAdmin = false + }, permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md index fc834cd6cd..11b0654616 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md @@ -14,5 +14,5 @@ AttributeLine result = await databases.CreateLineAttribute( collectionId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md index 3f8c7d56c0..6698e6d8d6 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md @@ -14,5 +14,5 @@ AttributePoint result = await databases.CreatePointAttribute( collectionId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md index 61ce8a14d5..b4de8bdaf4 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md @@ -14,5 +14,5 @@ AttributePolygon result = await databases.CreatePolygonAttribute( collectionId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md index 51e85a4d77..90bd6433b1 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md @@ -14,6 +14,6 @@ AttributeLine result = await databases.UpdateLineAttribute( collectionId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md index 20822287de..eb504b3ba5 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md @@ -14,6 +14,6 @@ AttributePoint result = await databases.UpdatePointAttribute( collectionId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md index 5d5cd108f2..90cbac97a0 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md @@ -14,6 +14,6 @@ AttributePolygon result = await databases.UpdatePolygonAttribute( collectionId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md index 13a2cde7cb..ee9640b19e 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md @@ -14,5 +14,5 @@ ColumnLine result = await tablesDB.CreateLineColumn( tableId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md index 9c3946144b..ea1c524076 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md @@ -14,5 +14,5 @@ ColumnPoint result = await tablesDB.CreatePointColumn( tableId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md index 2787f9b423..a514dd407c 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md @@ -14,5 +14,5 @@ ColumnPolygon result = await tablesDB.CreatePolygonColumn( tableId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md index ec6255a11a..01a21b0dcd 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md @@ -13,6 +13,12 @@ Row result = await tablesDB.CreateRow( databaseId: "", tableId: "", rowId: "", - data: [object], + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 30, + isAdmin = false + }, permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md index ce04ab266c..b33213bbb6 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md @@ -14,6 +14,6 @@ ColumnLine result = await tablesDB.UpdateLineColumn( tableId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md index e17ebb3178..db02716951 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md @@ -14,6 +14,6 @@ ColumnPoint result = await tablesDB.UpdatePointColumn( tableId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md index 4137a21174..374033e2a3 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md @@ -14,6 +14,6 @@ ColumnPolygon result = await tablesDB.UpdatePolygonColumn( tableId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/account/update-prefs.md b/docs/examples/1.8.x/server-go/examples/account/update-prefs.md index 94c223ff31..2091395fb5 100644 --- a/docs/examples/1.8.x/server-go/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-go/examples/account/update-prefs.md @@ -15,5 +15,9 @@ client := client.New( service := account.New(client) response, error := service.UpdatePrefs( - map[string]interface{}{}, + map[string]interface{}{ + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-document.md b/docs/examples/1.8.x/server-go/examples/databases/create-document.md index 78f0eac32c..ea6305a06e 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-document.md @@ -18,6 +18,12 @@ response, error := service.CreateDocument( "", "", "", - map[string]interface{}{}, + map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, databases.WithCreateDocumentPermissions(interface{}{"read("any")"}), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md index 172a4dfbdb..49b9c5157e 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md @@ -19,5 +19,5 @@ response, error := service.CreateLineAttribute( "", "", false, - databases.WithCreateLineAttributeDefault(""), + databases.WithCreateLineAttributeDefault(interface{}{[1,2], [3, 4]}), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md index 105021720a..dec0f2bc66 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md @@ -19,5 +19,5 @@ response, error := service.CreatePointAttribute( "", "", false, - databases.WithCreatePointAttributeDefault(""), + databases.WithCreatePointAttributeDefault(interface{}{[1,2], [3, 4]}), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md index f3b596b689..c2d80cc081 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md @@ -19,5 +19,5 @@ response, error := service.CreatePolygonAttribute( "", "", false, - databases.WithCreatePolygonAttributeDefault(""), + databases.WithCreatePolygonAttributeDefault(interface{}{[1,2], [3, 4]}), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md index d6ad02967d..452ba482f6 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md @@ -19,6 +19,6 @@ response, error := service.UpdateLineAttribute( "", "", false, - databases.WithUpdateLineAttributeDefault(""), + databases.WithUpdateLineAttributeDefault(interface{}{[1,2], [3, 4]}), databases.WithUpdateLineAttributeNewKey(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md index d26f5a1006..9303e551f0 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md @@ -19,6 +19,6 @@ response, error := service.UpdatePointAttribute( "", "", false, - databases.WithUpdatePointAttributeDefault(""), + databases.WithUpdatePointAttributeDefault(interface{}{[1,2], [3, 4]}), databases.WithUpdatePointAttributeNewKey(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md index af29422e13..62b1bc27d4 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md @@ -19,6 +19,6 @@ response, error := service.UpdatePolygonAttribute( "", "", false, - databases.WithUpdatePolygonAttributeDefault(""), + databases.WithUpdatePolygonAttributeDefault(interface{}{[1,2], [3, 4]}), databases.WithUpdatePolygonAttributeNewKey(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md index adbdeb2b86..09d7b33f68 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md @@ -19,5 +19,5 @@ response, error := service.CreateLineColumn( "", "", false, - tablesdb.WithCreateLineColumnDefault(""), + tablesdb.WithCreateLineColumnDefault(interface{}{[1,2], [3, 4]}), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md index a0f2b59fae..cc410b3a89 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md @@ -19,5 +19,5 @@ response, error := service.CreatePointColumn( "", "", false, - tablesdb.WithCreatePointColumnDefault(""), + tablesdb.WithCreatePointColumnDefault(interface{}{[1,2], [3, 4]}), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md index 03ae57e71f..d0b009c3ff 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md @@ -19,5 +19,5 @@ response, error := service.CreatePolygonColumn( "", "", false, - tablesdb.WithCreatePolygonColumnDefault(""), + tablesdb.WithCreatePolygonColumnDefault(interface{}{[1,2], [3, 4]}), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md index 2441fa3dd8..596f11cf75 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md @@ -18,6 +18,12 @@ response, error := service.CreateRow( "", "", "", - map[string]interface{}{}, + map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, tablesdb.WithCreateRowPermissions(interface{}{"read("any")"}), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md index d2056c2403..d8a4a685c1 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md @@ -19,6 +19,6 @@ response, error := service.UpdateLineColumn( "", "", false, - tablesdb.WithUpdateLineColumnDefault(""), + tablesdb.WithUpdateLineColumnDefault(interface{}{[1,2], [3, 4]}), tablesdb.WithUpdateLineColumnNewKey(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md index 4b5d38174a..efa1a0ef64 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md @@ -19,6 +19,6 @@ response, error := service.UpdatePointColumn( "", "", false, - tablesdb.WithUpdatePointColumnDefault(""), + tablesdb.WithUpdatePointColumnDefault(interface{}{[1,2], [3, 4]}), tablesdb.WithUpdatePointColumnNewKey(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md index 81cd394e9a..d18c733662 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md @@ -19,6 +19,6 @@ response, error := service.UpdatePolygonColumn( "", "", false, - tablesdb.WithUpdatePolygonColumnDefault(""), + tablesdb.WithUpdatePolygonColumnDefault(interface{}{[1,2], [3, 4]}), tablesdb.WithUpdatePolygonColumnNewKey(""), ) diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md index 57280247e4..8138cf0227 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md @@ -1,6 +1,6 @@ mutation { accountUpdatePrefs( - prefs: "{}" + prefs: "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md index 4f525d6b1f..39e4bba1cb 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md index 3cb90718cd..e3e9772270 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md @@ -4,7 +4,7 @@ mutation { collectionId: "", key: "", required: false, - default: "" + default: [[1,2], [3, 4]] ) { key type diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md index 719c49272a..91990c79fb 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md @@ -4,7 +4,7 @@ mutation { collectionId: "", key: "", required: false, - default: "" + default: [[1,2], [3, 4]] ) { key type diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md index 3686981f25..76a9373935 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md @@ -4,7 +4,7 @@ mutation { collectionId: "", key: "", required: false, - default: "" + default: [[1,2], [3, 4]] ) { key type diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md index d04da21175..95e951708a 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md @@ -4,7 +4,7 @@ mutation { collectionId: "", key: "", required: false, - default: "", + default: [[1,2], [3, 4]], newKey: "" ) { key diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md index 03cc5456b3..baa7aac9b9 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md @@ -4,7 +4,7 @@ mutation { collectionId: "", key: "", required: false, - default: "", + default: [[1,2], [3, 4]], newKey: "" ) { key diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md index de5150e2aa..acdf039156 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md @@ -4,7 +4,7 @@ mutation { collectionId: "", key: "", required: false, - default: "", + default: [[1,2], [3, 4]], newKey: "" ) { key diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md index 322c48a191..210cd35bc6 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md @@ -4,7 +4,7 @@ mutation { tableId: "", key: "", required: false, - default: "" + default: [[1,2], [3, 4]] ) { key type diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md index 9c5d7c85d2..c3d1ccacfc 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md @@ -4,7 +4,7 @@ mutation { tableId: "", key: "", required: false, - default: "" + default: [[1,2], [3, 4]] ) { key type diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md index a930675ee6..a14284f3fe 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md @@ -4,7 +4,7 @@ mutation { tableId: "", key: "", required: false, - default: "" + default: [[1,2], [3, 4]] ) { key type diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md index 621e46a64e..c7d2ec7d03 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md index 973bc4740c..b0fe36d0dd 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md @@ -4,7 +4,7 @@ mutation { tableId: "", key: "", required: false, - default: "", + default: [[1,2], [3, 4]], newKey: "" ) { key diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md index 8cfb389679..62573a0264 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md @@ -4,7 +4,7 @@ mutation { tableId: "", key: "", required: false, - default: "", + default: [[1,2], [3, 4]], newKey: "" ) { key diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md index ef0d58be0c..3f6f1b4c56 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md @@ -4,7 +4,7 @@ mutation { tableId: "", key: "", required: false, - default: "", + default: [[1,2], [3, 4]], newKey: "" ) { key diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md index 0e900d0a66..0b6893916b 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md @@ -10,7 +10,11 @@ Client client = new Client() 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(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md index 5231be33d6..d5e777d157 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md @@ -13,7 +13,13 @@ databases.createDocument( "", // databaseId "", // collectionId "", // 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) { diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md index 36f79b946d..b8ff15a306 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md @@ -14,7 +14,7 @@ databases.createLineAttribute( "", // collectionId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md index 5a8a39b0cc..f4064619c8 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md @@ -14,7 +14,7 @@ databases.createPointAttribute( "", // collectionId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md index 22ee4d5cdf..2fc5e8b4d3 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md @@ -14,7 +14,7 @@ databases.createPolygonAttribute( "", // collectionId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md index 7c83476148..3f41048107 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md @@ -14,7 +14,7 @@ databases.updateLineAttribute( "", // collectionId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md index b0a233f678..7a8cb2a8b3 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md @@ -14,7 +14,7 @@ databases.updatePointAttribute( "", // collectionId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md index 1d365896a2..682e21d705 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md @@ -14,7 +14,7 @@ databases.updatePolygonAttribute( "", // collectionId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md index 64952912c2..96a0381b35 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md @@ -14,7 +14,7 @@ tablesDB.createLineColumn( "", // tableId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md index d0ddef983c..51c0e64d99 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md @@ -14,7 +14,7 @@ tablesDB.createPointColumn( "", // tableId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md index 3aa5487cc2..e5a6502651 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md @@ -14,7 +14,7 @@ tablesDB.createPolygonColumn( "", // tableId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md index 4145022015..6c7d84702d 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md @@ -13,7 +13,13 @@ tablesDB.createRow( "", // databaseId "", // tableId "", // 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) { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md index a1a0c67f5d..fbf151dd15 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md @@ -14,7 +14,7 @@ tablesDB.updateLineColumn( "", // tableId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md index 45565063a0..f506e719c9 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md @@ -14,7 +14,7 @@ tablesDB.updatePointColumn( "", // tableId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md index d7757bd580..e391aed8ed 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md @@ -14,7 +14,7 @@ tablesDB.updatePolygonColumn( "", // tableId "", // key false, // required - "", // default (optional) + listOf([1,2], [3, 4]), // default (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md index dafee7c0e5..63e66ca44a 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md @@ -10,5 +10,9 @@ val client = Client() val account = Account(client) val response = account.updatePrefs( - prefs = mapOf( "a" to "b" ) + prefs = mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ) ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md index 695fdbdfaa..1c1d628729 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md @@ -13,6 +13,12 @@ val response = databases.createDocument( databaseId = "", collectionId = "", documentId = "", - 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 ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md index 187f875c6b..1b196374ef 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md @@ -14,5 +14,5 @@ val response = databases.createLineAttribute( collectionId = "", key = "", required = false, - default = "" // optional + default = listOf([1,2], [3, 4]) // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md index d6915c1f5b..ed27944503 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md @@ -14,5 +14,5 @@ val response = databases.createPointAttribute( collectionId = "", key = "", required = false, - default = "" // optional + default = listOf([1,2], [3, 4]) // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md index 0a22962525..006c8e3c00 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md @@ -14,5 +14,5 @@ val response = databases.createPolygonAttribute( collectionId = "", key = "", required = false, - default = "" // optional + default = listOf([1,2], [3, 4]) // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md index c4b515ad47..3b5b78b511 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md @@ -14,6 +14,6 @@ val response = databases.updateLineAttribute( collectionId = "", key = "", required = false, - default = "", // optional + default = listOf([1,2], [3, 4]), // optional newKey = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md index 02bca873d7..2738fdbf71 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md @@ -14,6 +14,6 @@ val response = databases.updatePointAttribute( collectionId = "", key = "", required = false, - default = "", // optional + default = listOf([1,2], [3, 4]), // optional newKey = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md index b8c0fc94a0..e2d97d8e79 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md @@ -14,6 +14,6 @@ val response = databases.updatePolygonAttribute( collectionId = "", key = "", required = false, - default = "", // optional + default = listOf([1,2], [3, 4]), // optional newKey = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md index 0993eed919..e867887d5c 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md @@ -14,5 +14,5 @@ val response = tablesDB.createLineColumn( tableId = "", key = "", required = false, - default = "" // optional + default = listOf([1,2], [3, 4]) // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md index e18bfc34ed..6340b37530 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md @@ -14,5 +14,5 @@ val response = tablesDB.createPointColumn( tableId = "", key = "", required = false, - default = "" // optional + default = listOf([1,2], [3, 4]) // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md index 2f8ffd8125..d11c9549b5 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md @@ -14,5 +14,5 @@ val response = tablesDB.createPolygonColumn( tableId = "", key = "", required = false, - default = "" // optional + default = listOf([1,2], [3, 4]) // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md index 6a5b188166..774800d8f4 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md @@ -13,6 +13,12 @@ val response = tablesDB.createRow( databaseId = "", tableId = "", rowId = "", - 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 ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md index 05781dd6dd..9f6d976a64 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md @@ -14,6 +14,6 @@ val response = tablesDB.updateLineColumn( tableId = "", key = "", required = false, - default = "", // optional + default = listOf([1,2], [3, 4]), // optional newKey = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md index 947b4410d6..4d28299b86 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md @@ -14,6 +14,6 @@ val response = tablesDB.updatePointColumn( tableId = "", key = "", required = false, - default = "", // optional + default = listOf([1,2], [3, 4]), // optional newKey = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md index b9da6350f6..0599559b5e 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md @@ -14,6 +14,6 @@ val response = tablesDB.updatePolygonColumn( tableId = "", key = "", required = false, - default = "", // optional + default = listOf([1,2], [3, 4]), // optional newKey = "" // optional ) diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md index 113f8678df..ba41cf807e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md @@ -8,5 +8,9 @@ const client = new sdk.Client() const account = new sdk.Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md index 39442d1cb7..175e06301e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md @@ -11,6 +11,12 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md index 36584b9ee2..2b356de8dd 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md @@ -12,5 +12,5 @@ const result = await databases.createLineAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md index 9aba8c3eb7..3733d73458 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md @@ -12,5 +12,5 @@ const result = await databases.createPointAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md index 34e1c84708..0fbe7de4d3 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md @@ -12,5 +12,5 @@ const result = await databases.createPolygonAttribute({ collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md index 7d04a6eb1e..dfc6a30f94 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md @@ -12,6 +12,6 @@ const result = await databases.updateLineAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md index 092f85cc5a..9587f4f267 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md @@ -12,6 +12,6 @@ const result = await databases.updatePointAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md index 04c1467cde..f3df251c45 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md @@ -12,6 +12,6 @@ const result = await databases.updatePolygonAttribute({ collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md index c9d2782104..719f95be6c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md @@ -12,5 +12,5 @@ const result = await tablesDB.createLineColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md index ec29e1dfae..4dbba23101 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md @@ -12,5 +12,5 @@ const result = await tablesDB.createPointColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md index 2adda2eaa2..76dabf31e2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md @@ -12,5 +12,5 @@ const result = await tablesDB.createPolygonColumn({ tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md index aa9242301e..29ddab6652 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md index 68b86dabdc..8c00645dbb 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.updateLineColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md index c1484992a2..5ece8d8032 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.updatePointColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md index 0805b4131e..0649a84f56 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.updatePolygonColumn({ tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-php/examples/account/update-prefs.md b/docs/examples/1.8.x/server-php/examples/account/update-prefs.md index 698da0fd8a..f6a1003099 100644 --- a/docs/examples/1.8.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-php/examples/account/update-prefs.md @@ -11,5 +11,9 @@ $client = (new Client()) $account = new Account($client); $result = $account->updatePrefs( - prefs: [] + prefs: [ + 'language' => 'en', + 'timezone' => 'UTC', + 'darkTheme' => true + ] ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-document.md b/docs/examples/1.8.x/server-php/examples/databases/create-document.md index bf1ee3f62a..9f2e8f3643 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-document.md @@ -14,6 +14,12 @@ $result = $databases->createDocument( databaseId: '', collectionId: '', documentId: '', - data: [], + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 30, + 'isAdmin' => false + ], permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md index 5d4f968a4c..de9e624eb5 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md @@ -15,5 +15,5 @@ $result = $databases->createLineAttribute( collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md index 1c8cdb508e..de3f3a4005 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md @@ -15,5 +15,5 @@ $result = $databases->createPointAttribute( collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md index 0608d33f4f..b79a48ec2b 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md @@ -15,5 +15,5 @@ $result = $databases->createPolygonAttribute( collectionId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md index a5de5459ae..e24e9e4d5d 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md @@ -15,6 +15,6 @@ $result = $databases->updateLineAttribute( collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md index 0499663762..0a61026854 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md @@ -15,6 +15,6 @@ $result = $databases->updatePointAttribute( collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md index 99c63f19a2..3bf52289f1 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md @@ -15,6 +15,6 @@ $result = $databases->updatePolygonAttribute( collectionId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md index daab57e198..8d9353cdf1 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md @@ -15,5 +15,5 @@ $result = $tablesDB->createLineColumn( tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md index 6b8cf1d0ae..2832479b80 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md @@ -15,5 +15,5 @@ $result = $tablesDB->createPointColumn( tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md index 11147466f9..a6f685ad35 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md @@ -15,5 +15,5 @@ $result = $tablesDB->createPolygonColumn( tableId: '', key: '', required: false, - default: '' // optional + default: [[1,2], [3, 4]] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md index 0002b79852..fa5137b99e 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md @@ -14,6 +14,12 @@ $result = $tablesDB->createRow( databaseId: '', tableId: '', rowId: '', - data: [], + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 30, + 'isAdmin' => false + ], permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md index ac2584d6e3..184fada8ed 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md @@ -15,6 +15,6 @@ $result = $tablesDB->updateLineColumn( tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md index 159f893a52..4b1d73c861 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md @@ -15,6 +15,6 @@ $result = $tablesDB->updatePointColumn( tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md index 3f6f3e82fb..647fd27b8c 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md @@ -15,6 +15,6 @@ $result = $tablesDB->updatePolygonColumn( tableId: '', key: '', required: false, - default: '', // optional + default: [[1,2], [3, 4]], // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/account/update-prefs.md b/docs/examples/1.8.x/server-python/examples/account/update-prefs.md index e2ac7a28c1..8981af837a 100644 --- a/docs/examples/1.8.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-python/examples/account/update-prefs.md @@ -9,5 +9,9 @@ client.set_session('') # The user session to authenticate with account = Account(client) result = account.update_prefs( - prefs = {} + prefs = { + "language": "en", + "timezone": "UTC", + "darkTheme": True + } ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-document.md b/docs/examples/1.8.x/server-python/examples/databases/create-document.md index 1eaf0246f3..3d7dee1a4f 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-document.md @@ -12,6 +12,12 @@ result = databases.create_document( database_id = '', collection_id = '', document_id = '', - data = {}, + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": False + }, permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md index 3521cc90b7..ccb8fec7d2 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md @@ -13,5 +13,5 @@ result = databases.create_line_attribute( collection_id = '', key = '', required = False, - default = '' # optional + default = [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md index 8a808c444a..f0b1f2d55b 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md @@ -13,5 +13,5 @@ result = databases.create_point_attribute( collection_id = '', key = '', required = False, - default = '' # optional + default = [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md index 478a369210..dec3111b9e 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md @@ -13,5 +13,5 @@ result = databases.create_polygon_attribute( collection_id = '', key = '', required = False, - default = '' # optional + default = [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md index 378e5a9bc6..9bd33e6cbd 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md @@ -13,6 +13,6 @@ result = databases.update_line_attribute( collection_id = '', key = '', required = False, - default = '', # optional + default = [[1,2], [3, 4]], # optional new_key = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md index a7d96d0b47..90f2df57b9 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md @@ -13,6 +13,6 @@ result = databases.update_point_attribute( collection_id = '', key = '', required = False, - default = '', # optional + default = [[1,2], [3, 4]], # optional new_key = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md index b6ac782d48..07d17478c4 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md @@ -13,6 +13,6 @@ result = databases.update_polygon_attribute( collection_id = '', key = '', required = False, - default = '', # optional + default = [[1,2], [3, 4]], # optional new_key = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md index 9c6a1b7615..82482b3109 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md @@ -13,5 +13,5 @@ result = tables_db.create_line_column( table_id = '', key = '', required = False, - default = '' # optional + default = [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md index 4a9e92b504..9d866aab06 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md @@ -13,5 +13,5 @@ result = tables_db.create_point_column( table_id = '', key = '', required = False, - default = '' # optional + default = [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md index 6863fdd815..94877f19a0 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md @@ -13,5 +13,5 @@ result = tables_db.create_polygon_column( table_id = '', key = '', required = False, - default = '' # optional + default = [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md index 69fee14914..d4c1cdad14 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md @@ -12,6 +12,12 @@ result = tables_db.create_row( database_id = '', table_id = '', row_id = '', - data = {}, + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": False + }, permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md index b1a6475599..c59681d8bf 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md @@ -13,6 +13,6 @@ result = tables_db.update_line_column( table_id = '', key = '', required = False, - default = '', # optional + default = [[1,2], [3, 4]], # optional new_key = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md index 47c94395c7..5901280a01 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md @@ -13,6 +13,6 @@ result = tables_db.update_point_column( table_id = '', key = '', required = False, - default = '', # optional + default = [[1,2], [3, 4]], # optional new_key = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md index a38acbaf04..e936964d46 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md @@ -13,6 +13,6 @@ result = tables_db.update_polygon_column( table_id = '', key = '', required = False, - default = '', # optional + default = [[1,2], [3, 4]], # optional new_key = '' # optional ) diff --git a/docs/examples/1.8.x/server-rest/examples/account/create.md b/docs/examples/1.8.x/server-rest/examples/account/create.md index 15bb386f41..fa06bfcc1a 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create.md @@ -7,6 +7,6 @@ X-Appwrite-Project: { "userId": "", "email": "email@example.com", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-password.md b/docs/examples/1.8.x/server-rest/examples/account/update-password.md index e05a1c2b7f..c26f18a4f3 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-password.md @@ -7,6 +7,6 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "password": , + "password": "", "oldPassword": "password" } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md index 24f2d3bcb6..0d7e4eab0c 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md @@ -7,5 +7,9 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "prefs": {} + "prefs": { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md index 7d40ee79fe..68919c29fb 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md @@ -9,5 +9,5 @@ X-Appwrite-JWT: { "userId": "", "secret": "", - "password": + "password": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md index fb11c03cbd..b394a1779e 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": false, "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md index 3d0e718634..18e2a718d0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md index e4ba6ec1ff..57c38f0ba7 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md @@ -9,6 +9,12 @@ X-Appwrite-JWT: { "documentId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md index 02b7095d64..1fdf1510cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "email@example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md index a921e10c5f..8cfd0d1dde 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "elements": [], "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md index ea9dde56ce..238c079c09 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md index c78bdc37f9..cf9f1a8dae 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "type": "key", "attributes": [], "orders": [], diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md index cce3a3f265..485af8eb4c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md index 80afccb4c1..f9368e0f79 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md index 0f82788d51..f3b25d7b0b 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": + "default": [[1,2], [3, 4]] } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md index e0e905232f..e305cd5af5 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": + "default": [[1,2], [3, 4]] } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md index 198464d28d..3e0b1d65d6 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": + "default": [[1,2], [3, 4]] } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md index d9e6c6441c..34b5afb865 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md @@ -9,7 +9,7 @@ X-Appwrite-Key: "relatedCollectionId": "", "type": "oneToOne", "twoWay": false, - "key": , - "twoWayKey": , + "key": "", + "twoWayKey": "", "onDelete": "cascade" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md index 5591ca8d8a..880fd04417 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "size": 1, "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md index 4ee9595717..d1f8629a4b 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "https://example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md index 75f3d66b50..aeac097a06 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": false, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md index 59a477aca7..26f3c4e9f2 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md index 08257e8906..3852754227 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "email@example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md index 8e69a703ea..003c0a2a21 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "elements": [], "required": false, "default": "", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md index 214567660d..8ceffcaa2d 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md index 1f566c1369..0386cbd470 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md index 31bc18c587..7909f960c0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md index 9b58bb09f9..da8b36c8cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": [[1,2], [3, 4]], + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md index fe578cad95..bce57e253a 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": [[1,2], [3, 4]], + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md index 9affb7c37b..dfd86febd5 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": [[1,2], [3, 4]], + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md index 3cb7d4f679..2461ff3053 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md @@ -7,5 +7,5 @@ X-Appwrite-Key: { "onDelete": "cascade", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md index 2026b854a9..e7debaa46f 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "required": false, "default": "", "size": 1, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md index 4f90c7ade3..4318ab4564 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "https://example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md index f68e54dedc..9366ab01d9 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md @@ -19,8 +19,7 @@ Content-Disposition: form-data; name="commands" --cec8e8123c05ba25 Content-Disposition: form-data; name="code" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="activate" diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create.md b/docs/examples/1.8.x/server-rest/examples/functions/create.md index 1f034e60a4..2bccb0db4a 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create.md @@ -11,7 +11,7 @@ X-Appwrite-Key: "runtime": "node-14.5", "execute": ["any"], "events": [], - "schedule": , + "schedule": "", "timeout": 1, "enabled": false, "logging": false, @@ -23,5 +23,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update.md b/docs/examples/1.8.x/server-rest/examples/functions/update.md index 40329e5580..cbaa3d62f8 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update.md @@ -10,7 +10,7 @@ X-Appwrite-Key: "runtime": "node-14.5", "execute": ["any"], "events": [], - "schedule": , + "schedule": "", "timeout": 1, "enabled": false, "logging": false, @@ -22,5 +22,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md index b6c1392bb2..01888007f4 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md @@ -17,5 +17,5 @@ X-Appwrite-Key: "attachments": [], "draft": false, "html": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md index 08ba0357fe..a70702c014 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md @@ -21,7 +21,7 @@ X-Appwrite-Key: "tag": "", "badge": 0, "draft": false, - "scheduledAt": , + "scheduledAt": "", "contentAvailable": false, "critical": false, "priority": "normal" diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md index 82926e2a82..51c4350c1c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md @@ -12,5 +12,5 @@ X-Appwrite-Key: "users": [], "targets": [], "draft": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md index 97f3911ed1..0e1cd9b984 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md @@ -15,6 +15,6 @@ X-Appwrite-Key: "html": false, "cc": [], "bcc": [], - "scheduledAt": , + "scheduledAt": "", "attachments": [] } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md index 438ef373e5..b3b953bc31 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md @@ -20,7 +20,7 @@ X-Appwrite-Key: "tag": "", "badge": 0, "draft": false, - "scheduledAt": , + "scheduledAt": "", "contentAvailable": false, "critical": false, "priority": "normal" diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md index a917e270f7..be246dfa41 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md @@ -11,5 +11,5 @@ X-Appwrite-Key: "targets": [], "content": "", "draft": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md index 669ac50a75..226642f091 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md @@ -24,8 +24,7 @@ Content-Disposition: form-data; name="outputDirectory" --cec8e8123c05ba25 Content-Disposition: form-data; name="code" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="activate" diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create.md b/docs/examples/1.8.x/server-rest/examples/sites/create.md index 52b4d87219..23ac46eb67 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create.md @@ -23,5 +23,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update.md b/docs/examples/1.8.x/server-rest/examples/sites/update.md index 370984721f..08ebe17fb8 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update.md @@ -22,5 +22,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md index 086fd6dc72..055ed38ec0 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md @@ -16,8 +16,7 @@ Content-Disposition: form-data; name="fileId" --cec8e8123c05ba25 Content-Disposition: form-data; name="file" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="permissions[]" diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md index 8450b65435..7e7fdbeb92 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": false, "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md index 73d80272f9..c6fa72a1b1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md index 0d1d81c482..e65b46d1b7 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "email@example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md index 6b39abb92d..edcdd402f4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "elements": [], "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md index e890c595d0..14c0e61370 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md index baa06e815f..63e8daa511 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "type": "key", "columns": [], "orders": [], diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md index f34cf14965..2c0bef6b86 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md index 10a849d073..d7b8c1f5ae 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md index 793f6ce9c4..c0099b0784 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": + "default": [[1,2], [3, 4]] } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md index 094271eef3..23da2c91ef 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": + "default": [[1,2], [3, 4]] } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md index bb329cc5d1..d4bafe45a6 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": + "default": [[1,2], [3, 4]] } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md index 8dffdd30a2..3032dc051d 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md @@ -9,7 +9,7 @@ X-Appwrite-Key: "relatedTableId": "", "type": "oneToOne", "twoWay": false, - "key": , - "twoWayKey": , + "key": "", + "twoWayKey": "", "onDelete": "cascade" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md index d15cee6065..3c42d0f172 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md @@ -9,6 +9,12 @@ X-Appwrite-JWT: { "rowId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md index 6e3f7e21cd..919ad6a2e0 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "size": 1, "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md index 55e9774e51..f5627e22cb 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "https://example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md index 7e1f55b6bb..a06d826ac1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": false, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md index 0063dc1b15..0feea207c1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md index 8e7c1ad01f..9955db12bc 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "email@example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md index 343026a9ef..346d320024 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "elements": [], "required": false, "default": "", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md index 0756262cfd..9dc14f3d0f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md index 252627eb02..763c74fda6 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md index e43959f511..3336cfd7f5 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md index 070f6e1e59..13cbe046a7 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": [[1,2], [3, 4]], + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md index ad90ee7d63..6695a66a1c 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": [[1,2], [3, 4]], + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md index 6904f44237..ebc9cfab7d 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": [[1,2], [3, 4]], + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md index fde5191383..04af7914cb 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md @@ -7,5 +7,5 @@ X-Appwrite-Key: { "onDelete": "cascade", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md index a21b5e7fd1..a9345aabed 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "required": false, "default": "", "size": 1, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md index c5d7001454..7a7149fafa 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "https://example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md index 3d884e2c5d..712e843fbf 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "expire": + "expire": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/update.md b/docs/examples/1.8.x/server-rest/examples/tokens/update.md index ab58a4842a..a98ed5ef0b 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/update.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/update.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "expire": + "expire": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/users/create.md b/docs/examples/1.8.x/server-rest/examples/users/create.md index b638e6511e..d27b436580 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create.md @@ -9,6 +9,6 @@ X-Appwrite-Key: "userId": "", "email": "email@example.com", "phone": "+12065550100", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-password.md b/docs/examples/1.8.x/server-rest/examples/users/update-password.md index 40220f80d5..6f689670e5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-password.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "password": + "password": "" } diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md index ecfe4f4988..7e4311d9c6 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md @@ -10,5 +10,9 @@ client = Client.new account = Account.new(client) result = account.update_prefs( - prefs: {} + prefs: { + "language" => "en", + "timezone" => "UTC", + "darkTheme" => true + } ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md index e6831084a1..22ce5745fd 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md @@ -13,6 +13,12 @@ result = databases.create_document( database_id: '', collection_id: '', document_id: '', - data: {}, + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 30, + "isAdmin" => false + }, permissions: ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md index 798097367b..9a06ebd004 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md @@ -14,5 +14,5 @@ result = databases.create_line_attribute( collection_id: '', key: '', required: false, - default: '' # optional + default: [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md index 1e852a7baf..3d69f97538 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md @@ -14,5 +14,5 @@ result = databases.create_point_attribute( collection_id: '', key: '', required: false, - default: '' # optional + default: [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md index a9399808c7..24e6fffa79 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md @@ -14,5 +14,5 @@ result = databases.create_polygon_attribute( collection_id: '', key: '', required: false, - default: '' # optional + default: [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md index 34bfd9a1e0..fc54d103bb 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md @@ -14,6 +14,6 @@ result = databases.update_line_attribute( collection_id: '', key: '', required: false, - default: '', # optional + default: [[1,2], [3, 4]], # optional new_key: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md index bc33d4daf6..69fdac8c9c 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md @@ -14,6 +14,6 @@ result = databases.update_point_attribute( collection_id: '', key: '', required: false, - default: '', # optional + default: [[1,2], [3, 4]], # optional new_key: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md index 04a3d9e824..d5ecd9f0b4 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md @@ -14,6 +14,6 @@ result = databases.update_polygon_attribute( collection_id: '', key: '', required: false, - default: '', # optional + default: [[1,2], [3, 4]], # optional new_key: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md index e70b2111d8..371a1dd15d 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md @@ -14,5 +14,5 @@ result = tables_db.create_line_column( table_id: '', key: '', required: false, - default: '' # optional + default: [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md index 5f2e046d31..86940274bb 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md @@ -14,5 +14,5 @@ result = tables_db.create_point_column( table_id: '', key: '', required: false, - default: '' # optional + default: [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md index 86a18522b0..e7fcd72f6a 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md @@ -14,5 +14,5 @@ result = tables_db.create_polygon_column( table_id: '', key: '', required: false, - default: '' # optional + default: [[1,2], [3, 4]] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md index 5b66bc4cf4..5e19136676 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md @@ -13,6 +13,12 @@ result = tables_db.create_row( database_id: '', table_id: '', row_id: '', - data: {}, + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 30, + "isAdmin" => false + }, permissions: ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md index 7f71e18231..627947abaa 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md @@ -14,6 +14,6 @@ result = tables_db.update_line_column( table_id: '', key: '', required: false, - default: '', # optional + default: [[1,2], [3, 4]], # optional new_key: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md index ee32b54a1b..8bc58480d4 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md @@ -14,6 +14,6 @@ result = tables_db.update_point_column( table_id: '', key: '', required: false, - default: '', # optional + default: [[1,2], [3, 4]], # optional new_key: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md index 48c68a11ea..54512022b5 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md @@ -14,6 +14,6 @@ result = tables_db.update_polygon_column( table_id: '', key: '', required: false, - default: '', # optional + default: [[1,2], [3, 4]], # optional new_key: '' # optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md index 53bf623469..cc7b5e6860 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md @@ -8,6 +8,10 @@ let client = Client() let account = Account(client) let user = try await account.updatePrefs( - prefs: [:] + prefs: [ + "language": "en", + "timezone": "UTC", + "darkTheme": true + ] ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md index daeaf144e1..cc25fd8df8 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md @@ -11,7 +11,13 @@ let document = try await databases.createDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md index 38e7a7d13a..6683ba3ea6 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md @@ -12,6 +12,6 @@ let attributeLine = try await databases.createLineAttribute( collectionId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md index bd204071ce..62d95f84ee 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md @@ -12,6 +12,6 @@ let attributePoint = try await databases.createPointAttribute( collectionId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md index 9799c08177..6f7c2d2534 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md @@ -12,6 +12,6 @@ let attributePolygon = try await databases.createPolygonAttribute( collectionId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md index d7e7612c51..c71bffd525 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md @@ -12,7 +12,7 @@ let attributeLine = try await databases.updateLineAttribute( collectionId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md index 8907cd0cd8..7fc8c1164d 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md @@ -12,7 +12,7 @@ let attributePoint = try await databases.updatePointAttribute( collectionId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md index 35da75bffb..5ceeacba8c 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md @@ -12,7 +12,7 @@ let attributePolygon = try await databases.updatePolygonAttribute( collectionId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md index 6d776f9a22..31a09d9b47 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md @@ -12,6 +12,6 @@ let columnLine = try await tablesDB.createLineColumn( tableId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md index 53ed8b45f9..81e5fe9bec 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md @@ -12,6 +12,6 @@ let columnPoint = try await tablesDB.createPointColumn( tableId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md index 1c692be280..d336faae3d 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md @@ -12,6 +12,6 @@ let columnPolygon = try await tablesDB.createPolygonColumn( tableId: "", key: "", required: false, - default: "" // optional + default: [[1,2], [3, 4]] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md index 31e0ea9bc1..0c59a65755 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md @@ -11,7 +11,13 @@ let row = try await tablesDB.createRow( databaseId: "", tableId: "", rowId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md index b04fd74c6e..86a8959958 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md @@ -12,7 +12,7 @@ let columnLine = try await tablesDB.updateLineColumn( tableId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md index b2885de919..1ebfcfa45e 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md @@ -12,7 +12,7 @@ let columnPoint = try await tablesDB.updatePointColumn( tableId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md index 8ce6d2077f..d05f8867ba 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md @@ -12,7 +12,7 @@ let columnPolygon = try await tablesDB.updatePolygonColumn( tableId: "", key: "", required: false, - default: "", // optional + default: [[1,2], [3, 4]], // optional newKey: "" // optional )