Firebase v9: How do I get all of the subcollection of a collection? [duplicate]

I have this collection of products, inside each document, I have a subcollection history, it is possible for me to retrieve all of the documents’ subcollection?

Collectionof products

Each document has a subcollection history. I wanted to display all of the subcollections of all of the documents under products. Would this be possible?

subcollection