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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- 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...