-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed as not planned
Closed as not planned
Copy link
Labels
api / realtimeFixes and upgrades for the Appwrite Realtime API.Fixes and upgrades for the Appwrite Realtime API.bugSomething isn't workingSomething isn't workingfeature / relationshipsFixes and upgrades for database relationshipsFixes and upgrades for database relationshipsproduct / databasesFixes and upgrades for the Appwrite Database.Fixes and upgrades for the Appwrite Database.
Description
👟 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?
- I have read the Code of Conduct
Metadata
Metadata
Assignees
Labels
api / realtimeFixes and upgrades for the Appwrite Realtime API.Fixes and upgrades for the Appwrite Realtime API.bugSomething isn't workingSomething isn't workingfeature / relationshipsFixes and upgrades for database relationshipsFixes and upgrades for database relationshipsproduct / databasesFixes and upgrades for the Appwrite Database.Fixes and upgrades for the Appwrite Database.