I'm currently struggling to delete an object/field inside a document in firebase. I'm able to delete a collection, or a full document, but not the name/tag fields for a given id. Does anyone know how I can delete the name and tags of a specific object inside the "info" array, for example Object#1 test2 imaged below? Any advice is greatly appreciated. Thank you!
const deleteCard = async (name, tags) => {
const fieldRef = doc(db, 'labels', activeLabels)
await updateDoc(fieldRef, {
info: deleteField({name: name, tags: tags})
})
console.log(name, tags)
getLabels();
};