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
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...