How to define the CollectionReference of a subcollection with the JS SDK V9?
I often see some questions on StackOverflow on how to define the
IMO, the main reason for questions on this subject is that the official Firebase documentation does not show any example (at the time of writing this short article).
In the “Subcollections” section of the documentation (see above link) we do find a code example, but it shows how to define the
DocumentReference of a…