Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create subcollection firestore

const docRef = ....;
const docSubcollectionRef = collection(docRef, 'theSubColl');
await addDoc(docSubcollectionRef, {foo: 'bar'});
 
PREVIOUS NEXT
Tagged: #create #subcollection #firestore
ADD COMMENT
Topic
Name
7+4 =