Skip to content

🐛 Bug Report: Realtime update events not triggering for document attribute with relationship #7403

@pbadr

Description

@pbadr

👟 Reproduction steps

  • Create two collections A and B
  • Make relationship attribute X on collection A with one to many relationship with collection B
  • Create a document on B, which should automatically add that document on the list of collection A's array

👍 Expected behavior

When subscribed to a realtime event on the specific document from collection A

client.subscribe(
  [`databases.${APPWRITE_DATABASE_ID}.collections.${COLLECTION_A}.documents.${DOCUMENT_ID}`],
  (response) => {
    console.log('New document event:', response);
  }
);

COLLECTION_A should give a response with the new updated document from collection B with the new document added to the list

👎 Actual Behavior

The realtime event does not trigger when the document is updated, even though the document from collection A does update it's list with the new document from collection B. When manually adding or removing the document to collection either through the SDK or through the console, the event does get triggered and a response is thrown in the code specified above.

🎲 Appwrite version

Version 1.3.x

💻 Operating system

Windows

🧱 Your Environment

Using Appwrite SDK 13.0.1 with React Native Expo.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    api / realtimeFixes and upgrades for the Appwrite Realtime API.bugSomething isn't workingfeature / relationshipsFixes and upgrades for database relationshipsproduct / databasesFixes and upgrades for the Appwrite Database.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions