
Hello, in the relations documentation it is not seen that it is necessary to add the $id. But it throws error 500 if it is not added.
await databases.createDocument(
databaseId: 'marvel',
collectionId: 'movies',
documentId: ID.unique(),
data: {
'title': 'Spiderman',
'year': 2002,
'reviews': [
{
"\$id": ID.unique(), //add id
'author': 'Bob',
'text': 'Great movie!'
},
{
"\$id": ID.unique(), //add id
'author': 'Alice',
'text': 'Loved it!'
}
]
},
);

which appwrite version are you using and can you share the link to the documentation which you're referring



flutter: 9.0.0

which appwrite version are you using? what's the error message

1.3.1

and the error message?


that is weird, let me try it myself

ok friend

Hey, thanks for letting us know, this issue has a fix in the works now

[BUG UNDER FIX ๐ ] Creating Documents relationship

Is there a link to track the status of the issue?

This is fixed in the latest release 1.3.4 ๐

great ๐ฏ
Recommended threads
- Sites 30MB limit from GitHub
Iโm deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but itโs in a subdirectory with the root being an html landin...
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
