And this is the client side query: QuerySubscription<Product>(name: "productsList") { $0._partitionKey == user._id && $0.organizationID == organizationID }
I am trying to add a record using this approach but the server reverts it.
Or maybe there is a better solution for my use case.
It sounds like your issue is likely that the permissions are working, and you are trying to insert something that permissions says you are not allowed to insert (which will cause the “Reverting” behaviour)
Awesome thats glad to hear. I hope you are enjoying flexible sync! We are hoping to move the “rules” into the main rules tab soon so that it will be a bit easier to define and visualize rules soon!