I am making an Admin dashboard. I want to show all users details and their orders. When I want to fetch all documents inside user collection its returning empty. For more In user collection each document has some sub collection. In account sub-collection there is a document exist name details where user account details are available as shown in snapshots.

My code is
export function getUsers() {
return firebase.firestore().collection("users").get();
}