i have notification collection and their i have relationship to post and post has relationship with posttags and posttags has relationship with location collection and user collection. So when i retrieve the notification for the current user all the relations has data beside of location relation on the postTags collection. I get null for location. Does anybody know why? I already have at least read permission for any.
i am using the current appwrite sdk 13.0.0 for flutter as well.
the image 1 shows the location permission and the image 2 shows the Notification permission
It looks like label:admin doesn’t have Read Permissions? I’m not certain, but it’s very likely that permissions are explicit, so you’re explicitly denying label:admin Read permissions.
Also, though, Appwrite has a depth limit of three Relationships. I’m not quite clear on the structure from your post, but you may be hitting up against that limit.
So its very strange. Here i have added the structure of my Notification Collection and tryed my best to explain it better.
Its probabely because of the nested relationship as you mentioned the limit of deep nested relationships has to be 3.
If this is the case what can i do to overcome this problem. and what i also dont understand is why i am getting the postCommentID and postID null as well, which is actually a String.
If their is any question about my drawing i will be happy to explain it.
and what do you mean by label does not have read permission? How do i set for admin label the read permission? I taught when i have at least one either user or any -> read permission it should work.
Hmm, the postID and postCommentID thing is strange.
If you hadn’t referenced label:admin at all, those users would have the Read permission. But since you have, those permissions would be all the permissions those users would have. If you check the “Read” box for label:admin, they’ll have the Read permission
But I think that’s not entirely relevant here, because of the Attributes directly on this Collection which are showing up as null - that can’t be a Relationships issue, can it?
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...