Adding Firebase data, dots and forward slashes

后端 未结 9 2055
长情又很酷
长情又很酷 2020-12-01 12:32

I try to use firebase db, I found very important restrictions, which are not described in firebase help or FAQ.

First problem is that symbol: dot \'.\' prohibited in

9条回答
  •  不思量自难忘°
    2020-12-01 13:13

    Even though it is not what OP asks,
    but in my experience rather than using such dubious keys it is better to let .push() create an id,
    and other things - e-mail, date etc. save as content of the dedicated fields.

    $id: {
       email: "Henry.Morgan@caribbean.sea"
    }
    

    P.S. Don't try to save volume by inserting what should be content into the key.
    Premature optimization is the root of all evil (c).

提交回复
热议问题