-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
getCount when using take #9662
Comments
"getCount" doesnt consider the parameters "take" and "skip" |
As mentioned on previous response you can count those which you need without take or skip, because these functions in query builder is generated it omits these clauses. you can select those which you need and then use length method of returned array. |
Thank y'all for your replies. It is something I really didn't know of. It was seeming so weird to me. Now that I know I'll be careful next time |
Thank you @rubber-bird. This is what I did finally. Thank you very much |
I have a behavior in typeorm lately. Here is my query :
I expect to have dataCount === dataLength but it's not the case. Instead the number of elements selected by the query before applying take is returned. Is this the way it works or what is going on in here ?
The text was updated successfully, but these errors were encountered: