Open georgeMorales opened 5 years ago
Were you ever able to figure this out? I'm running into the same issues
I think it says on the description that it isn't possible
The only well-supported type of compound query is where. A geoquery combines multiple smaller queries into a unified radius, so limit and pagination operators will not provide predictable results - a better approach is to search a smaller radius and do your sorting client-side.
So, no...
No, it is not possible ... I changed to geofirestore, another library that allows to have a limit, although it is not possible to implement pagination either.
Is paging possible with this library? I got it with redux thunk and firestore but I do not know how I can put limits. I know that it is not possible with this library to query where 'birthday', '> =', today because it is already ordered by the geopoints, that is not a problem, what I do not know is how to create this function with the geoquery. Thanks for this wonderful library!
`//--------------------------onSnapshot listener------------------------------------ export const getUsersAction = (lastUsers) => async (dispatch, getState) => {
} // ------------------------or not onSnapshot listener--------------------------------- export const getUsersAction = (lastUsers) => async (dispatch, getState) => {
} `