[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
- I can't add relationship attributes on m...
How can I make it work in selfhosted Appwrite?
- Duplicate name types with multiple datab...
Hello, we are having multiple databases and would like to use the cli to generate the types using (appwrite types --language ts), the issue is that the appwrit...
- general_unknown server error for upsertD...
Hey all, i updated the node-sdk to 17.1.0 and tried the upsertDocument function added, but that gives me the error: ```js "name": "AppwriteException", "code": 5...
