appwrite/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md
2025-07-30 10:39:28 +05:30

538 B

const sdk = require('node-appwrite');

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

const grids = new sdk.Grids(client);

const result = await grids.createEnumColumn( '<DATABASE_ID>', // databaseId '<TABLE_ID>', // tableId '', // key [], // elements false, // required '', // default (optional) false // array (optional) );