SupposedlySam / firefuel

A Firebase Cloud Firestore architecture to jump-start your project
MIT License
8 stars 1 forks source link

feat: add limit ability #24

Closed SupposedlySam closed 3 years ago

SupposedlySam commented 3 years ago

When working with Firestore, sometimes you want to be able to limit the amount of data you get back at once.

I believe most use cases will be to limit after doing some sort of filter, so we should create an optional named argument limit on the where clause.

In the case of subcollections, you might not need to do any kind of filtering, so we should also have a top-level limit method