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

fix(firestore): support unlimited number of where conditions #1314

Merged

Conversation

dominics
Copy link
Contributor

@dominics dominics commented Jul 12, 2024

Description

Fixes #1313

Adds a failing test first, where we have two documents that match the first two where conditions. If we are processing all three where conditions correctly, the query should uniquely identify a single document instead, to pass.

Verified the fix in a Cypress project of mine

where2,
options.statics || firestoreStatics,
);
(options.where as WhereOptions[]).forEach((whereCondition) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@prescottprue prescottprue merged commit a44152b into prescottprue:main Jul 29, 2024
3 of 4 checks passed
@prescottprue prescottprue deleted the dominics/unlimited-where-conditions branch July 29, 2024 16:34
Copy link

🎉 This PR is included in version 4.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Firestore get ignores any where conditions beyond the first two
2 participants