The declarative language for writing firebase rules that manage database authorization. Involves assigning permissions for each database route

Boilerplate

service cloud.firestore{
	match /databases/{database}/documents {
		match /users/{myuser} {
			allow read
			allow write: if request.auth.uid == "daniel"
		}
	}
}

Syntax

  • {variable} allows arbitrary data in the route, referenced by variable name