getting "document_invalid_structure" error even when i'm sending valid data
- 0
- Databases
- Web
- Cloud

the error message i'm getting says Invalid document structure: Unknown attribute: "chats", even tho i'm not sending any attribute named "chats". I'm facing this issue while updating a document. the screenshot shows the data i'm trying to send (under dataToPost
) to the db, also the error message i'm facing. I do have a collection named "chats", but that do not have any relation with the collection that i'm trying to work with here.
Appwrite: 14.0.1 NextJS: 14.0.4

i tried updating the values from the console directly. and it throws the same error there as well
Recommended threads
- Server Error when Pushing a Function
Get this ambiguous error when trying to push my function, it's TypeScript using NodeJS 18 ``` ? Which functions would you like to push? get-grades (get-grades)...
- Looking for Partner
I'm looking for a partner for long-term collaboration. Of course, you'll get paid for it. If you are interested, please send a DM to me
- Network error when attempting to fetch r...
Hi, I am trying to modify some database data in the console for testing but keep getting this error. I am on the appwrite cloud and have already tried clearing ...
