We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43024f commit 3eb94e6Copy full SHA for 3eb94e6
firebase-firestore/src/iosMain/kotlin/dev/gitlive/firebase/firestore/firestore.kt
@@ -185,7 +185,7 @@ actual open class Query(open val ios: FIRQuery) {
185
186
actual suspend fun get() = QuerySnapshot(awaitResult { ios.getDocumentsWithCompletion(it) })
187
188
- actual fun limit(limit: Number) = Query(ios.queryLimitedTo(limit.toInt()))
+ actual fun limit(limit: Number) = Query(ios.queryLimitedTo(limit.toLong()))
189
190
actual val snapshots get() = callbackFlow {
191
val listener = ios.addSnapshotListener { snapshot, error ->
0 commit comments