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
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...
- createCollection Deprecated