Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

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

Avatar for GDG Ternopil

GDG Ternopil

January 21, 2017
Tweet

More Decks by GDG Ternopil

Other Decks in Programming

Transcript

  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 } } } } }