File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -821,7 +821,7 @@ function listenErrors(db) {
821821}
822822
823823function collectionGroupQuery ( db ) {
824- // [START collection_group_query_data_setup ]
824+ // [START fs_collection_group_query_data_setup ]
825825 var citiesRef = db . collection ( 'cities' ) ;
826826
827827 var landmarks = Promise . all ( [
@@ -866,17 +866,17 @@ function collectionGroupQuery(db) {
866866 type : 'museum'
867867 } )
868868 ] ) ;
869- // [END collection_group_query_data_setup ]
869+ // [END fs_collection_group_query_data_setup ]
870870 landmarks . then ( ( l ) => console . log ( l ) ) ;
871871
872- // [START collection_group_query ]
872+ // [START fs_collection_group_query ]
873873 let museums = db . collectionGroup ( 'landmarks' ) . where ( 'type' , '==' , 'museum' ) ;
874874 museums . get ( ) . then ( function ( querySnapshot ) {
875875 querySnapshot . forEach ( function ( doc ) {
876876 console . log ( doc . id , ' => ' , doc . data ( ) ) ;
877877 } ) ;
878878 } ) ;
879- // [end collection_group_query ]
879+ // [end fs_collection_group_query ]
880880}
881881
882882// ============================================================================
You can’t perform that action at this time.
0 commit comments