Skip to content

Conversation

@radvansky-tomas
Copy link

Fixes an issue where geoQuery would fail when queryBuilder added additional orderBy clauses.
The problem was that startAt([geohash]) only provides one value, but Firestore expects values for ALL orderBy fields in startAt/endAt. When queryBuilder added its own orderBy before the geohash orderBy, the cursor position became invalid.
The fix reorders operations so the geohash orderBy with startAt/endAt is applied first to the base collection reference, then queryBuilder modifications are applied afterward. This ensures the cursor values only apply to the geohash field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant