Back

Subscription events and Relationships

  • 3
  • Self Hosted
boris
14 Apr, 2023, 04:49

When creating a new document with the great new relationship feature, the triggered subscription event only contains the references to the related document and not the data itself. After loading the document regular the relations are resolved correctly.

Is this by design and I have to load the new document myself after getting the event or is this a bug or am I missing something?

TL;DR
When creating a new document with relationships in Appwrite, the subscription event only contains references to the related document, not the data itself. The relations are resolved correctly when loading the document regularly. It is currently unclear if this is by design or a bug. To get the data of the related document in the subscription event, you would need to load the document yourself.
Mosh Ontong
14 Apr, 2023, 14:24

I think we have the same issue. I hope you like this issue. https://github.com/appwrite/appwrite/issues/5372

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