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
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...