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
- Empty listRows() response
Hi there, I'm shehryar, I'm new to react native and appwrite as well, I'm following a tutorial, what's surprising is the listRows({databaseId, tableId, queries}...
- Skip total counts crash the query
Hello, When adding the total parameter (either true, the default, or false) to the listRows function, it raises the following error: `type 'bool' is not a sub...
- Current User Is Not Authorized To Perfor...
I keep getting an error saying the current user is not authorized to perform the requested action, when I'm trying to create a row a table. Permissions have bee...