I am working on a side project and using appwrite i am currently implementing comments functionality for this i am using a separate comments collection and inside this collection we have three attributes the first two attributes is the relation with the other two collections post collection and the user collection and the relation type is many to many because many users can create many comments and many posts can contains many comments. But in many to many relation we need to pass the id's in an array but i don't know how can i do this. Please help me.
No need to ping Steven π
oh
sorry
i thought that he will reply me
lol
At least in the case of posts, I think it's better not using relationship and save the ID of the post as a string
That way it will be easier to filter, etc
i just want to test that how relationship works that's why i want to do this
but i dont know how can i upload the array of user ids and the posts
Recommended threads
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- API key not having access to database
My api key with read and write access to row and tables and DB I not working. In my test the results returned an empty database. This is the second time I am...
- "Restore project" button fails: "Invalid...
In the dashboard, it clicking "Restore project" fails. The request sent to `PATCH https://cloud.appwrite.io/v1/projects/:project_id` with payload `{status: "act...