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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...