I have the following structure in my Firestore DB: several UserLists collections, which hold the Users. Each user may have a Notes subcollection.
I'm doing a subcollection group query that works well, returning notes from across the Notes subcollection.
My question is, from the Note document retrieved from the Notes subcollection, can I get the parent document ID? That would be User 1 in the below example. Using JavaScript.
Collection: UserList 1
Doc: User 1
Subcollection: Notes
Doc: Note 1
Collection: UserList 2
Doc: User 1
Subcollection: Notes
Doc: Note 1