question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression: `count` returns 0

See original GitHub issue

See https://github.com/nestjsx/nestjs-typeorm-paginate/commit/e76c94098100f2eae1c0416066d5cdbbb2ec2dbc#r57500408.

I think paginateRepository should actually take a FindManyCondition instead of a FindManyOptions, since limit and page are passed separately. In this case, order should be set in IPaginationOptions.

I guess you’re working on it. But I could PR if you want.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
bashleighcommented, Oct 11, 2021

Ahh so for the latest version you can remove the where key word basically but I’m still going to revert this change as it’s removed the abaility to add order bys and relations which I think should be in here. was brought in by #567 #608 Reverting in #620

Thanks for the advice on change logs! I shall look that up and see if I can add that!

1reaction
bashleighcommented, Oct 7, 2021

I’ve released 3.1.2 which has the correct query. My tests had an issue which confused me into thinking the cloned querybuilder had duplicate expressions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zero-Inflated Poisson Regression | R Data Analysis Examples
Zero -inflated Poisson regression is used to model count data that has an excess of zero counts. Further, theory suggests that the excess...
Read more >
How Can Poisson Regression Predict a Count of Zero?
The poisson regression model does not predict counts, it predicts a rate. The poisson model is: y∣X∼Poisson(μ=exp(β0+β1x1+⋯+βkxk)).
Read more >
Lecture 7 Count Data Models
Given the Poisson distribution, we model the mean –i.e., λ- as a function of covariates. This creates the Poisson regression model: => we...
Read more >
Regression with Count Variable | DATA with STATA - UBC Blogs
Here we will discuss the Poisson, Negative Binomial, and Zero-Inflated ... Poisson regression fits models of the number of occurrences (counts) of an...
Read more >
Regression Models for Count Data in R
and zero-augmented count data models and their R implementations. ... It returns a model of class “negbin” inheriting from “glm” for which appropriate ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found