Match Path match security rules to documents & collections

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.
Get Unlimited PRO Access

OR


*Enrollment provides full access to this course (and updates) for life.

file_type_firebase firestore.rules
match /users/jeffd23 {
    // Single document
}

match /users/{userId} {
    // Single Collection
}

match /posts/{postId=**} {
    // Recursive wildcard, includes all subcollections
}

Questions?

Ask questions via GitHub below OR chat on Slack #questions