[firestore][ios] Fix missing limit functionality on iOS

This commit is contained in:
Chris Bianca 2017-10-31 07:34:41 +00:00
parent bd4dc28391
commit 402c1b05c5
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ queryListenOptions:(NSDictionary *) queryListenOptions {
if (_options[@"endBefore"]) {
query = [query queryEndingBeforeValues:_options[@"endBefore"]];
}
if (_options[@"limit"]) {
query = [query queryLimitedTo:_options[@"limit"]];
}
if (_options[@"offset"]) {
// iOS doesn't support offset
}