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
- Server Error when importing to tables
Same .csv file worked yesterday, Please fix it asap
- Urgent help with removed databases
Hi <@564158268319203348> <@501784879638249472> I wrote to paid plan support about this but no response as of yet⦠About an hour ago one of the interns from o...
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...