Comments (6)
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.
Hey @mikeyyg96, duplicate of #15 & #24 . Check this out for more info.
from geoflutterfire.
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.
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.
@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.
@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)
- Poorly worded/located documentation for using a where statement HOT 1
- Stream doesn't update properly HOT 1
- GoogleMapController Initialization
- in the fact this package get all docs in Firstore , either it meat radius or not !! horrible read me list , not true HOT 1
- near places not meet redious
- How to sort in order of closest? HOT 2
- How to apply geoCollection.within for polygons
- Update dependency to: flutter_lints ^2.0.1 HOT 4
- Not compiling after 3.0.0 when receiving query
- geoflutterfire stopped working with Google IO Firebase plugin updates in pubspec.yaml HOT 1
- Centered on same set of data locations, Query result succeeds or fails depending of the radius
- Getting error on calling GeoFirePoint.data HOT 1
- Empty result when querying "within" on collection HOT 6
- It simple stop working
- Additional Maintainers HOT 4
- Please update flutter_lints pakage to new version or remove from geoflutterfire HOT 4
- cloud_firestore: ^4.0.2 - compatibility HOT 7
- Cloud Call Error when querying documents through GeoFlutterFire
- Example: Could we replace BehaviorSubject with Dart StreamController?
- geoflutterfire >=3.0.2 depends on cloud_firestore ^3.1.6, but I have cloud_firestore ^4.4.4. I have to downgrade to make it work? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoflutterfire.