Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Use `getTableColumns` with `groupBy` - Drizzle Team
DT
Drizzle Team
•
3y ago
•
2 replies
bambam22
Use `getTableColumns` with `groupBy`
I am doing a nested query and postgres is requiring that every column I select be in the group by
, can I use the method
getTableColumns
getTableColumns
in the
groupBy
groupBy
, I
've tried just calling the method and destructing
. No luck
, the error reads
"must have a
Symbol
.iterator
method that returns an iterator
"
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
getTableColumns() for `with`?
DT
Drizzle Team / help
14mo ago
$dynamic with multiple groupBy statements
DT
Drizzle Team / help
3y ago
getTableColumns for sub-query
DT
Drizzle Team / help
3y ago
groupby multiple things
DT
Drizzle Team / help
3y ago