
I am using Appwrite for my social media application. I have modelled the comments functionality and planning it to be recursive. Now I want to know, how can I configure this functionality in Appwrite Collections. Currently using web sdk with appwrite cloud but planning to migrate on node-appwrite
Sample json for a single post:
TypeScript
{
"postId": "nvkndfkvnfdk",
"items": [
{
"userId": "dnksndnsdfefw",
"commentText": "Hello, World!",
"items": [
{
"userId": "dnksndnsdfefw",
"commentText": "Hello, World!",
"items": []
},
{
"userId": "dnksndnsdfefw",
"commentText": "Hello, World!",
"items": []
}
]
},
{
"userId": "dnksndnsdfefw",
"commentText": "Hello, World!",
"items": [
{
"userId": "dnksndnsdfefw",
"commentText": "Hello, World!",
"items": [
{
"userId": "dnksndnsdfefw",
"commentText": "Hello, World!",
"items": []
}
]
}
]
},
{
"userId": "dnksndnsdfefw",
"commentText": "Hello, World!",
"items": []
}
]
}
TL;DR
Developers using Appwrite for a social media application want to configure recursive comments functionality in Appwrite Collections. They are currently using the web SDK but plan to migrate to node-appwrite. They provide a sample JSON for a single post.Recommended threads
- My collection is not updating after csv ...
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attribute stuck on proccessing
i tried creating a new attribute butits stuck on proccessing,i did a hard refresh,cleared cache everything but still stuck on proccessing,also in my functions w...
