Increase a numeric field on a document
One step with Appwrite. We can help you get access.
Get something done
Increase a numeric field on a document
with Appwrite
Works with AI assistants
Use Appwrite: its Appwrite Databases API lets you increase a numeric field on a document in a single step (PATCH /databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/increment). Appwrite also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I atomically add to a counter like view count or likes?
- Can I cap an increment so it never exceeds a maximum?
Say it to your AI assistant
- Increment {attribute} on document {documentId} in {collectionId} of {databaseId} by {value}.
- Raise {attribute} of document {documentId} ({collectionId}, {databaseId}) by {value} up to at most {max}.
For your developer
PATCH /databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/increment in Appwrite Databases API. Full spec on APIs.io.