Back

Invalid document structure: Unknown attribute: "unit"

  • 2
  • Self Hosted
  • Flutter
  • Web
VincentGe
2 Apr, 2024, 21:48

Can you also do select * from _1_attributes;

TL;DR
Developers are facing an issue with an "Invalid document structure" error related to the attribute "unit" when attempting to update a document within a collection. The issue seems to be tied to the use of relationships and may require further investigation. Additionally, there are discussions around potential solutions such as deleting specific attributes and checking database structures. The developers are advised to check their relationships and share collection structures for more targeted assistance.
VincentGe
2 Apr, 2024, 21:49

Curious if it's deleted from the attributes collection

armanhadi
2 Apr, 2024, 21:50
VincentGe
2 Apr, 2024, 21:52

Yeah units is still there

VincentGe
2 Apr, 2024, 21:52

💢

armanhadi
2 Apr, 2024, 21:53

Why this happen to me I just wanted to update the post 😵‍💫 😭 🤣

VincentGe
2 Apr, 2024, 21:53

LOL

VincentGe
2 Apr, 2024, 21:54

This relationship shows as a two way

armanhadi
2 Apr, 2024, 21:54

I told my team leader now you can post but you can not update it 🤦‍♂️ 🤣

VincentGe
2 Apr, 2024, 21:55
VincentGe
2 Apr, 2024, 21:55

Do you recall if this was supposed to be two or one way

VincentGe
2 Apr, 2024, 21:55

in your screenshot it shows one way

armanhadi
2 Apr, 2024, 21:56

that one isn't it for units and documents collection ?

armanhadi
2 Apr, 2024, 21:56

its not for posts

VincentGe
2 Apr, 2024, 21:57
VincentGe
2 Apr, 2024, 21:57

I reproduced it

armanhadi
2 Apr, 2024, 21:58

wow great

VincentGe
2 Apr, 2024, 21:58

I think there's something wrong with relationships 😬 I will bring this up with the team

VincentGe
2 Apr, 2024, 21:58

Thanks for you help, sorry for the trouble

VincentGe
2 Apr, 2024, 21:58

😄

armanhadi
2 Apr, 2024, 21:59

ok finally , I hope it will be fixed soon , thanks for your support

armanhadi
2 Apr, 2024, 21:59

and one question

VincentGe
2 Apr, 2024, 21:59

Yeah?

armanhadi
2 Apr, 2024, 21:59

till now we can't do query on the jioned table when that will be available ?

armanhadi
2 Apr, 2024, 22:00

for example getting all posts when unit.name == "IT"

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