gdg-tangier / vue-firestore

:cloud: Cloud Firestore binding in realtime with Vuejs
MIT License
235 stars 28 forks source link

collection within document is not retrieved. #17

Closed melvinkcx closed 5 years ago

melvinkcx commented 6 years ago

There is an issue when binding a document into vue. The fields of the document is properly retrieved. However, any sub-collection(nested collection in a doc) is not retrieved.

amranidev commented 6 years ago

Hi @melvinkcx. Its normal, when you bind a document it will be retrieved as bindable data record (array or object). vue-firestore comes in place to help you bind docs/collections to multiple resources, so make sure that you bind all the docs/collection you need. Thank you!

melvinkcx commented 6 years ago

The problem is the collection in a document is created dynamically, the subcollection is not known explicitly. That's why I think detection of subcollection after binding is important.