i'm writing a server function that'll create a doc in "Users" collection on each user creation. but i wanna collect and store more data from the user. maybe their city, zip code and stuff. so how can i send those data to my function so that i can store those in the doc? I'm using email-password based login
how to send data to "on user creation" server function?
I would suggest creating the account with a function the user executes rather than using account.create() and a function triggered by event
then what difference it would make if we do account.create() and then databases.createDocument() in the client side directly?
Consolidating the API call and making sure to do validation
about consolidating the API calls, even if we do it in the server function, we still need to do account.create() and then databases.createDocument(). don't we? so are the API calls really getting consolidated?
and about validation, is it safer for any task to be done in the server function compared to the client side?
There consolidated on the front end
If you need validation, yes, use function
Recommended threads
- restore paused project not working
https://cloud.appwrite.io/console/project-sfo-69b1b841002ca6a07f14/overview/platforms
- Realtime doesn't seem to work with Table...
Hi, I am trying to connect my tables rows with realtime on my react website, it connects, but I dont get the rows when a row is being created. I tried with Chan...
- Failed to receive appwrite reset passwor...
Hey there, I forgot my password for my appwrite account but when i use forgot password, i dont get an email to reset the account but when i try to create a new ...