Hi there ! I have a collection with a relationship to another and I'm trying to use realtime on that first collection. It seems like when receiving the event on the Flutter side, the relationship isn't part of the payload. Although, it seems to work fine when using basic HTTP request through SDK and not realtime.
I'm wondering, how does realtime handles collection relationships ? Am I missing something ? Thanks a lot !
It doesn't. They aren't included for security/speed
Keep in mind relationships are experimental and can lead to performance problems so use them sparingly
I understand, thank you for the heads up ! Is this considerated as a possible improvement in the future of relationships ?
Possibly, but unlikely. We'd have to run through each document for each subscriber to check if they have access. That could be expensive for something that should be fast
Indeed, it might be too extensive. That's alright, I'll find another way around, thank you for your time ! Loving Appwrite so far 🔥
Recommended threads
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...