Back

Relationship Bug

  • 0
  • Databases
Drake
26 Jul, 2023, 02:55

No, data should only be the custom attributes

TL;DR
User is discussing a bug related to updating a document version in their application. They are unsure if they should update to version 1.3.4 or 1.3.8. They are currently using a hacky solution by creating a cloud function. Another user suggests deleting and recreating the document as a potential solution. The original user tries updating the user ID with code but it doesn't work. Another user shares their experience with a similar issue and suggests removing the extra empty value while updating another attribute as a workaround. The solution seems to work for the original user.
Infinil
26 Jul, 2023, 02:55

I see

Infinil
26 Jul, 2023, 02:55

Gotcha thanks

hamed
26 Jul, 2023, 03:31

It happened to me once. In my case, recreating the document was too much work, so I simply removed that extra empty value while updating another attribute (let's call it x) within the document. After that, I refreshed the current page, and it was done.

PS: Once it was resolved, I re-updated the x attribute by giving it the previous value.

Infinil
26 Jul, 2023, 03:50

i am trying it with code but doesnt seem to be working

Infinil
26 Jul, 2023, 03:51

databases.update_document('gacha', 'discord_user_cards', '64be529d0ff72db85fb8', data={'user_id': '85425918414074472','moves':['quick_dodge', 'skip']})

Infinil
26 Jul, 2023, 03:51

i am updating the user id with it

Infinil
26 Jul, 2023, 05:52

Delete and create only seems to work sadly

Drake
26 Jul, 2023, 15:38

What version are you on?

Infinil
26 Jul, 2023, 15:39

1.3.8 i think

Drake
26 Jul, 2023, 15:43

thanks. And thanks again for creating an issue with exact steps to reproduce. it makes things move infinitely faster 🙏🏼

Infinil
26 Jul, 2023, 15:44

np its a win-win situation if it gets fixed quickly XD

Infinil
26 Jul, 2023, 15:44

for now i have created a cloud function as a hacky solution seems to be working :)

Infinil
26 Jul, 2023, 15:48

also sorrry ah i forgot production appwrite is 1.3.4

Drake
26 Jul, 2023, 15:48

so not 1.3.8?

Infinil
26 Jul, 2023, 15:49

yea

Infinil
26 Jul, 2023, 15:51

should i check the changelog just in case?

Drake
26 Jul, 2023, 15:55

it's fine. we just need to use the same version when trying to reproduce

Infinil
26 Jul, 2023, 15:56

oh i see

Infinil
26 Jul, 2023, 15:56

should I update 1.3.x to 1.3.4

Infinil
26 Jul, 2023, 15:56

in issue

Infinil
26 Jul, 2023, 15:56
Drake
26 Jul, 2023, 15:57

it's okay. i added it in the environment section below

Infinil
26 Jul, 2023, 15:57

thanks :)

Infinil
26 Jul, 2023, 15:57

cant wait for 1.4 now XD

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