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
- Github Student Plan showing as free plan
In my Github student plan it showing as basic plan instead of pro plan. Till few hours back it worked ok, but now showing errors and couldn't use any pro featur...
- Appwrite for Education
I am writing to report an issue with my account limits. I currently have the GitHub Student Developer Pack active, which should include 10 Appwrite Pro projects...
- Functions: HTTP 500 internal error
I’m seeing a lot of HTTP internal server errors across all my functions the past 48 hours.