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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Appwrite cloud DB server error 500
Getting this error