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
- [BUG] The cloud cannot be migrated to se...
The cloud cannot be migrated to self-hosting. The content of this post is exactly the same as [issue 11068](https://github.com/appwrite/appwrite/issues/11068) ...
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...
- How to set permissions using the createO...
Hi, I'm trying to create a set of registers in a table using the tableDB.createOperations function, but it seems like it doesnt support/expect the usage of the ...