Hi team, I’m running into a problem with relationships after updating to Appwrite Cloud v1.8.0.
I have a one-way many-to-one relationship setup like this:
- Teacher collection
name (string)
- Classroom collection
name (string)
teacher (relationship field → one Teacher document)
The idea is that:
Each Classroom row should reference one Teacher.
Multiple Classroom rows can reference the same Teacher.
This worked fine in earlier versions, but after upgrading to 1.8.0:
The Teacher reference is not linking correctly.
And when I try to create a new Classroom row with a Teacher reference, it throws an error instead of saving in the cloud ui.
It looks like a regression, unless something has changed in how relationships should be configured in 1.8.0.
Could you please confirm if this is a bug introduced in 1.8.0 or if I need to adjust my schema setup? 🙏
@JamshedAlamQ are you passing in the teacher object or the ID? I was have an issue too. Once i just passed in the ID of the parent in your case the teacher ID it worked for me
We have a known issue with creating rows that have relationship attributes. Fix is merged, but pending release. Probably will be tomorrow.
Besides that, relationships have changed in 1.8. If you're using an SDK meant for 1.8, you'll need to specifiy which relationships you want to resolve. See https://appwrite.io/blog/post/announcing-opt-in-relationship-loading
Recommended threads
- Functions not executing after usage rese...
Hi team, Last month my project hit 100% usage and functions stopped working (expected). Now the new month has started and usage has reset, requests are going ...
- Relations within the same table
Hello, I'm currently building a sort of dictionary (a literal one) and thus I need words (which is one single table of words in my database) to be able to have ...
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...