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 use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...
- I can't migrate my project from Appwrite...
I'm having an issue migrating my Appwrite project to a self-hosted instance. The problem is that I've exceeded my read rate limit (or database read limit), so I...