update: examples.

This commit is contained in:
Darshan 2025-06-25 19:07:26 +05:30
parent 562f5c2a1e
commit eb201fe2ae
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,4 @@
appwrite tables listLogs \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -0,0 +1,15 @@
import { Client, Tables } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tables = new Tables(client);
const result = await tables.listLogs(
'<DATABASE_ID>', // databaseId
'<TABLE_ID>', // tableId
[] // queries (optional)
);
console.log(result);