[SOLVED] Appwrite 1.4.0 is returning incomplete data when updating the document with relations
- 0
- Databases

I have a Profile document collection with multiple relations with other collections. Check the attached image to check all the attributes of the Profile Collection.
Before upgrading to Appwrite 1.4.0 it used to return the entire document with all the relationship data. But now with Appwrite 1.4.0, it is only returning incomplete data. Some fields of the collection are missing in the final response of the update document action. Check the attached response screenshot.

What are the users permissions for those related collections?

All the Collections have Create Read Update Permissions. Only few collections also have Delete Permission

Do you have the collections in an appwrite.json? If not, would you please generate it and then share it? We would have to look into reproducing the problem

I don't have a JSON file. Can you share the instructions for creating the JSON file.

Use the Appwrite CLI: https://appwrite.io/docs/command-line-deployment#initializeProject

Shared the file via a Private message. Please check

@Prateek Banga do you have some time to help with this? have you seen cases where relationships aren't returned? Let me share the appwrite.json with you

@Steven, please share the appwrite.json with me. I'll try it out tomorrow. I haven't seen a problem in get document till now but I will check

hey @Vishal Lohar Can you please share the code for your updateDocument method? This will help me reproduce the bug. Thank you.

Also it would be better if you upgrade to 1.4.1, we have some important bug fixes in the 1.4.1 release.

I am passing only the fields I want to update. await database.updateDocument(
DATABASE_ID,
PROFILE_COLLECTION_ID,
profileId,
{
links:data.links
}
);

I am already using the latest 1.4.1 version

@Steven @Prateek Banga Is this logged as an issue or Asana task anywhere?

Please make sure you od!

@VincentGe Created asana task for it.

Hi @Vishal Lohar ,
A PR is in progress. Will keep this thread updated https://github.com/utopia-php/database/pull/320

@Prateek Banga Okay, Thanks!

Hey @Vishal Lohar
The pull request has been merged. Due to technical debts, the bug fix for version 1.4.2 has been moved to version 1.4.3.

@Prateek Banga Okay. I will wait for version 1.4.3.

@Vishal Lohar
This should be fixed now that 1.4.3 release is out.

[SOLVED] Appwrite 1.4.0 is returning incomplete data when updating the document with relations
Recommended threads
- Collections not showing for relationship...
I am updating one of my databases. I have removed the majority of collection and started adding new collections. The new collections do not appear in the drop d...
- Error: The document data is missing. Try...
I am not able to create any document on some of the collection/ DBs. As I can see many of us facing the same issue, need a quick resolution from the Appwrite Te...
- "Invalid relationship value. Must be eit...
In my app i am trying to update the documents in my databse from a form in my app, and i am getting this error Error updating event users: AppwriteException: I...
