Firebase Database Rules How To Deal With - Olek...

Firebase Database Rules How To Deal With - Oleksandr Pidlisnyi

Firebase Database Rules How To Deal With - Oleksandr Pidlisnyi

GDG Ternopil

January 21, 2017

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

26 slides
  1. Firebase Database Rules How To Deal With Oleksandr Pidlisnyi Senior

    Software Engineer @ Perfectial LLC GDG Lviv
  2. .indexOn – orderByChild { "lambeosaurus": { "height": 2.1, "length": 12.5,

    "weight": 5000 }, "stegosaurus": { "height": 4, "length": 9, "weight": 2500 } }
  3. .indexOn – orderByValue { "scores": { "bruhathkayosaurus": 55, "lambeosaurus": 21,

    "linhenykus": 80, "pterodactyl": 93, "stegosaurus": 5, "triceratops": 22 } }
  4. .read && .write { "rules": { "users": { "$uid": {

    ".write": "$uid === auth.uid" } } } }
  5. Magic { "users": { "John Doe": { "rules": { "blog":

    true } }, "John Snow": { "rules": { "blog": false } } }
  6. Magic "blog": { "1": { "title": "Blog Post 1" },

    "2": { "title": "Blog Post 2" } } }
  7. Magic { "users": { "John Doe": { "rules": { "blog":

    { "read": true, "write": false } } } } }

More Decks by GDG Ternopil

Other Decks in Programming