Back

Payload Does Not Include Attributes Linked to Other Collections in Appwrite Real-Time Subscription

  • 0
  • Self Hosted
  • Flutter
  • Databases
  • Realtime
mouadzizi
14 Nov, 2024, 03:47

Hello,

I'm using Appwrite's real-time subscriptions to listen for updates in the matches collection. However, when a match document is updated, the payload does not include the referenced league field, even though it's a reference to another collection.

Here are the attributes in the document (image attached), but the payload only returns some data. Fields like league, home, and away, which are references to other collections, are not included in the payload.

Example of the payload returned: { "status": "Mi-temps", "date": "2024-11-13", "time": "23:20", "home_score": null, "away_score": 1, "plan_type": "Free", "$id": "67352622003d2aa1778c", "$createdAt": "2024-11-13T22:20:19.157+00:00", "$updatedAt": "2024-11-13T22:31:11.274+00:00", "$permissions": [], "$databaseId": "6709f408000313dc5d58", "$collectionId": "670ca8f0001bce7cd332" }

Could you please help me understand why these related fields (like league) are missing from the payload?

TL;DR
Developers are using Appwrite real-time subscriptions but are not receiving attributes linked to other collections in the payload, such as the 'league' field. The payload returned only includes some data and excludes referenced fields. The developers are seeking assistance in understanding why these related fields are missing from the payload.
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