From eb201fe2ae7b9137df5d3818145be11e0599566d Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 25 Jun 2025 19:07:26 +0530 Subject: [PATCH] update: examples. --- .../console-cli/examples/tables/list-logs.md | 4 ++++ .../console-web/examples/tables/list-logs.md | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-logs.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-logs.md diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md b/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md new file mode 100644 index 0000000000..08c4ff0f8d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md @@ -0,0 +1,4 @@ +appwrite tables listLogs \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-logs.md b/docs/examples/1.8.x/console-web/examples/tables/list-logs.md new file mode 100644 index 0000000000..04d6c2300c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/list-logs.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.listLogs( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result);