Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
10 replies
Neffrey

Error with tRPC & Drizzle with numeric data type

Im quite confused on this one. I'm getting an overload error saying the properties don't exist on type and then lists the type with those exact properties. Its not unique to one individual property. Any that I try give me the same error.

I've attached screenshots of the trpc function as well as my schema. Plz let me know if you want any more info or have any idea as I'm flabbergasted :/
db-insert.jpg
report-schema.jpg
Solution
I have a feeling that a numeric data type is a string. So you would use z.string()

Please test I may be wrong
Was this page helpful?