FlexibleSync data not coming down when using role ownerId read/write

Hey all, I’m working in a SwiftUI app and I want the user only to read/write its own data, but when I add the role to be read/write for the ownerId is not working, the data is not coming from the server, if I remove the role then I can see the data correctly, this is what I have in the roles section in Atlas server:

And this is in my queryable fields:

I’m following this documentation to set the role:

I was able to fix it, but the issue was that I had ownerId in my local models, changing that to be the same as the json in the rules fixed the issue, so I put owner_id in my models and everything is working good now.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.