Firestore Security Rules Data Validation with Type Checking (typeof)
So you want to do something like typeof var (JavaScript) In Firebase Firestore security rules? There will be times when you will want to check the type of a certain piece of data to do things like: Incoming data (input) validation. Check the type of an existing resource’s (document) data field in if condition expressions. […]