Is there a method in the client SDK which would allow me to get a user other than the currently logged in user by ID and fetch their pref key/vals?
Also, is it considered the right practice to store things like avatar file IDs, usernames, etc. in user prefs?
Or should I be making a DB collection to store such user data?
I'm going to refactor to user a DB collection for now, but if anyone knows the correct answer to this plz @ ping me here π
You mean get other users data?
Yes, I would recommend creating a users collection
Thanks Steven, yeah that's what I ended up doing and it's working well so far
Yeah the original issue was getting other users data
Just for like, displaying profile pictures, usernames, etc etc
Recommended threads
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...