© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago
Atahualpa

latitude and longitude are string type but were defined as numeric

I know there is https://www.answeroverflow.com/m/1130657305722101782 showcasing why this is the case. But can someone explain why would one want to go through the effort of making the adjustment for making the type be a number?

I'm planning on having an input form with an address that I'll transform into lat and long coordinates, when this is passed as form data of course it'll be a string, but I wonder whether drizzle will update it properly whether it comes as a string or a number type.
Importing drizzle-zod Schemas on the Client - Drizzle Team
Hi,

Is it ok to import schemas generated with
drizzle-zod
drizzle-zod
via
createInsertSchema
createInsertSchema
on the client? I have my schema in a separate
schema.ts
schema.ts
file away from where I init my database if that matters at all.

Thanks!
Importing drizzle-zod Schemas on the Client - Drizzle Team
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
Numeric // Decimal Postgres types are inferred as strings and expect string as an input as well
Drizzle TeamDTDrizzle Team / help
3y ago
numeric as number instead of a string
Drizzle TeamDTDrizzle Team / help
13mo ago
Custom Type interpreted as String
Drizzle TeamDTDrizzle Team / help
3y ago