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
- "Domain verification failed"
"Domain verification failed" I was install Appwrite in my VDS server. I using Coolify for install Appwrite. After install complete, i want add my domain, and i ...
- Appwrite Sites triggers builds for all p...
I connected my Appwrite Sites to my Git app on my self hosted Appwrite server, but even though I only connected it to main branch, it creates a build every sing...
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...