const docRef = ....; const docSubcollectionRef = collection(docRef, 'theSubColl'); await addDoc(docSubcollectionRef, {foo: 'bar'});