How would I go about adding a new document in Firebase/Cloud Firestore with a nested collection?
const createDocument = () => {
const documentName = prompt('Enter document name:');
if (documentName) {
db.collection('despacito').add({
name: documentName,
})
}
Any suggestions? Thank you for your time.