Hope this isn't too obvious but I am really stumped at this point. I am having trouble adding a document to a subcollection that does not exist in Firebase Firestore.
The code works perfectly when adding to a subcollection that already exists.
db.collection("collectionId").doc(docId).collection("subcollectionId").doc(subdocId).collection("items").add({
userName,
isActive: true
}).then(function() {
console.log("Document successfully written!");
}).catch(function(error) {
console.error("Error writing document: ", error);
});
To be clear here, the sub-sub-collection "items" exists in some of my sub-collections and has not yet been created in others. When I attempt to add a document to "items" using the above code in a subcollection that already has other "items", it works with the following result:
Document successfully written!
When I attempt to add a document to "items" in a subcollection where "items" does not exist, it does not add the item and there is nothing written to the console.
Thanks for the help in advance!
UPDATE WITH SCREENSHOTS AS ASKED FOR:

