I want to log each admin actions, so when an admin creates, updates or deletes a document, the functions occurs logging the admin and the modified document's details.
How to know the document updater using functions Event
You can use Appwrite events this one databases.*.collections.*.documents.*
to be exact.
But, this event will emit in any collection change regarding the user.
As of now, there's no way to know who triggered the event.
For the updatedBy attribute track this issue.
The best option now would be to wrap the collection update inside a function.
Recommended threads
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- Our Appwrite organization is suspended
Please give support regarding this , no app is working now , please solve my issue and give support , no one is replying in message section or email.
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...