Files
appwrite/docs/examples/1.8.x/console-web/examples/tablesdb/create-string-column.md
Jake Barnby f85bf446e6 Sync docs
2025-08-26 15:40:03 +12:00

546 B

import { Client, TablesDB } from "@appwrite.io/console";

const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID

const tablesDB = new TablesDB(client);

const result = await tablesDB.createStringColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '', size: 1, required: false, default: '', // optional array: false, // optional encrypt: false // optional });

console.log(result);