I want to get user id that invoked the function, so how can i get the same?
You'll have it inside the APPWRITE_FUNCTION_USER_ID variable.
const userId = res.variables['APPWRITE_FUNCTION_USER_ID']
Thanks a lot
[Solved] How can i get user id in function
Hey @Binyamin, I am working on an Appwrite App in the apwrite cloud and wanted to lookup this information in the docs but it seems like the docs only describe the newest for version 1.4. Is there a plan to provide documentation for older appwrite versions?
In the API docs you can select version Otherwise you'll need to search for it in GitHub
Yes in the reference part, but not in the Guides section...
Yep For that you can check here https://github.com/appwrite/docs/tree/main/app/views/docs and here https://github.com/appwrite/appwrite/tree/master/docs
Alright, thanks 👍
Recommended threads
- Function executions not getting logged b...
Hello, I have just upgraded on a self-hosted 1.8.1 to 1.9.0 and I have a strange bug where my functions are no longer showing executions in the console, howeve...
- Cloud Function Deployment Issue – Timeou...
Impossible to deploy a function for more than an hour. My project ID is: 69cc7a82000b42b8f5e2 Here's the error I get after waiting 15 minutes: Synchronous funct...
- Dart runtime functions are timing out an...
My appwrite function is not executing at all and showing the error in error logs: I tried redeploying. Still no luck. I have set the function to ise maximum re...