-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
[FEATURE]: Count & Spread #2296
Comments
There's a helper fn |
@denis-ilchishin What is the full API? Do I pass it through |
@michealroberts You can do const results = db
.select({ count: count(), ...getTableColumns(users) })
.from(users) |
@denis-ilchishin Hmmm, but this just gives me one record ... the first? |
I'm not sure about exact query you're trying to execute, and I just showed how to replace |
Yeh dumb question, realised that it will aggregate to the count functionality will collapse the query. I wonder if we could have lazy queries, so being able to call count() just before we apply pagination. Essentially, the count provides the ability to give us record total. |
Describe what you want
Count and spread it, please. Like this:
But more like this:
The text was updated successfully, but these errors were encountered: