12 Matching Annotations
  1. Feb 2022
    1. Custom objects

      Are you getting an error along the lines of cityConverter is not a function ?

      Dont miss a single ; ( semicolon ) especially after the cityConverter object, this should solve your problem. It is a simple JS parsing problem, nothing related with Firestore or your understanding of Firestore

  2. Jul 2020
    1. Security rules apply only at the matched path, so the access controls defined on the cities collection do not apply to the landmarks subcollection. Instead, write explicit rules to control access to subcollections
  3. Jun 2020
    1. Duplicated data is a common practice when working with non-relational databases as Firebase. It saves us from performing extra queries to get data making data retrieval faster and easier
    2. normalizing our dabatase will help us. What means normalize? Well, it simply means to separate our information as much as we can

      directly contradicts firebase's official advice: denormalize the structure by duplicating some of the data: https://youtu.be/lW7DWV2jST0?t=378

    1. Documents in Cloud Firestore should be lightweight, and a chat room could contain a large number of messages
    2. In Cloud Firestore, the unit of storage is the document. A document is a lightweight record that contains fields, which map to values. Each document is identified by a name.
    3. Cloud Firestore's NoSQL data model, you store data in documents that contain fields mapping to values
    1. can also think of collections similarly to tables in a SQL Database
    2. we’re going to use cloud firestore because it’s easier to work with and more versatile