This question already has an answer here:
Is there a way to check if a document has a collection rather than checking if it has fields Thanks
This question already has an answer here:
Is there a way to check if a document has a collection rather than checking if it has fields Thanks
There are no client SDK APIs for listing subcollections of a document.