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
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...