Skip to content
Back

[Appwrite Cloud 1.8.0] Many-to-One Relationship Issue (Teacher ↔ Classroom)

  • 0
  • Databases
  • Cloud
JamshedAlamQ
28 Aug, 2025, 18:20

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? 🙏

TL;DR
Issue with creating rows with relationship attributes in Appwrite Cloud 1.8.0. Fix merged but pending release. Relationship changes in 1.8, specify which relationships to resolve. Update SDK accordingly. May need to pass in parent ID for it to work.
rlee128
28 Aug, 2025, 18:26

@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

Steven
28 Aug, 2025, 19:00

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

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