Doug Stevenson explains the primitive data types, global objects, and type checking operators available in Firebase security rules.
In this episode of Firebase Security Rules: Developer Advocate for Firebase, Doug Stevenson, discusses the data types and global objects in Firebase security rules. Hear Doug discuss the primitive data types, numeric operations, string operations, maps, duration, type checking, and more on this episode of Firebase security rules!
Security rules reference: goo.gle/2kMJZ4Q
Understanding Firebase Security Rules → goo.gle/2Z8ciNe
Firecasts playlist → goo.gle/Firecasts
Subscribe to the Firebase Channel → goo.gle/Firebase
Why it's here
1 person recommends this
What people say. Recommended for understanding how to perform type checking in Cloud Firestore security rules.
D
Doug Stevensonon Stack Overflow • Recommends
On “How to test the type of a Cloud Firestore field, in Security Rules?”
You can use the is operator. For example:
value is bool
value is string
value is timestamp
You can see a complete list of types here: link to this video