I am trying to obtain the data of a document, and also this document has a field that is a collection. How could I get all that data? my document has the following properties:
I use angularFire package.
name: string, lastName: string, items: Collection.
This document is from a collection users:
Mi code: collection('users').doc(ID).collection('items').snapshotChanges().subscribe(val =>console.log('val',val), but this return [{type:{},payload:{}},{},....]
I tried changing snapshotChange to ValueChanges, but that only brings me data from my internal collection (items)