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

feat: Add em.findCount. #651

Merged
merged 3 commits into from
May 19, 2023
Merged

feat: Add em.findCount. #651

merged 3 commits into from
May 19, 2023

Conversation

stephenh
Copy link
Collaborator

No description provided.


if (orderBys.length > 0) {
Object.assign(query, { orderBys });
// Even if they already added orders, add id as the last one to get deterministic output
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This used to be done in buildKnexQuery, but select count(*)s shouldn't have it, so moved it here.

@stephenh stephenh merged commit dcf361c into main May 19, 2023
@stephenh stephenh deleted the em-find-count branch May 19, 2023 03:10
stephenh pushed a commit that referenced this pull request May 19, 2023
# [1.79.0](v1.78.3...v1.79.0) (2023-05-19)

### Features

* Add em.findCount. ([#651](#651)) ([dcf361c](dcf361c))
@stephenh
Copy link
Collaborator Author

🎉 This PR is included in version 1.79.0 🎉

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.

None yet

1 participant