appwrite/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md
2025-10-09 21:04:50 +13:00

540 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 transactionId: '<TRANSACTION_ID>' // optional });

console.log(result);