appwrite/docs/examples/1.7.x/client-react-native/examples/databases/increment-document-attribute.md
Chirag Aggarwal a53dcd8a23 chore: regen
2025-07-23 20:56:20 +05:30

538 B

import { Client, Databases } 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 databases = new Databases(client);

const result = await databases.incrementDocumentAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '<DOCUMENT_ID>', // documentId '', // attribute null, // value (optional) null // max (optional) );

console.log(result);