[SOLVED] Appwrite 1.4.0 is returning incomplete data when updating the document with relations
- 0
- Resolved
- 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
- Urgent help with removed databases
Hi <@564158268319203348> <@501784879638249472> I wrote to paid plan support about this but no response as of yet… About an hour ago one of the interns from o...
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- Console display all Databases as TablesD...
While looking at an issue with <@1231860789355347971> we saw that the console was displaying ALL databases as `TablesDB` even if the real type in the API is `le...