From a8d117ad20368bab7edc9eee8abead52307f6d42 Mon Sep 17 00:00:00 2001 From: Michael Genereux Date: Sun, 1 Feb 2026 18:28:41 -0800 Subject: [PATCH] Update Firestore comment tags for sub-collections --- firestore/main/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firestore/main/index.js b/firestore/main/index.js index 6e5b910e..2c20ba93 100644 --- a/firestore/main/index.js +++ b/firestore/main/index.js @@ -553,13 +553,13 @@ async function getAll(db) { } async function getCollections(db) { - // [START firestore_data_get_sub_collections] + // [START firestore_query_subcollection] const sfRef = db.collection('cities').doc('SF'); const collections = await sfRef.listCollections(); collections.forEach(collection => { console.log('Found subcollection with id:', collection.id); }); - // [END firestore_data_get_sub_collections] + // [END firestore_query_subcollection] } // ============================================================================