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) {
821
821
}
822
822
823
823
function collectionGroupQuery ( db ) {
824
- // [START collection_group_query_data_setup ]
824
+ // [START fs_collection_group_query_data_setup ]
825
825
var citiesRef = db . collection ( 'cities' ) ;
826
826
827
827
var landmarks = Promise . all ( [
@@ -866,17 +866,17 @@ function collectionGroupQuery(db) {
866
866
type : 'museum'
867
867
} )
868
868
] ) ;
869
- // [END collection_group_query_data_setup ]
869
+ // [END fs_collection_group_query_data_setup ]
870
870
landmarks . then ( ( l ) => console . log ( l ) ) ;
871
871
872
- // [START collection_group_query ]
872
+ // [START fs_collection_group_query ]
873
873
let museums = db . collectionGroup ( 'landmarks' ) . where ( 'type' , '==' , 'museum' ) ;
874
874
museums . get ( ) . then ( function ( querySnapshot ) {
875
875
querySnapshot . forEach ( function ( doc ) {
876
876
console . log ( doc . id , ' => ' , doc . data ( ) ) ;
877
877
} ) ;
878
878
} ) ;
879
- // [end collection_group_query ]
879
+ // [end fs_collection_group_query ]
880
880
}
881
881
882
882
// ============================================================================
You can’t perform that action at this time.
0 commit comments