firebase / firebase/firebase-js-sdk

getCountFromServer does not accept startAfter Query Constraint

Open
#8,241 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.