Hi, I'm creating the following and follower function for users. What's the best way to do it in Appwrite? I'm using the Follower and Following as attributes in Users document. When I try to update user following with this code, I got the respond status error 500. Please help me with the issue. Thank you!
What is the 500 error message?
Do you have a collection for users and the id of that collection is the user id?
The message is general_unknown,the id of the collection is userCollectionId, which is store in the .env and the document id is the user.userId
Sorry, I meant the document id.
What does your array look like? Is it just an array of strings?
This is console.log("user in saveFollower: ", user, followingArray)
Yeah, it's the array of strings
Recommended threads
- HTTP Error 500 ''
Hello to everyone, I'm a Flutter developer and actually I'm developing an app using Appwrite.. during my tests and also massive ones I've noticed something we...
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126
- Appwrite Sites: ERR_TOO_MANY_REDIRECTS o...
So, my domain was working perfectly fine with Vercel. I was using cloudflare CDN (still am) but CNAME was DNS-only. I switched over to appwrite, CNAME is still ...