
Hello there I have a project that requires increasement and decreament of likes and comment and others, while many users maybe updating sulmultenously, that means getting document to check the latest count before updating maynot work as there might changes already before the whole process ends. I looked at the docs but nothing of such was found, Please how can I achieve that

This is not supported at the moment. Best to add a 👍🏼 on https://github.com/appwrite/appwrite/issues/3905
For your case with "likes", it might be better to have a "like" document instead of incrementing because if you just increment, what's stopping someone from incrementing multiple times?
Recommended threads
- Auth Error
"use client"; import { useEffect } from "react"; import { getSessionCookie } from "@/actions/auth"; import { createBrowserSessionClient } from "@/lib/appwrite-...
- Prevent modifying specific attributes
How do I prevent user to only to be able to modify some of the attributes. Document level security gives full access to update whole document, what are the wor...
- Bypass Error When Creating Account With ...
Suppose user first uses email/pass for log in using xyz@gmail.com, few month later on decides to use google oauth2 with same xyz@gmail.com (or in reverse orde...
