Closed shekhars-realm closed 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
Queries with orderBy are not supported by this library, please take a look at the README for more details.
orderBy
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