MichaelSolati / geofirestore-js

Location-based querying and filtering using Firebase Firestore.
https://geofirestore.com
MIT License
505 stars 58 forks source link

making compound queries using geofirestore #135

Closed shekhars-realm closed 5 years ago

shekhars-realm commented 5 years ago

I am trying to make something like this:

geofirestore.collection('locations') .near({ center: new admin.firestore.GeoPoint(req.body.location.lat, req.body.location.lng), radius: req.body.radius }) .where('tags', 'array-contains', req.body.searchText) .orderBy('startTime', 'desc')

Error: geofirestore.collection(...).near(...).where(...).orderBy is not a function

MichaelSolati commented 5 years ago

Queries with orderBy are not supported by this library, please take a look at the README for more details.