Giter VIP home page Giter VIP logo

Comments (6)

magax avatar magax commented on May 30, 2024 2

I'm answering a year later but maybe this will help some other people. My workaround is to store the data within the valid date range in a specific collection and everything else in another collection. You just have to create per example an 'events' collection and when the date is past you delete this document and write it again into a 'past_events' collection if you want to keep the data.

from geoflutterfire.

DarshanGowda0 avatar DarshanGowda0 commented on May 30, 2024

Hey @mikeyyg96, duplicate of #15 & #24 . Check this out for more info.

from geoflutterfire.

mike-gallego avatar mike-gallego commented on May 30, 2024

This didn't really help me. In #15, the OP is trying to do a range filter to get a query between two conditions. I'm only trying to do a query based on a number less than or equal to the unix timestamp. Also the errors aren't the same in #15 & #24.

from geoflutterfire.

DarshanGowda0 avatar DarshanGowda0 commented on May 30, 2024

The library does a range query startAfter on position.geohash which needs an orderBy() by default, so tagging another range query like isLessThanOrEqualTo() won't work.

from geoflutterfire.

mike-gallego avatar mike-gallego commented on May 30, 2024

@DarshanGowda0 If that's the case, do you know a work around? I want to filter the query based on preferences the user makes. Say, for example, in a collection of events, the user prefers to attend events from the current date to a month from the current date.

from geoflutterfire.

DarshanGowda0 avatar DarshanGowda0 commented on May 30, 2024

@mikeyyg96 It really boils down to a limitation on firestore queries! Similarly, if you want to query all events from the current date to 30 days from now within a specified price range, you can't really perform that query unless you find a clever way to structure your data.

from geoflutterfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.