DarshanGowda0 / GeoFlutterFire

:fire:GeoFlutterFire:fire: is an open-source library that allows you to store and query firestore documents based on their geographic location.
https://youtu.be/MYHVyl-juUk
MIT License
305 stars 261 forks source link

[Question] Limit and orderBy limitations #54

Closed VictorUvarov closed 4 years ago

VictorUvarov commented 5 years ago

I've read that this plugin does not support limit() and orderBy() chaining on within(). However, does the plugin support the reference to do the limit() and orderBy() work? Example:

    final ref = _instance
        .collection(collectionName)
        .orderBy(field, descending: true)
        .limit(limit);

    Geoflutterfire().collection(collectionRef: ref);

I'm getting mixed results coming back from the stream.

joknjokn commented 4 years ago

Did you find a way to limit?

VictorUvarov commented 4 years ago

The package does not support the feature. I moved on.

rdev-software commented 4 years ago

But what about paging in general. As per documentation collection is sorted by distance. Cant we at least get paging in place?

So lets say that I set radius to 1000km, and this will produce 500 entries. Cant we just limit it to 50 and get last document and then call startAt ?!

davydany commented 4 years ago

The package does not support the feature. I moved on.

@VictorUvarov What did you move on to?