In Node.js you will follow the ListCollectionIds method
var firestore = require('firestore.v1beta1');
var client = firestore.v1beta1({
});
var formattedParent = client.anyPathPath("[PROJECT]", "[DATABASE]", "[DOCUMENT]", "[ANY_PATH]");
client.listCollectionIds({parent: formattedParent}).then(function(responses) {
var resources = responses[0];
for (var i = 0; i < resources.length; ++i) {
}
})
.catch(function(err) {
console.error(err);
});
This is currently not supported in client SDKs (Web, iOS, Android).
source
share