Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Firebase bolt rules for the Moviequotes App
path /quotes {
write() = true;
read() = true;
path /quotes/$moviequote is Moviequote;
type Moviequote {
movie: String,
quote: String
"rules": {
"quotes": {
".read": "true",
".write": "true",
"$moviequote": {
".validate": "newData.hasChildren(['movie', 'quote'])",
"movie": {
".validate": "newData.isString()"
"quote": {
".validate": "newData.isString()"
"$other": {
".validate": "false"

This comment has been minimized.

Copy link
Owner Author

@rockwotj rockwotj commented Jan 9, 2016

Generated by the following command

firebase-bolt < moviequote-rules.bolt > moviequote-rules.generated.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment