in my web app I query a Firestore database to enum orders.
This is working but I need to access to the ID of each order.
// Get Data
var resRef = firebase.firestore().collection("orders");
resRef.get().then( (orderList) => {
orderList.forEach(
function(order){
console.log("order ID: ", order.?? )
...
}
)
...
How can I achieve that?