diff --git a/docs/examples/0.15.x/client-android/java/databases/update-document.md b/docs/examples/0.15.x/client-android/java/databases/update-document.md index 9a258fdee6..81e55d48f1 100644 --- a/docs/examples/0.15.x/client-android/java/databases/update-document.md +++ b/docs/examples/0.15.x/client-android/java/databases/update-document.md @@ -22,7 +22,6 @@ public class MainActivity extends AppCompatActivity { "[DATABASE_ID]", "[COLLECTION_ID]", "[DOCUMENT_ID]", - mapOf( "a" to "b" ), new Continuation() { @NotNull @Override diff --git a/docs/examples/0.15.x/client-android/kotlin/databases/update-document.md b/docs/examples/0.15.x/client-android/kotlin/databases/update-document.md index 35d147d1c9..7807f5218f 100644 --- a/docs/examples/0.15.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/0.15.x/client-android/kotlin/databases/update-document.md @@ -21,7 +21,6 @@ class MainActivity : AppCompatActivity() { databaseId = "[DATABASE_ID]", collectionId = "[COLLECTION_ID]", documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), ) val json = response.body?.string() } diff --git a/docs/examples/0.15.x/client-apple/examples/databases/update-document.md b/docs/examples/0.15.x/client-apple/examples/databases/update-document.md index e67fbd159c..5f88a6253b 100644 --- a/docs/examples/0.15.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/0.15.x/client-apple/examples/databases/update-document.md @@ -8,8 +8,7 @@ func main() async throws { let document = try await databases.updateDocument( databaseId: "[DATABASE_ID]", collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: [:] + documentId: "[DOCUMENT_ID]" ) print(String(describing: document) diff --git a/docs/examples/0.15.x/client-flutter/examples/databases/update-document.md b/docs/examples/0.15.x/client-flutter/examples/databases/update-document.md index edac2eda8b..29abff6fe7 100644 --- a/docs/examples/0.15.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/0.15.x/client-flutter/examples/databases/update-document.md @@ -12,7 +12,6 @@ void main() { // Init SDK databaseId: '[DATABASE_ID]', collectionId: '[COLLECTION_ID]', documentId: '[DOCUMENT_ID]', - data: {}, ); result diff --git a/docs/examples/0.15.x/client-web/examples/databases/update-document.md b/docs/examples/0.15.x/client-web/examples/databases/update-document.md index a5fb88f473..2d59a8ad85 100644 --- a/docs/examples/0.15.x/client-web/examples/databases/update-document.md +++ b/docs/examples/0.15.x/client-web/examples/databases/update-document.md @@ -9,7 +9,7 @@ client .setProject('5df5acd0d48c2') // Your project ID ; -const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}); +const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); promise.then(function (response) { console.log(response); // Success diff --git a/docs/examples/0.15.x/console-cli/examples/databases/update-document.md b/docs/examples/0.15.x/console-cli/examples/databases/update-document.md index a4bd5b5cef..7684f13993 100644 --- a/docs/examples/0.15.x/console-cli/examples/databases/update-document.md +++ b/docs/examples/0.15.x/console-cli/examples/databases/update-document.md @@ -2,6 +2,6 @@ appwrite databases updateDocument \ --databaseId [DATABASE_ID] \ --collectionId [COLLECTION_ID] \ --documentId [DOCUMENT_ID] \ - --data '{ "key": "value" }' \ + diff --git a/docs/examples/0.15.x/console-web/examples/databases/update-document.md b/docs/examples/0.15.x/console-web/examples/databases/update-document.md index a5fb88f473..2d59a8ad85 100644 --- a/docs/examples/0.15.x/console-web/examples/databases/update-document.md +++ b/docs/examples/0.15.x/console-web/examples/databases/update-document.md @@ -9,7 +9,7 @@ client .setProject('5df5acd0d48c2') // Your project ID ; -const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}); +const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); promise.then(function (response) { console.log(response); // Success diff --git a/docs/examples/0.15.x/server-dart/examples/databases/update-document.md b/docs/examples/0.15.x/server-dart/examples/databases/update-document.md index 575962b3a8..41e1bff16b 100644 --- a/docs/examples/0.15.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/0.15.x/server-dart/examples/databases/update-document.md @@ -14,7 +14,6 @@ void main() { // Init SDK databaseId: '[DATABASE_ID]', collectionId: '[COLLECTION_ID]', documentId: '[DOCUMENT_ID]', - data: {}, ); result diff --git a/docs/examples/0.15.x/server-deno/examples/databases/update-document.md b/docs/examples/0.15.x/server-deno/examples/databases/update-document.md index e99f970fc7..a5ea5f67f8 100644 --- a/docs/examples/0.15.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/0.15.x/server-deno/examples/databases/update-document.md @@ -12,7 +12,7 @@ client ; -let promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}); +let promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-kotlin/java/databases/update-document.md b/docs/examples/0.15.x/server-kotlin/java/databases/update-document.md index 91cb68b2f0..93868d2896 100644 --- a/docs/examples/0.15.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/0.15.x/server-kotlin/java/databases/update-document.md @@ -12,7 +12,6 @@ public void main() { databaseId = "[DATABASE_ID]", collectionId = "[COLLECTION_ID]", documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), new Continuation() { @NotNull @Override diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/0.15.x/server-kotlin/kotlin/databases/update-document.md index 260a36b30f..8121fdd07c 100644 --- a/docs/examples/0.15.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/0.15.x/server-kotlin/kotlin/databases/update-document.md @@ -12,7 +12,6 @@ suspend fun main() { databaseId = "[DATABASE_ID]", collectionId = "[COLLECTION_ID]", documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.15.x/server-nodejs/examples/databases/update-document.md b/docs/examples/0.15.x/server-nodejs/examples/databases/update-document.md index 70f5c8defe..edd4ea691e 100644 --- a/docs/examples/0.15.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/0.15.x/server-nodejs/examples/databases/update-document.md @@ -11,7 +11,7 @@ client .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; -const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}); +const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-php/examples/databases/update-document.md b/docs/examples/0.15.x/server-php/examples/databases/update-document.md index 74bd011932..e8f6dd9eee 100644 --- a/docs/examples/0.15.x/server-php/examples/databases/update-document.md +++ b/docs/examples/0.15.x/server-php/examples/databases/update-document.md @@ -13,4 +13,4 @@ $client $databases = new Databases($client); -$result = $databases->updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', []); \ No newline at end of file +$result = $databases->updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-python/examples/databases/update-document.md b/docs/examples/0.15.x/server-python/examples/databases/update-document.md index b47bdfefc5..2d0123fb74 100644 --- a/docs/examples/0.15.x/server-python/examples/databases/update-document.md +++ b/docs/examples/0.15.x/server-python/examples/databases/update-document.md @@ -11,4 +11,4 @@ client = Client() databases = Databases(client) -result = databases.update_document('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}) +result = databases.update_document('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/update-document.md b/docs/examples/0.15.x/server-ruby/examples/databases/update-document.md index b85586dda8..e6de79eddd 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/update-document.md @@ -9,6 +9,6 @@ client databases = Appwrite::Databases.new(client) -response = databases.update_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {}) +response = databases.update_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-swift/examples/databases/list.md b/docs/examples/0.15.x/server-swift/examples/databases/list.md index e14d0c4b6d..f777518fe3 100644 --- a/docs/examples/0.15.x/server-swift/examples/databases/list.md +++ b/docs/examples/0.15.x/server-swift/examples/databases/list.md @@ -6,7 +6,7 @@ func main() async throws { .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) - let collectionList = try await databases.list() + let databaseList = try await databases.list() - print(String(describing: collectionList) + print(String(describing: databaseList) } diff --git a/docs/examples/0.15.x/server-swift/examples/databases/update-document.md b/docs/examples/0.15.x/server-swift/examples/databases/update-document.md index 0a35bd3370..0ab31e301c 100644 --- a/docs/examples/0.15.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/0.15.x/server-swift/examples/databases/update-document.md @@ -9,8 +9,7 @@ func main() async throws { let document = try await databases.updateDocument( databaseId: "[DATABASE_ID]", collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: [:] + documentId: "[DOCUMENT_ID]" ) print(String(describing: document)