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
- Router_path_not_found
Hi all, I have a website hosted on Appwrite sites, (repo on GitHub) and just earlier today the main page (and all pages) went down mysteriously with this error....
- Priority 0 even though specified as some...
Hello, I am attempting to link my domain to simplelogin and I have set the DNS for the mx records to the attached image, however when I try to verify it on simp...
- HELP!
IT WOULDN'T BELEAVE I AM SIGNED IN