Edycja kolekcji w Firebase Firestore

Updating single document in  firestore
// imports
import { db } from " Relative path of your firebase config file";
import { doc, setDoc } from "firebase/firestore";

// code in component
const updateData = async () => {
	const docRef = doc(db, "collectionName", "documentId");
    const payload = { whatever your payload is };
    await setDoc(docRef, payload);
}
Tender Turtle