Back

Having trouble updating documents

  • 1
  • Databases
  • React Native
  • Web
  • Cloud
martins4
6 May, 2024, 11:26

I have tryied updating some documents but an error pops up:

  • Invalid relationship value. Mist be either an array of documents or document IDs, NUL given.

It is super strange because it pops the same error when performing the request using API calls and when changing it manually from the AppWrite Dashboard.

If someone can help me solve this I would be thankful.

TL;DR
Developers experiencing an issue updating documents due to an error related to relationship values. The error message indicates the need for an array of documents or IDs but is receiving NULL instead. This occurs both through API calls and manual changes via the AppWrite Dashboard. To resolve this, ensure that the relationship values are correctly formatted as either an array of documents or document IDs in the update request.
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