
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
- Appwrite isn't accepting the api from se...
Error creating user: AppwriteException: Server Error type: 'general_unknown', response: '{"message":"Server Error","code":500,"type":"general_unknown","versi...
- Subject: Request for temporary quota lif...
Hi Appwrite Team, our nonprofit animal rescue app on Appwrite Cloud is currently throttled due to read‑quota limits, and we need a temporary increase so rescue ...
- 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 ...
