firebase / firebase/firebase-js-sdk
getCountFromServer does not accept startAfter Query Constraint
Open
api: firestore
feature request
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
### Operating System
macOS 14.4.1 (23E224)
### Browser Version
Arc Version 1.42.0 (49714)
### Firebase SDK Version
10.11.1
### Firebase SDK Product:
Firestore
### Describe your project's tooling
Nest.js app with webpack
### Describe the problem
When calling `getCountFromServer` with no `orderBy` constraints and a `startAfter` constraint accepting a snapshot the following error was raised:
```
3 INVALID_ARGUMENT: Cursor has too many values
```
### Steps and code to reproduce issue
Call `getCountFromServer` with a query using a `startAfter` constraint.
Contributor guide
Assessment
This issue has not been assessed yet.