DEV Community

Discussion on: Displaying Real-Time Views using React, Gatsby and Firebase

sidrsingh profile image
sid-r-singh • Edited

Superb tutorial. It worked well for me. Thanks a lot.
I feel the following rules will add little more security.

  "rules": {
        "views": {
          "$page": {
                ".read": true,
                ".write": true,
                ".validate": "newData.isNumber()"
Enter fullscreen mode Exit fullscreen mode
flashblaze profile image
Neeraj Lagwankar Author

I'm happy that it helped you. Thanks for the code snippet. I wasn't aware of this.