I’m using Cloud FIrestore as a backend with Authentication.
Does anyone know how to restrict the data that a user can get from a collection to only what they’ve entered? Can this be done via the security rules?
I tried to use the cloud firestore security rules but can’t get it working.
My documents have a field called uid that gets set to the user uid when they create a new document in the collection. I want to retrieve the documents that have been created by a particular user.
Alternatively, is it possible to set it as a parameter in the API call?
Any tips would be greatly appreciated!