Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCountFromServer does not accept startAfter Query Constraint #8241

Open
bridges-wood opened this issue May 12, 2024 · 3 comments
Open

getCountFromServer does not accept startAfter Query Constraint #8241

bridges-wood opened this issue May 12, 2024 · 3 comments

Comments

@bridges-wood
Copy link

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.

@bridges-wood bridges-wood added new A new issue that hasn't be categoirzed as question, bug or feature request question labels May 12, 2024
@tom-andersen tom-andersen self-assigned this May 12, 2024
@tom-andersen tom-andersen added bug and removed new A new issue that hasn't be categoirzed as question, bug or feature request question labels May 12, 2024
@tom-andersen
Copy link
Contributor

Hi @bridges-wood!

Congratulations, I think you might have found a bug. Looking through the SDK code, I have a theory as to why this might happen.

I still need to reproduce the bug, at which point we can prioritize fixing this. I'll update this issue as we make progress.

Thanks for reporting this!

@tom-andersen
Copy link
Contributor

tom-andersen commented May 13, 2024

Here's a follow up for you @bridges-wood.

Cursor support in aggregations is a known limitation. To make this work will require some engineering work. I cannot make any promises on when this work will be prioritized, as we are also working on other query features.

@bridges-wood
Copy link
Author

@tom-andersen Thanks for the update.

@tom-andersen tom-andersen removed their assignment May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants