- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 342
          fix: Prevent query->count from changing query internals
          #511
        
          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
Conversation
| Thanks for opening this pull request!
 | 
| Codecov ReportPatch coverage:  
 
 Additional details and impacted files@@            Coverage Diff            @@
##             master     #511   +/-   ##
=========================================
  Coverage     98.62%   98.62%           
  Complexity     1072     1072           
=========================================
  Files            38       38           
  Lines          3264     3265    +1     
=========================================
+ Hits           3219     3220    +1     
  Misses           45       45           
 ☔ View full report in Codecov by Sentry. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
## [2.3.2](2.3.1...2.3.2) (2023-05-13) ### Bug Fixes * Prevent `query->count` from changing query internals ([#511](#511)) ([26db002](26db002))
| 🎉 This change has been released in version 2.3.2 | 
New Pull Request Checklist
Issue Description
The current query->count function overrides the limit and count conditions. This prevents the query from being used after the count operation occurs and may return unintended results. This could be worked around by using
withCount.