0
votes
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /guides/{guideID} {
        allow read, write: if request.auth.uid !=null;
    }
  }
}

this is the structure

it not giving me error if i use wildcard on whole collection but it gives error If i gave a path

1
Rules by themselves don't do anything. They only take affect when paired with app code that makes a query. Please edit the question to show the app code that isn't working the way you expect. We should be able to see how your code matches these rules. You should also show that a user is signed in at the time of the query. - Doug Stevenson
thks for support - Rajesh jagtap

1 Answers

0
votes

Your collection name is guide (singular) and you're trying to match on guides (plural).