Skip to content

Instantly share code, notes, and snippets.

@hiranya911
Created March 1, 2020 23:26
Show Gist options
  • Save hiranya911/7c6eaea44318dd4140ed804a48edcf18 to your computer and use it in GitHub Desktop.
Save hiranya911/7c6eaea44318dd4140ed804a48edcf18 to your computer and use it in GitHub Desktop.
service cloud.firestore {
match /databases/{database}/documents {
match /people/{person} {
allow write: if request.resource.data.familyName is string
|| request.resource.data.surname is string;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment