Skip to content
Back

Error description relationship

  • 0
  • Self Hosted
hortigado
5 Jul, 2023, 17:19

Hi a error that I see is not so revealing, but I still mention it and it is that in the description of the relationship it is that depending if we see the relationship from the father or children; change the type of relationship in the parent of the image we can see Customer=>To many=> Pizzas and in the son he shows us the opposite Pizzas=>To many=> Customers When the son should show the same Pizzas=>To one=> Customer

TL;DR
The user is reporting a description error in a relationship in the code. They mention that the code and logic are working correctly, but the relationship description is incorrect. They suggest reporting a bug and provide a file where the error may be occurring. They also note that the type of relationship in the child should be "many to one" instead of the current description. The suggested solution is to open a bug report and fix the relationship description.
hortigado
5 Jul, 2023, 17:25

also in the child the type of relationship should be shown many to one

Binyamin
5 Jul, 2023, 17:53

Everything looks in order in the code and in the part where Appwrite is actually using the relationship. that mean the even though you see something different the underlying logic still work.

You can open a bug on it,

From what I've seen it seems like this file https://bit.ly/3NxccGk that prints out the relationship don't take in account the side of the relationship and just uses the current collection and assuming it's the parent.

hortigado
5 Jul, 2023, 18:24

correct, the relationship works correct, it is only a description error as I commented

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