Invalid relationship value. Must be either a document ID or a document, array given.
- 0
 - Databases
 - Cloud
 
I'm getting this error when i try to update a document. The collection has a relatipship with 2 other collections. I don't understand why, when i update the document, i am getting this error thrown since i am only updating 3 attribute, not relating to the relationships... and the documentId is defiantly a string.
This is the code updating the document:
    const data = {
      prospect_disc_type: prospectDiscType,
      prospect_report_overview: response.prospect_report_overview,
      prospect_engagement_score: engagementScore?.score,
    };
    const updateProspectResponse = await database.updateDocument(
      appwrite.APPWRITE_DATABASE_ID,
      appwrite.PROSPECT_COLLECTION,
      prospectId,
      data
    );
Recommended threads
- Internal server Error when trying to exe...
When executing the function locally it works fine, but when the function is deployed I get this error: ```requests.exceptions.HTTPError: 500 Server Error: Inter...
 - Dynamic Roles
I tried to store a row with this permissions: permissions.push( Permission.read(Role.users("verified")), Permission.write(Role.label(`c-${calend...
 - Column size update error – "Invalid inde...
Hey everyone, I’m running into an issue when trying to update the size of an existing column in my Appwrite database. I’m trying to change the size from 30 to 5...