Back

Update Document in Database

  • 0
  • Web
Dev
13 Feb, 2024, 16:17

{ "message": "Invalid document structure: Unknown attribute: 0", "code": 400, "type": "document_invalid_structure", "version": "0.12.83" } Document created, but if im try update document i see this error

TL;DR
Title: Error updating document in database Developers are encountering an error while trying to update a document in the database. The error message states "Invalid document structure: Unknown attribute: '0'". This error occurs even after successfully creating the document. One solution that may resolve the issue is to ensure that the data being updated is an object and not an array. Additionally, the developers have requested the code to investigate further.
Binyamin
13 Feb, 2024, 16:19

Can you share the code please?

Dev
13 Feb, 2024, 16:43
Binyamin
13 Feb, 2024, 16:44

Good

Binyamin
13 Feb, 2024, 16:44

Can you log the data variable

Binyamin
13 Feb, 2024, 16:44

Or you can make sure it's an object and not an array

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more