kosukesaigusa / geoflutterfire_plus

🌍💙🔥 geoflutterfire_plus allows your flutter apps to query geographic data saved in Cloud Firestore. This package is fork from GeoFlutterFire, and tried to be constantly maintained to work with latest Flutter SDK, Dart SDK, and other dependency packages.
https://pub.dev/packages/geoflutterfire_plus
MIT License
59 stars 7 forks source link

how to implement pagination? #176

Closed guvanch07 closed 6 months ago

guvanch07 commented 7 months ago

I would like to do pagination by adding limit and startDocument queries but didn't work

tiltmaster commented 7 months ago

thats legit my question lol, as im currently facing an issue when filtering by geopoints.

kosukesaigusa commented 7 months ago

Hello @guvanch07 @tiltmaster!

Thank you for your comments!

As you can see in README, currently limit and orderBy queries are not supported because of the geo hash query algorithm and Cloud Firestore query limitations. Unfortunately, for the same reason, pagination query is not possible! (We can not order by the query result, so we can not get paginated result.)

If you have any ideas, PRs are always welcome!

Thank you!

tiltmaster commented 6 months ago

Hello @guvanch07 @tiltmaster!

Thank you for your comments!

As you can see in README, currently limit and orderBy queries are not supported because of the geo hash query algorithm and Cloud Firestore query limitations. Unfortunately, for the same reason, pagination query is not possible! (We can not order by the query result, so we can not get paginated result.)

If you have any ideas, PRs are always welcome!

Thank you!

Much appreciated, honestly im just tired of how limited firebase is, a Migration is definitely now in order to supabase.

Thanks.