Let's say we have a collection called Users and it has an attribute called private which has one-to-one relation with PrivateUserInfo collection.
Users collection (parent) -> private attribute -> PrivateUserInfo collection (child)
A user has read access on Users collection but not on PrivateUserInfo (child) collection. There is an inconsistency on how this child attribute (private) is returned when calling getDocument vs listDocuments on Users collections.
✅ listDocuments: private -> null
❌ getDocument: private -> []
Ideally as this is one-to-one relationship, we expect the child attribute to be either null or Map but due to this inconsistency, it results in
List<dynamic>' is not a subtype of type 'Map<String, dynamic> in type cast in Flutter.
Recommended threads
- Fine grained permissions for webRTC hand...
Hi, I am building a WebRTC P2P app for a university project and have hit a security limitation regarding permissions for anonymous users. The Architecture: We ...
- Synchronous Function Execution Timed Out...
Hi Appwrite team 👋 I’m facing a synchronous function execution timeout issue on Appwrite Cloud and would appreciate some guidance. I executed this function u...
- Custom domain certificate generation fai...
I've added the CNAME and CAA records in my DNS provider (godaddy.com). The domain shows as verified, but the certificate generation always fails. I've had this ...