File tree Expand file tree Collapse file tree 5 files changed +8
-0
lines changed
firebase-common/src/jsMain/kotlin/dev/gitlive/firebase
androidMain/kotlin/dev/gitlive/firebase/firestore
commonMain/kotlin/dev/gitlive/firebase/firestore
iosMain/kotlin/dev/gitlive/firebase/firestore
jsMain/kotlin/dev/gitlive/firebase/firestore Expand file tree Collapse file tree 5 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ external object firebase {
339339 fun <T > runTransaction (func : (transaction: Transaction ) -> Promise <T >): Promise <T >
340340 fun batch (): WriteBatch
341341 fun collection (collectionPath : String ): CollectionReference
342+ fun collectionGroup (collectionId : String ): Query
342343 fun doc (documentPath : String ): DocumentReference
343344 fun settings (settings : Json )
344345 fun enablePersistence (): Promise <Unit >
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ actual class FirebaseFirestore(val android: com.google.firebase.firestore.Fireba
4040
4141 actual fun collection (collectionPath : String ) = CollectionReference (android.collection(collectionPath))
4242
43+ actual fun collectionGroup (collectionId : String ) = Query (android.collectionGroup(collectionId))
44+
4345 actual fun document (documentPath : String ) = DocumentReference (android.document(documentPath))
4446
4547 actual fun batch () = WriteBatch (android.batch())
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ expect fun Firebase.firestore(app: FirebaseApp): FirebaseFirestore
2020
2121expect class FirebaseFirestore {
2222 fun collection (collectionPath : String ): CollectionReference
23+ fun collectionGroup (collectionId : String ): Query
2324 fun document (documentPath : String ): DocumentReference
2425 fun batch (): WriteBatch
2526 fun setLoggingEnabled (loggingEnabled : Boolean )
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ actual class FirebaseFirestore(val ios: FIRFirestore) {
4242
4343 actual fun collection (collectionPath : String ) = CollectionReference (ios.collectionWithPath(collectionPath))
4444
45+ actual fun collectionGroup (collectionId : String ) = Query (ios.collectionGroupWithId(collectionId))
46+
4547 actual fun document (documentPath : String ) = DocumentReference (ios.documentWithPath(documentPath))
4648
4749 actual fun batch () = WriteBatch (ios.batch())
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ actual class FirebaseFirestore(val js: firebase.firestore.Firestore) {
3838
3939 actual fun collection (collectionPath : String ) = rethrow { CollectionReference (js.collection(collectionPath)) }
4040
41+ actual fun collectionGroup (collectionId : String ) = Query (js.collectionGroup(collectionId))
42+
4143 actual fun document (documentPath : String ) = rethrow { DocumentReference (js.doc(documentPath)) }
4244
4345 actual fun batch () = rethrow { WriteBatch (js.batch()) }
You can’t perform that action at this time.
0 commit comments