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
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.