Hello. I'm getting error below when trying to create a new document. I don't remember creating attribute "author", but it fits in the context of what I am doing. So it's possible that I added and then removed this attribute. Either way, it shouldn't exist by now, it doesn't show up in console as well. I attached the screenshots of console, error & my code.
Error: Invalid document structure: Missing required attribute "author"
My code:
await databases.createDocument("bible-assistant-db", "jwchat-threads", ID.unique(), {
chatName: message,
messages: [{
role: "USER",
content: [
{
type: "TEXT",
text: message,
},
...images.map((image: any) => {
return {
type: "IMAGE",
media_type: image.media_type,
data: image.data,
};
})
],
}],
isBusy: true
}, [Permission.read(Role.user(user.$id))]);
Recommended threads
- Having issues with login via CLI
``` ~/appwrite appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...