November 2017
Beginner to intermediate
288 pages
7h 33m
English
To keep things real, let's suppose we're working on our awesome next-gen blogging platform within this platform, so basically, I want to make all my posts available to the public. To do so using the Firebase Bolt language, all I have to do is this:
path /articles { read() { true } write() { isLoggedIn() } } type Article { title: ArticleTitle Content : ArticleContent Author : currentUser() } type ArticleTitle extends String { validate() { this.length > 0 && this.length <= 200 } } type ArticleContent extends String { validate() { this.length > 0 && this.length <= 1000 } } currentUser() { auth.uid } isLoggedIn() { auth != null }
Read now
Unlock full access