© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•13mo ago
tcurdt

numeric as number instead of a string

In a table I have

numerals: numeric().array().notNull()
numerals: numeric().array().notNull()


Now while I know that internally the DB treats
numeric
numeric
as strings, on the TS side of things I would rather deal with it as a
number
number


Is there a way for drizzle do those conversions and the type being
number[]
number[]
instead of
string[]
string[]
?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Numeric type returns number instead of string as defined in TypeScript
Drizzle TeamDTDrizzle Team / help
2y ago
Mysql JSON_ARRAYAGG as a string instead of a json
Drizzle TeamDTDrizzle Team / help
3y ago
Numeric // Decimal Postgres types are inferred as strings and expect string as an input as well
Drizzle TeamDTDrizzle Team / help
3y ago
TIMESTAMPTZ is returned as string instead of Date object
Drizzle TeamDTDrizzle Team / help
3y ago