appwrite/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md
2025-09-05 17:30:39 +05:30

489 B

import { Client, TablesDB } from "react-native-appwrite";

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.incrementRowColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '', value: 0, // optional max: 0 // optional });

console.log(result);