Table of Contents

Firebase

Realtime Database 규칙

{
  "rules": {
    ".read": true,
    ".write": true,
    "2016" : {
      "site-moa" : {
        "shop-overseas" : {
      		".indexOn" : "dateFormat"
        },
        "shop-korea" : {
      		".indexOn" : "dateFormat"
        }
      }
    }
  }
}

rules에 모두 읽고 쓸 수 있도록 true를 설정한다.

인덱스 설정을 위해, .indexOn를 입력한다.

Understand Firebase Realtime Database Rules [more](https://firebase.google.com/docs/database/security/#section-overview)

Rule Types Desc
.read Describes if and when data is allowed to be read by users.
.write Describes if and when data is allowed to be written.
.validateDefines what a correctly formatted value will look like, whether it has child attributes, and the data type.
.indexOnSpecifies a child to index to support ordering and querying.