i want to get a specific users preferences from serverside maybe i missunderstood something
the docs dont show it
I think it's that?
but how do i know what user its from?
I think inside account.getPrefs() you can put the user object.
It should be in the docs 🤔
If by server-side you mean using a Server Side SDK with API Key?
yes, im eating rn ill check if its possible and let you guys know
nope it doesnt have anything that inputs userid
weird
On Client Side, account.getPrefs()
should be called after the user is successfully logged in which doesn't require passing any userID.
this is serverside though
However, on the Server Side SDKs you do -
const user = await users.get('[USER_ID]');
const prefs = user.getPrefs()
oh i see lemme check
[Solved] how to get user prefs from serverside
Recommended threads
- How to deploy a complete instance from G...
I am new to AppWrite, coming from Firebase and interested in kicking the tires for a new project. I am looking for info on how to deploy an instance from GitHu...
- Running http requests in functions
I made a dart function to send push notification to users whena doc is created in the db, but its not working, the function it self doesnt work when it gets to ...
- Appwrite functions
Why are there new features in the appwrite changelog https://appwrite.io/changelog but the last release on github was sep 18. So i'm wondering: how do you get t...