@@ -15,6 +15,7 @@ import firebase, {
15
15
query ,
16
16
startAfter ,
17
17
updateDoc ,
18
+ where ,
18
19
} from '.' ;
19
20
20
21
console . log ( firebase ( ) . collection ) ;
@@ -50,6 +51,7 @@ firebase.firestore.setLogLevel('debug');
50
51
firebase . firestore ( ) . collection ( 'foo' ) ;
51
52
firebase . firestore ( ) . collection ( 'foo' ) . doc ( 'foo' ) . collection ( 'foo' ) ;
52
53
firebase . firestore ( ) . collection ( 'foo' ) . doc ( 'foo' ) ;
54
+ firebase . firestore ( ) . collection ( 'foo' ) . where ( 'foo' , '==' , 'bar' ) ;
53
55
firebase . firestore ( ) . collection ( 'foo' ) . doc ( 'foo' ) . collection ( 'foo' ) . add ( { foo : 'bar' } ) . then ( ) ;
54
56
firebase . firestore ( ) . collection ( 'foo' ) . doc ( 'foo' ) . update ( { foo : 'bar' } ) . then ( ) ;
55
57
firebase
@@ -130,6 +132,7 @@ collection(firebase.firestore(), 'foo', 'foo', 'foo');
130
132
collection ( doc ( collection ( firebase . firestore ( ) , 'foo' ) , 'foo' ) , 'foo' ) ;
131
133
doc ( firebase . firestore ( ) , 'foo' , 'foo' ) ;
132
134
doc ( collection ( firebase . firestore ( ) , 'foo' ) , 'foo' ) ;
135
+ query ( collection ( firebase . firestore ( ) , 'foo' ) , where ( 'foo' , '==' , 'bar' ) ) ;
133
136
addDoc ( collection ( firebase . firestore ( ) , 'foo' ) , { foo : 'bar' } ) . then ( ) ;
134
137
updateDoc ( doc ( firebase . firestore ( ) , 'foo' , 'foo' ) , { foo : 'bar' } ) . then ( ) ;
135
138
getDoc ( doc ( firebase . firestore ( ) , 'foo' , 'foo' ) ) . then ( ) ;
0 commit comments