Back

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

  • 0
  • Databases
Vishal Lohar
31 Aug, 2023, 03:49

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.

TL;DR
Issue: Appwrite 1.4.0 returning incomplete data when updating a document with relations. Solution: Update to Appwrite 1.4.3. Bug fix for version 1.4.0 has been moved to version 1.4.3.
Drake
31 Aug, 2023, 03:53

What are the users permissions for those related collections?

Vishal Lohar
31 Aug, 2023, 03:57

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

Drake
31 Aug, 2023, 04:11

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

Vishal Lohar
31 Aug, 2023, 04:13

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

Drake
31 Aug, 2023, 04:14
Vishal Lohar
31 Aug, 2023, 04:49

Shared the file via a Private message. Please check

Drake
31 Aug, 2023, 18:49

@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

Prateek Banga
31 Aug, 2023, 20:04

@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

Prateek Banga
1 Sep, 2023, 12:13

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

Prateek Banga
1 Sep, 2023, 12:14

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

Vishal Lohar
1 Sep, 2023, 12:55

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

Vishal Lohar
1 Sep, 2023, 12:55

I am already using the latest 1.4.1 version

VincentGe
1 Sep, 2023, 22:26

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

VincentGe
1 Sep, 2023, 22:26

Please make sure you od!

Prateek Banga
4 Sep, 2023, 07:34

@VincentGe Created asana task for it.

Prateek Banga
4 Sep, 2023, 11:06

Hi @Vishal Lohar ,

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

Vishal Lohar
4 Sep, 2023, 12:14

@Prateek Banga Okay, Thanks!

Prateek Banga
8 Sep, 2023, 20:56

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.

Vishal Lohar
12 Sep, 2023, 04:21

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

Prateek Banga
18 Sep, 2023, 08:59

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

Prateek Banga
18 Sep, 2023, 08:59

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

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more