
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:
{
"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": []
}
]
}
Recommended threads
- File tokens regenerate each page reload
Hello, on appwrite 1.7.4, when I create a file token via the API Tokens(appwriteAdminClient)#createFileToken I get a secret, then when I check in the console t...
- CSV Import Shows Success but Data Not Ap...
I tried importing a CSV file into my PRODUCTS collection. The dashboard shows the message “Import to PRODUCTS completed successfully,” but no data appears in th...
- Console create row ui not passing ID.uni...
I'm getting an error saying the id is already used but it should be created with ID.unique() it doesn't seem to be reading the row ID field at all. I can't get ...
