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
- Error with realtime channels
I'm performing a subscription to realtime channels, and after a few seconds I get an exception with this error: {\"type\":\"error\",\"data\":{\"code\":1008,\"me...
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...