When I add a document with my own document identifier (it does not generate automatically), the document identifier node is italicized, as shown in the screenshot from the Firestore console. What is the reason for this?
My code to add data
const billingRef = db
.collection('billing/test/2017/months/11')
.doc();
billingRef
.set({ name: 'ABC' })
.then(_ => {
console.log('saved');
})
.catch(err => {
console.log(err);
});
Run codeHide resultThe above code successfully adds the node, but adds in italics "test" and "months."
Screenshot 1 
screenshot 2
screenshot 3
My query gives a null result for such entries in firestore, following the code. How can I request all nodes under billing?
db.collection("billing").get().then(function(querySnapshot) {
console.log(querySnapshot.size)
querySnapshot.forEach(function(doc) {
console.log(doc.id, " => ", doc.data());
});
});
Run codeHide result
source
share