Open azazadev opened 3 years ago
Hey @azazadev. Can you elaborate on the feature you are talking about?
take this example :
collections :
posts
- id
- message
- date
- userId
- ...
- ...
users :
- userId
- name
- ...
- ...
scenario : user have 100 friends
Expected : paginate view with all posts of 100 friends
PaginateFirestore( query: FirebaseFirestore.instance.collection('posts').Where("userId", "in", friends (list of 100 ids )) ---> this will not work due to Firestore 10 limit when using IN operator
Expected :
PaginateFirestore(
// split list of friends in batch of 10 and run with multiple queries
queries: [FirebaseFirestore.instance.collection('posts').Where("userId", "in", friends (list of 10 ids )),FirebaseFirestore.instance.collection('posts').Where("userId", "in", friends (list of 10 ids )) .... ]
is there any update on this feature
If you guys are comfortable with using documentSnapshots
directly, you can go with the package pagination_view
. I made it for a general use case.
Hi @excogitatr
it's possible to support
List<query>
to WA Firestore 10 limit when using IN operator ref : https://ncona.com/2021/01/dealing-with-firestore-10-limit-with-in-operatorthis will save the live of anyone use firestore !!!