From 2ea004055ac3a900fa0303b8c6cd5d8c3b4cafd7 Mon Sep 17 00:00:00 2001 From: rahman-D3V Date: Sat, 7 Feb 2026 22:08:45 +0530 Subject: [PATCH] docs: add missing await to setDoc merge example --- snippets/firestore-next/test-firestore/set_with_merge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/firestore-next/test-firestore/set_with_merge.js b/snippets/firestore-next/test-firestore/set_with_merge.js index f33def30..b3d6b025 100644 --- a/snippets/firestore-next/test-firestore/set_with_merge.js +++ b/snippets/firestore-next/test-firestore/set_with_merge.js @@ -8,5 +8,5 @@ import { doc, setDoc } from "firebase/firestore"; const cityRef = doc(db, 'cities', 'BJ'); -setDoc(cityRef, { capital: true }, { merge: true }); +await setDoc(cityRef, { capital: true }, { merge: true }); // [END set_with_merge_modular] \ No newline at end of file