From 23c433c2ed28d9aba6fd7d95ca91dbb419ab4c78 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 5 Sep 2025 17:30:39 +0530 Subject: [PATCH 01/19] feat: update examples --- composer.json | 2 +- composer.lock | 18 ++++++------ .../java/account/update-prefs.md | 6 +++- .../java/databases/create-document.md | 8 +++++- .../java/tablesdb/create-row.md | 8 +++++- .../kotlin/account/update-prefs.md | 6 +++- .../kotlin/databases/create-document.md | 8 +++++- .../kotlin/tablesdb/create-row.md | 8 +++++- .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../examples/tablesdb/create-row.md | 8 +++++- .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../examples/databases/update-document.md | 2 +- .../examples/databases/upsert-document.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/update-row.md | 2 +- .../examples/tablesdb/upsert-row.md | 2 +- .../examples/teams/update-prefs.md | 2 +- .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../databases/decrement-document-attribute.md | 4 +-- .../databases/increment-document-attribute.md | 4 +-- .../examples/storage/create-file.md | 2 +- .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/decrement-row-column.md | 4 +-- .../examples/tablesdb/increment-row-column.md | 4 +-- .../client-rest/examples/account/create.md | 2 +- .../examples/account/update-password.md | 2 +- .../examples/account/update-prefs.md | 6 +++- .../examples/account/update-recovery.md | 2 +- .../examples/databases/create-document.md | 8 +++++- .../examples/storage/create-file.md | 3 +- .../examples/tablesdb/create-row.md | 8 +++++- .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../examples/storage/create-file.md | 2 +- .../examples/tablesdb/create-row.md | 8 +++++- .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../databases/create-line-attribute.md | 17 +++++++++++ .../databases/create-point-attribute.md | 17 +++++++++++ .../databases/create-polygon-attribute.md | 17 +++++++++++ .../databases/update-line-attribute.md | 18 ++++++++++++ .../databases/update-point-attribute.md | 18 ++++++++++++ .../databases/update-polygon-attribute.md | 18 ++++++++++++ .../examples/functions/create-deployment.md | 2 +- .../examples/sites/create-deployment.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/tablesdb/create-line-column.md | 17 +++++++++++ .../examples/tablesdb/create-point-column.md | 17 +++++++++++ .../tablesdb/create-polygon-column.md | 17 +++++++++++ .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/update-line-column.md | 18 ++++++++++++ .../examples/tablesdb/update-point-column.md | 18 ++++++++++++ .../tablesdb/update-polygon-column.md | 18 ++++++++++++ .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../databases/create-line-attribute.md | 16 +++++++++++ .../databases/create-point-attribute.md | 16 +++++++++++ .../databases/create-polygon-attribute.md | 16 +++++++++++ .../databases/update-line-attribute.md | 17 +++++++++++ .../databases/update-point-attribute.md | 17 +++++++++++ .../databases/update-polygon-attribute.md | 17 +++++++++++ .../examples/tablesdb/create-line-column.md | 16 +++++++++++ .../examples/tablesdb/create-point-column.md | 16 +++++++++++ .../tablesdb/create-polygon-column.md | 16 +++++++++++ .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/update-line-column.md | 17 +++++++++++ .../examples/tablesdb/update-point-column.md | 17 +++++++++++ .../tablesdb/update-polygon-column.md | 17 +++++++++++ .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../databases/create-line-attribute.md | 16 +++++++++++ .../databases/create-point-attribute.md | 16 +++++++++++ .../databases/create-polygon-attribute.md | 16 +++++++++++ .../databases/update-line-attribute.md | 17 +++++++++++ .../databases/update-point-attribute.md | 17 +++++++++++ .../databases/update-polygon-attribute.md | 17 +++++++++++ .../examples/tablesdb/create-line-column.md | 16 +++++++++++ .../examples/tablesdb/create-point-column.md | 16 +++++++++++ .../tablesdb/create-polygon-column.md | 16 +++++++++++ .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/update-line-column.md | 17 +++++++++++ .../examples/tablesdb/update-point-column.md | 17 +++++++++++ .../tablesdb/update-polygon-column.md | 17 +++++++++++ .../databases/create-line-attribute.md | 18 ++++++++++++ .../databases/create-point-attribute.md | 18 ++++++++++++ .../databases/create-polygon-attribute.md | 18 ++++++++++++ .../databases/update-line-attribute.md | 19 +++++++++++++ .../databases/update-point-attribute.md | 19 +++++++++++++ .../databases/update-polygon-attribute.md | 19 +++++++++++++ .../examples/tablesdb/create-line-column.md | 18 ++++++++++++ .../examples/tablesdb/create-point-column.md | 18 ++++++++++++ .../tablesdb/create-polygon-column.md | 18 ++++++++++++ .../examples/tablesdb/update-line-column.md | 19 +++++++++++++ .../examples/tablesdb/update-point-column.md | 19 +++++++++++++ .../tablesdb/update-polygon-column.md | 19 +++++++++++++ .../databases/create-line-attribute.md | 23 +++++++++++++++ .../databases/create-point-attribute.md | 23 +++++++++++++++ .../databases/create-polygon-attribute.md | 23 +++++++++++++++ .../databases/update-line-attribute.md | 24 ++++++++++++++++ .../databases/update-point-attribute.md | 24 ++++++++++++++++ .../databases/update-polygon-attribute.md | 24 ++++++++++++++++ .../examples/tablesdb/create-line-column.md | 23 +++++++++++++++ .../examples/tablesdb/create-point-column.md | 23 +++++++++++++++ .../tablesdb/create-polygon-column.md | 23 +++++++++++++++ .../examples/tablesdb/update-line-column.md | 24 ++++++++++++++++ .../examples/tablesdb/update-point-column.md | 24 ++++++++++++++++ .../tablesdb/update-polygon-column.md | 24 ++++++++++++++++ .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../databases/create-line-attribute.md | 19 +++++++++++++ .../databases/create-point-attribute.md | 19 +++++++++++++ .../databases/create-polygon-attribute.md | 19 +++++++++++++ .../examples/databases/update-document.md | 2 +- .../examples/databases/update-documents.md | 2 +- .../databases/update-line-attribute.md | 20 +++++++++++++ .../databases/update-point-attribute.md | 20 +++++++++++++ .../databases/update-polygon-attribute.md | 20 +++++++++++++ .../examples/databases/upsert-document.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/messaging/create-fcm-provider.md | 2 +- .../examples/messaging/create-push.md | 2 +- .../examples/messaging/update-fcm-provider.md | 2 +- .../examples/messaging/update-push.md | 2 +- .../examples/tablesdb/create-line-column.md | 19 +++++++++++++ .../examples/tablesdb/create-point-column.md | 19 +++++++++++++ .../tablesdb/create-polygon-column.md | 19 +++++++++++++ .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/update-line-column.md | 20 +++++++++++++ .../examples/tablesdb/update-point-column.md | 20 +++++++++++++ .../tablesdb/update-polygon-column.md | 20 +++++++++++++ .../examples/tablesdb/update-row.md | 2 +- .../examples/tablesdb/update-rows.md | 2 +- .../examples/tablesdb/upsert-row.md | 2 +- .../examples/teams/update-prefs.md | 2 +- .../examples/users/update-prefs.md | 2 +- .../java/account/update-prefs.md | 6 +++- .../java/databases/create-document.md | 8 +++++- .../java/databases/create-line-attribute.md | 27 ++++++++++++++++++ .../java/databases/create-point-attribute.md | 27 ++++++++++++++++++ .../databases/create-polygon-attribute.md | 27 ++++++++++++++++++ .../java/databases/update-line-attribute.md | 28 +++++++++++++++++++ .../java/databases/update-point-attribute.md | 28 +++++++++++++++++++ .../databases/update-polygon-attribute.md | 28 +++++++++++++++++++ .../java/tablesdb/create-line-column.md | 27 ++++++++++++++++++ .../java/tablesdb/create-point-column.md | 27 ++++++++++++++++++ .../java/tablesdb/create-polygon-column.md | 27 ++++++++++++++++++ .../server-kotlin/java/tablesdb/create-row.md | 8 +++++- .../java/tablesdb/update-line-column.md | 28 +++++++++++++++++++ .../java/tablesdb/update-point-column.md | 28 +++++++++++++++++++ .../java/tablesdb/update-polygon-column.md | 28 +++++++++++++++++++ .../kotlin/account/update-prefs.md | 6 +++- .../kotlin/databases/create-document.md | 8 +++++- .../kotlin/databases/create-line-attribute.md | 18 ++++++++++++ .../databases/create-point-attribute.md | 18 ++++++++++++ .../databases/create-polygon-attribute.md | 18 ++++++++++++ .../kotlin/databases/update-line-attribute.md | 19 +++++++++++++ .../databases/update-point-attribute.md | 19 +++++++++++++ .../databases/update-polygon-attribute.md | 19 +++++++++++++ .../kotlin/tablesdb/create-line-column.md | 18 ++++++++++++ .../kotlin/tablesdb/create-point-column.md | 18 ++++++++++++ .../kotlin/tablesdb/create-polygon-column.md | 18 ++++++++++++ .../kotlin/tablesdb/create-row.md | 8 +++++- .../kotlin/tablesdb/update-line-column.md | 19 +++++++++++++ .../kotlin/tablesdb/update-point-column.md | 19 +++++++++++++ .../kotlin/tablesdb/update-polygon-column.md | 19 +++++++++++++ .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../databases/create-line-attribute.md | 16 +++++++++++ .../databases/create-point-attribute.md | 16 +++++++++++ .../databases/create-polygon-attribute.md | 16 +++++++++++ .../databases/update-line-attribute.md | 17 +++++++++++ .../databases/update-point-attribute.md | 17 +++++++++++ .../databases/update-polygon-attribute.md | 17 +++++++++++ .../examples/tablesdb/create-line-column.md | 16 +++++++++++ .../examples/tablesdb/create-point-column.md | 16 +++++++++++ .../tablesdb/create-polygon-column.md | 16 +++++++++++ .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/update-line-column.md | 17 +++++++++++ .../examples/tablesdb/update-point-column.md | 17 +++++++++++ .../tablesdb/update-polygon-column.md | 17 +++++++++++ .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../databases/create-line-attribute.md | 19 +++++++++++++ .../databases/create-point-attribute.md | 19 +++++++++++++ .../databases/create-polygon-attribute.md | 19 +++++++++++++ .../databases/update-line-attribute.md | 20 +++++++++++++ .../databases/update-point-attribute.md | 20 +++++++++++++ .../databases/update-polygon-attribute.md | 20 +++++++++++++ .../examples/tablesdb/create-line-column.md | 19 +++++++++++++ .../examples/tablesdb/create-point-column.md | 19 +++++++++++++ .../tablesdb/create-polygon-column.md | 19 +++++++++++++ .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/update-line-column.md | 20 +++++++++++++ .../examples/tablesdb/update-point-column.md | 20 +++++++++++++ .../tablesdb/update-polygon-column.md | 20 +++++++++++++ .../examples/account/update-prefs.md | 6 +++- .../examples/databases/create-document.md | 8 +++++- .../databases/create-line-attribute.md | 17 +++++++++++ .../databases/create-point-attribute.md | 17 +++++++++++ .../databases/create-polygon-attribute.md | 17 +++++++++++ .../examples/databases/update-document.md | 2 +- .../examples/databases/update-documents.md | 2 +- .../databases/update-line-attribute.md | 18 ++++++++++++ .../databases/update-point-attribute.md | 18 ++++++++++++ .../databases/update-polygon-attribute.md | 18 ++++++++++++ .../examples/databases/upsert-document.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/graphql/mutation.md | 2 +- .../server-python/examples/graphql/query.md | 2 +- .../examples/messaging/create-fcm-provider.md | 2 +- .../examples/messaging/create-push.md | 2 +- .../examples/messaging/update-fcm-provider.md | 2 +- .../examples/messaging/update-push.md | 2 +- .../examples/tablesdb/create-line-column.md | 17 +++++++++++ .../examples/tablesdb/create-point-column.md | 17 +++++++++++ .../tablesdb/create-polygon-column.md | 17 +++++++++++ .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/update-line-column.md | 18 ++++++++++++ .../examples/tablesdb/update-point-column.md | 18 ++++++++++++ .../tablesdb/update-polygon-column.md | 18 ++++++++++++ .../examples/tablesdb/update-row.md | 2 +- .../examples/tablesdb/update-rows.md | 2 +- .../examples/tablesdb/upsert-row.md | 2 +- .../examples/teams/update-prefs.md | 2 +- .../examples/users/update-prefs.md | 2 +- .../server-rest/examples/account/create.md | 2 +- .../examples/account/update-password.md | 2 +- .../examples/account/update-prefs.md | 6 +++- .../examples/account/update-recovery.md | 2 +- .../databases/create-boolean-attribute.md | 2 +- .../databases/create-datetime-attribute.md | 4 +-- .../examples/databases/create-document.md | 8 +++++- .../databases/create-email-attribute.md | 2 +- .../databases/create-enum-attribute.md | 2 +- .../databases/create-float-attribute.md | 2 +- .../examples/databases/create-index.md | 2 +- .../databases/create-integer-attribute.md | 2 +- .../examples/databases/create-ip-attribute.md | 4 +-- .../databases/create-line-attribute.md | 12 ++++++++ .../databases/create-point-attribute.md | 12 ++++++++ .../databases/create-polygon-attribute.md | 12 ++++++++ .../create-relationship-attribute.md | 4 +-- .../databases/create-string-attribute.md | 2 +- .../databases/create-url-attribute.md | 2 +- .../databases/update-boolean-attribute.md | 2 +- .../databases/update-datetime-attribute.md | 4 +-- .../databases/update-email-attribute.md | 2 +- .../databases/update-enum-attribute.md | 2 +- .../databases/update-float-attribute.md | 2 +- .../databases/update-integer-attribute.md | 2 +- .../examples/databases/update-ip-attribute.md | 4 +-- .../databases/update-line-attribute.md | 12 ++++++++ .../databases/update-point-attribute.md | 12 ++++++++ .../databases/update-polygon-attribute.md | 12 ++++++++ .../update-relationship-attribute.md | 2 +- .../databases/update-string-attribute.md | 2 +- .../databases/update-url-attribute.md | 2 +- .../examples/functions/create-deployment.md | 3 +- .../server-rest/examples/functions/create.md | 4 +-- .../server-rest/examples/functions/update.md | 4 +-- .../examples/messaging/create-email.md | 2 +- .../examples/messaging/create-push.md | 2 +- .../examples/messaging/create-sms.md | 2 +- .../examples/messaging/update-email.md | 2 +- .../examples/messaging/update-push.md | 2 +- .../examples/messaging/update-sms.md | 2 +- .../examples/sites/create-deployment.md | 3 +- .../server-rest/examples/sites/create.md | 2 +- .../server-rest/examples/sites/update.md | 2 +- .../examples/storage/create-file.md | 3 +- .../tablesdb/create-boolean-column.md | 2 +- .../tablesdb/create-datetime-column.md | 4 +-- .../examples/tablesdb/create-email-column.md | 2 +- .../examples/tablesdb/create-enum-column.md | 2 +- .../examples/tablesdb/create-float-column.md | 2 +- .../examples/tablesdb/create-index.md | 2 +- .../tablesdb/create-integer-column.md | 2 +- .../examples/tablesdb/create-ip-column.md | 4 +-- .../examples/tablesdb/create-line-column.md | 12 ++++++++ .../examples/tablesdb/create-point-column.md | 12 ++++++++ .../tablesdb/create-polygon-column.md | 12 ++++++++ .../tablesdb/create-relationship-column.md | 4 +-- .../examples/tablesdb/create-row.md | 8 +++++- .../examples/tablesdb/create-string-column.md | 2 +- .../examples/tablesdb/create-url-column.md | 2 +- .../tablesdb/update-boolean-column.md | 2 +- .../tablesdb/update-datetime-column.md | 4 +-- .../examples/tablesdb/update-email-column.md | 2 +- .../examples/tablesdb/update-enum-column.md | 2 +- .../examples/tablesdb/update-float-column.md | 2 +- .../tablesdb/update-integer-column.md | 2 +- .../examples/tablesdb/update-ip-column.md | 4 +-- .../examples/tablesdb/update-line-column.md | 12 ++++++++ .../examples/tablesdb/update-point-column.md | 12 ++++++++ .../tablesdb/update-polygon-column.md | 12 ++++++++ .../tablesdb/update-relationship-column.md | 2 +- .../examples/tablesdb/update-string-column.md | 2 +- .../examples/tablesdb/update-url-column.md | 2 +- .../examples/tokens/create-file-token.md | 2 +- .../server-rest/examples/tokens/update.md | 2 +- .../server-rest/examples/users/create.md | 2 +- .../examples/users/update-password.md | 2 +- .../examples/account/update-prefs.md | 2 +- .../examples/databases/create-document.md | 2 +- .../databases/create-line-attribute.md | 18 ++++++++++++ .../databases/create-point-attribute.md | 18 ++++++++++++ .../databases/create-polygon-attribute.md | 18 ++++++++++++ .../databases/update-line-attribute.md | 19 +++++++++++++ .../databases/update-point-attribute.md | 19 +++++++++++++ .../databases/update-polygon-attribute.md | 19 +++++++++++++ .../examples/tablesdb/create-line-column.md | 18 ++++++++++++ .../examples/tablesdb/create-point-column.md | 18 ++++++++++++ .../tablesdb/create-polygon-column.md | 18 ++++++++++++ .../examples/tablesdb/create-row.md | 2 +- .../examples/tablesdb/update-line-column.md | 19 +++++++++++++ .../examples/tablesdb/update-point-column.md | 19 +++++++++++++ .../tablesdb/update-polygon-column.md | 19 +++++++++++++ .../databases/create-line-attribute.md | 17 +++++++++++ .../databases/create-point-attribute.md | 17 +++++++++++ .../databases/create-polygon-attribute.md | 17 +++++++++++ .../databases/update-line-attribute.md | 18 ++++++++++++ .../databases/update-point-attribute.md | 18 ++++++++++++ .../databases/update-polygon-attribute.md | 18 ++++++++++++ .../examples/tablesdb/create-line-column.md | 17 +++++++++++ .../examples/tablesdb/create-point-column.md | 17 +++++++++++ .../tablesdb/create-polygon-column.md | 17 +++++++++++ .../examples/tablesdb/update-line-column.md | 18 ++++++++++++ .../examples/tablesdb/update-point-column.md | 18 ++++++++++++ .../tablesdb/update-polygon-column.md | 18 ++++++++++++ 333 files changed, 3576 insertions(+), 192 deletions(-) create mode 100644 docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md diff --git a/composer.json b/composer.json index c4e5e72305..79e9a95f38 100644 --- a/composer.json +++ b/composer.json @@ -88,7 +88,7 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "*", + "appwrite/sdk-generator": "dev-feat-object-example-handling", "phpunit/phpunit": "9.*", "swoole/ide-helper": "5.1.2", "phpstan/phpstan": "1.8.*", diff --git a/composer.lock b/composer.lock index d8323ceeea..3505ded025 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "afc8b2b314887779f507fd6a101ef6af", + "content-hash": "37f7d1f59540c2b15e430cb60735ed44", "packages": [ { "name": "adhocore/jwt", @@ -5019,16 +5019,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "1.2.2", + "version": "dev-feat-object-example-handling", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "db229faf442a64094ebdea7d4b66f48184a7106f" + "reference": "70b527cee02552f97bd22182cb70d892a7d29e15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/db229faf442a64094ebdea7d4b66f48184a7106f", - "reference": "db229faf442a64094ebdea7d4b66f48184a7106f", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/70b527cee02552f97bd22182cb70d892a7d29e15", + "reference": "70b527cee02552f97bd22182cb70d892a7d29e15", "shasum": "" }, "require": { @@ -5064,9 +5064,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/1.2.2" + "source": "https://github.com/appwrite/sdk-generator/tree/feat-object-example-handling" }, - "time": "2025-09-05T08:28:53+00:00" + "time": "2025-09-05T11:57:48+00:00" }, { "name": "doctrine/annotations", @@ -8524,7 +8524,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": {}, + "stability-flags": { + "appwrite/sdk-generator": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { 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-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..4c1a168988 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,10 @@ 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..841e5165f7 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,13 @@ 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/databases/update-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md index aea605d9d7..46bfa2689f 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: {}, permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md index 9d1e753081..1e9378c997 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: {}, permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md b/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md index ff0ecbe739..06a904f749 100644 --- a/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md @@ -5,7 +5,7 @@ mutation { async: false, path: "", method: "GET", - headers: "{}", + headers: {}, scheduledAt: "" ) { _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..81b12b2126 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,13 @@ 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-graphql/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md index 5a5b288ab8..3dad818285 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: {}, permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md index cc3b63de4a..1826880afe 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: {}, permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/teams/update-prefs.md b/docs/examples/1.8.x/client-graphql/examples/teams/update-prefs.md index 95737e33f9..fe82c8f9eb 100644 --- a/docs/examples/1.8.x/client-graphql/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/client-graphql/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ mutation { teamsUpdatePrefs( teamId: "", - prefs: "{}" + prefs: {} ) { data } 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/storage/create-file.md b/docs/examples/1.8.x/client-web/examples/storage/create-file.md index 999fcb20ac..dc4cb05677 100644 --- a/docs/examples/1.8.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-web/examples/storage/create-file.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = await storage.createFile({ bucketId: '', fileId: '', - file: document.getElementById('uploader').files[0], + file: document.getElementById('uploader/').files[0], 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 new file mode 100644 index 0000000000..3f8ef6dd9d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..2e4e46ae6f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createPointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..d25177d846 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createPolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..bceac57b93 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); 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 new file mode 100644 index 0000000000..50799cb639 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updatePointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); 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 new file mode 100644 index 0000000000..51d6364e8c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updatePolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md index ff9be3c80f..66350399e1 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md @@ -8,7 +8,7 @@ const functions = new Functions(client); const result = await functions.createDeployment({ functionId: '', - code: document.getElementById('uploader').files[0], + code: document.getElementById('uploader/').files[0], activate: false, entrypoint: '', // optional commands: '' // optional diff --git a/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md b/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md index 44dc68adb8..fcf531cd0b 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md @@ -8,7 +8,7 @@ const sites = new Sites(client); const result = await sites.createDeployment({ siteId: '', - code: document.getElementById('uploader').files[0], + code: document.getElementById('uploader/').files[0], activate: false, installCommand: '', // optional buildCommand: '', // optional diff --git a/docs/examples/1.8.x/console-web/examples/storage/create-file.md b/docs/examples/1.8.x/console-web/examples/storage/create-file.md index 1dcab62ba4..72a7bd1a0c 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.8.x/console-web/examples/storage/create-file.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = await storage.createFile({ bucketId: '', fileId: '', - file: document.getElementById('uploader').files[0], + file: document.getElementById('uploader/').files[0], permissions: ["read("any")"] // 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 new file mode 100644 index 0000000000..f2229a1782 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..7240a8632e --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createPointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..2908a1e88e --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createPolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..12f31b9092 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updateLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); 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 new file mode 100644 index 0000000000..d811cc13b6 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updatePointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); 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 new file mode 100644 index 0000000000..5a7b41eff6 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updatePolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); + +console.log(result); 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 new file mode 100644 index 0000000000..ddbe06ccd1 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributeLine result = await databases.createLineAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..cc1656264c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePoint result = await databases.createPointAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..42050cc078 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePolygon result = await databases.createPolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..30252b2cf7 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributeLine result = await databases.updateLineAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..879e007e12 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePoint result = await databases.updatePointAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..043596445e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePolygon result = await databases.updatePolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..f1786d5554 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnLine result = await tablesDB.createLineColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..e6ddf73747 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPoint result = await tablesDB.createPointColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..525a98ff26 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPolygon result = await tablesDB.createPolygonColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..6d8ed43143 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnLine result = await tablesDB.updateLineColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..ba0415b858 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPoint result = await tablesDB.updatePointColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..7a5792d033 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPolygon result = await tablesDB.updatePolygonColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (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 new file mode 100644 index 0000000000..65b20a5518 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..6ca0bfc3ea --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createPointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..65086b3702 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createPolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..051688199a --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..41ae3e51ee --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updatePointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..91882ba6e3 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updatePolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..cef681035f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..9b63b7a228 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createPointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..d5a2eae95b --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createPolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..fad46a3e2b --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updateLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..6461b96fce --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updatePointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..aa26d7b52b --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updatePolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + newKey: '' // optional +}); 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 new file mode 100644 index 0000000000..fc834cd6cd --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributeLine result = await databases.CreateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..3f8c7d56c0 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePoint result = await databases.CreatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..61ce8a14d5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePolygon result = await databases.CreatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..51e85a4d77 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributeLine result = await databases.UpdateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..20822287de --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePoint result = await databases.UpdatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..5d5cd108f2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePolygon result = await databases.UpdatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..13a2cde7cb --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnLine result = await tablesDB.CreateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..9c3946144b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPoint result = await tablesDB.CreatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..2787f9b423 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPolygon result = await tablesDB.CreatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..ce04ab266c --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnLine result = await tablesDB.UpdateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..e17ebb3178 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPoint result = await tablesDB.UpdatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..4137a21174 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPolygon result = await tablesDB.UpdatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +); \ No newline at end of file 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 new file mode 100644 index 0000000000..172a4dfbdb --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreateLineAttribute( + "", + "", + "", + false, + databases.WithCreateLineAttributeDefault(""), +) 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 new file mode 100644 index 0000000000..105021720a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreatePointAttribute( + "", + "", + "", + false, + databases.WithCreatePointAttributeDefault(""), +) 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 new file mode 100644 index 0000000000..f3b596b689 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreatePolygonAttribute( + "", + "", + "", + false, + databases.WithCreatePolygonAttributeDefault(""), +) 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 new file mode 100644 index 0000000000..d6ad02967d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdateLineAttribute( + "", + "", + "", + false, + databases.WithUpdateLineAttributeDefault(""), + 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 new file mode 100644 index 0000000000..d26f5a1006 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdatePointAttribute( + "", + "", + "", + false, + databases.WithUpdatePointAttributeDefault(""), + 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 new file mode 100644 index 0000000000..af29422e13 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdatePolygonAttribute( + "", + "", + "", + false, + databases.WithUpdatePolygonAttributeDefault(""), + 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 new file mode 100644 index 0000000000..adbdeb2b86 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreateLineColumn( + "", + "", + "", + false, + tablesdb.WithCreateLineColumnDefault(""), +) 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 new file mode 100644 index 0000000000..a0f2b59fae --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreatePointColumn( + "", + "", + "", + false, + tablesdb.WithCreatePointColumnDefault(""), +) 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 new file mode 100644 index 0000000000..03ae57e71f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreatePolygonColumn( + "", + "", + "", + false, + tablesdb.WithCreatePolygonColumnDefault(""), +) 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 new file mode 100644 index 0000000000..d2056c2403 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdateLineColumn( + "", + "", + "", + false, + tablesdb.WithUpdateLineColumnDefault(""), + 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 new file mode 100644 index 0000000000..4b5d38174a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdatePointColumn( + "", + "", + "", + false, + tablesdb.WithUpdatePointColumnDefault(""), + 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 new file mode 100644 index 0000000000..81cd394e9a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdatePolygonColumn( + "", + "", + "", + false, + tablesdb.WithUpdatePolygonColumnDefault(""), + 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..4c1a168988 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,10 @@ 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..841e5165f7 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,13 @@ 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 new file mode 100644 index 0000000000..3cb90718cd --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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 new file mode 100644 index 0000000000..719c49272a --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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 new file mode 100644 index 0000000000..3686981f25 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md index aea605d9d7..46bfa2689f 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: {}, permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md index 83c0c07f84..7baf47cc60 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md @@ -2,7 +2,7 @@ mutation { databasesUpdateDocuments( databaseId: "", collectionId: "", - data: "{}", + data: {}, queries: [] ) { total 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 new file mode 100644 index 0000000000..d04da21175 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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 new file mode 100644 index 0000000000..03cc5456b3 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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 new file mode 100644 index 0000000000..de5150e2aa --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md index 9d1e753081..1e9378c997 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: {}, permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md b/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md index ff0ecbe739..06a904f749 100644 --- a/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md @@ -5,7 +5,7 @@ mutation { async: false, path: "", method: "GET", - headers: "{}", + headers: {}, scheduledAt: "" ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md index b2e524536f..efb068c120 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md @@ -2,7 +2,7 @@ mutation { messagingCreateFCMProvider( providerId: "", name: "", - serviceAccountJSON: "{}", + serviceAccountJSON: {}, enabled: false ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-push.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-push.md index 92264d1b67..12166b7a05 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/create-push.md @@ -6,7 +6,7 @@ mutation { topics: [], users: [], targets: [], - data: "{}", + data: {}, action: "", image: "[ID1:ID2]", icon: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md index db3be401ee..a4a7746b20 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ mutation { providerId: "", name: "", enabled: false, - serviceAccountJSON: "{}" + serviceAccountJSON: {} ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-push.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-push.md index 8ee2f57610..c996397d4e 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/update-push.md @@ -6,7 +6,7 @@ mutation { targets: [], title: "", body: "<BODY>", - data: "{}", + data: {}, action: "<ACTION>", image: "[ID1:ID2]", icon: "<ICON>", 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 new file mode 100644 index 0000000000..322c48a191 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreateLineColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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 new file mode 100644 index 0000000000..9c5d7c85d2 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreatePointColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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 new file mode 100644 index 0000000000..a930675ee6 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreatePolygonColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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..81b12b2126 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,13 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - 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 new file mode 100644 index 0000000000..973bc4740c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdateLineColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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 new file mode 100644 index 0000000000..8cfb389679 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdatePointColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} 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 new file mode 100644 index 0000000000..ef0d58be0c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdatePolygonColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md index 5a5b288ab8..3dad818285 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: "{}", + data: {}, permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md index 4816748352..b06a96d9a1 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md @@ -2,7 +2,7 @@ mutation { tablesDBUpdateRows( databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", - data: "{}", + data: {}, queries: [] ) { total diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md index cc3b63de4a..1826880afe 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: "{}", + data: {}, permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/teams/update-prefs.md b/docs/examples/1.8.x/server-graphql/examples/teams/update-prefs.md index 95737e33f9..fe82c8f9eb 100644 --- a/docs/examples/1.8.x/server-graphql/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/server-graphql/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ mutation { teamsUpdatePrefs( teamId: "<TEAM_ID>", - prefs: "{}" + prefs: {} ) { data } diff --git a/docs/examples/1.8.x/server-graphql/examples/users/update-prefs.md b/docs/examples/1.8.x/server-graphql/examples/users/update-prefs.md index 431664c2a1..9ee4897596 100644 --- a/docs/examples/1.8.x/server-graphql/examples/users/update-prefs.md +++ b/docs/examples/1.8.x/server-graphql/examples/users/update-prefs.md @@ -1,7 +1,7 @@ mutation { usersUpdatePrefs( userId: "<USER_ID>", - prefs: "{}" + prefs: {} ) { data } 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( "<DATABASE_ID>", // databaseId "<COLLECTION_ID>", // collectionId "<DOCUMENT_ID>", // documentId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { 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 new file mode 100644 index 0000000000..36f79b946d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createLineAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..5a8a39b0cc --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createPointAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..22ee4d5cdf --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createPolygonAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..7c83476148 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateLineAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..b0a233f678 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updatePointAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..1d365896a2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updatePolygonAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..64952912c2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createLineColumn( + "<DATABASE_ID>", // databaseId + "<TABLE_ID>", // tableId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..d0ddef983c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createPointColumn( + "<DATABASE_ID>", // databaseId + "<TABLE_ID>", // tableId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..3aa5487cc2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createPolygonColumn( + "<DATABASE_ID>", // databaseId + "<TABLE_ID>", // tableId + "", // key + false, // required + "", // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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( "<DATABASE_ID>", // databaseId "<TABLE_ID>", // tableId "<ROW_ID>", // rowId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { 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 new file mode 100644 index 0000000000..a1a0c67f5d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updateLineColumn( + "<DATABASE_ID>", // databaseId + "<TABLE_ID>", // tableId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..45565063a0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updatePointColumn( + "<DATABASE_ID>", // databaseId + "<TABLE_ID>", // tableId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 new file mode 100644 index 0000000000..d7757bd580 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updatePolygonColumn( + "<DATABASE_ID>", // databaseId + "<TABLE_ID>", // tableId + "", // key + false, // required + "", // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + 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 = "<DATABASE_ID>", collectionId = "<COLLECTION_ID>", documentId = "<DOCUMENT_ID>", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")") // optional ) 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 new file mode 100644 index 0000000000..187f875c6b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createLineAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "" // 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 new file mode 100644 index 0000000000..d6915c1f5b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createPointAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "" // 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 new file mode 100644 index 0000000000..0a22962525 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createPolygonAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "" // 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 new file mode 100644 index 0000000000..c4b515ad47 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateLineAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "", // 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 new file mode 100644 index 0000000000..02bca873d7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updatePointAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "", // 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 new file mode 100644 index 0000000000..b8c0fc94a0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updatePolygonAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "", // 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 new file mode 100644 index 0000000000..0993eed919 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createLineColumn( + databaseId = "<DATABASE_ID>", + tableId = "<TABLE_ID>", + key = "", + required = false, + default = "" // 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 new file mode 100644 index 0000000000..e18bfc34ed --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createPointColumn( + databaseId = "<DATABASE_ID>", + tableId = "<TABLE_ID>", + key = "", + required = false, + default = "" // 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 new file mode 100644 index 0000000000..2f8ffd8125 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createPolygonColumn( + databaseId = "<DATABASE_ID>", + tableId = "<TABLE_ID>", + key = "", + required = false, + default = "" // 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 = "<DATABASE_ID>", tableId = "<TABLE_ID>", rowId = "<ROW_ID>", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")") // optional ) 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 new file mode 100644 index 0000000000..05781dd6dd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updateLineColumn( + databaseId = "<DATABASE_ID>", + tableId = "<TABLE_ID>", + key = "", + required = false, + default = "", // 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 new file mode 100644 index 0000000000..947b4410d6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updatePointColumn( + databaseId = "<DATABASE_ID>", + tableId = "<TABLE_ID>", + key = "", + required = false, + default = "", // 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 new file mode 100644 index 0000000000..b9da6350f6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updatePolygonColumn( + databaseId = "<DATABASE_ID>", + tableId = "<TABLE_ID>", + key = "", + required = false, + default = "", // 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: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', documentId: '<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-nodejs/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..36584b9ee2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createLineAttribute({ + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..9aba8c3eb7 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createPointAttribute({ + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..34e1c84708 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createPolygonAttribute({ + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..7d04a6eb1e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateLineAttribute({ + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..092f85cc5a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updatePointAttribute({ + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..04c1467cde --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updatePolygonAttribute({ + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..c9d2782104 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createLineColumn({ + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..ec29e1dfae --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createPointColumn({ + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..2adda2eaa2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createPolygonColumn({ + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '' // 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: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<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-nodejs/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..68b86dabdc --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updateLineColumn({ + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..c1484992a2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updatePointColumn({ + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..0805b4131e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updatePolygonColumn({ + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '', // 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: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', - 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 new file mode 100644 index 0000000000..5d4f968a4c --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createLineAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..1c8cdb508e --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createPointAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..0608d33f4f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createPolygonAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..a5de5459ae --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateLineAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..0499663762 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updatePointAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..99c63f19a2 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updatePolygonAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..daab57e198 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\TablesDB; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createLineColumn( + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..6b8cf1d0ae --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\TablesDB; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createPointColumn( + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '' // 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 new file mode 100644 index 0000000000..11147466f9 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\TablesDB; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createPolygonColumn( + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '' // 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: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - 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 new file mode 100644 index 0000000000..ac2584d6e3 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\TablesDB; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updateLineColumn( + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..159f893a52 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\TablesDB; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updatePointColumn( + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '', // 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 new file mode 100644 index 0000000000..3f6f3e82fb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\TablesDB; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updatePolygonColumn( + databaseId: '<DATABASE_ID>', + tableId: '<TABLE_ID>', + key: '', + required: false, + default: '', // 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 = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', document_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 new file mode 100644 index 0000000000..3521cc90b7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_line_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '' # 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 new file mode 100644 index 0000000000..8a808c444a --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_point_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '' # 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 new file mode 100644 index 0000000000..478a369210 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_polygon_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-document.md b/docs/examples/1.8.x/server-python/examples/databases/update-document.md index 9ef6527934..731eae3552 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-document.md @@ -12,6 +12,6 @@ result = databases.update_document( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', document_id = '<DOCUMENT_ID>', - data = {}, # optional + data = [], # optional permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-documents.md b/docs/examples/1.8.x/server-python/examples/databases/update-documents.md index 5a50d1a912..06f4dc371d 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-documents.md @@ -11,6 +11,6 @@ databases = Databases(client) result = databases.update_documents( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', - data = {}, # optional + data = [], # optional queries = [] # 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 new file mode 100644 index 0000000000..378e5a9bc6 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_line_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '', # 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 new file mode 100644 index 0000000000..a7d96d0b47 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_point_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '', # 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 new file mode 100644 index 0000000000..b6ac782d48 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_polygon_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '', # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md index c491ea4f44..7f81febec2 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md @@ -12,6 +12,6 @@ result = databases.upsert_document( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', document_id = '<DOCUMENT_ID>', - data = {}, + data = [], permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/functions/create-execution.md b/docs/examples/1.8.x/server-python/examples/functions/create-execution.md index f80b8646c2..213ac1e3e7 100644 --- a/docs/examples/1.8.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-python/examples/functions/create-execution.md @@ -14,6 +14,6 @@ result = functions.create_execution( async = False, # optional path = '<PATH>', # optional method = ExecutionMethod.GET, # optional - headers = {}, # optional + headers = [], # optional scheduled_at = '<SCHEDULED_AT>' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/graphql/mutation.md b/docs/examples/1.8.x/server-python/examples/graphql/mutation.md index 189892a4ad..0d1e3565a9 100644 --- a/docs/examples/1.8.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.8.x/server-python/examples/graphql/mutation.md @@ -9,5 +9,5 @@ client.set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql(client) result = graphql.mutation( - query = {} + query = [] ) diff --git a/docs/examples/1.8.x/server-python/examples/graphql/query.md b/docs/examples/1.8.x/server-python/examples/graphql/query.md index 585a5029b5..b07c49fdb4 100644 --- a/docs/examples/1.8.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.8.x/server-python/examples/graphql/query.md @@ -9,5 +9,5 @@ client.set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql(client) result = graphql.query( - query = {} + query = [] ) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/create-fcm-provider.md index 9c40eb7828..86dd25fcdd 100644 --- a/docs/examples/1.8.x/server-python/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-python/examples/messaging/create-fcm-provider.md @@ -11,6 +11,6 @@ messaging = Messaging(client) result = messaging.create_fcm_provider( provider_id = '<PROVIDER_ID>', name = '<NAME>', - service_account_json = {}, # optional + service_account_json = [], # optional enabled = False # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-push.md b/docs/examples/1.8.x/server-python/examples/messaging/create-push.md index 8671b56a39..d76da0faa9 100644 --- a/docs/examples/1.8.x/server-python/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-python/examples/messaging/create-push.md @@ -15,7 +15,7 @@ result = messaging.create_push( topics = [], # optional users = [], # optional targets = [], # optional - data = {}, # optional + data = [], # optional action = '<ACTION>', # optional image = '[ID1:ID2]', # optional icon = '<ICON>', # optional diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/update-fcm-provider.md index 0119d71b4f..e4cf5a4855 100644 --- a/docs/examples/1.8.x/server-python/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-python/examples/messaging/update-fcm-provider.md @@ -12,5 +12,5 @@ result = messaging.update_fcm_provider( provider_id = '<PROVIDER_ID>', name = '<NAME>', # optional enabled = False, # optional - service_account_json = {} # optional + service_account_json = [] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-push.md b/docs/examples/1.8.x/server-python/examples/messaging/update-push.md index e3bb02e71f..a0ef8f5054 100644 --- a/docs/examples/1.8.x/server-python/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-python/examples/messaging/update-push.md @@ -15,7 +15,7 @@ result = messaging.update_push( targets = [], # optional title = '<TITLE>', # optional body = '<BODY>', # optional - data = {}, # optional + data = [], # optional action = '<ACTION>', # optional image = '[ID1:ID2]', # optional icon = '<ICON>', # 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 new file mode 100644 index 0000000000..9c6a1b7615 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_line_column( + database_id = '<DATABASE_ID>', + table_id = '<TABLE_ID>', + key = '', + required = False, + default = '' # 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 new file mode 100644 index 0000000000..4a9e92b504 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_point_column( + database_id = '<DATABASE_ID>', + table_id = '<TABLE_ID>', + key = '', + required = False, + default = '' # 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 new file mode 100644 index 0000000000..6863fdd815 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_polygon_column( + database_id = '<DATABASE_ID>', + table_id = '<TABLE_ID>', + key = '', + required = False, + default = '' # 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 = '<DATABASE_ID>', table_id = '<TABLE_ID>', row_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 new file mode 100644 index 0000000000..b1a6475599 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_line_column( + database_id = '<DATABASE_ID>', + table_id = '<TABLE_ID>', + key = '', + required = False, + default = '', # 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 new file mode 100644 index 0000000000..47c94395c7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_point_column( + database_id = '<DATABASE_ID>', + table_id = '<TABLE_ID>', + key = '', + required = False, + default = '', # 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 new file mode 100644 index 0000000000..a38acbaf04 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_polygon_column( + database_id = '<DATABASE_ID>', + table_id = '<TABLE_ID>', + key = '', + required = False, + default = '', # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md index 86d0cf2b8a..cfd6f5d590 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md @@ -12,6 +12,6 @@ result = tables_db.update_row( database_id = '<DATABASE_ID>', table_id = '<TABLE_ID>', row_id = '<ROW_ID>', - data = {}, # optional + data = [], # optional permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md index 386ddf8b88..c2c0e8520b 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md @@ -11,6 +11,6 @@ tables_db = TablesDB(client) result = tables_db.update_rows( database_id = '<DATABASE_ID>', table_id = '<TABLE_ID>', - data = {}, # optional + data = [], # optional queries = [] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md index 068fded0c3..47d8eb9e40 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md @@ -12,6 +12,6 @@ result = tables_db.upsert_row( database_id = '<DATABASE_ID>', table_id = '<TABLE_ID>', row_id = '<ROW_ID>', - data = {}, # optional + data = [], # optional permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.8.x/server-python/examples/teams/update-prefs.md index e82da1b64f..ae4887f48d 100644 --- a/docs/examples/1.8.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/server-python/examples/teams/update-prefs.md @@ -10,5 +10,5 @@ teams = Teams(client) result = teams.update_prefs( team_id = '<TEAM_ID>', - prefs = {} + prefs = [] ) diff --git a/docs/examples/1.8.x/server-python/examples/users/update-prefs.md b/docs/examples/1.8.x/server-python/examples/users/update-prefs.md index 76903b7611..d01380d45f 100644 --- a/docs/examples/1.8.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.8.x/server-python/examples/users/update-prefs.md @@ -10,5 +10,5 @@ users = Users(client) result = users.update_prefs( user_id = '<USER_ID>', - prefs = {} + prefs = [] ) 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: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", "email": "email@example.com", - "password": , + "password": "", "name": "<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: <YOUR_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: <YOUR_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: <YOUR_JWT> { "userId": "<USER_ID>", "secret": "<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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_JWT> { "documentId": "<DOCUMENT_ID>", - "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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> { - "key": , + "key": "", "elements": [], "required": false, "default": "<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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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 new file mode 100644 index 0000000000..429a219f20 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/line HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "", + "required": false, + "default": "" +} 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 new file mode 100644 index 0000000000..e6ba1f791e --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/point HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "", + "required": false, + "default": "" +} 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 new file mode 100644 index 0000000000..62299b9754 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/polygon HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "", + "required": false, + "default": "" +} 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: <YOUR_API_KEY> "relatedCollectionId": "<RELATED_COLLECTION_ID>", "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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> { - "key": , + "key": "", "size": 1, "required": false, "default": "<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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_API_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: <YOUR_API_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: <YOUR_API_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: <YOUR_API_KEY> "elements": [], "required": false, "default": "<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: <YOUR_API_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: <YOUR_API_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: <YOUR_API_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 new file mode 100644 index 0000000000..fe044fae0d --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/line/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "", + "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 new file mode 100644 index 0000000000..6f095e11ca --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/point/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "", + "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 new file mode 100644 index 0000000000..b5624b3800 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/polygon/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "", + "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: <YOUR_API_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: <YOUR_API_KEY> "required": false, "default": "<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: <YOUR_API_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: <YOUR_API_KEY> "runtime": "node-14.5", "execute": ["any"], "events": [], - "schedule": , + "schedule": "", "timeout": 1, "enabled": false, "logging": false, @@ -23,5 +23,5 @@ X-Appwrite-Key: <YOUR_API_KEY> "providerBranch": "<PROVIDER_BRANCH>", "providerSilentMode": false, "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", - "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: <YOUR_API_KEY> "runtime": "node-14.5", "execute": ["any"], "events": [], - "schedule": , + "schedule": "", "timeout": 1, "enabled": false, "logging": false, @@ -22,5 +22,5 @@ X-Appwrite-Key: <YOUR_API_KEY> "providerBranch": "<PROVIDER_BRANCH>", "providerSilentMode": false, "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", - "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: <YOUR_API_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: <YOUR_API_KEY> "tag": "<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: <YOUR_API_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: <YOUR_API_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: <YOUR_API_KEY> "tag": "<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: <YOUR_API_KEY> "targets": [], "content": "<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: <YOUR_API_KEY> "providerBranch": "<PROVIDER_BRANCH>", "providerSilentMode": false, "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", - "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: <YOUR_API_KEY> "providerBranch": "<PROVIDER_BRANCH>", "providerSilentMode": false, "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", - "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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> { - "key": , + "key": "", "elements": [], "required": false, "default": "<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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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 new file mode 100644 index 0000000000..7c11cc2b6c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/line HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "", + "required": false, + "default": "" +} 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 new file mode 100644 index 0000000000..c199a421fb --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/point HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "", + "required": false, + "default": "" +} 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 new file mode 100644 index 0000000000..76ddade7b5 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/polygon HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "", + "required": false, + "default": "" +} 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: <YOUR_API_KEY> "relatedTableId": "<RELATED_TABLE_ID>", "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: <YOUR_JWT> { "rowId": "<ROW_ID>", - "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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> { - "key": , + "key": "", "size": 1, "required": false, "default": "<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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_API_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: <YOUR_API_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: <YOUR_API_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: <YOUR_API_KEY> "elements": [], "required": false, "default": "<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: <YOUR_API_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: <YOUR_API_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: <YOUR_API_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 new file mode 100644 index 0000000000..69ffb8db16 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "", + "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 new file mode 100644 index 0000000000..d93ad4a514 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "", + "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 new file mode 100644 index 0000000000..19a8a22fc8 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "", + "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: <YOUR_API_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: <YOUR_API_KEY> "required": false, "default": "<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: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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: <YOUR_API_KEY> "userId": "<USER_ID>", "email": "email@example.com", "phone": "+12065550100", - "password": , + "password": "", "name": "<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: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_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..9368834c49 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,5 @@ client = Client.new account = Account.new(client) result = account.update_prefs( - prefs: {} + prefs: {"language" => "en", "timezone" => "UTC", "darkTheme" => 1} ) 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..577df36160 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,6 @@ result = databases.create_document( database_id: '<DATABASE_ID>', collection_id: '<COLLECTION_ID>', document_id: '<DOCUMENT_ID>', - data: {}, + data: {"username" => "walter.obrien", "email" => "walter.obrien@example.com", "fullName" => "Walter O'Brien", "age" => 30, "isAdmin" => }, 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 new file mode 100644 index 0000000000..798097367b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_line_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '' # 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 new file mode 100644 index 0000000000..1e852a7baf --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_point_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '' # 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 new file mode 100644 index 0000000000..a9399808c7 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_polygon_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '' # 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 new file mode 100644 index 0000000000..34bfd9a1e0 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_line_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '', # 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 new file mode 100644 index 0000000000..bc33d4daf6 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_point_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '', # 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 new file mode 100644 index 0000000000..04a3d9e824 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_polygon_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '', # 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 new file mode 100644 index 0000000000..e70b2111d8 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_line_column( + database_id: '<DATABASE_ID>', + table_id: '<TABLE_ID>', + key: '', + required: false, + default: '' # 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 new file mode 100644 index 0000000000..5f2e046d31 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_point_column( + database_id: '<DATABASE_ID>', + table_id: '<TABLE_ID>', + key: '', + required: false, + default: '' # 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 new file mode 100644 index 0000000000..86a18522b0 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_polygon_column( + database_id: '<DATABASE_ID>', + table_id: '<TABLE_ID>', + key: '', + required: false, + default: '' # 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..3f6d6b4b12 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,6 @@ result = tables_db.create_row( database_id: '<DATABASE_ID>', table_id: '<TABLE_ID>', row_id: '<ROW_ID>', - data: {}, + data: {"username" => "walter.obrien", "email" => "walter.obrien@example.com", "fullName" => "Walter O'Brien", "age" => 30, "isAdmin" => }, 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 new file mode 100644 index 0000000000..7f71e18231 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_line_column( + database_id: '<DATABASE_ID>', + table_id: '<TABLE_ID>', + key: '', + required: false, + default: '', # 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 new file mode 100644 index 0000000000..ee32b54a1b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_point_column( + database_id: '<DATABASE_ID>', + table_id: '<TABLE_ID>', + key: '', + required: false, + default: '', # 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 new file mode 100644 index 0000000000..48c68a11ea --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_polygon_column( + database_id: '<DATABASE_ID>', + table_id: '<TABLE_ID>', + key: '', + required: false, + default: '', # optional + new_key: '' # 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 new file mode 100644 index 0000000000..38e7a7d13a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeLine = try await databases.createLineAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..bd204071ce --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributePoint = try await databases.createPointAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..9799c08177 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributePolygon = try await databases.createPolygonAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..d7e7612c51 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeLine = try await databases.updateLineAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..8907cd0cd8 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributePoint = try await databases.updatePointAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..35da75bffb --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributePolygon = try await databases.updatePolygonAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..6d776f9a22 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnLine = try await tablesDB.createLineColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..53ed8b45f9 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPoint = try await tablesDB.createPointColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..1c692be280 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPolygon = try await tablesDB.createPolygonColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "" // 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 new file mode 100644 index 0000000000..b04fd74c6e --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnLine = try await tablesDB.updateLineColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..b2885de919 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPoint = try await tablesDB.updatePointColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "", // 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 new file mode 100644 index 0000000000..8ce6d2077f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPolygon = try await tablesDB.updatePolygonColumn( + databaseId: "<DATABASE_ID>", + tableId: "<TABLE_ID>", + key: "", + required: false, + default: "", // optional + newKey: "" // optional +) + From 508c47f687a4a88b8154061d67111fde07bc910b Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Fri, 5 Sep 2025 17:43:35 +0530 Subject: [PATCH 02/19] fix: ruby --- composer.lock | 8 ++++---- .../1.8.x/server-ruby/examples/account/update-prefs.md | 6 +++++- .../server-ruby/examples/databases/create-document.md | 8 +++++++- .../1.8.x/server-ruby/examples/tablesdb/create-row.md | 8 +++++++- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/composer.lock b/composer.lock index 3505ded025..0fabc8c098 100644 --- a/composer.lock +++ b/composer.lock @@ -5023,12 +5023,12 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "70b527cee02552f97bd22182cb70d892a7d29e15" + "reference": "89fe10be25bcd355baaf46676691ddc8171b06f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/70b527cee02552f97bd22182cb70d892a7d29e15", - "reference": "70b527cee02552f97bd22182cb70d892a7d29e15", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/89fe10be25bcd355baaf46676691ddc8171b06f8", + "reference": "89fe10be25bcd355baaf46676691ddc8171b06f8", "shasum": "" }, "require": { @@ -5066,7 +5066,7 @@ "issues": "https://github.com/appwrite/sdk-generator/issues", "source": "https://github.com/appwrite/sdk-generator/tree/feat-object-example-handling" }, - "time": "2025-09-05T11:57:48+00:00" + "time": "2025-09-05T12:11:28+00:00" }, { "name": "doctrine/annotations", 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 9368834c49..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: {"language" => "en", "timezone" => "UTC", "darkTheme" => 1} + 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 577df36160..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: '<DATABASE_ID>', collection_id: '<COLLECTION_ID>', document_id: '<DOCUMENT_ID>', - data: {"username" => "walter.obrien", "email" => "walter.obrien@example.com", "fullName" => "Walter O'Brien", "age" => 30, "isAdmin" => }, + 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/create-row.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md index 3f6d6b4b12..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: '<DATABASE_ID>', table_id: '<TABLE_ID>', row_id: '<ROW_ID>', - data: {"username" => "walter.obrien", "email" => "walter.obrien@example.com", "fullName" => "Walter O'Brien", "age" => 30, "isAdmin" => }, + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 30, + "isAdmin" => false + }, permissions: ["read("any")"] # optional ) From 83b6d153815c612fccf7661f2398ad8b963d7ba1 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Fri, 5 Sep 2025 19:15:33 +0530 Subject: [PATCH 03/19] fix: more mistakes --- composer.lock | 20 +++++++++---------- .../examples/databases/update-document.md | 2 +- .../examples/databases/upsert-document.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/tablesdb/update-row.md | 2 +- .../examples/tablesdb/upsert-row.md | 2 +- .../examples/teams/update-prefs.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/functions/create-deployment.md | 2 +- .../examples/sites/create-deployment.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/databases/update-document.md | 2 +- .../examples/databases/update-documents.md | 2 +- .../examples/databases/upsert-document.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/messaging/create-fcm-provider.md | 2 +- .../examples/messaging/create-push.md | 2 +- .../examples/messaging/update-fcm-provider.md | 2 +- .../examples/messaging/update-push.md | 2 +- .../examples/tablesdb/update-row.md | 2 +- .../examples/tablesdb/update-rows.md | 2 +- .../examples/tablesdb/upsert-row.md | 2 +- .../examples/teams/update-prefs.md | 2 +- .../examples/users/update-prefs.md | 2 +- .../examples/databases/update-document.md | 2 +- .../examples/databases/update-documents.md | 2 +- .../examples/databases/upsert-document.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/graphql/mutation.md | 2 +- .../server-python/examples/graphql/query.md | 2 +- .../examples/messaging/create-fcm-provider.md | 2 +- .../examples/messaging/create-push.md | 2 +- .../examples/messaging/update-fcm-provider.md | 2 +- .../examples/messaging/update-push.md | 2 +- .../examples/tablesdb/update-row.md | 2 +- .../examples/tablesdb/update-rows.md | 2 +- .../examples/tablesdb/upsert-row.md | 2 +- .../examples/teams/update-prefs.md | 2 +- .../examples/users/update-prefs.md | 2 +- .../Http/TablesDB/Tables/Rows/Create.php | 2 +- 40 files changed, 49 insertions(+), 49 deletions(-) diff --git a/composer.lock b/composer.lock index 0fabc8c098..528f53565e 100644 --- a/composer.lock +++ b/composer.lock @@ -3650,16 +3650,16 @@ }, { "name": "utopia-php/database", - "version": "1.4.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "d32bd6160d55cab0cbe4b070e1c56e4c2a03c7a0" + "reference": "b5ea4d133a1a4e747b7522e61e072289129a06f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/d32bd6160d55cab0cbe4b070e1c56e4c2a03c7a0", - "reference": "d32bd6160d55cab0cbe4b070e1c56e4c2a03c7a0", + "url": "https://api.github.com/repos/utopia-php/database/zipball/b5ea4d133a1a4e747b7522e61e072289129a06f4", + "reference": "b5ea4d133a1a4e747b7522e61e072289129a06f4", "shasum": "" }, "require": { @@ -3700,9 +3700,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/1.4.0" + "source": "https://github.com/utopia-php/database/tree/1.4.1" }, - "time": "2025-09-04T11:45:26+00:00" + "time": "2025-09-05T13:23:52+00:00" }, { "name": "utopia-php/detector", @@ -5023,12 +5023,12 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "89fe10be25bcd355baaf46676691ddc8171b06f8" + "reference": "7d0705a8e7f0056a3220fac5977058c55a05b69a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/89fe10be25bcd355baaf46676691ddc8171b06f8", - "reference": "89fe10be25bcd355baaf46676691ddc8171b06f8", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/7d0705a8e7f0056a3220fac5977058c55a05b69a", + "reference": "7d0705a8e7f0056a3220fac5977058c55a05b69a", "shasum": "" }, "require": { @@ -5066,7 +5066,7 @@ "issues": "https://github.com/appwrite/sdk-generator/issues", "source": "https://github.com/appwrite/sdk-generator/tree/feat-object-example-handling" }, - "time": "2025-09-05T12:11:28+00:00" + "time": "2025-09-05T13:41:26+00:00" }, { "name": "doctrine/annotations", diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md index 46bfa2689f..aea605d9d7 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", - data: {}, + data: "{}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md index 1e9378c997..9d1e753081 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", - data: {}, + data: "{}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md b/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md index 06a904f749..ff0ecbe739 100644 --- a/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md @@ -5,7 +5,7 @@ mutation { async: false, path: "<PATH>", method: "GET", - headers: {}, + headers: "{}", scheduledAt: "<SCHEDULED_AT>" ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md index 3dad818285..5a5b288ab8 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: {}, + data: "{}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md index 1826880afe..cc3b63de4a 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: {}, + data: "{}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/teams/update-prefs.md b/docs/examples/1.8.x/client-graphql/examples/teams/update-prefs.md index fe82c8f9eb..95737e33f9 100644 --- a/docs/examples/1.8.x/client-graphql/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/client-graphql/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ mutation { teamsUpdatePrefs( teamId: "<TEAM_ID>", - prefs: {} + prefs: "{}" ) { data } diff --git a/docs/examples/1.8.x/client-web/examples/storage/create-file.md b/docs/examples/1.8.x/client-web/examples/storage/create-file.md index dc4cb05677..999fcb20ac 100644 --- a/docs/examples/1.8.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-web/examples/storage/create-file.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = await storage.createFile({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - file: document.getElementById('uploader/').files[0], + file: document.getElementById('uploader').files[0], permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md index 66350399e1..ff9be3c80f 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md @@ -8,7 +8,7 @@ const functions = new Functions(client); const result = await functions.createDeployment({ functionId: '<FUNCTION_ID>', - code: document.getElementById('uploader/').files[0], + code: document.getElementById('uploader').files[0], activate: false, entrypoint: '<ENTRYPOINT>', // optional commands: '<COMMANDS>' // optional diff --git a/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md b/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md index fcf531cd0b..44dc68adb8 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md @@ -8,7 +8,7 @@ const sites = new Sites(client); const result = await sites.createDeployment({ siteId: '<SITE_ID>', - code: document.getElementById('uploader/').files[0], + code: document.getElementById('uploader').files[0], activate: false, installCommand: '<INSTALL_COMMAND>', // optional buildCommand: '<BUILD_COMMAND>', // optional diff --git a/docs/examples/1.8.x/console-web/examples/storage/create-file.md b/docs/examples/1.8.x/console-web/examples/storage/create-file.md index 72a7bd1a0c..1dcab62ba4 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.8.x/console-web/examples/storage/create-file.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = await storage.createFile({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - file: document.getElementById('uploader/').files[0], + file: document.getElementById('uploader').files[0], permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md index 46bfa2689f..aea605d9d7 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", - data: {}, + data: "{}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md index 7baf47cc60..83c0c07f84 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md @@ -2,7 +2,7 @@ mutation { databasesUpdateDocuments( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", - data: {}, + data: "{}", queries: [] ) { total diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md index 1e9378c997..9d1e753081 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", - data: {}, + data: "{}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md b/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md index 06a904f749..ff0ecbe739 100644 --- a/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md @@ -5,7 +5,7 @@ mutation { async: false, path: "<PATH>", method: "GET", - headers: {}, + headers: "{}", scheduledAt: "<SCHEDULED_AT>" ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md index efb068c120..b2e524536f 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md @@ -2,7 +2,7 @@ mutation { messagingCreateFCMProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", - serviceAccountJSON: {}, + serviceAccountJSON: "{}", enabled: false ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-push.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-push.md index 12166b7a05..92264d1b67 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/create-push.md @@ -6,7 +6,7 @@ mutation { topics: [], users: [], targets: [], - data: {}, + data: "{}", action: "<ACTION>", image: "[ID1:ID2]", icon: "<ICON>", diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md index a4a7746b20..db3be401ee 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ mutation { providerId: "<PROVIDER_ID>", name: "<NAME>", enabled: false, - serviceAccountJSON: {} + serviceAccountJSON: "{}" ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-push.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-push.md index c996397d4e..8ee2f57610 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/update-push.md @@ -6,7 +6,7 @@ mutation { targets: [], title: "<TITLE>", body: "<BODY>", - data: {}, + data: "{}", action: "<ACTION>", image: "[ID1:ID2]", icon: "<ICON>", diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md index 3dad818285..5a5b288ab8 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: {}, + data: "{}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md index b06a96d9a1..4816748352 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md @@ -2,7 +2,7 @@ mutation { tablesDBUpdateRows( databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", - data: {}, + data: "{}", queries: [] ) { total diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md index 1826880afe..cc3b63de4a 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: {}, + data: "{}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/teams/update-prefs.md b/docs/examples/1.8.x/server-graphql/examples/teams/update-prefs.md index fe82c8f9eb..95737e33f9 100644 --- a/docs/examples/1.8.x/server-graphql/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/server-graphql/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ mutation { teamsUpdatePrefs( teamId: "<TEAM_ID>", - prefs: {} + prefs: "{}" ) { data } diff --git a/docs/examples/1.8.x/server-graphql/examples/users/update-prefs.md b/docs/examples/1.8.x/server-graphql/examples/users/update-prefs.md index 9ee4897596..431664c2a1 100644 --- a/docs/examples/1.8.x/server-graphql/examples/users/update-prefs.md +++ b/docs/examples/1.8.x/server-graphql/examples/users/update-prefs.md @@ -1,7 +1,7 @@ mutation { usersUpdatePrefs( userId: "<USER_ID>", - prefs: {} + prefs: "{}" ) { data } diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-document.md b/docs/examples/1.8.x/server-python/examples/databases/update-document.md index 731eae3552..9ef6527934 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-document.md @@ -12,6 +12,6 @@ result = databases.update_document( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', document_id = '<DOCUMENT_ID>', - data = [], # optional + data = {}, # optional permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-documents.md b/docs/examples/1.8.x/server-python/examples/databases/update-documents.md index 06f4dc371d..5a50d1a912 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-documents.md @@ -11,6 +11,6 @@ databases = Databases(client) result = databases.update_documents( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', - data = [], # optional + data = {}, # optional queries = [] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md index 7f81febec2..c491ea4f44 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md @@ -12,6 +12,6 @@ result = databases.upsert_document( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', document_id = '<DOCUMENT_ID>', - data = [], + data = {}, permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/functions/create-execution.md b/docs/examples/1.8.x/server-python/examples/functions/create-execution.md index 213ac1e3e7..f80b8646c2 100644 --- a/docs/examples/1.8.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-python/examples/functions/create-execution.md @@ -14,6 +14,6 @@ result = functions.create_execution( async = False, # optional path = '<PATH>', # optional method = ExecutionMethod.GET, # optional - headers = [], # optional + headers = {}, # optional scheduled_at = '<SCHEDULED_AT>' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/graphql/mutation.md b/docs/examples/1.8.x/server-python/examples/graphql/mutation.md index 0d1e3565a9..189892a4ad 100644 --- a/docs/examples/1.8.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.8.x/server-python/examples/graphql/mutation.md @@ -9,5 +9,5 @@ client.set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql(client) result = graphql.mutation( - query = [] + query = {} ) diff --git a/docs/examples/1.8.x/server-python/examples/graphql/query.md b/docs/examples/1.8.x/server-python/examples/graphql/query.md index b07c49fdb4..585a5029b5 100644 --- a/docs/examples/1.8.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.8.x/server-python/examples/graphql/query.md @@ -9,5 +9,5 @@ client.set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql(client) result = graphql.query( - query = [] + query = {} ) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/create-fcm-provider.md index 86dd25fcdd..9c40eb7828 100644 --- a/docs/examples/1.8.x/server-python/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-python/examples/messaging/create-fcm-provider.md @@ -11,6 +11,6 @@ messaging = Messaging(client) result = messaging.create_fcm_provider( provider_id = '<PROVIDER_ID>', name = '<NAME>', - service_account_json = [], # optional + service_account_json = {}, # optional enabled = False # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-push.md b/docs/examples/1.8.x/server-python/examples/messaging/create-push.md index d76da0faa9..8671b56a39 100644 --- a/docs/examples/1.8.x/server-python/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-python/examples/messaging/create-push.md @@ -15,7 +15,7 @@ result = messaging.create_push( topics = [], # optional users = [], # optional targets = [], # optional - data = [], # optional + data = {}, # optional action = '<ACTION>', # optional image = '[ID1:ID2]', # optional icon = '<ICON>', # optional diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/update-fcm-provider.md index e4cf5a4855..0119d71b4f 100644 --- a/docs/examples/1.8.x/server-python/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-python/examples/messaging/update-fcm-provider.md @@ -12,5 +12,5 @@ result = messaging.update_fcm_provider( provider_id = '<PROVIDER_ID>', name = '<NAME>', # optional enabled = False, # optional - service_account_json = [] # optional + service_account_json = {} # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-push.md b/docs/examples/1.8.x/server-python/examples/messaging/update-push.md index a0ef8f5054..e3bb02e71f 100644 --- a/docs/examples/1.8.x/server-python/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-python/examples/messaging/update-push.md @@ -15,7 +15,7 @@ result = messaging.update_push( targets = [], # optional title = '<TITLE>', # optional body = '<BODY>', # optional - data = [], # optional + data = {}, # optional action = '<ACTION>', # optional image = '[ID1:ID2]', # optional icon = '<ICON>', # optional diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md index cfd6f5d590..86d0cf2b8a 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md @@ -12,6 +12,6 @@ result = tables_db.update_row( database_id = '<DATABASE_ID>', table_id = '<TABLE_ID>', row_id = '<ROW_ID>', - data = [], # optional + data = {}, # optional permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md index c2c0e8520b..386ddf8b88 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md @@ -11,6 +11,6 @@ tables_db = TablesDB(client) result = tables_db.update_rows( database_id = '<DATABASE_ID>', table_id = '<TABLE_ID>', - data = [], # optional + data = {}, # optional queries = [] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md index 47d8eb9e40..068fded0c3 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md @@ -12,6 +12,6 @@ result = tables_db.upsert_row( database_id = '<DATABASE_ID>', table_id = '<TABLE_ID>', row_id = '<ROW_ID>', - data = [], # optional + data = {}, # optional permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.8.x/server-python/examples/teams/update-prefs.md index ae4887f48d..e82da1b64f 100644 --- a/docs/examples/1.8.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/server-python/examples/teams/update-prefs.md @@ -10,5 +10,5 @@ teams = Teams(client) result = teams.update_prefs( team_id = '<TEAM_ID>', - prefs = [] + prefs = {} ) diff --git a/docs/examples/1.8.x/server-python/examples/users/update-prefs.md b/docs/examples/1.8.x/server-python/examples/users/update-prefs.md index d01380d45f..76903b7611 100644 --- a/docs/examples/1.8.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.8.x/server-python/examples/users/update-prefs.md @@ -10,5 +10,5 @@ users = Users(client) result = users.update_prefs( user_id = '<USER_ID>', - prefs = [] + prefs = {} ) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php index a7aa2607e5..cf38bac63b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php @@ -97,7 +97,7 @@ class Create extends DocumentCreate ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.') ->param('data', [], new JSON(), 'Row data as JSON object.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":30,"isAdmin":false}') ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) - ->param('rows', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of documents data as JSON objects.', true, ['plan']) + ->param('rows', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of rows data as JSON objects.', true, ['plan']) ->inject('response') ->inject('dbForProject') ->inject('user') From 55f5ba8a9a80e1fe638c6e5462c3d33e258202c7 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Fri, 5 Sep 2025 19:44:03 +0530 Subject: [PATCH 04/19] add missing --- composer.lock | 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/server-dotnet/examples/account/update-prefs.md | 6 +++++- .../server-dotnet/examples/databases/create-document.md | 8 +++++++- .../1.8.x/server-dotnet/examples/tablesdb/create-row.md | 8 +++++++- .../1.8.x/server-go/examples/account/update-prefs.md | 6 +++++- .../1.8.x/server-go/examples/databases/create-document.md | 8 +++++++- .../1.8.x/server-go/examples/tablesdb/create-row.md | 8 +++++++- .../1.8.x/server-swift/examples/account/update-prefs.md | 6 +++++- .../server-swift/examples/databases/create-document.md | 8 +++++++- .../1.8.x/server-swift/examples/tablesdb/create-row.md | 8 +++++++- 13 files changed, 80 insertions(+), 16 deletions(-) diff --git a/composer.lock b/composer.lock index 528f53565e..c333e52e39 100644 --- a/composer.lock +++ b/composer.lock @@ -5023,12 +5023,12 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "7d0705a8e7f0056a3220fac5977058c55a05b69a" + "reference": "9bab7463d00df6faea5d55fb63cab81bf3fb0a3f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/7d0705a8e7f0056a3220fac5977058c55a05b69a", - "reference": "7d0705a8e7f0056a3220fac5977058c55a05b69a", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/9bab7463d00df6faea5d55fb63cab81bf3fb0a3f", + "reference": "9bab7463d00df6faea5d55fb63cab81bf3fb0a3f", "shasum": "" }, "require": { @@ -5066,7 +5066,7 @@ "issues": "https://github.com/appwrite/sdk-generator/issues", "source": "https://github.com/appwrite/sdk-generator/tree/feat-object-example-handling" }, - "time": "2025-09-05T13:41:26+00:00" + "time": "2025-09-05T14:12:05+00:00" }, { "name": "doctrine/annotations", 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: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<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/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: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<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-dotnet/examples/account/update-prefs.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md index 0b348a9c74..fc7ad5bf36 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..725c0b7a67 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: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", - 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/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md index ec6255a11a..d0ddcf7c56 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: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - 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-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( "<DATABASE_ID>", "<COLLECTION_ID>", "<DOCUMENT_ID>", - 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/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( "<DATABASE_ID>", "<TABLE_ID>", "<ROW_ID>", - 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-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: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<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-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: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) From f2c4440cbceece51ddbe7c183da0579023634367 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Fri, 5 Sep 2025 20:18:13 +0530 Subject: [PATCH 05/19] fix dotnet and graphql --- composer.lock | 8 ++++---- .../client-graphql/examples/account/update-prefs.md | 6 +----- .../examples/databases/create-document.md | 8 +------- .../client-graphql/examples/tablesdb/create-row.md | 8 +------- .../server-dotnet/examples/account/update-prefs.md | 6 +++--- .../examples/databases/create-document.md | 10 +++++----- .../server-dotnet/examples/tablesdb/create-row.md | 10 +++++----- .../server-graphql/examples/account/update-prefs.md | 6 +----- .../examples/databases/create-document.md | 8 +------- .../server-graphql/examples/tablesdb/create-row.md | 8 +------- 10 files changed, 23 insertions(+), 55 deletions(-) diff --git a/composer.lock b/composer.lock index c333e52e39..0c92e751db 100644 --- a/composer.lock +++ b/composer.lock @@ -5023,12 +5023,12 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "9bab7463d00df6faea5d55fb63cab81bf3fb0a3f" + "reference": "3fe3c9b0e8b32f7b466362b09ad1d3664ef0b394" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/9bab7463d00df6faea5d55fb63cab81bf3fb0a3f", - "reference": "9bab7463d00df6faea5d55fb63cab81bf3fb0a3f", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/3fe3c9b0e8b32f7b466362b09ad1d3664ef0b394", + "reference": "3fe3c9b0e8b32f7b466362b09ad1d3664ef0b394", "shasum": "" }, "require": { @@ -5066,7 +5066,7 @@ "issues": "https://github.com/appwrite/sdk-generator/issues", "source": "https://github.com/appwrite/sdk-generator/tree/feat-object-example-handling" }, - "time": "2025-09-05T14:12:05+00:00" + "time": "2025-09-05T14:30:22+00:00" }, { "name": "doctrine/annotations", 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 4c1a168988..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,10 +1,6 @@ mutation { accountUpdatePrefs( - prefs: { - "language": "en", - "timezone": "UTC", - "darkTheme": true - } + 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 841e5165f7..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,13 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", - data: { - "username": "walter.obrien", - "email": "walter.obrien@example.com", - "fullName": "Walter O'Brien", - "age": 30, - "isAdmin": false - }, + 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 81b12b2126..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,13 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: { - "username": "walter.obrien", - "email": "walter.obrien@example.com", - "fullName": "Walter O'Brien", - "age": 30, - "isAdmin": false - }, + 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-dotnet/examples/account/update-prefs.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md index fc7ad5bf36..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 @@ -11,8 +11,8 @@ Account account = new Account(client); User result = await account.UpdatePrefs( prefs: new { - "language": "en", - "timezone": "UTC", - "darkTheme": true + 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 725c0b7a67..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 @@ -14,11 +14,11 @@ Document result = await databases.CreateDocument( collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", data: new { - "username": "walter.obrien", - "email": "walter.obrien@example.com", - "fullName": "Walter O'Brien", - "age": 30, - "isAdmin": false + 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/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md index d0ddcf7c56..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 @@ -14,11 +14,11 @@ Row result = await tablesDB.CreateRow( tableId: "<TABLE_ID>", rowId: "<ROW_ID>", data: new { - "username": "walter.obrien", - "email": "walter.obrien@example.com", - "fullName": "Walter O'Brien", - "age": 30, - "isAdmin": false + 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-graphql/examples/account/update-prefs.md b/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md index 4c1a168988..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,10 +1,6 @@ mutation { accountUpdatePrefs( - prefs: { - "language": "en", - "timezone": "UTC", - "darkTheme": true - } + 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 841e5165f7..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,13 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", - data: { - "username": "walter.obrien", - "email": "walter.obrien@example.com", - "fullName": "Walter O'Brien", - "age": 30, - "isAdmin": false - }, + 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/create-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md index 81b12b2126..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,13 +3,7 @@ mutation { databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", - data: { - "username": "walter.obrien", - "email": "walter.obrien@example.com", - "fullName": "Walter O'Brien", - "age": 30, - "isAdmin": false - }, + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id From f8819774ae2b76e1844674d48d359958b9f8350e Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Fri, 5 Sep 2025 21:05:52 +0530 Subject: [PATCH 06/19] update gen --- composer.json | 2 +- composer.lock | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 79e9a95f38..c4e5e72305 100644 --- a/composer.json +++ b/composer.json @@ -88,7 +88,7 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "dev-feat-object-example-handling", + "appwrite/sdk-generator": "*", "phpunit/phpunit": "9.*", "swoole/ide-helper": "5.1.2", "phpstan/phpstan": "1.8.*", diff --git a/composer.lock b/composer.lock index 0c92e751db..94b569ad23 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "37f7d1f59540c2b15e430cb60735ed44", + "content-hash": "afc8b2b314887779f507fd6a101ef6af", "packages": [ { "name": "adhocore/jwt", @@ -5019,16 +5019,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "dev-feat-object-example-handling", + "version": "1.3.1", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "3fe3c9b0e8b32f7b466362b09ad1d3664ef0b394" + "reference": "b0e67a0545a1dbe91c81389ed3acf0f844e068d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/3fe3c9b0e8b32f7b466362b09ad1d3664ef0b394", - "reference": "3fe3c9b0e8b32f7b466362b09ad1d3664ef0b394", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/b0e67a0545a1dbe91c81389ed3acf0f844e068d4", + "reference": "b0e67a0545a1dbe91c81389ed3acf0f844e068d4", "shasum": "" }, "require": { @@ -5064,9 +5064,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/feat-object-example-handling" + "source": "https://github.com/appwrite/sdk-generator/tree/1.3.1" }, - "time": "2025-09-05T14:30:22+00:00" + "time": "2025-09-05T15:33:58+00:00" }, { "name": "doctrine/annotations", @@ -8524,9 +8524,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "appwrite/sdk-generator": 20 - }, + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { From a068f831d4cfe28efbfc7007f73fceb958ef252f Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Sun, 7 Sep 2025 16:05:48 +0530 Subject: [PATCH 07/19] chore: remove deno from platforms array --- app/config/platforms.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index beed6c0b54..f465ede0aa 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -277,25 +277,6 @@ return [ 'gitBranch' => 'dev', 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/nodejs/CHANGELOG.md'), ], - [ - 'key' => 'deno', - 'name' => 'Deno', - 'version' => '16.0.0', - 'url' => 'https://github.com/appwrite/sdk-for-deno', - 'package' => 'https://deno.land/x/appwrite', - 'enabled' => true, - 'beta' => false, - 'dev' => false, - 'hidden' => false, - 'family' => APP_PLATFORM_SERVER, - 'prism' => 'typescript', - 'source' => \realpath(__DIR__ . '/../sdks/server-deno'), - 'gitUrl' => 'git@github.com:appwrite/sdk-for-deno.git', - 'gitRepoName' => 'sdk-for-deno', - 'gitUserName' => 'appwrite', - 'gitBranch' => 'dev', - 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/deno/CHANGELOG.md'), - ], [ 'key' => 'php', 'name' => 'PHP', From 4422a3788d35a38e37dcdf46481c2a4d41753501 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Sun, 7 Sep 2025 16:22:52 +0530 Subject: [PATCH 08/19] chore: remove avatars command from cli --- app/config/platforms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/config/platforms.php b/app/config/platforms.php index beed6c0b54..879a675931 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -245,6 +245,7 @@ return [ 'exclude' => [ 'services' => [ ['name' => 'assistant'], + ['name' => 'avatars'], ], ], ], From f67edb2c489581307a7ec93f9e2bb0cd12abe6fe Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Mon, 8 Sep 2025 09:49:52 +0530 Subject: [PATCH 09/19] update test --- tests/e2e/General/HTTPTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/e2e/General/HTTPTest.php b/tests/e2e/General/HTTPTest.php index bce6e7206f..4657e6f2ad 100644 --- a/tests/e2e/General/HTTPTest.php +++ b/tests/e2e/General/HTTPTest.php @@ -153,7 +153,6 @@ class HTTPTest extends Scope $this->assertIsString($body['client-flutter']); $this->assertIsString($body['console-web']); $this->assertIsString($body['server-nodejs']); - $this->assertIsString($body['server-deno']); $this->assertIsString($body['server-php']); $this->assertIsString($body['server-python']); $this->assertIsString($body['server-ruby']); From 3684f804627ccba4568d0d6319f140f6e84e5190 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Mon, 8 Sep 2025 13:43:44 +0530 Subject: [PATCH 10/19] feat: automatic pr creation in sdk release script --- src/Appwrite/Platform/Tasks/SDKs.php | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index f673651147..b4c31e680a 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -62,6 +62,9 @@ class SDKs extends Action $production ??= Console::confirm('Type "Appwrite" to push code to production git repos'); $production = $production === 'Appwrite'; $message ??= Console::confirm('Please enter your commit message:'); + + $createPr = Console::confirm('Should we create pull request automatically? (yes/no)'); + $createPr = $createPr === 'yes'; } if (!\in_array($version, [ @@ -315,6 +318,47 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND Console::success("Pushed {$language['name']} SDK to {$gitUrl}"); + if ($createPr) { + $prTitle = "feat: {$language['name']} SDK update for version {$version}"; + $prBody = "This PR contains updates to the {$language['name']} SDK for Appwrite version {$version}.\\n\\nCommit: {$message}"; + + $repoName = $language['gitRepoName']; + if (!$production) { + $repoName = 'aw-tests/' . $language['gitRepoName']; + } else { + $repoName = $language['gitUserName'] . '/' . $language['gitRepoName']; + } + + Console::info("Creating pull request for {$language['name']} SDK..."); + + $prCommand = 'cd ' . $target . ' && \ + gh pr create \ + --repo "' . $repoName . '" \ + --title "' . $prTitle . '" \ + --body "' . $prBody . '" \ + --base "' . $repoBranch . '" \ + --head "' . $gitBranch . '" \ + 2>&1'; + + $prOutput = []; + $prReturnCode = 0; + \exec($prCommand, $prOutput, $prReturnCode); + + if ($prReturnCode === 0) { + Console::success("Successfully created pull request for {$language['name']} SDK"); + if (!empty($prOutput)) { + Console::info("PR URL: " . end($prOutput)); + } + } else { + $errorMessage = implode("\n", $prOutput); + if (strpos($errorMessage, 'already exists') !== false) { + Console::warning("Pull request already exists for {$language['name']} SDK"); + } else { + Console::error("Failed to create pull request for {$language['name']} SDK: " . $errorMessage); + } + } + } + \exec('rm -rf ' . $target); Console::success("Remove temp directory '{$target}' for {$language['name']} SDK"); } From ea761213822b5c398dd6ca53fc5625c3b1949ed4 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal <chiragaggarwal5k@gmail.com> Date: Mon, 8 Sep 2025 13:51:34 +0530 Subject: [PATCH 11/19] use sdk version instead --- src/Appwrite/Platform/Tasks/SDKs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index b4c31e680a..e5c18338bf 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -319,8 +319,8 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND Console::success("Pushed {$language['name']} SDK to {$gitUrl}"); if ($createPr) { - $prTitle = "feat: {$language['name']} SDK update for version {$version}"; - $prBody = "This PR contains updates to the {$language['name']} SDK for Appwrite version {$version}.\\n\\nCommit: {$message}"; + $prTitle = "feat: {$language['name']} SDK update for version {$language['version']}"; + $prBody = "This PR contains updates to the {$language['name']} SDK for version {$language['version']}."; $repoName = $language['gitRepoName']; if (!$production) { From 176c2441a4920a9c434d22b8e53c703b0d753986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= <matejbaco2000@gmail.com> Date: Mon, 8 Sep 2025 10:32:13 +0200 Subject: [PATCH 12/19] Fix oauth identity check --- app/controllers/api/account.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 7f76e39cd9..84f89f57b8 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1534,23 +1534,23 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect') * Is verified is not used yet, since we don't know after an account is created anymore if it was verified or not. */ $isVerified = $oauth2->isEmailVerified($accessToken); - - $userWithEmail = $dbForProject->findOne('users', [ - Query::equal('email', [$email]), + + $identity = $dbForProject->findOne('identities', [ + Query::equal('provider', [$provider]), + Query::equal('providerUid', [$oauth2ID]), ]); - if (!$userWithEmail->isEmpty()) { - $user->setAttributes($userWithEmail->getArrayCopy()); + + if (!$identity->isEmpty()) { + $user = $dbForProject->getDocument('users', $identity->getAttribute('userId')); } // If user is not found, check if there is an identity with the same provider user ID if ($user === false || $user->isEmpty()) { - $identity = $dbForProject->findOne('identities', [ - Query::equal('provider', [$provider]), - Query::equal('providerUid', [$oauth2ID]), + $userWithEmail = $dbForProject->findOne('users', [ + Query::equal('email', [$email]), ]); - - if (!$identity->isEmpty()) { - $user = $dbForProject->getDocument('users', $identity->getAttribute('userId')); + if (!$userWithEmail->isEmpty()) { + $user->setAttributes($userWithEmail->getArrayCopy()); } } From c31a18934025dc17c55f3c3cb4e858dd846ab8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= <matejbaco2000@gmail.com> Date: Mon, 8 Sep 2025 11:34:46 +0200 Subject: [PATCH 13/19] Linter fix --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 84f89f57b8..8aaa5283c4 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1534,7 +1534,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect') * Is verified is not used yet, since we don't know after an account is created anymore if it was verified or not. */ $isVerified = $oauth2->isEmailVerified($accessToken); - + $identity = $dbForProject->findOne('identities', [ Query::equal('provider', [$provider]), Query::equal('providerUid', [$oauth2ID]), From 4bba78eb8621bacd5dfa0e1e23772164fa9dcf98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= <matejbaco2000@gmail.com> Date: Mon, 8 Sep 2025 14:56:02 +0200 Subject: [PATCH 14/19] Allow deleteRule override --- src/Appwrite/Platform/Workers/Deletes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index aa511c2209..a07d0b3cbe 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -1192,7 +1192,7 @@ class Deletes extends Action * @param Document $document rule document * @return void */ - private function deleteRule(Database $dbForPlatform, Document $document, CertificatesAdapter $certificates): void + protected function deleteRule(Database $dbForPlatform, Document $document, CertificatesAdapter $certificates): void { $domain = $document->getAttribute('domain'); $certificates->deleteCertificate($domain); From ac443e3b982c73ccd088faa9bc10e0741e105eb1 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k <arnabchatterjee.ac.2@gmail.com> Date: Mon, 8 Sep 2025 23:30:28 +0530 Subject: [PATCH 15/19] updated database version , sdk version and docs example in openapi with spatial --- app/config/specs/open-api3-1.8.x-console.json | 24 +++++----- app/config/specs/open-api3-1.8.x-server.json | 24 +++++----- .../specs/open-api3-latest-console.json | 24 +++++----- app/config/specs/open-api3-latest-server.json | 24 +++++----- app/config/specs/swagger2-1.8.x-console.json | 24 +++++----- app/config/specs/swagger2-1.8.x-server.json | 24 +++++----- app/config/specs/swagger2-latest-console.json | 24 +++++----- app/config/specs/swagger2-latest-server.json | 24 +++++----- composer.lock | 48 +++++++++---------- .../Databases/Collections/Documents/XList.php | 5 ++ .../SDK/Specification/Format/OpenAPI3.php | 9 +++- .../SDK/Specification/Format/Swagger2.php | 9 +++- 12 files changed, 141 insertions(+), 122 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 53137becbb..2438cf3ff6 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -7860,7 +7860,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -7977,7 +7977,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -8094,7 +8094,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -8211,7 +8211,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -8328,7 +8328,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -8445,7 +8445,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -35364,7 +35364,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -35480,7 +35480,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -35596,7 +35596,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -35712,7 +35712,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -35828,7 +35828,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -35944,7 +35944,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index ee0b6f59ac..5882e797e7 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -7323,7 +7323,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -7441,7 +7441,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -7559,7 +7559,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -7677,7 +7677,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -7795,7 +7795,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -7913,7 +7913,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -25798,7 +25798,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -25915,7 +25915,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -26032,7 +26032,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -26149,7 +26149,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -26266,7 +26266,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -26383,7 +26383,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 53137becbb..2438cf3ff6 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -7860,7 +7860,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -7977,7 +7977,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -8094,7 +8094,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -8211,7 +8211,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -8328,7 +8328,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -8445,7 +8445,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -35364,7 +35364,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -35480,7 +35480,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -35596,7 +35596,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -35712,7 +35712,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -35828,7 +35828,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -35944,7 +35944,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index ee0b6f59ac..5882e797e7 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -7323,7 +7323,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -7441,7 +7441,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -7559,7 +7559,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -7677,7 +7677,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -7795,7 +7795,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -7913,7 +7913,7 @@ "default": { "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -25798,7 +25798,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -25915,7 +25915,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "items": { "oneOf": [ { @@ -26032,7 +26032,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -26149,7 +26149,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "items": { "oneOf": [ { @@ -26266,7 +26266,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { @@ -26383,7 +26383,7 @@ "default": { "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "items": { "oneOf": [ { diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 393c2ce9c8..c91d6b824a 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -7998,7 +7998,7 @@ "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true } }, @@ -8104,7 +8104,7 @@ "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true }, "newKey": { @@ -8214,7 +8214,7 @@ "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true } }, @@ -8320,7 +8320,7 @@ "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true }, "newKey": { @@ -8430,7 +8430,7 @@ "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true } }, @@ -8536,7 +8536,7 @@ "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true }, "newKey": { @@ -35470,7 +35470,7 @@ "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true } }, @@ -35575,7 +35575,7 @@ "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true }, "newKey": { @@ -35684,7 +35684,7 @@ "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true } }, @@ -35789,7 +35789,7 @@ "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true }, "newKey": { @@ -35898,7 +35898,7 @@ "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true } }, @@ -36003,7 +36003,7 @@ "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true }, "newKey": { diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index 812598f516..166a1f74e5 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -7451,7 +7451,7 @@ "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true } }, @@ -7558,7 +7558,7 @@ "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true }, "newKey": { @@ -7669,7 +7669,7 @@ "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true } }, @@ -7776,7 +7776,7 @@ "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true }, "newKey": { @@ -7887,7 +7887,7 @@ "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true } }, @@ -7994,7 +7994,7 @@ "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true }, "newKey": { @@ -25959,7 +25959,7 @@ "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true } }, @@ -26065,7 +26065,7 @@ "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true }, "newKey": { @@ -26175,7 +26175,7 @@ "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true } }, @@ -26281,7 +26281,7 @@ "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true }, "newKey": { @@ -26391,7 +26391,7 @@ "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true } }, @@ -26497,7 +26497,7 @@ "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true }, "newKey": { diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 393c2ce9c8..c91d6b824a 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -7998,7 +7998,7 @@ "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true } }, @@ -8104,7 +8104,7 @@ "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true }, "newKey": { @@ -8214,7 +8214,7 @@ "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true } }, @@ -8320,7 +8320,7 @@ "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true }, "newKey": { @@ -8430,7 +8430,7 @@ "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true } }, @@ -8536,7 +8536,7 @@ "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true }, "newKey": { @@ -35470,7 +35470,7 @@ "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true } }, @@ -35575,7 +35575,7 @@ "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true }, "newKey": { @@ -35684,7 +35684,7 @@ "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true } }, @@ -35789,7 +35789,7 @@ "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true }, "newKey": { @@ -35898,7 +35898,7 @@ "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true } }, @@ -36003,7 +36003,7 @@ "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true }, "newKey": { diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 812598f516..166a1f74e5 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -7451,7 +7451,7 @@ "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true } }, @@ -7558,7 +7558,7 @@ "type": "array", "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true }, "newKey": { @@ -7669,7 +7669,7 @@ "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true } }, @@ -7776,7 +7776,7 @@ "type": "array", "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true }, "newKey": { @@ -7887,7 +7887,7 @@ "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true } }, @@ -7994,7 +7994,7 @@ "type": "array", "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true }, "newKey": { @@ -25959,7 +25959,7 @@ "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true } }, @@ -26065,7 +26065,7 @@ "type": "array", "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[1, 2], [3, 4], [5, 6]]", "x-nullable": true }, "newKey": { @@ -26175,7 +26175,7 @@ "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true } }, @@ -26281,7 +26281,7 @@ "type": "array", "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[1, 2]", "x-nullable": true }, "newKey": { @@ -26391,7 +26391,7 @@ "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true } }, @@ -26497,7 +26497,7 @@ "type": "array", "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", "default": null, - "x-example": "[[1,2], [3, 4]]", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", "x-nullable": true }, "newKey": { diff --git a/composer.lock b/composer.lock index 1e422773e5..56a32fd753 100644 --- a/composer.lock +++ b/composer.lock @@ -3650,16 +3650,16 @@ }, { "name": "utopia-php/database", - "version": "1.4.1", + "version": "1.4.3", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "b5ea4d133a1a4e747b7522e61e072289129a06f4" + "reference": "f06a57ab95a86713013fa96919b354bda26f696c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/b5ea4d133a1a4e747b7522e61e072289129a06f4", - "reference": "b5ea4d133a1a4e747b7522e61e072289129a06f4", + "url": "https://api.github.com/repos/utopia-php/database/zipball/f06a57ab95a86713013fa96919b354bda26f696c", + "reference": "f06a57ab95a86713013fa96919b354bda26f696c", "shasum": "" }, "require": { @@ -3700,9 +3700,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/1.4.1" + "source": "https://github.com/utopia-php/database/tree/1.4.3" }, - "time": "2025-09-05T13:23:52+00:00" + "time": "2025-09-08T12:54:19+00:00" }, { "name": "utopia-php/detector", @@ -3954,16 +3954,16 @@ }, { "name": "utopia-php/framework", - "version": "0.33.24", + "version": "0.33.27", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "5112b1023342163e3fbedec99f38fc32c8700aa0" + "reference": "d9d10a895e85c8c7675220347cc6109db9d3bd37" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/5112b1023342163e3fbedec99f38fc32c8700aa0", - "reference": "5112b1023342163e3fbedec99f38fc32c8700aa0", + "url": "https://api.github.com/repos/utopia-php/http/zipball/d9d10a895e85c8c7675220347cc6109db9d3bd37", + "reference": "d9d10a895e85c8c7675220347cc6109db9d3bd37", "shasum": "" }, "require": { @@ -3995,9 +3995,9 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/0.33.24" + "source": "https://github.com/utopia-php/http/tree/0.33.27" }, - "time": "2025-09-04T04:18:39+00:00" + "time": "2025-09-07T18:40:53+00:00" }, { "name": "utopia-php/image", @@ -4639,16 +4639,16 @@ }, { "name": "utopia-php/swoole", - "version": "0.8.3", + "version": "0.8.4", "source": { "type": "git", "url": "https://github.com/utopia-php/swoole.git", - "reference": "1af73dd3e73987cf729c7db399054e4a70befd99" + "reference": "150c30700e738c52348cce9ed0e0f0ff96872081" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/swoole/zipball/1af73dd3e73987cf729c7db399054e4a70befd99", - "reference": "1af73dd3e73987cf729c7db399054e4a70befd99", + "url": "https://api.github.com/repos/utopia-php/swoole/zipball/150c30700e738c52348cce9ed0e0f0ff96872081", + "reference": "150c30700e738c52348cce9ed0e0f0ff96872081", "shasum": "" }, "require": { @@ -4684,9 +4684,9 @@ ], "support": { "issues": "https://github.com/utopia-php/swoole/issues", - "source": "https://github.com/utopia-php/swoole/tree/0.8.3" + "source": "https://github.com/utopia-php/swoole/tree/0.8.4" }, - "time": "2025-03-26T10:09:05+00:00" + "time": "2025-09-07T09:39:46+00:00" }, { "name": "utopia-php/system", @@ -5019,16 +5019,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "1.3.2", + "version": "1.3.4", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "375a6c9b168db6fdf58fbe0d49d2261d80700b4a" + "reference": "d3b420dced42f1eec1f6d0aa98b7bbf8de4042ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/375a6c9b168db6fdf58fbe0d49d2261d80700b4a", - "reference": "375a6c9b168db6fdf58fbe0d49d2261d80700b4a", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/d3b420dced42f1eec1f6d0aa98b7bbf8de4042ac", + "reference": "d3b420dced42f1eec1f6d0aa98b7bbf8de4042ac", "shasum": "" }, "require": { @@ -5064,9 +5064,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/1.3.2" + "source": "https://github.com/appwrite/sdk-generator/tree/1.3.4" }, - "time": "2025-09-05T15:50:35+00:00" + "time": "2025-09-08T11:56:04+00:00" }, { "name": "doctrine/annotations", diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php index 9c8405cf18..7dfa2a0222 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php @@ -13,6 +13,7 @@ use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; use Utopia\Database\Document; +use Utopia\Database\Exception as DatabaseException; use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Query; @@ -140,6 +141,10 @@ class XList extends Action } catch (QueryException $e) { throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } + // incase of querying distance in multidimenonsal geometry + catch (DatabaseException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } $operations = 0; $collectionsCache = []; diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 6432342e45..c9c2135ab3 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -9,8 +9,10 @@ use Appwrite\SDK\Response; use Appwrite\SDK\Specification\Format; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model; +use Utopia\Database\Database; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Spatial; use Utopia\Validator; use Utopia\Validator\ArrayList; use Utopia\Validator\Nullable; @@ -448,13 +450,18 @@ class OpenAPI3 extends Format ]; break; case 'Utopia\Database\Validator\Spatial': + /** @var Spatial $validator */ $node['schema']['type'] = 'array'; $node['schema']['items'] = [ 'oneOf' => [ ['type' => 'array'] ] ]; - $node['schema']['x-example'] = '[[1,2], [3, 4]]'; + $node['schema']['x-example'] = match ($validator->getSpatialType()) { + Database::VAR_POINT => '[1, 2]', + Database::VAR_LINESTRING => '[[1, 2], [3, 4], [5, 6]]', + Database::VAR_POLYGON => '[[[1, 2], [3, 4], [5, 6], [1, 2]]]', + }; break; case 'Appwrite\Utopia\Database\Validator\Queries\Columns': case 'Appwrite\Utopia\Database\Validator\Queries\Attributes': diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 8a84a3a398..a923f40ffa 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -9,8 +9,10 @@ use Appwrite\SDK\Response; use Appwrite\SDK\Specification\Format; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model; +use Utopia\Database\Database; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Spatial; use Utopia\Route; use Utopia\Validator; use Utopia\Validator\ArrayList; @@ -463,13 +465,18 @@ class Swagger2 extends Format ]; break; case 'Utopia\Database\Validator\Spatial': + /** @var Spatial $validator */ $node['type'] = 'array'; $node['schema']['items'] = [ 'oneOf' => [ ['type' => 'array'] ] ]; - $node['x-example'] = '[[1,2], [3, 4]]'; + $node['x-example'] = match ($validator->getSpatialType()) { + Database::VAR_POINT => '[1, 2]', + Database::VAR_LINESTRING => '[[1, 2], [3, 4], [5, 6]]', + Database::VAR_POLYGON => '[[[1, 2], [3, 4], [5, 6], [1, 2]]]', + }; break; case 'Utopia\Validator\JSON': case 'Utopia\Validator\Mock': From ef83636f937fb4c2f1085c894393c7fe529030ad Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k <arnabchatterjee.ac.2@gmail.com> Date: Mon, 8 Sep 2025 23:57:44 +0530 Subject: [PATCH 16/19] empty commit to trigger tests From 0dd7d45993bc949644f9d6eda08c57d23aed92af Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k <arnabchatterjee.ac.2@gmail.com> Date: Tue, 9 Sep 2025 22:56:59 +0530 Subject: [PATCH 17/19] updated tests --- .../Services/Databases/Legacy/DatabasesBase.php | 16 ++++++++-------- .../Databases/TablesDB/DatabasesBase.php | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php index 32413ddfd0..80a05c4864 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php @@ -6790,7 +6790,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::intersects('polyAttr', [[5.0, 5.0]])->toString()] + 'queries' => [Query::intersects('polyAttr', [5.0, 5.0])->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(1, $response['body']['total']); @@ -6801,7 +6801,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::notIntersects('polyAttr', [[60.0, 60.0]])->toString()] + 'queries' => [Query::notIntersects('polyAttr', [60.0, 60.0])->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, $response['body']['total']); @@ -6812,7 +6812,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::overlaps('polyAttr', [$overlapPoly])->toString()] + 'queries' => [Query::overlaps('polyAttr', $overlapPoly)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(1, $response['body']['total']); @@ -6824,7 +6824,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::notOverlaps('polyAttr', [$noOverlapPoly])->toString()] + 'queries' => [Query::notOverlaps('polyAttr', $noOverlapPoly)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, $response['body']['total']); @@ -6876,7 +6876,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::crosses('lineAttr', [$crossLine])->toString()] + 'queries' => [Query::crosses('lineAttr', $crossLine)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(1, $response['body']['total']); @@ -6888,7 +6888,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::notCrosses('lineAttr', [$nonCrossLine])->toString()] + 'queries' => [Query::notCrosses('lineAttr', $nonCrossLine)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, $response['body']['total']); @@ -6899,7 +6899,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::touches('polyAttr', [$touchPoly])->toString()] + 'queries' => [Query::touches('polyAttr', $touchPoly)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(2, $response['body']['total']); @@ -6911,7 +6911,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::notTouches('polyAttr', [$farPoly])->toString()] + 'queries' => [Query::notTouches('polyAttr', $farPoly)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, $response['body']['total']); diff --git a/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php b/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php index 35b2b979d6..46d25bcf1f 100644 --- a/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php +++ b/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php @@ -8273,7 +8273,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::overlaps('polyAttr', [$overlapPoly])->toString()] + 'queries' => [Query::overlaps('polyAttr', $overlapPoly)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(1, $response['body']['total']); @@ -8285,7 +8285,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::notOverlaps('polyAttr', [$noOverlapPoly])->toString()] + 'queries' => [Query::notOverlaps('polyAttr', $noOverlapPoly)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, $response['body']['total']); @@ -8337,7 +8337,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::crosses('lineAttr', [$crossLine])->toString()] + 'queries' => [Query::crosses('lineAttr', $crossLine)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(1, $response['body']['total']); @@ -8349,7 +8349,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::notCrosses('lineAttr', [$nonCrossLine])->toString()] + 'queries' => [Query::notCrosses('lineAttr', $nonCrossLine)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, $response['body']['total']); @@ -8360,7 +8360,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::touches('polyAttr', [$touchPoly])->toString()] + 'queries' => [Query::touches('polyAttr', $touchPoly)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(2, $response['body']['total']); @@ -8372,7 +8372,7 @@ trait DatabasesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'queries' => [Query::notTouches('polyAttr', [$farPoly])->toString()] + 'queries' => [Query::notTouches('polyAttr', $farPoly)->toString()] ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, $response['body']['total']); From 56fc3ff3d8c609010143375b84075896ad339e45 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k <arnabchatterjee.ac.2@gmail.com> Date: Tue, 9 Sep 2025 23:22:47 +0530 Subject: [PATCH 18/19] updated xlist --- .../Databases/Http/Databases/Collections/Documents/XList.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php index 7dfa2a0222..9c8405cf18 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php @@ -13,7 +13,6 @@ use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; use Utopia\Database\Document; -use Utopia\Database\Exception as DatabaseException; use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Query; @@ -141,10 +140,6 @@ class XList extends Action } catch (QueryException $e) { throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - // incase of querying distance in multidimenonsal geometry - catch (DatabaseException $e) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); - } $operations = 0; $collectionsCache = []; From 497cf305497ce55b616cd4af82c9752ada2898fd Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k <arnabchatterjee.ac.2@gmail.com> Date: Wed, 10 Sep 2025 11:50:58 +0530 Subject: [PATCH 19/19] bump database and migration versions --- composer.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.lock b/composer.lock index 56a32fd753..5b34c42977 100644 --- a/composer.lock +++ b/composer.lock @@ -3650,16 +3650,16 @@ }, { "name": "utopia-php/database", - "version": "1.4.3", + "version": "1.4.4", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "f06a57ab95a86713013fa96919b354bda26f696c" + "reference": "16f96e5d9784dae87d4f6b864e87da8e3be15507" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/f06a57ab95a86713013fa96919b354bda26f696c", - "reference": "f06a57ab95a86713013fa96919b354bda26f696c", + "url": "https://api.github.com/repos/utopia-php/database/zipball/16f96e5d9784dae87d4f6b864e87da8e3be15507", + "reference": "16f96e5d9784dae87d4f6b864e87da8e3be15507", "shasum": "" }, "require": { @@ -3700,9 +3700,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/1.4.3" + "source": "https://github.com/utopia-php/database/tree/1.4.4" }, - "time": "2025-09-08T12:54:19+00:00" + "time": "2025-09-10T00:50:05+00:00" }, { "name": "utopia-php/detector", @@ -4202,16 +4202,16 @@ }, { "name": "utopia-php/migration", - "version": "1.0.1", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/utopia-php/migration.git", - "reference": "38171023efd3abe650d2abc5ac65f5df52311da6" + "reference": "c42935a6a4ee3701c68d24244e82ecb39e945ec4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/migration/zipball/38171023efd3abe650d2abc5ac65f5df52311da6", - "reference": "38171023efd3abe650d2abc5ac65f5df52311da6", + "url": "https://api.github.com/repos/utopia-php/migration/zipball/c42935a6a4ee3701c68d24244e82ecb39e945ec4", + "reference": "c42935a6a4ee3701c68d24244e82ecb39e945ec4", "shasum": "" }, "require": { @@ -4252,9 +4252,9 @@ ], "support": { "issues": "https://github.com/utopia-php/migration/issues", - "source": "https://github.com/utopia-php/migration/tree/1.0.1" + "source": "https://github.com/utopia-php/migration/tree/1.1.1" }, - "time": "2025-08-28T13:41:25+00:00" + "time": "2025-09-10T06:17:20+00:00" }, { "name": "utopia-php/orchestration",