In this episode David East takes you through 7 different Security Rules features that help you write powerful rules and make life it a bit easier while debugging.

Chapters:

  • [1:35] - 1. You can read data from anywhere in the database
  • [4:08] - 2. You can use request and resource variables to write expressions
  • [8:03] - 3. You can do print debugging
  • [10:01] - 4. Monitor requests with the Emulator UI
  • [11:27] - 5. You can validate schema with helper functions
  • [13:48] - 6. You can compare dates or durations
  • [15:42] - 7. You can do math

Resources:

  • Reach out to David on Twitter → https://goo.gle/3pPK58v
  • Role based systems → https://goo.gle/3lZOnL8
  • Unit testing security rules with the Firebase Emulator Suite → https://goo.gle/3lX535X
  • Intermediate topics in Firebase Security Rules → https://goo.gle/3iG6rbb
  • Security Rules functions → https://goo.gle/3lZOypM
  • Request variable → https://goo.gle/3iG6uDT
  • Debug → https://goo.gle/37AsrOr
  • Duration → https://goo.gle/3jRMJIK
  • Math → https://goo.gle/3lYTjQk

Subscribe to Firebase → https://goo.gle/Firebase